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
741 python_additional_libs
772 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name
=s
,x
,x
,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir
='${exec_prefix}/bin'
812 sbindir
='${exec_prefix}/sbin'
813 libexecdir
='${exec_prefix}/libexec'
814 datarootdir
='${prefix}/share'
815 datadir
='${datarootdir}'
816 sysconfdir
='${prefix}/etc'
817 sharedstatedir
='${prefix}/com'
818 localstatedir
='${prefix}/var'
819 includedir
='${prefix}/include'
820 oldincludedir
='/usr/include'
821 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir
='${datarootdir}/info'
827 libdir
='${exec_prefix}/lib'
828 localedir
='${datarootdir}/locale'
829 mandir
='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\
$ac_option
843 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
855 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
858 -build |
--build |
--buil |
--bui |
--bu)
859 ac_prev
=build_alias
;;
860 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
861 build_alias
=$ac_optarg ;;
863 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
864 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
865 ac_prev
=cache_file
;;
866 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
867 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
868 cache_file
=$ac_optarg ;;
871 cache_file
=config.cache
;;
873 -datadir |
--datadir |
--datadi |
--datad)
875 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
876 datadir
=$ac_optarg ;;
878 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
879 |
--dataroo |
--dataro |
--datar)
880 ac_prev
=datarootdir
;;
881 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
882 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
883 datarootdir
=$ac_optarg ;;
885 -disable-* |
--disable-*)
886 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_
$ac_feature=no
;;
894 -docdir |
--docdir |
--docdi |
--doc |
--do)
896 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
899 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
901 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
904 -enable-* |
--enable-*)
905 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_
$ac_feature=\
$ac_optarg ;;
913 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
914 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
915 |
--exec |
--exe |
--ex)
916 ac_prev
=exec_prefix
;;
917 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
918 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
919 |
--exec=* |
--exe=* |
--ex=*)
920 exec_prefix
=$ac_optarg ;;
922 -gas |
--gas |
--ga |
--g)
923 # Obsolete; use --with-gas.
926 -help |
--help |
--hel |
--he |
-h)
928 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
929 ac_init_help
=recursive
;;
930 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
931 ac_init_help
=short
;;
933 -host |
--host |
--hos |
--ho)
934 ac_prev
=host_alias
;;
935 -host=* |
--host=* |
--hos=* |
--ho=*)
936 host_alias
=$ac_optarg ;;
938 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
940 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
942 htmldir
=$ac_optarg ;;
944 -includedir |
--includedir |
--includedi |
--included |
--include \
945 |
--includ |
--inclu |
--incl |
--inc)
946 ac_prev
=includedir
;;
947 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
948 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
949 includedir
=$ac_optarg ;;
951 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
953 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
954 infodir
=$ac_optarg ;;
956 -libdir |
--libdir |
--libdi |
--libd)
958 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
961 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
962 |
--libexe |
--libex |
--libe)
963 ac_prev
=libexecdir
;;
964 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
965 |
--libexe=* |
--libex=* |
--libe=*)
966 libexecdir
=$ac_optarg ;;
968 -localedir |
--localedir |
--localedi |
--localed |
--locale)
970 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
971 localedir
=$ac_optarg ;;
973 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
974 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
975 ac_prev
=localstatedir
;;
976 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
977 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
978 localstatedir
=$ac_optarg ;;
980 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
982 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
986 # Obsolete; use --without-fp.
989 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
990 |
--no-cr |
--no-c |
-n)
993 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
994 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
997 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
998 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
999 |
--oldin |
--oldi |
--old |
--ol |
--o)
1000 ac_prev
=oldincludedir
;;
1001 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1002 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1003 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1004 oldincludedir
=$ac_optarg ;;
1006 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1008 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1009 prefix
=$ac_optarg ;;
1011 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1012 |
--program-pre |
--program-pr |
--program-p)
1013 ac_prev
=program_prefix
;;
1014 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1015 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1016 program_prefix
=$ac_optarg ;;
1018 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1019 |
--program-suf |
--program-su |
--program-s)
1020 ac_prev
=program_suffix
;;
1021 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1022 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1023 program_suffix
=$ac_optarg ;;
1025 -program-transform-name |
--program-transform-name \
1026 |
--program-transform-nam |
--program-transform-na \
1027 |
--program-transform-n |
--program-transform- \
1028 |
--program-transform |
--program-transfor \
1029 |
--program-transfo |
--program-transf \
1030 |
--program-trans |
--program-tran \
1031 |
--progr-tra |
--program-tr |
--program-t)
1032 ac_prev
=program_transform_name
;;
1033 -program-transform-name=* |
--program-transform-name=* \
1034 |
--program-transform-nam=* |
--program-transform-na=* \
1035 |
--program-transform-n=* |
--program-transform-=* \
1036 |
--program-transform=* |
--program-transfor=* \
1037 |
--program-transfo=* |
--program-transf=* \
1038 |
--program-trans=* |
--program-tran=* \
1039 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1040 program_transform_name
=$ac_optarg ;;
1042 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1044 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1045 pdfdir
=$ac_optarg ;;
1047 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1049 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1053 |
-silent |
--silent |
--silen |
--sile |
--sil)
1056 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1058 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1060 sbindir
=$ac_optarg ;;
1062 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1063 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1064 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1066 ac_prev
=sharedstatedir
;;
1067 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1068 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1069 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1071 sharedstatedir
=$ac_optarg ;;
1073 -site |
--site |
--sit)
1075 -site=* |
--site=* |
--sit=*)
1078 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1080 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1081 srcdir
=$ac_optarg ;;
1083 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1084 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1085 ac_prev
=sysconfdir
;;
1086 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1087 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1088 sysconfdir
=$ac_optarg ;;
1090 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1091 ac_prev
=target_alias
;;
1092 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1093 target_alias
=$ac_optarg ;;
1095 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1098 -version |
--version |
--versio |
--versi |
--vers |
-V)
1099 ac_init_version
=: ;;
1102 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_
$ac_package=\
$ac_optarg ;;
1110 -without-* |
--without-*)
1111 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_
$ac_package=no
;;
1120 # Obsolete; use --with-x.
1123 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1124 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1125 ac_prev
=x_includes
;;
1126 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1127 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1128 x_includes
=$ac_optarg ;;
1130 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1131 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1132 ac_prev
=x_libraries
;;
1133 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1134 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1135 x_libraries
=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1143 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\
$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val
=\$
$ac_var
1176 [\\/$
]* | ?
:[\\/]* ) continue;;
1177 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target
=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x
; then
1192 if test "x$build_alias" = x
; then
1193 cross_compiling
=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1204 test "$silent" = yes && exec 6>/dev
/null
1207 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di
=`ls -di .` &&
1209 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted
=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir
=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted
=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var
in $ac_precious_vars; do
1272 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1274 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --build=BUILD configure
for building on BUILD
[guessed
]
1344 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1355 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1356 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1357 --disable-integer-datetimes
1358 disable
64-bit integer date
/time support
1359 --enable-nls[=LANGUAGES
]
1360 enable Native Language Support
1361 --disable-shared do not build shared libraries
1362 --disable-rpath do not embed shared library search path
in
1364 --disable-spinlocks do not use spinlocks
1365 --enable-debug build with debugging symbols
(-g)
1366 --enable-profiling build with profiling enabled
1367 --enable-coverage build with coverage testing instrumentation
1368 --enable-dtrace build with DTrace support
1369 --enable-depend turn on automatic dependency tracking
1370 --enable-cassert enable assertion checks
(for debugging
)
1371 --enable-thread-safety make client libraries thread-safe
1372 --enable-thread-safety-force
1373 force thread-safety despite thread
test failure
1374 --disable-float4-byval disable float4 passed by value
1375 --disable-float8-byval disable float8 passed by value
1376 --disable-largefile omit support
for large files
1379 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1380 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1381 --with-template=NAME override operating system template
1382 --with-includes=DIRS
look for additional header files
in DIRS
1383 --with-libraries=DIRS
look for additional libraries
in DIRS
1384 --with-libs=DIRS alternative spelling of
--with-libraries
1385 --with-pgport=PORTNUM
set default port number
[5432]
1386 --with-blocksize=BLOCKSIZE
1387 set table block size
in kB
[8]
1388 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1389 --with-wal-blocksize=BLOCKSIZE
1390 set WAL block size
in kB
[8]
1391 --with-wal-segsize=SEGSIZE
1392 set WAL segment size
in MB
[16]
1393 --with-CC=CMD
set compiler
(deprecated
)
1394 --with-tcl build Tcl modules
(PL
/Tcl
)
1395 --with-tclconfig=DIR tclConfig.sh is
in DIR
1396 --with-perl build Perl modules
(PL
/Perl
)
1397 --with-python build Python modules
(PL
/Python
)
1398 --with-gssapi build with GSSAPI support
1399 --with-krb5 build with Kerberos
5 support
1400 --with-krb-srvnam=NAME default service principal name
in Kerberos
1402 --with-pam build with PAM support
1403 --with-ldap build with LDAP support
1404 --with-bonjour build with Bonjour support
1405 --with-openssl build with OpenSSL support
1406 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1407 --with-libedit-preferred
1408 prefer BSD Libedit over GNU Readline
1409 --with-ossp-uuid use OSSP UUID library when building
1411 --with-libxml build with XML support
1412 --with-libxslt use XSLT support when building contrib
/xml2
1413 --with-system-tzdata=DIR
1414 use system
time zone data
in DIR
1415 --without-zlib do not use Zlib
1416 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1418 Some influential environment variables
:
1419 CC C compiler
command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1422 nonstandard directory
<lib dir
>
1423 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1424 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1425 you have headers
in a nonstandard directory
<include dir
>
1429 location of DocBook stylesheets
1431 Use these variables to override the choices made by
`configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" || continue
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61. Invocation command line was
1524 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1525 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1526 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1527 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1528 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1530 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1531 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1533 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1534 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1535 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1536 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1537 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1538 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1539 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 echo "PATH: $as_dir"
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1572 ac_must_keep_next=false
1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580 | -silent | --silent | --silen | --sile | --sil)
1583 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true; then
1590 ac_must_keep_next=false # Got value, back to normal.
1593 *=* | --config-cache | -C | -disable-* | --disable-* \
1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596 | -with-* | --with-* | -without-* | --without-* | --x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1601 -* ) ac_must_keep_next=true ;;
1604 ac_configure_args="$ac_configure_args '$ac_arg'"
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1631 eval ac_val=\$$ac_var
1635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1639 _ | IFS | as_nl) ;; #(
1640 *) $as_unset $ac_var ;;
1645 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1646 *${as_nl}ac_space=\ *)
1648 "s/'\''/'\''\\\\'\'''\''/g;
1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1665 for ac_var in $ac_subst_vars
1667 eval ac_val=\$$ac_var
1669 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 echo "$ac_var='\''$ac_val'\''"
1675 if test -n "$ac_subst_files"; then
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1682 for ac_var in $ac_subst_files
1684 eval ac_val=\$$ac_var
1686 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 echo "$ac_var='\''$ac_val'\''"
1693 if test -s confdefs.h; then
1703 test "$ac_signal" != 0 &&
1704 echo "$as_me: caught signal $ac_signal"
1705 echo "$as_me: exit $exit_status"
1707 rm -f core *.core core.conftest.* &&
1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1711 for ac_signal in 1 2 13 15; do
1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1719 # Predefined preprocessor variables.
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749 set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 set x "$ac_default_prefix/share/config.site" \
1754 "$ac_default_prefix/etc/config.site"
1759 if test -r "$ac_site_file"; then
1760 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762 sed 's/^/| /' "$ac_site_file" >&5
1767 if test -r "$cache_file"; then
1768 # Some versions of bash will fail to source /dev/null (special
1769 # files actually), so we avoid doing that.
1770 if test -f "$cache_file"; then
1771 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1774 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775 *) . "./$cache_file";;
1779 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1784 # Check that the precious variables saved in the cache have kept the same
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789 eval ac_new_set=\$ac_env_${ac_var}_set
1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791 eval ac_new_val=\$ac_env_${ac_var}_value
1792 case $ac_old_set,$ac_new_set in
1794 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1795 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796 ac_cache_corrupted=: ;;
1798 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1799 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1803 if test "x$ac_old_val" != "x$ac_new_val"; then
1804 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1806 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1807 echo "$as_me: former value
: $ac_old_val" >&2;}
1808 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1809 echo "$as_me: current value
: $ac_new_val" >&2;}
1810 ac_cache_corrupted=:
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1816 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825 if $ac_cache_corrupted; then
1826 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1827 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1828 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1830 { (exit 1); exit 1; }; }
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 for ac_dir in config "$srcdir"/config; do
1870 if test -f "$ac_dir/install-sh"; then
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1874 elif test -f "$ac_dir/install.sh"; then
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 elif test -f "$ac_dir/shtool"; then
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900 configure_args=$ac_configure_args
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926 { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939 { (exit 1); exit 1; }; };;
1942 ac_save_IFS=$IFS; IFS='-'
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1952 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test "x$host_alias" = x; then
1961 ac_cv_host=$ac_cv_build
1963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976 { (exit 1); exit 1; }; };;
1979 ac_save_IFS=$IFS; IFS='-'
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1989 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1998 pgac_args="$pgac_args with_template"
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003 withval=$with_template;
2006 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008 { (exit 1); exit 1; }; }
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2018 list) echo; ls "$srcdir/src/template"; exit;;
2019 *) if test -f "$srcdir/src/template/$with_template" ; then
2022 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024 { (exit 1); exit 1; }; }
2033 # --with-template not given
2036 aix*) template=aix ;;
2037 bsdi*) template=bsdi ;;
2038 cygwin*) template=cygwin ;;
2039 darwin*) template=darwin ;;
2040 dgux*) template=dgux ;;
2041 freebsd*) template=freebsd ;;
2042 hpux*) template=hpux ;;
2043 irix*) template=irix ;;
2044 linux*|gnu*|k*bsd*-gnu)
2046 mingw*) template=win32 ;;
2047 netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049 openbsd*) template=openbsd ;;
2050 osf*) template=osf ;;
2051 sco*) template=sco ;;
2052 solaris*) template=solaris ;;
2053 sunos*) template=sunos4 ;;
2055 case $host_vendor in
2056 univel) template=univel ;;
2058 sysv4*) template=svr4 ;;
2059 sysv5*) template=unixware ;;
2060 ultrix*) template=ultrix4 ;;
2063 if test x"$template" = x"" ; then
2064 { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this. Include the above 'checking host system type...'
2073 *******************************************************************
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this. Include the above 'checking host system type...'
2084 *******************************************************************
2086 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set). This can be overridden by the template file
2102 # when it's executed.
2109 ## Command line options
2113 # Add non-standard directories to the include path
2116 pgac_args="$pgac_args with_includes"
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121 withval=$with_includes;
2124 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2144 # Add non-standard directories to the library search path
2147 pgac_args="$pgac_args with_libraries"
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152 withval=$with_libraries;
2155 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 LIBRARY_DIRS=$withval
2174 pgac_args="$pgac_args with_libs"
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2182 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184 { (exit 1); exit 1; }; }
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 LIBRARY_DIRS=$withval
2202 # 64-bit integer date/time storage: enabled by default.
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2207 pgac_args="$pgac_args enable_integer_datetimes"
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211 enableval=$enable_integer_datetimes;
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226 { (exit 1); exit 1; }; }
2231 enable_integer_datetimes=yes
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2250 pgac_args="$pgac_args enable_nls"
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254 enableval=$enable_nls;
2264 WANTED_LANGUAGES=$enableval
2274 if test "$enable_nls" = yes; then
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2288 # Default port number (--with-pgport), default 5432
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2293 pgac_args="$pgac_args with_pgport"
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298 withval=$with_pgport;
2301 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 default_port=$withval
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2336 # Option to disable shared libraries
2339 pgac_args="$pgac_args enable_shared"
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343 enableval=$enable_shared;
2352 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354 { (exit 1); exit 1; }; }
2367 # '-rpath'-like feature can be disabled
2370 pgac_args="$pgac_args enable_rpath"
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374 enableval=$enable_rpath;
2383 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385 { (exit 1); exit 1; }; }
2401 pgac_args="$pgac_args enable_spinlocks"
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405 enableval=$enable_spinlocks;
2414 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416 { (exit 1); exit 1; }; }
2421 enable_spinlocks=yes
2428 # --enable-debug adds -g to compiler flags
2431 pgac_args="$pgac_args enable_debug"
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435 enableval=$enable_debug;
2444 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446 { (exit 1); exit 1; }; }
2459 # --enable-profiling enables gcc profiling
2462 pgac_args="$pgac_args enable_profiling"
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466 enableval=$enable_profiling;
2475 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477 { (exit 1); exit 1; }; }
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2493 pgac_args="$pgac_args enable_coverage"
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497 enableval=$enable_coverage;
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$GCOV"; then
2510 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_GCOV="$ac_prog"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531 { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2539 test -n "$GCOV" && break
2542 if test -z "$GCOV"; then
2543 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545 { (exit 1); exit 1; }; }
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$LCOV"; then
2557 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_LCOV="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578 { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$LCOV" && break
2589 if test -z "$LCOV"; then
2590 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592 { (exit 1); exit 1; }; }
2594 for ac_prog in genhtml
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$GENHTML"; then
2604 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_GENHTML="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$GENHTML" && break
2636 if test -z "$GENHTML"; then
2637 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639 { (exit 1); exit 1; }; }
2646 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648 { (exit 1); exit 1; }; }
2664 pgac_args="$pgac_args enable_dtrace"
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668 enableval=$enable_dtrace;
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2676 for ac_prog in dtrace
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$DTRACE"; then
2686 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_DTRACE="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$DTRACE" && break
2718 if test -z "$DTRACE"; then
2719 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721 { (exit 1); exit 1; }; }
2729 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731 { (exit 1); exit 1; }; }
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2749 pgac_args="$pgac_args with_blocksize"
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754 withval=$with_blocksize;
2757 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759 { (exit 1); exit 1; }; }
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2776 case ${blocksize} in
2783 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785 { (exit 1); exit 1; }; }
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2797 # Relation segment size
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2802 pgac_args="$pgac_args with_segsize"
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807 withval=$with_segsize;
2810 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812 { (exit 1); exit 1; }; }
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2848 pgac_args="$pgac_args with_wal_blocksize"
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853 withval=$with_wal_blocksize;
2856 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858 { (exit 1); exit 1; }; }
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 wal_blocksize=$withval
2875 case ${wal_blocksize} in
2876 1) XLOG_BLCKSZ=1024;;
2877 2) XLOG_BLCKSZ=2048;;
2878 4) XLOG_BLCKSZ=4096;;
2879 8) XLOG_BLCKSZ=8192;;
2880 16) XLOG_BLCKSZ=16384;;
2881 32) XLOG_BLCKSZ=32768;;
2882 64) XLOG_BLCKSZ=65536;;
2883 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885 { (exit 1); exit 1; }; }
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2902 pgac_args="$pgac_args with_wal_segsize"
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907 withval=$with_wal_segsize;
2910 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912 { (exit 1); exit 1; }; }
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 wal_segsize=$withval
2929 case ${wal_segsize} in
2937 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939 { (exit 1); exit 1; }; }
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2958 pgac_args="$pgac_args with_CC"
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2966 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968 { (exit 1); exit 1; }; }
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2985 aix) pgac_cc_list="gcc xlc";;
2986 irix) pgac_cc_list="cc";; # no gcc
2987 *) pgac_cc_list="gcc cc";;
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in $pgac_cc_list
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3030 { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3035 test -n "$CC" && break
3038 if test -z "$CC"; then
3040 for ac_prog in $pgac_cc_list
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3079 test -n "$ac_ct_CC" && break
3082 if test "x$ac_ct_CC" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet. If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log
' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details.
" >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3161 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { (ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3197 for ac_file in $ac_files ''
3199 test -f "$ac_file" || continue
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 # We found the default executable, but exeext='' is most
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3228 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231 echo "$as_me: failed program was
:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3235 See \
`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log
' for more details." >&2;}
3238 { (exit 77); exit 77; }; }
3241 ac_exeext=$ac_cv_exeext
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250 if { ac_try='.
/$ac_file'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 if test "$cross_compiling" = maybe; then
3265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \
`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details.
" >&2;}
3271 { (exit 1); exit 1; }; }
3275 { echo "$as_me:$LINENO: result
: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3283 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3287 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3288 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_link") 2>&5
3297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3298 (exit $ac_status); }; then
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3314 See \
`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log
' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3367 echo "$as_me: failed program was:" >&5
3368 sed 's
/^
/|
/' conftest.$ac_ext >&5
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details.
" >&5
3372 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3373 See \
`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3410 *) ac_try_echo
=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1
>conftest.err
3417 cat conftest.err
>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.
$ac_objext; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.
$ac_ext >&5
3431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3432 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS
=${CFLAGS+set}
3439 ac_save_CFLAGS
=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_save_c_werror_flag
=$ac_c_werror_flag
3446 ac_c_werror_flag
=yes
3449 cat >conftest.
$ac_ext <<_ACEOF
3452 cat confdefs.h
>>conftest.
$ac_ext
3453 cat >>conftest.
$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.
$ac_objext
3465 if { (ac_try
="$ac_compile"
3467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.
$ac_objext; then
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3524 ac_c_werror_flag
=$ac_save_c_werror_flag
3526 cat >conftest.
$ac_ext <<_ACEOF
3529 cat confdefs.h
>>conftest.
$ac_ext
3530 cat >>conftest.
$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.
$ac_objext
3542 if { (ac_try
="$ac_compile"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578 CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3586 if test "$GCC" = yes; then
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_prog_cc_c89=no
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3623 s = g (p, va_arg (v,int));
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3664 *) ac_try_echo
=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1
>conftest.err
3671 cat conftest.err
>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.
$ac_objext; then
3677 ac_cv_prog_cc_c89
=$ac_arg
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.
$ac_ext >&5
3685 rm -f core conftest.err conftest.
$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 rm -f conftest.
$ac_ext
3693 case "x$ac_cv_prog_cc_c89" in
3695 { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3698 { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3701 CC
="$CC $ac_cv_prog_cc_c89"
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3708 ac_cpp
='$CPP $CPPFLAGS'
3709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own. We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3718 cat >conftest.
$ac_ext <<_ACEOF
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3728 #ifndef __INTEL_COMPILER
3735 rm -f conftest.
$ac_objext
3736 if { (ac_try
="$ac_compile"
3738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3785 *) ac_try_echo
=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1
>conftest.err
3792 cat conftest.err
>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.
$ac_objext; then
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3815 .
"$srcdir/src/template/$template" ||
exit
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else: If the template file set something, that is used.
3820 # else: If coverage was enabled, don't set anything.
3821 # else: If the compiler is GCC, then we use -O2.
3822 # else: If the compiler is something else, then we use -O.
3824 if test "$ac_env_CFLAGS_set" = set; then
3825 CFLAGS
=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827 : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829 : # no optimization by default
3830 elif test "$GCC" = yes; then
3833 # if the user selected debug mode, don't use -O
3834 if test "$enable_debug" != yes; then
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3843 if test "$GCC" = yes -a "$ICC" = no
; then
3844 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845 # These work in some but not all gcc versions
3846 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS
=$CFLAGS
3849 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.
$ac_objext
3866 if { (ac_try
="$ac_compile"
3868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 CFLAGS="$pgac_save_CFLAGS"
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3918 *) ac_try_echo
=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1
>conftest.err
3925 cat conftest.err
>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.
$ac_objext; then
3931 { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.
$ac_ext >&5
3937 CFLAGS
="$pgac_save_CFLAGS"
3938 { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3944 # Disable strict-aliasing rules; needed for gcc 3.3+
3945 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS
=$CFLAGS
3948 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3964 rm -f conftest.
$ac_objext
3965 if { (ac_try
="$ac_compile"
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3973 grep -v '^ *+' conftest.er1 >conftest.err
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 CFLAGS="$pgac_save_CFLAGS"
3988 { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4018 *) ac_try_echo
=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1
>conftest.err
4025 cat conftest.err
>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.
$ac_objext; then
4031 { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4037 CFLAGS
="$pgac_save_CFLAGS"
4038 { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 elif test "$ICC" = yes; then
4045 # Intel's compiler has a bug/misoptimization in checking for
4046 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS
=$CFLAGS
4050 CFLAGS
="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.
$ac_objext
4067 if { (ac_try
="$ac_compile"
4069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 CFLAGS="$pgac_save_CFLAGS"
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 # Make sure strict aliasing is off (though this is said to be the default)
4097 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4120 *) ac_try_echo
=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.
$ac_objext; then
4133 { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.
$ac_ext >&5
4139 CFLAGS
="$pgac_save_CFLAGS"
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4146 elif test x
"${CC}" = x
"xlc"; then
4147 # AIX xlc has to have strict aliasing turned off too
4148 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS
=$CFLAGS
4151 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.
$ac_ext <<_ACEOF
4155 cat confdefs.h
>>conftest.
$ac_ext
4156 cat >>conftest.
$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.
$ac_objext
4168 if { (ac_try
="$ac_compile"
4170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 CFLAGS="$pgac_save_CFLAGS"
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206 if test "$GCC" = yes; then
4207 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4209 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211 { (exit 1); exit 1; }; }
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217 if test "$GCC" = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4223 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4225 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227 { (exit 1); exit 1; }; }
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4258 *) ac_try_echo
=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_link") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest
$ac_exeext &&
4271 $as_test_x conftest
$ac_exeext; then
4272 { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.
$ac_ext >&5
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282 { (exit 1); exit 1; }; }
4285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4286 conftest
$ac_exeext conftest.
$ac_ext
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.
$ac_ext <<_ACEOF
4293 cat confdefs.h
>>conftest.
$ac_ext
4294 cat >>conftest.
$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4300 #ifdef __FAST_MATH__
4307 rm -f conftest.
$ac_objext
4308 if { (ac_try
="$ac_compile"
4310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest.$ac_objext; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331 { (exit 1); exit 1; }; }
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4348 if test -z "$CPP"; then
4349 if test "${ac_cv_prog_CPP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # Double quotes because CPP needs to be expanded
4353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356 for ac_c_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 # include <limits.h>
4373 # include <assert.h>
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4380 *) ac_try_echo
=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1
>conftest.err
4387 cat conftest.err
>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev
/null
&& {
4390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.
$ac_ext >&5
4398 # Broken: fails on valid input.
4402 rm -f conftest.err conftest.
$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null && {
4427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4430 # Broken: success on invalid input.
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 # Passes both tests.
4441 rm -f conftest.err conftest.$ac_ext
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.
$ac_ext
4446 if $ac_preproc_ok; then
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4461 for ac_c_preproc_warn_flag
in '' yes
4463 # Use a header file that comes with gcc, so configuring glibc
4464 # with a fresh cross-compiler works.
4465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466 # <limits.h> exists even on freestanding compilers.
4467 # On the NeXT, cc -E runs the code through the compiler's parser,
4468 # not just through cpp. "Syntax error" is here to catch this case.
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4476 # include <limits.h>
4478 # include <assert.h>
4482 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 # Broken: fails on valid input.
4507 rm -f conftest.err conftest.$ac_ext
4509 # OK, works on sane cases. Now check whether nonexistent headers
4510 # can be detected and how.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4522 *) ac_try_echo
=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 grep -v '^ *+' conftest.er1
>conftest.err
4529 cat conftest.err
>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } >/dev
/null
&& {
4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4535 # Broken: success on invalid input.
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.
$ac_ext >&5
4541 # Passes both tests.
4546 rm -f conftest.err conftest.
$ac_ext
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.
$ac_ext
4551 if $ac_preproc_ok; then
4554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558 { (exit 1); exit 1; }; }
4562 ac_cpp
='$CPP $CPPFLAGS'
4563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4569 # Create compiler version string
4570 if test x
"$GCC" = x
"yes" ; then
4571 cc_string
="GCC `${CC} --version | sed q`"
4576 cat >>confdefs.h
<<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4586 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4589 if test "$need_tas" = yes ; then
4598 # Automatic dependency tracking
4601 pgac_args
="$pgac_args enable_depend"
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605 enableval
=$enable_depend;
4614 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616 { (exit 1); exit 1; }; }
4630 # Enable assert checks
4633 pgac_args
="$pgac_args enable_cassert"
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637 enableval
=$enable_cassert;
4641 cat >>confdefs.h
<<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4650 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652 { (exit 1); exit 1; }; }
4665 # Include directories
4668 IFS
="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir
in $with_includes $SRCH_INC; do
4671 if test -d "$dir"; then
4672 INCLUDES
="$INCLUDES -I$dir"
4674 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4683 # Library directories
4686 IFS
="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4689 if test -d "$dir"; then
4690 LIBDIRS
="$LIBDIRS -L$dir"
4692 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4699 # Enable thread-safe client libraries
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4705 pgac_args
="$pgac_args enable_thread_safety"
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709 enableval
=$enable_thread_safety;
4718 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720 { (exit 1); exit 1; }; }
4725 enable_thread_safety
=no
4731 # Win32 should always use threads
4733 pgac_args
="$pgac_args enable_thread_safety"
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737 enableval
=$enable_thread_safety;
4746 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748 { (exit 1); exit 1; }; }
4753 enable_thread_safety
=yes
4761 pgac_args
="$pgac_args enable_thread_safety_force"
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765 enableval
=$enable_thread_safety_force;
4774 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776 { (exit 1); exit 1; }; }
4781 enable_thread_safety_force
=no
4786 if test "$enable_thread_safety" = yes -o \
4787 "$enable_thread_safety_force" = yes; then
4788 enable_thread_safety
="yes" # for 'force'
4790 cat >>confdefs.h
<<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4800 # Optionally build Tcl modules (PL/Tcl)
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4805 pgac_args
="$pgac_args with_tcl"
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821 { (exit 1); exit 1; }; }
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4839 pgac_args
="$pgac_args with_tclconfig"
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844 withval
=$with_tclconfig;
4847 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849 { (exit 1); exit 1; }; }
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4866 # Optionally build Perl modules (PL/Perl)
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4871 pgac_args
="$pgac_args with_perl"
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4885 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887 { (exit 1); exit 1; }; }
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4902 # Optionally build Python modules (PL/Python)
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4907 pgac_args
="$pgac_args with_python"
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912 withval
=$with_python;
4921 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923 { (exit 1); exit 1; }; }
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4943 pgac_args
="$pgac_args with_gssapi"
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948 withval
=$with_gssapi;
4953 cat >>confdefs.h
<<\_ACEOF
4954 #define ENABLE_GSS 1
4957 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4964 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966 { (exit 1); exit 1; }; }
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4986 pgac_args
="$pgac_args with_krb5"
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4996 cat >>confdefs.h
<<\_ACEOF
5000 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5007 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009 { (exit 1); exit 1; }; }
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5028 # Kerberos configuration parameters
5031 pgac_args
="$pgac_args with_krb_srvnam"
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036 withval
=$with_krb_srvnam;
5039 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041 { (exit 1); exit 1; }; }
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5054 with_krb_srvnam
="postgres"
5059 cat >>confdefs.h
<<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5071 pgac_args
="$pgac_args with_pam"
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5080 cat >>confdefs.h
<<\_ACEOF
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091 { (exit 1); exit 1; }; }
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5112 pgac_args
="$pgac_args with_ldap"
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5121 cat >>confdefs.h
<<\_ACEOF
5130 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132 { (exit 1); exit 1; }; }
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5153 pgac_args
="$pgac_args with_bonjour"
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158 withval
=$with_bonjour;
5162 cat >>confdefs.h
<<\_ACEOF
5163 #define USE_BONJOUR 1
5171 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173 { (exit 1); exit 1; }; }
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5194 pgac_args
="$pgac_args with_openssl"
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199 withval
=$with_openssl;
5203 cat >>confdefs.h
<<\_ACEOF
5212 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214 { (exit 1); exit 1; }; }
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5233 pgac_args
="$pgac_args with_readline"
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238 withval
=$with_readline;
5247 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249 { (exit 1); exit 1; }; }
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263 if test "$with_readline" = yes; then
5264 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5275 pgac_args
="$pgac_args with_libedit_preferred"
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280 withval
=$with_libedit_preferred;
5289 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291 { (exit 1); exit 1; }; }
5296 with_libedit_preferred
=no
5307 pgac_args
="$pgac_args with_ossp_uuid"
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312 withval
=$with_ossp_uuid;
5321 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323 { (exit 1); exit 1; }; }
5340 pgac_args
="$pgac_args with_libxml"
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345 withval
=$with_libxml;
5349 cat >>confdefs.h
<<\_ACEOF
5350 #define USE_LIBXML 1
5358 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360 { (exit 1); exit 1; }; }
5371 if test "$with_libxml" = yes ; then
5372 for ac_prog
in xml2-config
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy
$ac_prog; ac_word
=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$XML2_CONFIG"; then
5382 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir
=.
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$XML2_CONFIG" && break
5414 if test -n "$XML2_CONFIG"; then
5415 for pgac_option
in `$XML2_CONFIG --cflags`; do
5416 case $pgac_option in
5417 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5420 for pgac_option
in `$XML2_CONFIG --libs`; do
5421 case $pgac_option in
5422 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5434 pgac_args
="$pgac_args with_libxslt"
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439 withval
=$with_libxslt;
5443 cat >>confdefs.h
<<\_ACEOF
5444 #define USE_LIBXSLT 1
5452 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454 { (exit 1); exit 1; }; }
5472 pgac_args
="$pgac_args with_system_tzdata"
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477 withval
=$with_system_tzdata;
5480 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482 { (exit 1); exit 1; }; }
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5503 pgac_args
="$pgac_args with_zlib"
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5517 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519 { (exit 1); exit 1; }; }
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5538 freebsd1
*|freebsd2
*) elf
=no
;;
5539 freebsd3
*|freebsd4
*) elf
=yes;;
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy
grep ggrep
; ac_prog_name
=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_GREP_found
=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5557 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5560 test -z "$as_dir" && as_dir
=.
5561 for ac_prog
in grep ggrep
; do
5562 for ac_exec_ext
in '' $ac_executable_extensions; do
5563 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5565 # Check for GNU ac_path_GREP and select it if it is found.
5566 # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5569 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'GREP' >> "conftest.nl"
5579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5580 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5581 ac_count
=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_GREP
="$ac_path_GREP"
5585 ac_path_GREP_max
=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5594 $ac_path_GREP_found && break 3
5604 GREP
="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_GREP
=$GREP
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619 GREP
="$ac_cv_path_GREP"
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5628 then ac_cv_path_EGREP
="$GREP -E"
5630 # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy
egrep; ac_prog_name
=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_path_EGREP_found
=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5642 test -z "$as_dir" && as_dir
=.
5643 for ac_prog
in egrep; do
5644 for ac_exec_ext
in '' $ac_executable_extensions; do
5645 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5647 # Check for GNU ac_path_EGREP and select it if it is found.
5648 # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5651 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 echo 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5662 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5663 ac_count
=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP
="$ac_path_EGREP"
5667 ac_path_EGREP_max
=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5676 $ac_path_EGREP_found && break 3
5686 EGREP
="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690 { (exit 1); exit 1; }; }
5694 ac_cv_path_EGREP
=$EGREP
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702 EGREP
="$ac_cv_path_EGREP"
5705 cat >conftest.
$ac_ext <<_ACEOF
5708 cat confdefs.h
>>conftest.
$ac_ext
5709 cat >>conftest.
$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "yes" >/dev
/null
2>&1; then
5720 if test "X$elf" = "Xyes" ; then
5734 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5735 LDFLAGS
="$LDFLAGS $LIBDIRS"
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5748 if test "$GCC" = yes; then
5749 # Check if gcc -print-prog-name=ld gives a path.
5750 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5754 # gcc leaves a trailing carriage return which upsets mingw
5755 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5760 # Accept absolute paths.
5761 [\\/]* |
[A-Za-z
]:[\\/]*)
5762 re_direlt
='/[^/][^/]*/\.\./'
5763 # Canonicalize the path of ld
5764 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5765 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5766 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5768 test -z "$LD" && LD
="$ac_prog"
5771 # If it fails, then pretend we aren't using GCC.
5775 # If it is relative, then search for the first ld in PATH.
5779 elif test "$with_gnu_ld" = yes; then
5780 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5783 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_LD+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 if test -z "$LD"; then
5790 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791 for ac_dir
in $PATH; do
5792 test -z "$ac_dir" && ac_dir
=.
5793 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794 ac_cv_path_LD
="$ac_dir/$ac_prog"
5795 # Check to see if the program is GNU ld. I'd rather use --version,
5796 # but apparently some GNU ld's only accept -v.
5797 # Break only if it was the GNU/non-GNU ld that we prefer.
5798 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5799 test "$with_gnu_ld" != no
&& break
5801 test "$with_gnu_ld" != yes && break
5807 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5812 if test -n "$LD"; then
5813 { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821 { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5829 ac_cv_prog_gnu_ld
=yes
5831 ac_cv_prog_gnu_ld
=no
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld
=$ac_cv_prog_gnu_ld
5841 case $host_os in sysv5
*)
5842 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.
$ac_objext conftest
$ac_exeext
5865 if { (ac_try
="$ac_link"
5867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_link") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest$ac_exeext &&
5881 $as_test_x conftest$ac_exeext; then
5882 pgac_cv_prog_ld_R=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 pgac_cv_prog_ld_R=no
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891 conftest$ac_exeext conftest.$ac_ext
5892 LDFLAGS=$pgac_save_LDFLAGS
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897 ld_R_works=$pgac_cv_prog_ld_R
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 if test "x$ac_ct_RANLIB" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5990 RANLIB=$ac_ct_RANLIB
5993 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_STRIP"; then
6038 # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_STRIP="strip"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_STRIP" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6090 STRIP="$ac_cv_prog_STRIP"
6094 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097 STRIP_STATIC_LIB="$STRIP -x"
6098 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099 { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$TAR"; then
6143 { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6154 if test "$LN_S" = "ln -s"; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6158 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6162 for ac_prog in gawk mawk nawk awk
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AWK+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$AWK"; then
6172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AWK="$ac_prog"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test -n "$AWK"; then
6193 { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6201 test -n "$AWK" && break
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207 for ac_prog in bison
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$BISON"; then
6217 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_BISON="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238 { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6246 test -n "$BISON" && break
6251 if test "$BISON"; then
6252 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6253 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6257 { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6267 if test -z "$BISON"; then
6268 { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files. You can obtain Bison from
6271 *** a GNU mirror site. (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files. You can obtain Bison 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 Bison
6279 *** output is pre-generated.)" >&2;}
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # Let the user override the test
6290 if test -n "$FLEX"; then
6291 pgac_cv_path_flex=$FLEX
6295 for pgac_dir in $PATH; do
6297 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6300 for pgac_prog in flex lex; do
6301 pgac_candidate="$pgac_dir/$pgac_prog"
6302 if test -f "$pgac_candidate" \
6303 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6305 echo '%%' > conftest.l
6306 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308 pgac_broken_flex=$pgac_candidate
6312 pgac_cv_path_flex=$pgac_candidate
6318 rm -f conftest.l lex.yy.c
6319 : ${pgac_cv_path_flex=no}
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326 if test -n "$pgac_broken_flex"; then
6327 { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6335 { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files. You can obtain Flex from
6338 *** a GNU mirror site. (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files. You can obtain Flex from
6344 *** a GNU mirror site. (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6350 FLEX=$pgac_cv_path_flex
6351 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6352 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392 { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 if test "$with_perl" = yes; then
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6423 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6424 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6427 if test "$with_python" = yes; then
6428 # Extract the first word of "python", so it can be a program name with args.
6429 set dummy python; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_path_PYTHON+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 PYTHON=$ac_cv_path_PYTHON
6459 if test -n "$PYTHON"; then
6460 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6461 echo "${ECHO_T}$PYTHON" >&6; }
6463 { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6468 if test x"$PYTHON" = x""; then
6469 { { echo "$as_me:$LINENO: error: Python not found" >&5
6470 echo "$as_me: error: Python not found" >&2;}
6471 { (exit 1); exit 1; }; }
6475 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6476 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6477 if "${PYTHON}" 2>&- -c 'import distutils'
6479 { echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6; }
6482 { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6484 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6485 echo "$as_me: error: distutils module not found" >&2;}
6486 { (exit 1); exit 1; }; }
6488 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6489 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6490 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6491 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')"`
6492 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6494 # This should be enough of a message.
6495 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6496 echo "${ECHO_T}$python_configdir" >&6; }
6499 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6500 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6502 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6503 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6504 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6505 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6507 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6509 # New way: use the official shared library
6510 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6511 python_libspec="-L${python_libdir} -l${ldlibrary}"
6513 # Old way: use libpython from python_configdir
6514 python_libdir="${python_configdir}"
6515 python_libspec="-L${python_libdir} -lpython${python_version}"
6518 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6520 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6521 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6524 # threaded python is not supported on bsd's
6525 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6526 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6527 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6528 if test "$pythreads" = "1"; then
6529 { echo "$as_me:$LINENO: result: yes" >&5
6530 echo "${ECHO_T}yes" >&6; }
6533 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6534 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6535 { (exit 1); exit 1; }; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6546 # Supply a numeric version string for use by 3rd party add-ons
6547 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6548 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6550 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6552 cat >>confdefs.h <<_ACEOF
6553 #define PG_VERSION_NUM $PG_VERSION_NUM
6560 ## Most libraries are included only if they demonstrably provide a function
6561 ## we need, but libm is an exception: always include it, because there are
6562 ## too many compilers that play cute optimization games that will break
6563 ## probes for standard functions such as pow().
6567 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6568 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6569 if test "${ac_cv_lib_m_main+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_check_lib_save_LIBS=$LIBS
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (ac_try="$ac_link"
6593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6594 *) ac_try_echo
=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_link") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1
>conftest.err
6601 cat conftest.err
>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest
$ac_exeext &&
6607 $as_test_x conftest
$ac_exeext; then
6608 ac_cv_lib_m_main
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6617 conftest
$ac_exeext conftest.
$ac_ext
6618 LIBS
=$ac_check_lib_save_LIBS
6620 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6621 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6622 if test $ac_cv_lib_m_main = yes; then
6623 cat >>confdefs.h
<<_ACEOF
6631 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6632 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6633 if test "${ac_cv_search_setproctitle+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_func_search_save_LIBS
=$LIBS
6637 cat >conftest.
$ac_ext <<_ACEOF
6640 cat confdefs.h
>>conftest.
$ac_ext
6641 cat >>conftest.
$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any GCC internal prototype to avoid an error.
6645 Use char because int might match the return type of a GCC
6646 builtin and then its argument prototype would still apply. */
6650 char setproctitle ();
6654 return setproctitle ();
6659 for ac_lib
in '' util
; do
6660 if test -z "$ac_lib"; then
6661 ac_res
="none required"
6664 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6666 rm -f conftest.
$ac_objext conftest
$ac_exeext
6667 if { (ac_try
="$ac_link"
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_link") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest$ac_exeext &&
6683 $as_test_x conftest$ac_exeext; then
6684 ac_cv_search_setproctitle=$ac_res
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6694 if test "${ac_cv_search_setproctitle+set}" = set; then
6698 if test "${ac_cv_search_setproctitle+set}" = set; then
6701 ac_cv_search_setproctitle=no
6704 LIBS=$ac_func_search_save_LIBS
6706 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6707 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6708 ac_res=$ac_cv_search_setproctitle
6709 if test "$ac_res" != no; then
6710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6714 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6715 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6716 if test "${ac_cv_search_dlopen+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 ac_func_search_save_LIBS=$LIBS
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6727 /* Override any GCC internal prototype to avoid an error.
6728 Use char because int might match the return type of a GCC
6729 builtin and then its argument prototype would still apply. */
6742 for ac_lib in '' dl; do
6743 if test -z "$ac_lib"; then
6744 ac_res="none required"
6747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6753 *) ac_try_echo
=$ac_try;;
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_link") 2>conftest.er1
6758 grep -v '^ *+' conftest.er1
>conftest.err
6760 cat conftest.err
>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
6765 } && test -s conftest
$ac_exeext &&
6766 $as_test_x conftest
$ac_exeext; then
6767 ac_cv_search_dlopen
=$ac_res
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6777 if test "${ac_cv_search_dlopen+set}" = set; then
6781 if test "${ac_cv_search_dlopen+set}" = set; then
6784 ac_cv_search_dlopen
=no
6787 LIBS
=$ac_func_search_save_LIBS
6789 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6790 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6791 ac_res
=$ac_cv_search_dlopen
6792 if test "$ac_res" != no
; then
6793 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6797 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6798 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6799 if test "${ac_cv_search_socket+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 ac_func_search_save_LIBS
=$LIBS
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6810 /* Override any GCC internal prototype to avoid an error.
6811 Use char because int might match the return type of a GCC
6812 builtin and then its argument prototype would still apply. */
6825 for ac_lib
in '' socket wsock32
; do
6826 if test -z "$ac_lib"; then
6827 ac_res
="none required"
6830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6832 rm -f conftest.
$ac_objext conftest
$ac_exeext
6833 if { (ac_try
="$ac_link"
6835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest$ac_exeext &&
6849 $as_test_x conftest$ac_exeext; then
6850 ac_cv_search_socket=$ac_res
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6860 if test "${ac_cv_search_socket+set}" = set; then
6864 if test "${ac_cv_search_socket+set}" = set; then
6867 ac_cv_search_socket=no
6870 LIBS=$ac_func_search_save_LIBS
6872 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6873 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6874 ac_res=$ac_cv_search_socket
6875 if test "$ac_res" != no; then
6876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6880 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6881 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6882 if test "${ac_cv_search_shl_load+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_func_search_save_LIBS=$LIBS
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6893 /* Override any GCC internal prototype to avoid an error.
6894 Use char because int might match the return type of a GCC
6895 builtin and then its argument prototype would still apply. */
6908 for ac_lib in '' dld; do
6909 if test -z "$ac_lib"; then
6910 ac_res="none required"
6913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (ac_try="$ac_link"
6918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6919 *) ac_try_echo
=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_link") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1
>conftest.err
6926 cat conftest.err
>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && {
6929 test -z "$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest
$ac_exeext &&
6932 $as_test_x conftest
$ac_exeext; then
6933 ac_cv_search_shl_load
=$ac_res
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6941 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6943 if test "${ac_cv_search_shl_load+set}" = set; then
6947 if test "${ac_cv_search_shl_load+set}" = set; then
6950 ac_cv_search_shl_load
=no
6953 LIBS
=$ac_func_search_save_LIBS
6955 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6956 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6957 ac_res
=$ac_cv_search_shl_load
6958 if test "$ac_res" != no
; then
6959 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6963 # We only use libld in port/dynloader/aix.c
6966 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6967 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6968 if test "${ac_cv_search_ldopen+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_func_search_save_LIBS
=$LIBS
6972 cat >conftest.
$ac_ext <<_ACEOF
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6979 /* Override any GCC internal prototype to avoid an error.
6980 Use char because int might match the return type of a GCC
6981 builtin and then its argument prototype would still apply. */
6994 for ac_lib
in '' ld
; do
6995 if test -z "$ac_lib"; then
6996 ac_res
="none required"
6999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7001 rm -f conftest.
$ac_objext conftest
$ac_exeext
7002 if { (ac_try
="$ac_link"
7004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7010 grep -v '^ *+' conftest.er1 >conftest.err
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 ac_cv_search_ldopen=$ac_res
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7029 if test "${ac_cv_search_ldopen+set}" = set; then
7033 if test "${ac_cv_search_ldopen+set}" = set; then
7036 ac_cv_search_ldopen=no
7039 LIBS=$ac_func_search_save_LIBS
7041 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7042 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7043 ac_res=$ac_cv_search_ldopen
7044 if test "$ac_res" != no; then
7045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7051 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7052 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7053 if test "${ac_cv_search_getopt_long+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_func_search_save_LIBS=$LIBS
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7064 /* Override any GCC internal prototype to avoid an error.
7065 Use char because int might match the return type of a GCC
7066 builtin and then its argument prototype would still apply. */
7070 char getopt_long ();
7074 return getopt_long ();
7079 for ac_lib in '' getopt gnugetopt; do
7080 if test -z "$ac_lib"; then
7081 ac_res="none required"
7084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7090 *) ac_try_echo
=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>conftest.er1
7095 grep -v '^ *+' conftest.er1
>conftest.err
7097 cat conftest.err
>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest
$ac_exeext &&
7103 $as_test_x conftest
$ac_exeext; then
7104 ac_cv_search_getopt_long
=$ac_res
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.
$ac_ext >&5
7112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7114 if test "${ac_cv_search_getopt_long+set}" = set; then
7118 if test "${ac_cv_search_getopt_long+set}" = set; then
7121 ac_cv_search_getopt_long
=no
7124 LIBS
=$ac_func_search_save_LIBS
7126 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7127 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7128 ac_res
=$ac_cv_search_getopt_long
7129 if test "$ac_res" != no
; then
7130 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7134 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7135 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7136 if test "${ac_cv_search_crypt+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_func_search_save_LIBS
=$LIBS
7140 cat >conftest.
$ac_ext <<_ACEOF
7143 cat confdefs.h
>>conftest.
$ac_ext
7144 cat >>conftest.
$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7162 for ac_lib
in '' crypt; do
7163 if test -z "$ac_lib"; then
7164 ac_res
="none required"
7167 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7169 rm -f conftest.
$ac_objext conftest
$ac_exeext
7170 if { (ac_try
="$ac_link"
7172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest$ac_exeext &&
7186 $as_test_x conftest$ac_exeext; then
7187 ac_cv_search_crypt=$ac_res
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7197 if test "${ac_cv_search_crypt+set}" = set; then
7201 if test "${ac_cv_search_crypt+set}" = set; then
7204 ac_cv_search_crypt=no
7207 LIBS=$ac_func_search_save_LIBS
7209 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7210 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7211 ac_res=$ac_cv_search_crypt
7212 if test "$ac_res" != no; then
7213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7218 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7219 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7220 if test "${ac_cv_search_fdatasync+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 ac_func_search_save_LIBS=$LIBS
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 /* Override any GCC internal prototype to avoid an error.
7232 Use char because int might match the return type of a GCC
7233 builtin and then its argument prototype would still apply. */
7241 return fdatasync ();
7246 for ac_lib in '' rt posix4; do
7247 if test -z "$ac_lib"; then
7248 ac_res="none required"
7251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (ac_try="$ac_link"
7256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7257 *) ac_try_echo
=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_link") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1
>conftest.err
7264 cat conftest.err
>&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest
$ac_exeext &&
7270 $as_test_x conftest
$ac_exeext; then
7271 ac_cv_search_fdatasync
=$ac_res
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.
$ac_ext >&5
7279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7281 if test "${ac_cv_search_fdatasync+set}" = set; then
7285 if test "${ac_cv_search_fdatasync+set}" = set; then
7288 ac_cv_search_fdatasync
=no
7291 LIBS
=$ac_func_search_save_LIBS
7293 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7294 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7295 ac_res
=$ac_cv_search_fdatasync
7296 if test "$ac_res" != no
; then
7297 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7302 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7303 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7304 if test "${ac_cv_search_shmget+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_func_search_save_LIBS
=$LIBS
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7330 for ac_lib
in '' cygipc
; do
7331 if test -z "$ac_lib"; then
7332 ac_res
="none required"
7335 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7337 rm -f conftest.
$ac_objext conftest
$ac_exeext
7338 if { (ac_try
="$ac_link"
7340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7346 grep -v '^ *+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 ac_cv_search_shmget=$ac_res
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7365 if test "${ac_cv_search_shmget+set}" = set; then
7369 if test "${ac_cv_search_shmget+set}" = set; then
7372 ac_cv_search_shmget=no
7375 LIBS=$ac_func_search_save_LIBS
7377 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7378 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7379 ac_res=$ac_cv_search_shmget
7380 if test "$ac_res" != no; then
7381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7386 if test "$with_readline" = yes; then
7389 if test "${pgac_cv_check_readline+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 pgac_cv_check_readline=no
7393 pgac_save_LIBS=$LIBS
7394 if test x"$with_libedit_preferred" != x"yes"
7395 then READLINE_ORDER="-lreadline -ledit"
7396 else READLINE_ORDER="-ledit -lreadline"
7398 for pgac_rllib in $READLINE_ORDER ; do
7399 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7400 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7401 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7402 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7403 cat >conftest.$ac_ext <<_ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7410 /* Override any GCC internal prototype to avoid an error.
7411 Use char because int might match the return type of a GCC
7412 builtin and then its argument prototype would still apply. */
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7429 *) ac_try_echo
=$ac_try;;
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_link") 2>conftest.er1
7434 grep -v '^ *+' conftest.er1
>conftest.err
7436 cat conftest.err
>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest
$ac_exeext &&
7442 $as_test_x conftest
$ac_exeext; then
7444 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7445 # recognize dependent libraries; assume curses is needed if we didn't
7446 # find any dependency.
7448 netbsd
* | openbsd
* | irix
*)
7449 if test x
"$pgac_lib" = x
"" ; then
7450 pgac_lib
=" -lcurses"
7454 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.
$ac_ext >&5
7464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7465 conftest
$ac_exeext conftest.
$ac_ext
7467 if test "$pgac_cv_check_readline" != no
; then
7468 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7469 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7476 LIBS
=$pgac_save_LIBS
7480 if test "$pgac_cv_check_readline" != no
; then
7481 LIBS
="$pgac_cv_check_readline $LIBS"
7483 cat >>confdefs.h
<<\_ACEOF
7484 #define HAVE_LIBREADLINE 1
7490 if test x
"$pgac_cv_check_readline" = x
"no"; then
7491 { { echo "$as_me:$LINENO: error: readline library not found
7492 If you have readline already installed, see config.log for details on the
7493 failure. It is possible the compiler isn't looking in the proper directory.
7494 Use --without-readline to disable readline support." >&5
7495 echo "$as_me: error: readline library not found
7496 If you have readline already installed, see config.log for details on the
7497 failure. It is possible the compiler isn't looking in the proper directory.
7498 Use --without-readline to disable readline support." >&2;}
7499 { (exit 1); exit 1; }; }
7503 if test "$with_zlib" = yes; then
7505 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7506 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7507 if test "${ac_cv_lib_z_inflate+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_check_lib_save_LIBS
=$LIBS
7512 cat >conftest.
$ac_ext <<_ACEOF
7515 cat confdefs.h
>>conftest.
$ac_ext
7516 cat >>conftest.
$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7534 rm -f conftest.
$ac_objext conftest
$ac_exeext
7535 if { (ac_try
="$ac_link"
7537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 ac_cv_lib_z_inflate=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_cv_lib_z_inflate=no
7560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7562 LIBS=$ac_check_lib_save_LIBS
7564 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7565 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7566 if test $ac_cv_lib_z_inflate = yes; then
7567 cat >>confdefs.h <<_ACEOF
7574 { { echo "$as_me:$LINENO: error: zlib library not found
7575 If you have zlib already installed, see config.log for details on the
7576 failure. It is possible the compiler isn't looking in the proper directory.
7577 Use --without-zlib to disable zlib support." >&5
7578 echo "$as_me: error: zlib library not found
7579 If you have zlib already installed, see config.log for details on the
7580 failure. It is possible the compiler isn't looking in the proper directory.
7581 Use --without-zlib to disable zlib support." >&2;}
7582 { (exit 1); exit 1; }; }
7587 if test "$enable_spinlocks" = yes; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_SPINLOCKS 1
7594 { echo "$as_me:$LINENO: WARNING:
7595 *** Not using spinlocks will cause poor performance." >&5
7596 echo "$as_me: WARNING:
7597 *** Not using spinlocks will cause poor performance." >&2;}
7600 if test "$with_gssapi" = yes ; then
7601 if test "$PORTNAME" != "win32"; then
7602 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7603 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 ac_func_search_save_LIBS=$LIBS
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any GCC internal prototype to avoid an error.
7616 Use char because int might match the return type of a GCC
7617 builtin and then its argument prototype would still apply. */
7621 char gss_init_sec_context ();
7625 return gss_init_sec_context ();
7630 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7631 if test -z "$ac_lib"; then
7632 ac_res="none required"
7635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7641 *) ac_try_echo
=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_link") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1
>conftest.err
7648 cat conftest.err
>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest
$ac_exeext &&
7654 $as_test_x conftest
$ac_exeext; then
7655 ac_cv_search_gss_init_sec_context
=$ac_res
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.
$ac_ext >&5
7663 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7665 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7669 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7672 ac_cv_search_gss_init_sec_context
=no
7675 LIBS
=$ac_func_search_save_LIBS
7677 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7678 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7679 ac_res
=$ac_cv_search_gss_init_sec_context
7680 if test "$ac_res" != no
; then
7681 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7684 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7685 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7686 { (exit 1); exit 1; }; }
7690 LIBS
="$LIBS -lgssapi32"
7694 if test "$with_krb5" = yes ; then
7695 if test "$PORTNAME" != "win32"; then
7696 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7697 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7698 if test "${ac_cv_search_com_err+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_func_search_save_LIBS
=$LIBS
7702 cat >conftest.
$ac_ext <<_ACEOF
7705 cat confdefs.h
>>conftest.
$ac_ext
7706 cat >>conftest.
$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7724 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7725 if test -z "$ac_lib"; then
7726 ac_res
="none required"
7729 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7731 rm -f conftest.
$ac_objext conftest
$ac_exeext
7732 if { (ac_try
="$ac_link"
7734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest$ac_exeext &&
7748 $as_test_x conftest$ac_exeext; then
7749 ac_cv_search_com_err=$ac_res
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7759 if test "${ac_cv_search_com_err+set}" = set; then
7763 if test "${ac_cv_search_com_err+set}" = set; then
7766 ac_cv_search_com_err=no
7769 LIBS=$ac_func_search_save_LIBS
7771 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7772 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7773 ac_res=$ac_cv_search_com_err
7774 if test "$ac_res" != no; then
7775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7779 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7780 { (exit 1); exit 1; }; }
7783 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7784 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7785 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 ac_func_search_save_LIBS=$LIBS
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7796 /* Override any GCC internal prototype to avoid an error.
7797 Use char because int might match the return type of a GCC
7798 builtin and then its argument prototype would still apply. */
7802 char krb5_sendauth ();
7806 return krb5_sendauth ();
7811 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7812 if test -z "$ac_lib"; then
7813 ac_res="none required"
7816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7822 *) ac_try_echo
=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest
$ac_exeext &&
7835 $as_test_x conftest
$ac_exeext; then
7836 ac_cv_search_krb5_sendauth
=$ac_res
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.
$ac_ext >&5
7844 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7846 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7853 ac_cv_search_krb5_sendauth
=no
7856 LIBS
=$ac_func_search_save_LIBS
7858 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7859 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7860 ac_res
=$ac_cv_search_krb5_sendauth
7861 if test "$ac_res" != no
; then
7862 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7865 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7866 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7867 { (exit 1); exit 1; }; }
7871 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7872 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7873 if test "${ac_cv_search_com_err+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 ac_func_search_save_LIBS
=$LIBS
7877 cat >conftest.
$ac_ext <<_ACEOF
7880 cat confdefs.h
>>conftest.
$ac_ext
7881 cat >>conftest.
$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7899 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7900 if test -z "$ac_lib"; then
7901 ac_res
="none required"
7904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7906 rm -f conftest.
$ac_objext conftest
$ac_exeext
7907 if { (ac_try
="$ac_link"
7909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest$ac_exeext &&
7923 $as_test_x conftest$ac_exeext; then
7924 ac_cv_search_com_err=$ac_res
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7934 if test "${ac_cv_search_com_err+set}" = set; then
7938 if test "${ac_cv_search_com_err+set}" = set; then
7941 ac_cv_search_com_err=no
7944 LIBS=$ac_func_search_save_LIBS
7946 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7947 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7948 ac_res=$ac_cv_search_com_err
7949 if test "$ac_res" != no; then
7950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7953 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7954 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7955 { (exit 1); exit 1; }; }
7961 if test "$with_openssl" = yes ; then
7962 if test "$PORTNAME" != "win32"; then
7964 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7965 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7966 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lcrypto $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7978 /* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7984 char CRYPTO_new_ex_data ();
7988 return CRYPTO_new_ex_data ();
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7997 *) ac_try_echo
=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_link") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1
>conftest.err
8004 cat conftest.err
>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_c_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest
$ac_exeext &&
8010 $as_test_x conftest
$ac_exeext; then
8011 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.
$ac_ext >&5
8016 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
8019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8020 conftest
$ac_exeext conftest.
$ac_ext
8021 LIBS
=$ac_check_lib_save_LIBS
8023 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8024 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8025 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8026 cat >>confdefs.h
<<_ACEOF
8027 #define HAVE_LIBCRYPTO 1
8030 LIBS
="-lcrypto $LIBS"
8033 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8034 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8035 { (exit 1); exit 1; }; }
8039 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8040 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8041 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_check_lib_save_LIBS
=$LIBS
8046 cat >conftest.
$ac_ext <<_ACEOF
8049 cat confdefs.h
>>conftest.
$ac_ext
8050 cat >>conftest.
$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8053 /* Override any GCC internal prototype to avoid an error.
8054 Use char because int might match the return type of a GCC
8055 builtin and then its argument prototype would still apply. */
8059 char SSL_library_init ();
8063 return SSL_library_init ();
8068 rm -f conftest.
$ac_objext conftest
$ac_exeext
8069 if { (ac_try
="$ac_link"
8071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest$ac_exeext &&
8085 $as_test_x conftest$ac_exeext; then
8086 ac_cv_lib_ssl_SSL_library_init=yes
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_cv_lib_ssl_SSL_library_init=no
8094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095 conftest$ac_exeext conftest.$ac_ext
8096 LIBS=$ac_check_lib_save_LIBS
8098 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8099 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8100 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8101 cat >>confdefs.h <<_ACEOF
8102 #define HAVE_LIBSSL 1
8108 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8109 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8110 { (exit 1); exit 1; }; }
8115 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8116 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8117 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 ac_check_lib_save_LIBS=$LIBS
8121 LIBS="-leay32 $LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8129 /* Override any GCC internal prototype to avoid an error.
8130 Use char because int might match the return type of a GCC
8131 builtin and then its argument prototype would still apply. */
8135 char CRYPTO_new_ex_data ();
8139 return CRYPTO_new_ex_data ();
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8148 *) ac_try_echo
=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1
>conftest.err
8155 cat conftest.err
>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest
$ac_exeext &&
8161 $as_test_x conftest
$ac_exeext; then
8162 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.
$ac_ext >&5
8167 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8171 conftest
$ac_exeext conftest.
$ac_ext
8172 LIBS
=$ac_check_lib_save_LIBS
8174 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8175 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8176 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8177 cat >>confdefs.h
<<_ACEOF
8178 #define HAVE_LIBEAY32 1
8181 LIBS
="-leay32 $LIBS"
8184 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8185 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8186 { (exit 1); exit 1; }; }
8190 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8191 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8192 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 ac_check_lib_save_LIBS
=$LIBS
8196 LIBS
="-lssleay32 $LIBS"
8197 cat >conftest.
$ac_ext <<_ACEOF
8200 cat confdefs.h
>>conftest.
$ac_ext
8201 cat >>conftest.
$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 /* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply. */
8210 char SSL_library_init ();
8214 return SSL_library_init ();
8219 rm -f conftest.
$ac_objext conftest
$ac_exeext
8220 if { (ac_try
="$ac_link"
8222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_link") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest$ac_exeext &&
8236 $as_test_x conftest$ac_exeext; then
8237 ac_cv_lib_ssleay32_SSL_library_init=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_lib_ssleay32_SSL_library_init=no
8245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8250 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8251 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8252 cat >>confdefs.h <<_ACEOF
8253 #define HAVE_LIBSSLEAY32 1
8256 LIBS="-lssleay32 $LIBS"
8259 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8260 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8261 { (exit 1); exit 1; }; }
8267 if test "$with_pam" = yes ; then
8269 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8270 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8271 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 ac_check_lib_save_LIBS=$LIBS
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8293 return pam_start ();
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8302 *) ac_try_echo
=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_link") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1
>conftest.err
8309 cat conftest.err
>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest
$ac_exeext &&
8315 $as_test_x conftest
$ac_exeext; then
8316 ac_cv_lib_pam_pam_start
=yes
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8321 ac_cv_lib_pam_pam_start
=no
8324 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8325 conftest
$ac_exeext conftest.
$ac_ext
8326 LIBS
=$ac_check_lib_save_LIBS
8328 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8329 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8330 if test $ac_cv_lib_pam_pam_start = yes; then
8331 cat >>confdefs.h
<<_ACEOF
8332 #define HAVE_LIBPAM 1
8338 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8339 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8340 { (exit 1); exit 1; }; }
8345 if test "$with_libxml" = yes ; then
8347 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8348 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8349 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_check_lib_save_LIBS
=$LIBS
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8367 char xmlSaveToBuffer ();
8371 return xmlSaveToBuffer ();
8376 rm -f conftest.
$ac_objext conftest
$ac_exeext
8377 if { (ac_try
="$ac_link"
8379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_link") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest$ac_exeext &&
8393 $as_test_x conftest$ac_exeext; then
8394 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_lib_xml2_xmlSaveToBuffer=no
8402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8406 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8407 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8408 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_LIBXML2 1
8416 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8417 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8418 { (exit 1); exit 1; }; }
8423 if test "$with_libxslt" = yes ; then
8425 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8426 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8427 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_check_lib_save_LIBS=$LIBS
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any GCC internal prototype to avoid an error.
8440 Use char because int might match the return type of a GCC
8441 builtin and then its argument prototype would still apply. */
8445 char xsltCleanupGlobals ();
8449 return xsltCleanupGlobals ();
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8458 *) ac_try_echo
=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest
$ac_exeext &&
8471 $as_test_x conftest
$ac_exeext; then
8472 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.
$ac_ext >&5
8477 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8480 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8481 conftest
$ac_exeext conftest.
$ac_ext
8482 LIBS
=$ac_check_lib_save_LIBS
8484 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8485 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8486 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8487 cat >>confdefs.h
<<_ACEOF
8488 #define HAVE_LIBXSLT 1
8494 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8495 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8496 { (exit 1); exit 1; }; }
8501 # for contrib/uuid-ossp
8502 if test "$with_ossp_uuid" = yes ; then
8503 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8504 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8505 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_check_lib_save_LIBS
=$LIBS
8509 LIBS
="-lossp-uuid $LIBS"
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 /* Override any GCC internal prototype to avoid an error.
8518 Use char because int might match the return type of a GCC
8519 builtin and then its argument prototype would still apply. */
8523 char uuid_export ();
8527 return uuid_export ();
8532 rm -f conftest.
$ac_objext conftest
$ac_exeext
8533 if { (ac_try
="$ac_link"
8535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_link") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && {
8546 test -z "$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 } && test -s conftest$ac_exeext &&
8549 $as_test_x conftest$ac_exeext; then
8550 ac_cv_lib_ossp_uuid_uuid_export=yes
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_cv_lib_ossp_uuid_uuid_export=no
8558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8562 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8563 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8564 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8565 OSSP_UUID_LIBS="-lossp-uuid"
8567 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8568 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_check_lib_save_LIBS=$LIBS
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8587 char uuid_export ();
8591 return uuid_export ();
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8600 *) ac_try_echo
=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_link") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1
>conftest.err
8607 cat conftest.err
>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest
$ac_exeext &&
8613 $as_test_x conftest
$ac_exeext; then
8614 ac_cv_lib_uuid_uuid_export
=yes
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.
$ac_ext >&5
8619 ac_cv_lib_uuid_uuid_export
=no
8622 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8623 conftest
$ac_exeext conftest.
$ac_ext
8624 LIBS
=$ac_check_lib_save_LIBS
8626 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8627 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8628 if test $ac_cv_lib_uuid_uuid_export = yes; then
8629 OSSP_UUID_LIBS
="-luuid"
8631 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8632 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8633 { (exit 1); exit 1; }; }
8646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8648 if test "${ac_cv_header_stdc+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 cat >conftest.
$ac_ext <<_ACEOF
8654 cat confdefs.h
>>conftest.
$ac_ext
8655 cat >>conftest.
$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8670 rm -f conftest.
$ac_objext
8671 if { (ac_try
="$ac_compile"
8673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_cv_header_stdc=yes
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 ac_cv_header_stdc=no
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 if test $ac_cv_header_stdc = yes; then
8698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8709 $EGREP "memchr" >/dev/null 2>&1; then
8712 ac_cv_header_stdc=no
8718 if test $ac_cv_header_stdc = yes; then
8719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730 $EGREP "free" >/dev/null 2>&1; then
8733 ac_cv_header_stdc=no
8739 if test $ac_cv_header_stdc = yes; then
8740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8741 if test "$cross_compiling" = yes; then
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8752 #if ((' ' & 0x0FF) == 0x020)
8753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8756 # define ISLOWER(c) \
8757 (('a' <= (c) && (c) <= 'i') \
8758 || ('j' <= (c) && (c) <= 'r') \
8759 || ('s' <= (c) && (c) <= 'z'))
8760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8768 for (i = 0; i < 256; i++)
8769 if (XOR (islower (i), ISLOWER (i))
8770 || toupper (i) != TOUPPER (i))
8775 rm -f conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8779 *) ac_try_echo
=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_link") 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8786 { (case "(($ac_try" in
8787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8797 echo "$as_me: program exited with status $ac_status" >&5
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8802 ac_cv_header_stdc=no
8804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8812 if test $ac_cv_header_stdc = yes; then
8814 cat >>confdefs.h <<\_ACEOF
8815 #define STDC_HEADERS 1
8820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8831 inttypes.h stdint.h unistd.h
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8847 #include <$ac_header>
8849 rm -f conftest.$ac_objext
8850 if { (ac_try="$ac_compile"
8852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8853 *) ac_try_echo
=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_compile") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1
>conftest.err
8860 cat conftest.err
>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && {
8863 test -z "$ac_c_werror_flag" ||
8864 test ! -s conftest.err
8865 } && test -s conftest.
$ac_objext; then
8866 eval "$as_ac_Header=yes"
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.
$ac_ext >&5
8871 eval "$as_ac_Header=no"
8874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8876 ac_res
=`eval echo '${'$as_ac_Header'}'`
8877 { echo "$as_me:$LINENO: result: $ac_res" >&5
8878 echo "${ECHO_T}$ac_res" >&6; }
8879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8880 cat >>confdefs.h
<<_ACEOF
8881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8915 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
8917 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8921 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 ac_res
=`eval echo '${'$as_ac_Header'}'`
8925 { echo "$as_me:$LINENO: result: $ac_res" >&5
8926 echo "${ECHO_T}$ac_res" >&6; }
8928 # Is the header compilable?
8929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8931 cat >conftest.
$ac_ext <<_ACEOF
8934 cat confdefs.h
>>conftest.
$ac_ext
8935 cat >>conftest.
$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #include <$ac_header>
8940 rm -f conftest.
$ac_objext
8941 if { (ac_try
="$ac_compile"
8943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_compile") 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest.$ac_objext; then
8957 ac_header_compiler=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_header_compiler=no
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8967 echo "${ECHO_T}$ac_header_compiler" >&6; }
8969 # Is the header present?
8970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #include <$ac_header>
8980 if { (ac_try="$ac_cpp conftest.$ac_ext"
8982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8983 *) ac_try_echo
=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1
>conftest.err
8990 cat conftest.err
>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } >/dev
/null
&& {
8993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8994 test ! -s conftest.err
8996 ac_header_preproc
=yes
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9001 ac_header_preproc
=no
9004 rm -f conftest.err conftest.
$ac_ext
9005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006 echo "${ECHO_T}$ac_header_preproc" >&6; }
9008 # So? What about this header?
9009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9015 ac_header_preproc
=yes
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9031 ## ---------------------------------------- ##
9032 ## Report this to pgsql-bugs@postgresql.org ##
9033 ## ---------------------------------------- ##
9035 ) |
sed "s/^/$as_me: WARNING: /" >&2
9038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9040 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 eval "$as_ac_Header=\$ac_header_preproc"
9045 ac_res
=`eval echo '${'$as_ac_Header'}'`
9046 { echo "$as_me:$LINENO: result: $ac_res" >&5
9047 echo "${ECHO_T}$ac_res" >&6; }
9050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051 cat >>confdefs.h
<<_ACEOF
9052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9060 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9061 # netinet/in.h is included first.
9063 for ac_header
in netinet
/in.h
9065 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9066 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9069 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 ac_res
=`eval echo '${'$as_ac_Header'}'`
9073 { echo "$as_me:$LINENO: result: $ac_res" >&5
9074 echo "${ECHO_T}$ac_res" >&6; }
9076 # Is the header compilable?
9077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9079 cat >conftest.
$ac_ext <<_ACEOF
9082 cat confdefs.h
>>conftest.
$ac_ext
9083 cat >>conftest.
$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9086 #include <$ac_header>
9088 rm -f conftest.
$ac_objext
9089 if { (ac_try
="$ac_compile"
9091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_compile") 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && {
9102 test -z "$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9104 } && test -s conftest.$ac_objext; then
9105 ac_header_compiler=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_header_compiler=no
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9115 echo "${ECHO_T}$ac_header_compiler" >&6; }
9117 # Is the header present?
9118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 #include <$ac_header>
9128 if { (ac_try="$ac_cpp conftest.$ac_ext"
9130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9131 *) ac_try_echo
=$ac_try;;
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9136 grep -v '^ *+' conftest.er1
>conftest.err
9138 cat conftest.err
>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } >/dev
/null
&& {
9141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9144 ac_header_preproc
=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.
$ac_ext >&5
9149 ac_header_preproc
=no
9152 rm -f conftest.err conftest.
$ac_ext
9153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154 echo "${ECHO_T}$ac_header_preproc" >&6; }
9156 # So? What about this header?
9157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163 ac_header_preproc
=yes
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9179 ## ---------------------------------------- ##
9180 ## Report this to pgsql-bugs@postgresql.org ##
9181 ## ---------------------------------------- ##
9183 ) |
sed "s/^/$as_me: WARNING: /" >&2
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 eval "$as_ac_Header=\$ac_header_preproc"
9193 ac_res
=`eval echo '${'$as_ac_Header'}'`
9194 { echo "$as_me:$LINENO: result: $ac_res" >&5
9195 echo "${ECHO_T}$ac_res" >&6; }
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h
<<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9208 for ac_header
in netinet
/tcp.h
9210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9213 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 cat >conftest.
$ac_ext <<_ACEOF
9219 cat confdefs.h
>>conftest.
$ac_ext
9220 cat >>conftest.
$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 #ifdef HAVE_NETINET_IN_H
9224 #include <netinet/in.h>
9228 #include <$ac_header>
9230 rm -f conftest.
$ac_objext
9231 if { (ac_try
="$ac_compile"
9233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
9247 eval "$as_ac_Header=yes"
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 eval "$as_ac_Header=no"
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 ac_res=`eval echo '${'$as_ac_Header'}'`
9258 { echo "$as_me:$LINENO: result: $ac_res" >&5
9259 echo "${ECHO_T}$ac_res" >&6; }
9260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9270 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9272 for ac_header in readline/readline.h
9274 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 ac_res=`eval echo '${'$as_ac_Header'}'`
9282 { echo "$as_me:$LINENO: result: $ac_res" >&5
9283 echo "${ECHO_T}$ac_res" >&6; }
9285 # Is the header compilable?
9286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 $ac_includes_default
9295 #include <$ac_header>
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9301 *) ac_try_echo
=$ac_try;;
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_compile") 2>conftest.er1
9306 grep -v '^ *+' conftest.er1
>conftest.err
9308 cat conftest.err
>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest.
$ac_objext; then
9314 ac_header_compiler
=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.
$ac_ext >&5
9319 ac_header_compiler
=no
9322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6; }
9326 # Is the header present?
9327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9329 cat >conftest.
$ac_ext <<_ACEOF
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <$ac_header>
9337 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } >/dev/null && {
9350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9353 ac_header_preproc=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_header_preproc=no
9361 rm -f conftest.err conftest.$ac_ext
9362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6; }
9365 # So? What about this header?
9366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9372 ac_header_preproc=yes
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9388 ## ---------------------------------------- ##
9389 ## Report this to pgsql-bugs@postgresql.org ##
9390 ## ---------------------------------------- ##
9392 ) | sed "s/^/$as_me: WARNING: /" >&2
9395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 eval "$as_ac_Header=\$ac_header_preproc"
9402 ac_res=`eval echo '${'$as_ac_Header'}'`
9403 { echo "$as_me:$LINENO: result: $ac_res" >&5
9404 echo "${ECHO_T}$ac_res" >&6; }
9407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9414 for ac_header in readline.h
9416 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 ac_res=`eval echo '${'$as_ac_Header'}'`
9424 { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9427 # Is the header compilable?
9428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9430 cat >conftest.$ac_ext <<_ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 $ac_includes_default
9437 #include <$ac_header>
9439 rm -f conftest.$ac_objext
9440 if { (ac_try="$ac_compile"
9442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9443 *) ac_try_echo
=$ac_try;;
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_compile") 2>conftest.er1
9448 grep -v '^ *+' conftest.er1
>conftest.err
9450 cat conftest.err
>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && {
9453 test -z "$ac_c_werror_flag" ||
9454 test ! -s conftest.err
9455 } && test -s conftest.
$ac_objext; then
9456 ac_header_compiler
=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.
$ac_ext >&5
9461 ac_header_compiler
=no
9464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9466 echo "${ECHO_T}$ac_header_compiler" >&6; }
9468 # Is the header present?
9469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9471 cat >conftest.
$ac_ext <<_ACEOF
9474 cat confdefs.h
>>conftest.
$ac_ext
9475 cat >>conftest.
$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 #include <$ac_header>
9479 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } >/dev/null && {
9492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9495 ac_header_preproc=yes
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_header_preproc=no
9503 rm -f conftest.err conftest.$ac_ext
9504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505 echo "${ECHO_T}$ac_header_preproc" >&6; }
9507 # So? What about this header?
9508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514 ac_header_preproc=yes
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9530 ## ---------------------------------------- ##
9531 ## Report this to pgsql-bugs@postgresql.org ##
9532 ## ---------------------------------------- ##
9534 ) | sed "s/^/$as_me: WARNING: /" >&2
9537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 eval "$as_ac_Header=\$ac_header_preproc"
9544 ac_res=`eval echo '${'$as_ac_Header'}'`
9545 { echo "$as_me:$LINENO: result: $ac_res" >&5
9546 echo "${ECHO_T}$ac_res" >&6; }
9549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9550 cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9555 { { echo "$as_me:$LINENO: error: readline header not found
9556 If you have readline already installed, see config.log for details on the
9557 failure. It is possible the compiler isn't looking in the proper directory.
9558 Use --without-readline to disable readline support." >&5
9559 echo "$as_me: error: readline header not found
9560 If you have readline already installed, see config.log for details on the
9561 failure. It is possible the compiler isn't looking in the proper directory.
9562 Use --without-readline to disable readline support." >&2;}
9563 { (exit 1); exit 1; }; }
9573 for ac_header in readline/history.h
9575 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583 { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9586 # Is the header compilable?
9587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 #include <$ac_header>
9598 rm -f conftest.$ac_objext
9599 if { (ac_try="$ac_compile"
9601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9602 *) ac_try_echo
=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1
>conftest.err
9609 cat conftest.err
>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.
$ac_objext; then
9615 ac_header_compiler
=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 ac_header_compiler
=no
9623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 echo "${ECHO_T}$ac_header_compiler" >&6; }
9627 # Is the header present?
9628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9630 cat >conftest.
$ac_ext <<_ACEOF
9633 cat confdefs.h
>>conftest.
$ac_ext
9634 cat >>conftest.
$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <$ac_header>
9638 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } >/dev/null && {
9651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9654 ac_header_preproc=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_header_preproc=no
9662 rm -f conftest.err conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6; }
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689 ## ---------------------------------------- ##
9690 ## Report this to pgsql-bugs@postgresql.org ##
9691 ## ---------------------------------------- ##
9693 ) | sed "s/^/$as_me: WARNING: /" >&2
9696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 eval "$as_ac_Header=\$ac_header_preproc"
9703 ac_res=`eval echo '${'$as_ac_Header'}'`
9704 { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9709 cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9715 for ac_header in history.h
9717 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 ac_res=`eval echo '${'$as_ac_Header'}'`
9725 { echo "$as_me:$LINENO: result: $ac_res" >&5
9726 echo "${ECHO_T}$ac_res" >&6; }
9728 # Is the header compilable?
9729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9731 cat >conftest.$ac_ext <<_ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 #include <$ac_header>
9740 rm -f conftest.$ac_objext
9741 if { (ac_try="$ac_compile"
9743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9744 *) ac_try_echo
=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_compile") 2>conftest.er1
9749 grep -v '^ *+' conftest.er1
>conftest.err
9751 cat conftest.err
>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest.
$ac_objext; then
9757 ac_header_compiler
=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.
$ac_ext >&5
9762 ac_header_compiler
=no
9765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6; }
9769 # Is the header present?
9770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9772 cat >conftest.
$ac_ext <<_ACEOF
9775 cat confdefs.h
>>conftest.
$ac_ext
9776 cat >>conftest.
$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #include <$ac_header>
9780 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } >/dev/null && {
9793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9796 ac_header_preproc=yes
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_header_preproc=no
9804 rm -f conftest.err conftest.$ac_ext
9805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9806 echo "${ECHO_T}$ac_header_preproc" >&6; }
9808 # So? What about this header?
9809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9815 ac_header_preproc=yes
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831 ## ---------------------------------------- ##
9832 ## Report this to pgsql-bugs@postgresql.org ##
9833 ## ---------------------------------------- ##
9835 ) | sed "s/^/$as_me: WARNING: /" >&2
9838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 eval "$as_ac_Header=\$ac_header_preproc"
9845 ac_res=`eval echo '${'$as_ac_Header'}'`
9846 { echo "$as_me:$LINENO: result: $ac_res" >&5
9847 echo "${ECHO_T}$ac_res" >&6; }
9850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9856 { { echo "$as_me:$LINENO: error: history header not found
9857 If you have readline already installed, see config.log for details on the
9858 failure. It is possible the compiler isn't looking in the proper directory.
9859 Use --without-readline to disable readline support." >&5
9860 echo "$as_me: error: history header not found
9861 If you have readline already installed, see config.log for details on the
9862 failure. It is possible the compiler isn't looking in the proper directory.
9863 Use --without-readline to disable readline support." >&2;}
9864 { (exit 1); exit 1; }; }
9875 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9876 # Some installations of libedit usurp /usr/include/readline/, which seems
9877 # bad practice, since in combined installations readline will have its headers
9878 # there. We might have to resort to AC_EGREP checks to make sure we found
9879 # the proper header...
9881 for ac_header in editline/readline.h
9883 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 ac_res=`eval echo '${'$as_ac_Header'}'`
9891 { echo "$as_me:$LINENO: result: $ac_res" >&5
9892 echo "${ECHO_T}$ac_res" >&6; }
9894 # Is the header compilable?
9895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 $ac_includes_default
9904 #include <$ac_header>
9906 rm -f conftest.$ac_objext
9907 if { (ac_try="$ac_compile"
9909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9910 *) ac_try_echo
=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_compile") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1
>conftest.err
9917 cat conftest.err
>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } && {
9920 test -z "$ac_c_werror_flag" ||
9921 test ! -s conftest.err
9922 } && test -s conftest.
$ac_objext; then
9923 ac_header_compiler
=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.
$ac_ext >&5
9928 ac_header_compiler
=no
9931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9933 echo "${ECHO_T}$ac_header_compiler" >&6; }
9935 # Is the header present?
9936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9938 cat >conftest.
$ac_ext <<_ACEOF
9941 cat confdefs.h
>>conftest.
$ac_ext
9942 cat >>conftest.
$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 #include <$ac_header>
9946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } >/dev/null && {
9959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9962 ac_header_preproc=yes
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 ac_header_preproc=no
9970 rm -f conftest.err conftest.$ac_ext
9971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9972 echo "${ECHO_T}$ac_header_preproc" >&6; }
9974 # So? What about this header?
9975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9981 ac_header_preproc=yes
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9997 ## ---------------------------------------- ##
9998 ## Report this to pgsql-bugs@postgresql.org ##
9999 ## ---------------------------------------- ##
10001 ) | sed "s/^/$as_me: WARNING: /" >&2
10004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 eval "$as_ac_Header=\$ac_header_preproc"
10011 ac_res=`eval echo '${'$as_ac_Header'}'`
10012 { echo "$as_me:$LINENO: result: $ac_res" >&5
10013 echo "${ECHO_T}$ac_res" >&6; }
10016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10023 for ac_header in readline.h
10025 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 ac_res=`eval echo '${'$as_ac_Header'}'`
10033 { echo "$as_me:$LINENO: result: $ac_res" >&5
10034 echo "${ECHO_T}$ac_res" >&6; }
10036 # Is the header compilable?
10037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 #include <$ac_header>
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10052 *) ac_try_echo
=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_compile") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1
>conftest.err
10059 cat conftest.err
>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest.
$ac_objext; then
10065 ac_header_compiler
=yes
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.
$ac_ext >&5
10070 ac_header_compiler
=no
10073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10075 echo "${ECHO_T}$ac_header_compiler" >&6; }
10077 # Is the header present?
10078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10080 cat >conftest.
$ac_ext <<_ACEOF
10083 cat confdefs.h
>>conftest.
$ac_ext
10084 cat >>conftest.
$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086 #include <$ac_header>
10088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10089 case "(($ac_try" in
10090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } >/dev/null && {
10101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10104 ac_header_preproc=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_header_preproc=no
10112 rm -f conftest.err conftest.$ac_ext
10113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10114 echo "${ECHO_T}$ac_header_preproc" >&6; }
10116 # So? What about this header?
10117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10123 ac_header_preproc=yes
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10139 ## ---------------------------------------- ##
10140 ## Report this to pgsql-bugs@postgresql.org ##
10141 ## ---------------------------------------- ##
10143 ) | sed "s/^/$as_me: WARNING: /" >&2
10146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 eval "$as_ac_Header=\$ac_header_preproc"
10153 ac_res=`eval echo '${'$as_ac_Header'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h <<_ACEOF
10160 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10165 for ac_header in readline/readline.h
10167 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 ac_res=`eval echo '${'$as_ac_Header'}'`
10175 { echo "$as_me:$LINENO: result: $ac_res" >&5
10176 echo "${ECHO_T}$ac_res" >&6; }
10178 # Is the header compilable?
10179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 #include <$ac_header>
10190 rm -f conftest.$ac_objext
10191 if { (ac_try="$ac_compile"
10192 case "(($ac_try" in
10193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10194 *) ac_try_echo
=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_compile") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1
>conftest.err
10201 cat conftest.err
>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest.
$ac_objext; then
10207 ac_header_compiler
=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.
$ac_ext >&5
10212 ac_header_compiler
=no
10215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10217 echo "${ECHO_T}$ac_header_compiler" >&6; }
10219 # Is the header present?
10220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10222 cat >conftest.
$ac_ext <<_ACEOF
10225 cat confdefs.h
>>conftest.
$ac_ext
10226 cat >>conftest.
$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 #include <$ac_header>
10230 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10231 case "(($ac_try" in
10232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } >/dev/null && {
10243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10244 test ! -s conftest.err
10246 ac_header_preproc=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_header_preproc=no
10254 rm -f conftest.err conftest.$ac_ext
10255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10256 echo "${ECHO_T}$ac_header_preproc" >&6; }
10258 # So? What about this header?
10259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10265 ac_header_preproc=yes
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10281 ## ---------------------------------------- ##
10282 ## Report this to pgsql-bugs@postgresql.org ##
10283 ## ---------------------------------------- ##
10285 ) | sed "s/^/$as_me: WARNING: /" >&2
10288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 eval "$as_ac_Header=\$ac_header_preproc"
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296 { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10306 { { echo "$as_me:$LINENO: error: readline header not found
10307 If you have libedit already installed, see config.log for details on the
10308 failure. It is possible the compiler isn't looking in the proper directory.
10309 Use --without-readline to disable libedit support." >&5
10310 echo "$as_me: error: readline header not found
10311 If you have libedit already installed, see config.log for details on the
10312 failure. It is possible the compiler isn't looking in the proper directory.
10313 Use --without-readline to disable libedit support." >&2;}
10314 { (exit 1); exit 1; }; }
10327 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10328 # not be there at all. Hence, don't complain if not found. We must check
10329 # though, since in yet other versions it is an independent header.
10331 for ac_header in editline/history.h
10333 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 ac_res=`eval echo '${'$as_ac_Header'}'`
10341 { echo "$as_me:$LINENO: result: $ac_res" >&5
10342 echo "${ECHO_T}$ac_res" >&6; }
10344 # Is the header compilable?
10345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10347 cat >conftest.$ac_ext <<_ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 $ac_includes_default
10354 #include <$ac_header>
10356 rm -f conftest.$ac_objext
10357 if { (ac_try="$ac_compile"
10358 case "(($ac_try" in
10359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10360 *) ac_try_echo
=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_compile") 2>conftest.er1
10365 grep -v '^ *+' conftest.er1
>conftest.err
10367 cat conftest.err
>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest.
$ac_objext; then
10373 ac_header_compiler
=yes
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.
$ac_ext >&5
10378 ac_header_compiler
=no
10381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6; }
10385 # Is the header present?
10386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10388 cat >conftest.
$ac_ext <<_ACEOF
10391 cat confdefs.h
>>conftest.
$ac_ext
10392 cat >>conftest.
$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 #include <$ac_header>
10396 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10397 case "(($ac_try" in
10398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } >/dev/null && {
10409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10412 ac_header_preproc=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_header_preproc=no
10420 rm -f conftest.err conftest.$ac_ext
10421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422 echo "${ECHO_T}$ac_header_preproc" >&6; }
10424 # So? What about this header?
10425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10431 ac_header_preproc=yes
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10447 ## ---------------------------------------- ##
10448 ## Report this to pgsql-bugs@postgresql.org ##
10449 ## ---------------------------------------- ##
10451 ) | sed "s/^/$as_me: WARNING: /" >&2
10454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 eval "$as_ac_Header=\$ac_header_preproc"
10461 ac_res=`eval echo '${'$as_ac_Header'}'`
10462 { echo "$as_me:$LINENO: result: $ac_res" >&5
10463 echo "${ECHO_T}$ac_res" >&6; }
10466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10473 for ac_header in history.h
10475 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 ac_res=`eval echo '${'$as_ac_Header'}'`
10483 { echo "$as_me:$LINENO: result: $ac_res" >&5
10484 echo "${ECHO_T}$ac_res" >&6; }
10486 # Is the header compilable?
10487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 $ac_includes_default
10496 #include <$ac_header>
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10502 *) ac_try_echo
=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_compile") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1
>conftest.err
10509 cat conftest.err
>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest.
$ac_objext; then
10515 ac_header_compiler
=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 ac_header_compiler
=no
10523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6; }
10527 # Is the header present?
10528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10530 cat >conftest.
$ac_ext <<_ACEOF
10533 cat confdefs.h
>>conftest.
$ac_ext
10534 cat >>conftest.
$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #include <$ac_header>
10538 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10539 case "(($ac_try" in
10540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } >/dev/null && {
10551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10554 ac_header_preproc=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 ac_header_preproc=no
10562 rm -f conftest.err conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564 echo "${ECHO_T}$ac_header_preproc" >&6; }
10566 # So? What about this header?
10567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573 ac_header_preproc=yes
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10589 ## ---------------------------------------- ##
10590 ## Report this to pgsql-bugs@postgresql.org ##
10591 ## ---------------------------------------- ##
10593 ) | sed "s/^/$as_me: WARNING: /" >&2
10596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 eval "$as_ac_Header=\$ac_header_preproc"
10603 ac_res=`eval echo '${'$as_ac_Header'}'`
10604 { echo "$as_me:$LINENO: result: $ac_res" >&5
10605 echo "${ECHO_T}$ac_res" >&6; }
10608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10609 cat >>confdefs.h <<_ACEOF
10610 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10615 for ac_header in readline/history.h
10617 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 ac_res=`eval echo '${'$as_ac_Header'}'`
10625 { echo "$as_me:$LINENO: result: $ac_res" >&5
10626 echo "${ECHO_T}$ac_res" >&6; }
10628 # Is the header compilable?
10629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10631 cat >conftest.$ac_ext <<_ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637 $ac_includes_default
10638 #include <$ac_header>
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10644 *) ac_try_echo
=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_compile") 2>conftest.er1
10649 grep -v '^ *+' conftest.er1
>conftest.err
10651 cat conftest.err
>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && {
10654 test -z "$ac_c_werror_flag" ||
10655 test ! -s conftest.err
10656 } && test -s conftest.
$ac_objext; then
10657 ac_header_compiler
=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.
$ac_ext >&5
10662 ac_header_compiler
=no
10665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667 echo "${ECHO_T}$ac_header_compiler" >&6; }
10669 # Is the header present?
10670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10672 cat >conftest.
$ac_ext <<_ACEOF
10675 cat confdefs.h
>>conftest.
$ac_ext
10676 cat >>conftest.
$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <$ac_header>
10680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10681 case "(($ac_try" in
10682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev/null && {
10693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10696 ac_header_preproc=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_header_preproc=no
10704 rm -f conftest.err conftest.$ac_ext
10705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10706 echo "${ECHO_T}$ac_header_preproc" >&6; }
10708 # So? What about this header?
10709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10715 ac_header_preproc=yes
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10731 ## ---------------------------------------- ##
10732 ## Report this to pgsql-bugs@postgresql.org ##
10733 ## ---------------------------------------- ##
10735 ) | sed "s/^/$as_me: WARNING: /" >&2
10738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 eval "$as_ac_Header=\$ac_header_preproc"
10745 ac_res=`eval echo '${'$as_ac_Header'}'`
10746 { echo "$as_me:$LINENO: result: $ac_res" >&5
10747 echo "${ECHO_T}$ac_res" >&6; }
10750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10769 if test "$with_zlib" = yes; then
10770 if test "${ac_cv_header_zlib_h+set}" = set; then
10771 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10772 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10773 if test "${ac_cv_header_zlib_h+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10777 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10779 # Is the header compilable?
10780 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10781 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 $ac_includes_default
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10795 *) ac_try_echo
=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_compile") 2>conftest.er1
10800 grep -v '^ *+' conftest.er1
>conftest.err
10802 cat conftest.err
>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && {
10805 test -z "$ac_c_werror_flag" ||
10806 test ! -s conftest.err
10807 } && test -s conftest.
$ac_objext; then
10808 ac_header_compiler
=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.
$ac_ext >&5
10813 ac_header_compiler
=no
10816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10818 echo "${ECHO_T}$ac_header_compiler" >&6; }
10820 # Is the header present?
10821 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10822 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10823 cat >conftest.
$ac_ext <<_ACEOF
10826 cat confdefs.h
>>conftest.
$ac_ext
10827 cat >>conftest.
$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10832 case "(($ac_try" in
10833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } >/dev/null && {
10844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10847 ac_header_preproc=yes
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_header_preproc=no
10855 rm -f conftest.err conftest.$ac_ext
10856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10857 echo "${ECHO_T}$ac_header_preproc" >&6; }
10859 # So? What about this header?
10860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10862 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10863 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10865 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10866 ac_header_preproc=yes
10869 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10870 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10872 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10874 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10876 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10878 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10880 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10882 ## ---------------------------------------- ##
10883 ## Report this to pgsql-bugs@postgresql.org ##
10884 ## ---------------------------------------- ##
10886 ) | sed "s/^/$as_me: WARNING: /" >&2
10889 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10890 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10891 if test "${ac_cv_header_zlib_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_cv_header_zlib_h=$ac_header_preproc
10896 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10900 if test $ac_cv_header_zlib_h = yes; then
10903 { { echo "$as_me:$LINENO: error: zlib header not found
10904 If you have zlib already installed, see config.log for details on the
10905 failure. It is possible the compiler isn't looking in the proper directory.
10906 Use --without-zlib to disable zlib support." >&5
10907 echo "$as_me: error: zlib header not found
10908 If you have zlib already installed, see config.log for details on the
10909 failure. It is possible the compiler isn't looking in the proper directory.
10910 Use --without-zlib to disable zlib support." >&2;}
10911 { (exit 1); exit 1; }; }
10917 if test "$with_gssapi" = yes ; then
10919 for ac_header in gssapi/gssapi.h
10921 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 ac_res=`eval echo '${'$as_ac_Header'}'`
10929 { echo "$as_me:$LINENO: result: $ac_res" >&5
10930 echo "${ECHO_T}$ac_res" >&6; }
10932 # Is the header compilable?
10933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 $ac_includes_default
10942 #include <$ac_header>
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10948 *) ac_try_echo
=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_compile") 2>conftest.er1
10953 grep -v '^ *+' conftest.er1
>conftest.err
10955 cat conftest.err
>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest.
$ac_objext; then
10961 ac_header_compiler
=yes
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.
$ac_ext >&5
10966 ac_header_compiler
=no
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10971 echo "${ECHO_T}$ac_header_compiler" >&6; }
10973 # Is the header present?
10974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10976 cat >conftest.
$ac_ext <<_ACEOF
10979 cat confdefs.h
>>conftest.
$ac_ext
10980 cat >>conftest.
$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <$ac_header>
10984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10985 case "(($ac_try" in
10986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev/null && {
10997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10998 test ! -s conftest.err
11000 ac_header_preproc=yes
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_header_preproc=no
11008 rm -f conftest.err conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010 echo "${ECHO_T}$ac_header_preproc" >&6; }
11012 # So? What about this header?
11013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019 ac_header_preproc=yes
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11035 ## ---------------------------------------- ##
11036 ## Report this to pgsql-bugs@postgresql.org ##
11037 ## ---------------------------------------- ##
11039 ) | sed "s/^/$as_me: WARNING: /" >&2
11042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 eval "$as_ac_Header=\$ac_header_preproc"
11049 ac_res=`eval echo '${'$as_ac_Header'}'`
11050 { echo "$as_me:$LINENO: result: $ac_res" >&5
11051 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11061 for ac_header in gssapi.h
11063 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 ac_res=`eval echo '${'$as_ac_Header'}'`
11071 { echo "$as_me:$LINENO: result: $ac_res" >&5
11072 echo "${ECHO_T}$ac_res" >&6; }
11074 # Is the header compilable?
11075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 $ac_includes_default
11084 #include <$ac_header>
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11090 *) ac_try_echo
=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1
>conftest.err
11097 cat conftest.err
>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.
$ac_objext; then
11103 ac_header_compiler
=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 ac_header_compiler
=no
11111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113 echo "${ECHO_T}$ac_header_compiler" >&6; }
11115 # Is the header present?
11116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11118 cat >conftest.
$ac_ext <<_ACEOF
11121 cat confdefs.h
>>conftest.
$ac_ext
11122 cat >>conftest.
$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <$ac_header>
11126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11127 case "(($ac_try" in
11128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } >/dev/null && {
11139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11142 ac_header_preproc=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_preproc=no
11150 rm -f conftest.err conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11152 echo "${ECHO_T}$ac_header_preproc" >&6; }
11154 # So? What about this header?
11155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11161 ac_header_preproc=yes
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11177 ## ---------------------------------------- ##
11178 ## Report this to pgsql-bugs@postgresql.org ##
11179 ## ---------------------------------------- ##
11181 ) | sed "s/^/$as_me: WARNING: /" >&2
11184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 eval "$as_ac_Header=\$ac_header_preproc"
11191 ac_res=`eval echo '${'$as_ac_Header'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11202 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11203 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11204 { (exit 1); exit 1; }; }
11215 if test "$with_krb5" = yes ; then
11216 if test "${ac_cv_header_krb5_h+set}" = set; then
11217 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11218 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11219 if test "${ac_cv_header_krb5_h+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11223 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11225 # Is the header compilable?
11226 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11227 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 $ac_includes_default
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11241 *) ac_try_echo
=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1
>conftest.err
11248 cat conftest.err
>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.
$ac_objext; then
11254 ac_header_compiler
=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.
$ac_ext >&5
11259 ac_header_compiler
=no
11262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264 echo "${ECHO_T}$ac_header_compiler" >&6; }
11266 # Is the header present?
11267 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11268 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11269 cat >conftest.
$ac_ext <<_ACEOF
11272 cat confdefs.h
>>conftest.
$ac_ext
11273 cat >>conftest.
$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11277 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11278 case "(($ac_try" in
11279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev/null && {
11290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11291 test ! -s conftest.err
11293 ac_header_preproc=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_preproc=no
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11315 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11328 ## ---------------------------------------- ##
11329 ## Report this to pgsql-bugs@postgresql.org ##
11330 ## ---------------------------------------- ##
11332 ) | sed "s/^/$as_me: WARNING: /" >&2
11335 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11336 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11337 if test "${ac_cv_header_krb5_h+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 ac_cv_header_krb5_h=$ac_header_preproc
11342 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11343 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11346 if test $ac_cv_header_krb5_h = yes; then
11349 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11350 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11351 { (exit 1); exit 1; }; }
11357 if test "$with_openssl" = yes ; then
11358 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11359 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11360 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11361 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11365 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11367 # Is the header compilable?
11368 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11369 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11377 #include <openssl/ssl.h>
11379 rm -f conftest.$ac_objext
11380 if { (ac_try="$ac_compile"
11381 case "(($ac_try" in
11382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11383 *) ac_try_echo
=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_compile") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1
>conftest.err
11390 cat conftest.err
>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest.
$ac_objext; then
11396 ac_header_compiler
=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.
$ac_ext >&5
11401 ac_header_compiler
=no
11404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6; }
11408 # Is the header present?
11409 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11410 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11411 cat >conftest.
$ac_ext <<_ACEOF
11414 cat confdefs.h
>>conftest.
$ac_ext
11415 cat >>conftest.
$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <openssl/ssl.h>
11419 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11420 case "(($ac_try" in
11421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } >/dev/null && {
11432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11435 ac_header_preproc=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_header_preproc=no
11443 rm -f conftest.err conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6; }
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11470 ## ---------------------------------------- ##
11471 ## Report this to pgsql-bugs@postgresql.org ##
11472 ## ---------------------------------------- ##
11474 ) | sed "s/^/$as_me: WARNING: /" >&2
11477 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11478 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11479 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11484 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11488 if test $ac_cv_header_openssl_ssl_h = yes; then
11491 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11492 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11493 { (exit 1); exit 1; }; }
11497 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11498 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11499 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11500 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11504 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11508 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <openssl/err.h>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11522 *) ac_try_echo
=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1
>conftest.err
11529 cat conftest.err
>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.
$ac_objext; then
11535 ac_header_compiler
=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.
$ac_ext >&5
11540 ac_header_compiler
=no
11543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11549 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11550 cat >conftest.
$ac_ext <<_ACEOF
11553 cat confdefs.h
>>conftest.
$ac_ext
11554 cat >>conftest.
$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <openssl/err.h>
11558 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11566 grep -v '^ *+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null && {
11571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572 test ! -s conftest.err
11574 ac_header_preproc=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_header_preproc=no
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11596 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11609 ## ---------------------------------------- ##
11610 ## Report this to pgsql-bugs@postgresql.org ##
11611 ## ---------------------------------------- ##
11613 ) | sed "s/^/$as_me: WARNING: /" >&2
11616 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11617 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11618 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 ac_cv_header_openssl_err_h=$ac_header_preproc
11623 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11624 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11627 if test $ac_cv_header_openssl_err_h = yes; then
11630 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11631 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11632 { (exit 1); exit 1; }; }
11637 for ac_func in ERR_set_mark
11639 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11653 #define $ac_func innocuous_$ac_func
11655 /* System header to define __stub macros and hopefully few prototypes,
11656 which can conflict with char $ac_func (); below.
11657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658 <limits.h> exists even on freestanding compilers. */
11661 # include <limits.h>
11663 # include <assert.h>
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11675 /* The GNU C library defines this for functions which it implements
11676 to always fail with ENOSYS. Some functions are actually named
11677 something starting with __ and the normal name is an alias. */
11678 #if defined __stub_$ac_func || defined __stub___$ac_func
11685 return $ac_func ();
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11694 *) ac_try_echo
=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_link") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1
>conftest.err
11701 cat conftest.err
>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest
$ac_exeext &&
11707 $as_test_x conftest
$ac_exeext; then
11708 eval "$as_ac_var=yes"
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.
$ac_ext >&5
11713 eval "$as_ac_var=no"
11716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11717 conftest
$ac_exeext conftest.
$ac_ext
11719 ac_res
=`eval echo '${'$as_ac_var'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11722 if test `eval echo '${'$as_ac_var'}'` = yes; then
11723 cat >>confdefs.h
<<_ACEOF
11724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732 if test "$with_pam" = yes ; then
11734 for ac_header
in security
/pam_appl.h
11736 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11737 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11740 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 ac_res
=`eval echo '${'$as_ac_Header'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11747 # Is the header compilable?
11748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11750 cat >conftest.
$ac_ext <<_ACEOF
11753 cat confdefs.h
>>conftest.
$ac_ext
11754 cat >>conftest.
$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 #include <$ac_header>
11759 rm -f conftest.
$ac_objext
11760 if { (ac_try
="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11776 ac_header_compiler=yes
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_header_compiler=no
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6; }
11788 # Is the header present?
11789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 #include <$ac_header>
11799 if { (ac_try="$ac_cpp conftest.$ac_ext"
11800 case "(($ac_try" in
11801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11802 *) ac_try_echo
=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1
>conftest.err
11809 cat conftest.err
>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } >/dev
/null
&& {
11812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11815 ac_header_preproc
=yes
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.
$ac_ext >&5
11820 ac_header_preproc
=no
11823 rm -f conftest.err conftest.
$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6; }
11827 # So? What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc
=yes
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11850 ## ---------------------------------------- ##
11851 ## Report this to pgsql-bugs@postgresql.org ##
11852 ## ---------------------------------------- ##
11854 ) |
sed "s/^/$as_me: WARNING: /" >&2
11857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11859 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 eval "$as_ac_Header=\$ac_header_preproc"
11864 ac_res
=`eval echo '${'$as_ac_Header'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11870 cat >>confdefs.h
<<_ACEOF
11871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876 for ac_header
in pam
/pam_appl.h
11878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 ac_res
=`eval echo '${'$as_ac_Header'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11889 # Is the header compilable?
11890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11892 cat >conftest.
$ac_ext <<_ACEOF
11895 cat confdefs.h
>>conftest.
$ac_ext
11896 cat >>conftest.
$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 #include <$ac_header>
11901 rm -f conftest.
$ac_objext
11902 if { (ac_try
="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 ac_header_compiler=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_header_compiler=no
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11928 echo "${ECHO_T}$ac_header_compiler" >&6; }
11930 # Is the header present?
11931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 #include <$ac_header>
11941 if { (ac_try="$ac_cpp conftest.$ac_ext"
11942 case "(($ac_try" in
11943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11944 *) ac_try_echo
=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11949 grep -v '^ *+' conftest.er1
>conftest.err
11951 cat conftest.err
>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } >/dev
/null
&& {
11954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11957 ac_header_preproc
=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.
$ac_ext >&5
11962 ac_header_preproc
=no
11965 rm -f conftest.err conftest.
$ac_ext
11966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11967 echo "${ECHO_T}$ac_header_preproc" >&6; }
11969 # So? What about this header?
11970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11976 ac_header_preproc
=yes
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11992 ## ---------------------------------------- ##
11993 ## Report this to pgsql-bugs@postgresql.org ##
11994 ## ---------------------------------------- ##
11996 ) |
sed "s/^/$as_me: WARNING: /" >&2
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 eval "$as_ac_Header=\$ac_header_preproc"
12006 ac_res
=`eval echo '${'$as_ac_Header'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12012 cat >>confdefs.h
<<_ACEOF
12013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12018 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12019 { (exit 1); exit 1; }; }
12030 if test "$with_libxml" = yes ; then
12031 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12032 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12033 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12034 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12038 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12040 # Is the header compilable?
12041 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12042 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12043 cat >conftest.
$ac_ext <<_ACEOF
12046 cat confdefs.h
>>conftest.
$ac_ext
12047 cat >>conftest.
$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <libxml/parser.h>
12052 rm -f conftest.
$ac_objext
12053 if { (ac_try
="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 ac_header_compiler=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_header_compiler=no
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6; }
12081 # Is the header present?
12082 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12083 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <libxml/parser.h>
12092 if { (ac_try="$ac_cpp conftest.$ac_ext"
12093 case "(($ac_try" in
12094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12095 *) ac_try_echo
=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1
>conftest.err
12102 cat conftest.err
>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } >/dev
/null
&& {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12108 ac_header_preproc
=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.
$ac_ext >&5
12113 ac_header_preproc
=no
12116 rm -f conftest.err conftest.
$ac_ext
12117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6; }
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12124 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12126 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc
=yes
12130 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12135 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12137 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12141 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12143 ## ---------------------------------------- ##
12144 ## Report this to pgsql-bugs@postgresql.org ##
12145 ## ---------------------------------------- ##
12147 ) |
sed "s/^/$as_me: WARNING: /" >&2
12150 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12151 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12152 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_cv_header_libxml_parser_h
=$ac_header_preproc
12157 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12158 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12161 if test $ac_cv_header_libxml_parser_h = yes; then
12164 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12165 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12166 { (exit 1); exit 1; }; }
12172 if test "$with_libxslt" = yes ; then
12173 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12174 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12175 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12176 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12180 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12182 # Is the header compilable?
12183 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12184 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12185 cat >conftest.
$ac_ext <<_ACEOF
12188 cat confdefs.h
>>conftest.
$ac_ext
12189 cat >>conftest.
$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12192 #include <libxslt/xslt.h>
12194 rm -f conftest.
$ac_objext
12195 if { (ac_try
="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest.$ac_objext; then
12211 ac_header_compiler=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_header_compiler=no
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12221 echo "${ECHO_T}$ac_header_compiler" >&6; }
12223 # Is the header present?
12224 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12225 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <libxslt/xslt.h>
12234 if { (ac_try="$ac_cpp conftest.$ac_ext"
12235 case "(($ac_try" in
12236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12237 *) ac_try_echo
=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1
>conftest.err
12244 cat conftest.err
>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } >/dev
/null
&& {
12247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12250 ac_header_preproc
=yes
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.
$ac_ext >&5
12255 ac_header_preproc
=no
12258 rm -f conftest.err conftest.
$ac_ext
12259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12260 echo "${ECHO_T}$ac_header_preproc" >&6; }
12262 # So? What about this header?
12263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12266 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12268 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12269 ac_header_preproc
=yes
12272 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12273 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12275 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12277 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12279 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12283 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12285 ## ---------------------------------------- ##
12286 ## Report this to pgsql-bugs@postgresql.org ##
12287 ## ---------------------------------------- ##
12289 ) |
sed "s/^/$as_me: WARNING: /" >&2
12292 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12293 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12294 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12299 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12300 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12303 if test $ac_cv_header_libxslt_xslt_h = yes; then
12306 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12307 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12308 { (exit 1); exit 1; }; }
12314 if test "$with_ldap" = yes ; then
12315 if test "$PORTNAME" != "win32"; then
12317 for ac_header
in ldap.h
12319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12320 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12323 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 ac_res
=`eval echo '${'$as_ac_Header'}'`
12327 { echo "$as_me:$LINENO: result: $ac_res" >&5
12328 echo "${ECHO_T}$ac_res" >&6; }
12330 # Is the header compilable?
12331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12333 cat >conftest.
$ac_ext <<_ACEOF
12336 cat confdefs.h
>>conftest.
$ac_ext
12337 cat >>conftest.
$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 #include <$ac_header>
12342 rm -f conftest.
$ac_objext
12343 if { (ac_try
="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.$ac_objext; then
12359 ac_header_compiler=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_header_compiler=no
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12369 echo "${ECHO_T}$ac_header_compiler" >&6; }
12371 # Is the header present?
12372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #include <$ac_header>
12382 if { (ac_try="$ac_cpp conftest.$ac_ext"
12383 case "(($ac_try" in
12384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12385 *) ac_try_echo
=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1
>conftest.err
12392 cat conftest.err
>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } >/dev
/null
&& {
12395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12398 ac_header_preproc
=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.
$ac_ext >&5
12403 ac_header_preproc
=no
12406 rm -f conftest.err conftest.
$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12408 echo "${ECHO_T}$ac_header_preproc" >&6; }
12410 # So? What about this header?
12411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12417 ac_header_preproc
=yes
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12433 ## ---------------------------------------- ##
12434 ## Report this to pgsql-bugs@postgresql.org ##
12435 ## ---------------------------------------- ##
12437 ) |
sed "s/^/$as_me: WARNING: /" >&2
12440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 eval "$as_ac_Header=\$ac_header_preproc"
12447 ac_res
=`eval echo '${'$as_ac_Header'}'`
12448 { echo "$as_me:$LINENO: result: $ac_res" >&5
12449 echo "${ECHO_T}$ac_res" >&6; }
12452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12453 cat >>confdefs.h
<<_ACEOF
12454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12458 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12459 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12460 { (exit 1); exit 1; }; }
12467 for ac_header
in winldap.h
12469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 cat >conftest.
$ac_ext <<_ACEOF
12478 cat confdefs.h
>>conftest.
$ac_ext
12479 cat >>conftest.
$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 $ac_includes_default
12482 #include <windows.h>
12485 #include <$ac_header>
12487 rm -f conftest.
$ac_objext
12488 if { (ac_try
="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 eval "$as_ac_Header=yes"
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 eval "$as_ac_Header=no"
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 ac_res=`eval echo '${'$as_ac_Header'}'`
12515 { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12523 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12524 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12525 { (exit 1); exit 1; }; }
12533 if test "$with_bonjour" = yes ; then
12534 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12535 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12536 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12537 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12541 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12543 # Is the header compilable?
12544 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12545 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12546 cat >conftest.$ac_ext <<_ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 $ac_includes_default
12553 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12555 rm -f conftest.$ac_objext
12556 if { (ac_try="$ac_compile"
12557 case "(($ac_try" in
12558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12559 *) ac_try_echo
=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_compile") 2>conftest.er1
12564 grep -v '^ *+' conftest.er1
>conftest.err
12566 cat conftest.err
>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } && {
12569 test -z "$ac_c_werror_flag" ||
12570 test ! -s conftest.err
12571 } && test -s conftest.
$ac_objext; then
12572 ac_header_compiler
=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.
$ac_ext >&5
12577 ac_header_compiler
=no
12580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12582 echo "${ECHO_T}$ac_header_compiler" >&6; }
12584 # Is the header present?
12585 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12586 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12587 cat >conftest.
$ac_ext <<_ACEOF
12590 cat confdefs.h
>>conftest.
$ac_ext
12591 cat >>conftest.
$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12595 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12596 case "(($ac_try" in
12597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null && {
12608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12611 ac_header_preproc=yes
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_header_preproc=no
12619 rm -f conftest.err conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621 echo "${ECHO_T}$ac_header_preproc" >&6; }
12623 # So? What about this header?
12624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12627 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12629 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12630 ac_header_preproc=yes
12633 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12634 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12636 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12638 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12639 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12640 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12643 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12644 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12646 ## ---------------------------------------- ##
12647 ## Report this to pgsql-bugs@postgresql.org ##
12648 ## ---------------------------------------- ##
12650 ) | sed "s/^/$as_me: WARNING: /" >&2
12653 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12654 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12660 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12661 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12664 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12667 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12668 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12669 { (exit 1); exit 1; }; }
12675 # for contrib/uuid-ossp
12676 if test "$with_ossp_uuid" = yes ; then
12678 for ac_header in ossp/uuid.h
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 ac_res=`eval echo '${'$as_ac_Header'}'`
12688 { echo "$as_me:$LINENO: result: $ac_res" >&5
12689 echo "${ECHO_T}$ac_res" >&6; }
12691 # Is the header compilable?
12692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 $ac_includes_default
12701 #include <$ac_header>
12703 rm -f conftest.$ac_objext
12704 if { (ac_try="$ac_compile"
12705 case "(($ac_try" in
12706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12707 *) ac_try_echo
=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_compile") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1
>conftest.err
12714 cat conftest.err
>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest.
$ac_objext; then
12720 ac_header_compiler
=yes
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.
$ac_ext >&5
12725 ac_header_compiler
=no
12728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12730 echo "${ECHO_T}$ac_header_compiler" >&6; }
12732 # Is the header present?
12733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12735 cat >conftest.
$ac_ext <<_ACEOF
12738 cat confdefs.h
>>conftest.
$ac_ext
12739 cat >>conftest.
$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 #include <$ac_header>
12743 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12744 case "(($ac_try" in
12745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } >/dev/null && {
12756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12759 ac_header_preproc=yes
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_header_preproc=no
12767 rm -f conftest.err conftest.$ac_ext
12768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12769 echo "${ECHO_T}$ac_header_preproc" >&6; }
12771 # So? What about this header?
12772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12778 ac_header_preproc=yes
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12794 ## ---------------------------------------- ##
12795 ## Report this to pgsql-bugs@postgresql.org ##
12796 ## ---------------------------------------- ##
12798 ) | sed "s/^/$as_me: WARNING: /" >&2
12801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 eval "$as_ac_Header=\$ac_header_preproc"
12808 ac_res=`eval echo '${'$as_ac_Header'}'`
12809 { echo "$as_me:$LINENO: result: $ac_res" >&5
12810 echo "${ECHO_T}$ac_res" >&6; }
12813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12814 cat >>confdefs.h <<_ACEOF
12815 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12821 for ac_header in uuid.h
12823 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_res=`eval echo '${'$as_ac_Header'}'`
12831 { echo "$as_me:$LINENO: result: $ac_res" >&5
12832 echo "${ECHO_T}$ac_res" >&6; }
12834 # Is the header compilable?
12835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <$ac_header>
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12850 *) ac_try_echo
=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_compile") 2>conftest.er1
12855 grep -v '^ *+' conftest.er1
>conftest.err
12857 cat conftest.err
>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.
$ac_objext; then
12863 ac_header_compiler
=yes
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.
$ac_ext >&5
12868 ac_header_compiler
=no
12871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 echo "${ECHO_T}$ac_header_compiler" >&6; }
12875 # Is the header present?
12876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12878 cat >conftest.
$ac_ext <<_ACEOF
12881 cat confdefs.h
>>conftest.
$ac_ext
12882 cat >>conftest.
$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <$ac_header>
12886 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } >/dev/null && {
12899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12902 ac_header_preproc=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12907 ac_header_preproc=no
12910 rm -f conftest.err conftest.$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12912 echo "${ECHO_T}$ac_header_preproc" >&6; }
12914 # So? What about this header?
12915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12921 ac_header_preproc=yes
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12937 ## ---------------------------------------- ##
12938 ## Report this to pgsql-bugs@postgresql.org ##
12939 ## ---------------------------------------- ##
12941 ) | sed "s/^/$as_me: WARNING: /" >&2
12944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 eval "$as_ac_Header=\$ac_header_preproc"
12951 ac_res=`eval echo '${'$as_ac_Header'}'`
12952 { echo "$as_me:$LINENO: result: $ac_res" >&5
12953 echo "${ECHO_T}$ac_res" >&6; }
12956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12957 cat >>confdefs.h <<_ACEOF
12958 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12962 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12963 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12964 { (exit 1); exit 1; }; }
12977 ## Types, structures, compiler characteristics
12980 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12982 if test "${ac_cv_c_bigendian+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 # See if sys/param.h defines the BYTE_ORDER macro.
12986 cat >conftest.$ac_ext <<_ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #include <sys/types.h>
12993 #include <sys/param.h>
12998 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12999 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13000 bogus endian macros
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13011 *) ac_try_echo
=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_compile") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1
>conftest.err
13018 cat conftest.err
>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest.
$ac_objext; then
13024 # It does; now see whether it defined to BIG_ENDIAN or not.
13025 cat >conftest.
$ac_ext <<_ACEOF
13028 cat confdefs.h
>>conftest.
$ac_ext
13029 cat >>conftest.
$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <sys/types.h>
13032 #include <sys/param.h>
13037 #if BYTE_ORDER != BIG_ENDIAN
13045 rm -f conftest.
$ac_objext
13046 if { (ac_try
="$ac_compile"
13047 case "(($ac_try" in
13048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_compile") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest.$ac_objext; then
13062 ac_cv_c_bigendian=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_cv_c_bigendian=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 # It does not; compile a test program.
13076 if test "$cross_compiling" = yes; then
13077 # try to guess the endianness by grepping values into an object file
13078 ac_cv_c_bigendian=unknown
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13086 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13088 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13089 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13094 _ascii (); _ebcdic ();
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13108 grep -v '^ *+' conftest.er1
>conftest.err
13110 cat conftest.err
>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.
$ac_objext; then
13116 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13117 ac_cv_c_bigendian
=yes
13119 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13120 if test "$ac_cv_c_bigendian" = unknown
; then
13121 ac_cv_c_bigendian
=no
13123 # finding both strings is unlikely to happen, but who knows?
13124 ac_cv_c_bigendian
=unknown
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13136 cat >conftest.
$ac_ext <<_ACEOF
13139 cat confdefs.h
>>conftest.
$ac_ext
13140 cat >>conftest.
$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13147 /* Are we little or big endian? From Harbison&Steele. */
13151 char c[sizeof (long int)];
13154 return u.c[sizeof (long int) - 1] == 1;
13160 rm -f conftest
$ac_exeext
13161 if { (ac_try
="$ac_link"
13162 case "(($ac_try" in
13163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13171 { (case "(($ac_try" in
13172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13173 *) ac_try_echo
=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_try") 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_cv_c_bigendian
=no
13182 echo "$as_me: program exited with status $ac_status" >&5
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.
$ac_ext >&5
13186 ( exit $ac_status )
13187 ac_cv_c_bigendian
=yes
13189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13199 case $ac_cv_c_bigendian in
13202 cat >>confdefs.h
<<\_ACEOF
13203 #define WORDS_BIGENDIAN 1
13209 { { echo "$as_me:$LINENO: error: unknown endianness
13210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13211 echo "$as_me: error: unknown endianness
13212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13213 { (exit 1); exit 1; }; } ;;
13216 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13218 if test "${ac_cv_c_const+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 cat >conftest.
$ac_ext <<_ACEOF
13224 cat confdefs.h
>>conftest.
$ac_ext
13225 cat >>conftest.
$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13231 /* FIXME: Include the comments suggested by Paul. */
13232 #ifndef __cplusplus
13233 /* Ultrix mips cc rejects this. */
13234 typedef int charset[2];
13236 /* SunOS 4.1.1 cc rejects this. */
13237 char const *const *pcpcc;
13239 /* NEC SVR4.0.2 mips cc rejects this. */
13240 struct point {int x, y;};
13241 static struct point const zero = {0,0};
13242 /* AIX XL C 1.02.0.0 rejects this.
13243 It does not let you subtract one const X* pointer from another in
13244 an arm of an if-expression whose if-part is not a constant
13246 const char *g = "string";
13247 pcpcc = &g + (g ? g-g : 0);
13248 /* HPUX 7.0 cc rejects these. */
13250 ppc = (char**) pcpcc;
13251 pcpcc = (char const *const *) ppc;
13252 { /* SCO 3.2v4 cc rejects this. */
13254 char const *s = 0 ? (char *) 0 : (char const *) 0;
13259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13260 int x[] = {25, 17};
13261 const int *foo = &x[0];
13264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13265 typedef const int *iptr;
13269 { /* AIX XL C 1.02.0.0 rejects this saying
13270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13271 struct s { int j; const int *ap[3]; };
13272 struct s *b; b->j = 5;
13274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13275 const int foo = 10;
13276 if (!foo) return 0;
13278 return !cs[0] && !zero.x;
13285 rm -f conftest.
$ac_objext
13286 if { (ac_try
="$ac_compile"
13287 case "(($ac_try" in
13288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compile") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_c_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest.$ac_objext; then
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13314 if test $ac_cv_c_const = no; then
13316 cat >>confdefs.h <<\_ACEOF
13322 { echo "$as_me:$LINENO: checking for inline" >&5
13323 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13324 if test "${ac_cv_c_inline+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 for ac_kw in inline __inline__ __inline; do
13329 cat >conftest.$ac_ext <<_ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 #ifndef __cplusplus
13337 static $ac_kw foo_t static_foo () {return 0; }
13338 $ac_kw foo_t foo () {return 0; }
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13346 *) ac_try_echo
=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_compile") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1
>conftest.err
13353 cat conftest.err
>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest.
$ac_objext; then
13359 ac_cv_c_inline
=$ac_kw
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.
$ac_ext >&5
13367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13368 test "$ac_cv_c_inline" != no
&& break
13372 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13373 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13376 case $ac_cv_c_inline in
13379 case $ac_cv_c_inline in
13381 *) ac_val
=$ac_cv_c_inline;;
13383 cat >>confdefs.h
<<_ACEOF
13384 #ifndef __cplusplus
13385 #define inline $ac_val
13391 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13392 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13393 if test "${ac_cv_c_stringize+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 cat >conftest.
$ac_ext <<_ACEOF
13399 cat confdefs.h
>>conftest.
$ac_ext
13400 cat >>conftest.
$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13404 char *s = x(teststring);
13406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13407 $EGREP "#teststring" >/dev
/null
2>&1; then
13408 ac_cv_c_stringize
=no
13410 ac_cv_c_stringize
=yes
13415 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13416 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13417 if test $ac_cv_c_stringize = yes; then
13419 cat >>confdefs.h
<<\_ACEOF
13420 #define HAVE_STRINGIZE 1
13425 { echo "$as_me:$LINENO: checking for signed types" >&5
13426 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13427 if test "${pgac_cv_c_signed+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.
$ac_ext <<_ACEOF
13433 cat confdefs.h
>>conftest.
$ac_ext
13434 cat >>conftest.
$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13440 signed char c; signed short s; signed int i;
13445 rm -f conftest.
$ac_objext
13446 if { (ac_try
="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
13462 pgac_cv_c_signed=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 pgac_cv_c_signed=no
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13473 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13474 if test x"$pgac_cv_c_signed" = xno ; then
13476 cat >>confdefs.h <<\_ACEOF
13481 { echo "$as_me:$LINENO: checking for working volatile" >&5
13482 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13483 if test "${ac_cv_c_volatile+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13498 int * volatile y = (int *) 0;
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13508 *) ac_try_echo
=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1
>conftest.err
13515 cat conftest.err
>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.
$ac_objext; then
13521 ac_cv_c_volatile
=yes
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.
$ac_ext >&5
13526 ac_cv_c_volatile
=no
13529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13532 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13533 if test $ac_cv_c_volatile = no
; then
13535 cat >>confdefs.h
<<\_ACEOF
13541 { echo "$as_me:$LINENO: checking for __func__" >&5
13542 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13543 if test "${pgac_cv_funcname_func_support+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 cat >conftest.
$ac_ext <<_ACEOF
13549 cat confdefs.h
>>conftest.
$ac_ext
13550 cat >>conftest.
$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13556 printf("%s\n", __func__);
13561 rm -f conftest.
$ac_objext
13562 if { (ac_try
="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 pgac_cv_funcname_func_support=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 pgac_cv_funcname_func_support=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13589 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13590 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13592 cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_FUNCNAME__FUNC 1
13597 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13598 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13599 if test "${pgac_cv_funcname_function_support+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13612 printf("%s\n", __FUNCTION__);
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 pgac_cv_funcname_function_support
=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.
$ac_ext >&5
13639 pgac_cv_funcname_function_support
=no
13642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13645 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13646 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13648 cat >>confdefs.h
<<\_ACEOF
13649 #define HAVE_FUNCNAME__FUNCTION 1
13654 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13655 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_struct_tm+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>
13672 int *p = &tm.tm_sec;
13678 rm -f conftest.
$ac_objext
13679 if { (ac_try
="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 ac_cv_struct_tm=time.h
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_struct_tm=sys/time.h
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13706 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13707 if test $ac_cv_struct_tm = sys/time.h; then
13709 cat >>confdefs.h <<\_ACEOF
13710 #define TM_IN_SYS_TIME 1
13715 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13716 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13717 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include <sys/types.h>
13727 #include <$ac_cv_struct_tm>
13733 static struct tm ac_aggr;
13734 if (ac_aggr.tm_zone)
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13744 *) ac_try_echo
=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1
>conftest.err
13751 cat conftest.err
>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.
$ac_objext; then
13757 ac_cv_member_struct_tm_tm_zone
=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13762 cat >conftest.
$ac_ext <<_ACEOF
13765 cat confdefs.h
>>conftest.
$ac_ext
13766 cat >>conftest.
$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 #include <sys/types.h>
13769 #include <$ac_cv_struct_tm>
13775 static struct tm ac_aggr;
13776 if (sizeof ac_aggr.tm_zone)
13782 rm -f conftest.
$ac_objext
13783 if { (ac_try
="$ac_compile"
13784 case "(($ac_try" in
13785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_compile") 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } && {
13796 test -z "$ac_c_werror_flag" ||
13797 test ! -s conftest.err
13798 } && test -s conftest.$ac_objext; then
13799 ac_cv_member_struct_tm_tm_zone=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_member_struct_tm_tm_zone=no
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13813 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13814 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE_STRUCT_TM_TM_ZONE 1
13823 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_TM_ZONE 1
13830 { echo "$as_me:$LINENO: checking for tzname" >&5
13831 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13832 if test "${ac_cv_var_tzname+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13842 #ifndef tzname /* For SGI. */
13843 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13854 rm -f conftest.$ac_objext conftest$ac_exeext
13855 if { (ac_try="$ac_link"
13856 case "(($ac_try" in
13857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13858 *) ac_try_echo
=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_link") 2>conftest.er1
13863 grep -v '^ *+' conftest.er1
>conftest.err
13865 cat conftest.err
>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } && {
13868 test -z "$ac_c_werror_flag" ||
13869 test ! -s conftest.err
13870 } && test -s conftest
$ac_exeext &&
13871 $as_test_x conftest
$ac_exeext; then
13872 ac_cv_var_tzname
=yes
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.
$ac_ext >&5
13877 ac_cv_var_tzname
=no
13880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13881 conftest
$ac_exeext conftest.
$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13884 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13885 if test $ac_cv_var_tzname = yes; then
13887 cat >>confdefs.h
<<\_ACEOF
13888 #define HAVE_TZNAME 1
13893 { echo "$as_me:$LINENO: checking for union semun" >&5
13894 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13895 if test "${ac_cv_type_union_semun+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 cat >conftest.
$ac_ext <<_ACEOF
13901 cat confdefs.h
>>conftest.
$ac_ext
13902 cat >>conftest.
$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <sys/types.h>
13905 #include <sys/ipc.h>
13906 #include <sys/sem.h>
13908 typedef union semun ac__type_new_;
13912 if ((ac__type_new_ *) 0)
13914 if (sizeof (ac__type_new_))
13920 rm -f conftest.
$ac_objext
13921 if { (ac_try
="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13937 ac_cv_type_union_semun=yes
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_type_union_semun=no
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13948 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13949 if test $ac_cv_type_union_semun = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_UNION_SEMUN 1
13958 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13959 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13960 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13969 #include <sys/types.h>
13970 #ifdef HAVE_SYS_UN_H
13971 #include <sys/un.h>
13975 typedef struct sockaddr_un ac__type_new_;
13979 if ((ac__type_new_ *) 0)
13981 if (sizeof (ac__type_new_))
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13991 *) ac_try_echo
=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1
>conftest.err
13998 cat conftest.err
>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.
$ac_objext; then
14004 ac_cv_type_struct_sockaddr_un
=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.
$ac_ext >&5
14009 ac_cv_type_struct_sockaddr_un
=no
14012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14015 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14016 if test $ac_cv_type_struct_sockaddr_un = yes; then
14018 cat >>confdefs.h
<<_ACEOF
14019 #define HAVE_STRUCT_SOCKADDR_UN 1
14023 cat >>confdefs.h
<<\_ACEOF
14024 #define HAVE_UNIX_SOCKETS 1
14029 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14030 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14031 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 cat >conftest.
$ac_ext <<_ACEOF
14037 cat confdefs.h
>>conftest.
$ac_ext
14038 cat >>conftest.
$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 #include <sys/types.h>
14041 #ifdef HAVE_SYS_SOCKET_H
14042 #include <sys/socket.h>
14046 typedef struct sockaddr_storage ac__type_new_;
14050 if ((ac__type_new_ *) 0)
14052 if (sizeof (ac__type_new_))
14058 rm -f conftest.
$ac_objext
14059 if { (ac_try
="$ac_compile"
14060 case "(($ac_try" in
14061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } && {
14072 test -z "$ac_c_werror_flag" ||
14073 test ! -s conftest.err
14074 } && test -s conftest.$ac_objext; then
14075 ac_cv_type_struct_sockaddr_storage=yes
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_cv_type_struct_sockaddr_storage=no
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14086 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14087 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14096 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14097 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14098 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_SOCKET_H
14109 #include <sys/socket.h>
14116 static struct sockaddr_storage ac_aggr;
14117 if (ac_aggr.ss_family)
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14127 *) ac_try_echo
=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14132 grep -v '^ *+' conftest.er1
>conftest.err
14134 cat conftest.err
>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest.
$ac_objext; then
14140 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.
$ac_ext >&5
14145 cat >conftest.
$ac_ext <<_ACEOF
14148 cat confdefs.h
>>conftest.
$ac_ext
14149 cat >>conftest.
$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <sys/types.h>
14152 #ifdef HAVE_SYS_SOCKET_H
14153 #include <sys/socket.h>
14160 static struct sockaddr_storage ac_aggr;
14161 if (sizeof ac_aggr.ss_family)
14167 rm -f conftest.
$ac_objext
14168 if { (ac_try
="$ac_compile"
14169 case "(($ac_try" in
14170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_compile") 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && {
14181 test -z "$ac_c_werror_flag" ||
14182 test ! -s conftest.err
14183 } && test -s conftest.$ac_objext; then
14184 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_member_struct_sockaddr_storage_ss_family=no
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14198 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14199 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14207 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14208 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14209 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 #include <sys/types.h>
14219 #ifdef HAVE_SYS_SOCKET_H
14220 #include <sys/socket.h>
14227 static struct sockaddr_storage ac_aggr;
14228 if (ac_aggr.__ss_family)
14234 rm -f conftest.$ac_objext
14235 if { (ac_try="$ac_compile"
14236 case "(($ac_try" in
14237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14238 *) ac_try_echo
=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_compile") 2>conftest.er1
14243 grep -v '^ *+' conftest.er1
>conftest.err
14245 cat conftest.err
>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } && {
14248 test -z "$ac_c_werror_flag" ||
14249 test ! -s conftest.err
14250 } && test -s conftest.
$ac_objext; then
14251 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.
$ac_ext >&5
14256 cat >conftest.
$ac_ext <<_ACEOF
14259 cat confdefs.h
>>conftest.
$ac_ext
14260 cat >>conftest.
$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <sys/types.h>
14263 #ifdef HAVE_SYS_SOCKET_H
14264 #include <sys/socket.h>
14271 static struct sockaddr_storage ac_aggr;
14272 if (sizeof ac_aggr.__ss_family)
14278 rm -f conftest.
$ac_objext
14279 if { (ac_try
="$ac_compile"
14280 case "(($ac_try" in
14281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_compile") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } && {
14292 test -z "$ac_c_werror_flag" ||
14293 test ! -s conftest.err
14294 } && test -s conftest.$ac_objext; then
14295 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_cv_member_struct_sockaddr_storage___ss_family=no
14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14309 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14310 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14312 cat >>confdefs.h <<_ACEOF
14313 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14318 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14319 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14320 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 #include <sys/types.h>
14330 #ifdef HAVE_SYS_SOCKET_H
14331 #include <sys/socket.h>
14338 static struct sockaddr_storage ac_aggr;
14339 if (ac_aggr.ss_len)
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14349 *) ac_try_echo
=$ac_try;;
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_compile") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1
>conftest.err
14356 cat conftest.err
>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest.
$ac_objext; then
14362 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.
$ac_ext >&5
14367 cat >conftest.
$ac_ext <<_ACEOF
14370 cat confdefs.h
>>conftest.
$ac_ext
14371 cat >>conftest.
$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <sys/types.h>
14374 #ifdef HAVE_SYS_SOCKET_H
14375 #include <sys/socket.h>
14382 static struct sockaddr_storage ac_aggr;
14383 if (sizeof ac_aggr.ss_len)
14389 rm -f conftest.
$ac_objext
14390 if { (ac_try
="$ac_compile"
14391 case "(($ac_try" in
14392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest.$ac_objext; then
14406 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_cv_member_struct_sockaddr_storage_ss_len=no
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14420 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14421 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14429 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14430 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14431 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <sys/types.h>
14441 #ifdef HAVE_SYS_SOCKET_H
14442 #include <sys/socket.h>
14449 static struct sockaddr_storage ac_aggr;
14450 if (ac_aggr.__ss_len)
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14460 *) ac_try_echo
=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1
>conftest.err
14467 cat conftest.err
>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest.
$ac_objext; then
14473 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 cat >conftest.
$ac_ext <<_ACEOF
14481 cat confdefs.h
>>conftest.
$ac_ext
14482 cat >>conftest.
$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 #include <sys/types.h>
14485 #ifdef HAVE_SYS_SOCKET_H
14486 #include <sys/socket.h>
14493 static struct sockaddr_storage ac_aggr;
14494 if (sizeof ac_aggr.__ss_len)
14500 rm -f conftest.
$ac_objext
14501 if { (ac_try
="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.$ac_objext; then
14517 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14522 ac_cv_member_struct_sockaddr_storage___ss_len=no
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14531 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14532 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14534 cat >>confdefs.h <<_ACEOF
14535 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14540 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14541 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14542 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 #include <sys/types.h>
14552 #ifdef HAVE_SYS_SOCKET_H
14553 #include <sys/socket.h>
14560 static struct sockaddr ac_aggr;
14561 if (ac_aggr.sa_len)
14567 rm -f conftest.$ac_objext
14568 if { (ac_try="$ac_compile"
14569 case "(($ac_try" in
14570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14571 *) ac_try_echo
=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_compile") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest.
$ac_objext; then
14584 ac_cv_member_struct_sockaddr_sa_len
=yes
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.
$ac_ext >&5
14589 cat >conftest.
$ac_ext <<_ACEOF
14592 cat confdefs.h
>>conftest.
$ac_ext
14593 cat >>conftest.
$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <sys/types.h>
14596 #ifdef HAVE_SYS_SOCKET_H
14597 #include <sys/socket.h>
14604 static struct sockaddr ac_aggr;
14605 if (sizeof ac_aggr.sa_len)
14611 rm -f conftest.
$ac_objext
14612 if { (ac_try
="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 ac_cv_member_struct_sockaddr_sa_len=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_member_struct_sockaddr_sa_len=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14642 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14643 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14645 cat >>confdefs.h <<_ACEOF
14646 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14652 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14653 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14654 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <sys/types.h>
14664 #include <sys/socket.h>
14668 typedef struct addrinfo ac__type_new_;
14672 if ((ac__type_new_ *) 0)
14674 if (sizeof (ac__type_new_))
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14684 *) ac_try_echo
=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_compile") 2>conftest.er1
14689 grep -v '^ *+' conftest.er1
>conftest.err
14691 cat conftest.err
>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest.
$ac_objext; then
14697 ac_cv_type_struct_addrinfo
=yes
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.
$ac_ext >&5
14702 ac_cv_type_struct_addrinfo
=no
14705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14708 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14709 if test $ac_cv_type_struct_addrinfo = yes; then
14711 cat >>confdefs.h
<<_ACEOF
14712 #define HAVE_STRUCT_ADDRINFO 1
14719 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14720 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14721 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 cat >conftest.
$ac_ext <<_ACEOF
14727 cat confdefs.h
>>conftest.
$ac_ext
14728 cat >>conftest.
$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 #include <sys/param.h>
14731 #include <sys/types.h>
14732 #include <sys/socket.h>
14733 #include <sys/ucred.h>
14735 typedef struct cmsgcred ac__type_new_;
14739 if ((ac__type_new_ *) 0)
14741 if (sizeof (ac__type_new_))
14747 rm -f conftest.
$ac_objext
14748 if { (ac_try
="$ac_compile"
14749 case "(($ac_try" in
14750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_compile") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest.$ac_objext; then
14764 ac_cv_type_struct_cmsgcred=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_type_struct_cmsgcred=no
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14775 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14776 if test $ac_cv_type_struct_cmsgcred = yes; then
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_STRUCT_CMSGCRED 1
14784 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14785 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14786 if test "${ac_cv_type_struct_fcred+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <sys/param.h>
14796 #include <sys/types.h>
14797 #include <sys/socket.h>
14798 #include <sys/ucred.h>
14800 typedef struct fcred ac__type_new_;
14804 if ((ac__type_new_ *) 0)
14806 if (sizeof (ac__type_new_))
14812 rm -f conftest.$ac_objext
14813 if { (ac_try="$ac_compile"
14814 case "(($ac_try" in
14815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14816 *) ac_try_echo
=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1
>conftest.err
14823 cat conftest.err
>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest.
$ac_objext; then
14829 ac_cv_type_struct_fcred
=yes
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14834 ac_cv_type_struct_fcred
=no
14837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14840 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14841 if test $ac_cv_type_struct_fcred = yes; then
14843 cat >>confdefs.h
<<_ACEOF
14844 #define HAVE_STRUCT_FCRED 1
14849 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14850 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14851 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.
$ac_ext <<_ACEOF
14857 cat confdefs.h
>>conftest.
$ac_ext
14858 cat >>conftest.
$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/param.h>
14861 #include <sys/types.h>
14862 #include <sys/socket.h>
14863 #include <sys/ucred.h>
14865 typedef struct sockcred ac__type_new_;
14869 if ((ac__type_new_ *) 0)
14871 if (sizeof (ac__type_new_))
14877 rm -f conftest.
$ac_objext
14878 if { (ac_try
="$ac_compile"
14879 case "(($ac_try" in
14880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_compile") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } && {
14891 test -z "$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14893 } && test -s conftest.$ac_objext; then
14894 ac_cv_type_struct_sockcred=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_type_struct_sockcred=no
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14905 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14906 if test $ac_cv_type_struct_sockcred = yes; then
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_STRUCT_SOCKCRED 1
14916 { echo "$as_me:$LINENO: checking for struct option" >&5
14917 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14918 if test "${ac_cv_type_struct_option+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 #ifdef HAVE_GETOPT_H
14928 #include <getopt.h>
14931 typedef struct option ac__type_new_;
14935 if ((ac__type_new_ *) 0)
14937 if (sizeof (ac__type_new_))
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14947 *) ac_try_echo
=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_compile") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1
>conftest.err
14954 cat conftest.err
>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest.
$ac_objext; then
14960 ac_cv_type_struct_option
=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.
$ac_ext >&5
14965 ac_cv_type_struct_option
=no
14968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14971 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14972 if test $ac_cv_type_struct_option = yes; then
14974 cat >>confdefs.h
<<_ACEOF
14975 #define HAVE_STRUCT_OPTION 1
14982 if test "$with_zlib" = yes; then
14983 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14984 # did not). While we could work around the lack of z_streamp, it
14985 # seems unwise to encourage people to use such old zlib versions...
14986 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14987 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14988 if test "${ac_cv_type_z_streamp+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14999 typedef z_streamp ac__type_new_;
15003 if ((ac__type_new_ *) 0)
15005 if (sizeof (ac__type_new_))
15011 rm -f conftest.
$ac_objext
15012 if { (ac_try
="$ac_compile"
15013 case "(($ac_try" in
15014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_compile") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && {
15025 test -z "$ac_c_werror_flag" ||
15026 test ! -s conftest.err
15027 } && test -s conftest.$ac_objext; then
15028 ac_cv_type_z_streamp=yes
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 ac_cv_type_z_streamp=no
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15039 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15040 if test $ac_cv_type_z_streamp = yes; then
15043 { { echo "$as_me:$LINENO: error: zlib version is too old
15044 Use --without-zlib to disable zlib support." >&5
15045 echo "$as_me: error: zlib version is too old
15046 Use --without-zlib to disable zlib support." >&2;}
15047 { (exit 1); exit 1; }; }
15052 if test "$with_krb5" = yes; then
15053 # Check for differences between MIT and Heimdal (KTH) releases
15054 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15055 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15056 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15070 static krb5_ticket ac_aggr;
15071 if (ac_aggr.enc_part2)
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15081 *) ac_try_echo
=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_compile") 2>conftest.er1
15086 grep -v '^ *+' conftest.er1
>conftest.err
15088 cat conftest.err
>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest.
$ac_objext; then
15094 ac_cv_member_krb5_ticket_enc_part2
=yes
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.
$ac_ext >&5
15099 cat >conftest.
$ac_ext <<_ACEOF
15102 cat confdefs.h
>>conftest.
$ac_ext
15103 cat >>conftest.
$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15110 static krb5_ticket ac_aggr;
15111 if (sizeof ac_aggr.enc_part2)
15117 rm -f conftest.
$ac_objext
15118 if { (ac_try
="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 ac_cv_member_krb5_ticket_enc_part2=yes
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_cv_member_krb5_ticket_enc_part2=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15148 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15149 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_KRB5_TICKET_ENC_PART2 1
15157 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15158 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15159 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 cat >conftest.$ac_ext <<_ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15173 static krb5_ticket ac_aggr;
15174 if (ac_aggr.client)
15180 rm -f conftest.$ac_objext
15181 if { (ac_try="$ac_compile"
15182 case "(($ac_try" in
15183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15184 *) ac_try_echo
=$ac_try;;
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_compile") 2>conftest.er1
15189 grep -v '^ *+' conftest.er1
>conftest.err
15191 cat conftest.err
>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } && {
15194 test -z "$ac_c_werror_flag" ||
15195 test ! -s conftest.err
15196 } && test -s conftest.
$ac_objext; then
15197 ac_cv_member_krb5_ticket_client
=yes
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.
$ac_ext >&5
15202 cat >conftest.
$ac_ext <<_ACEOF
15205 cat confdefs.h
>>conftest.
$ac_ext
15206 cat >>conftest.
$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15213 static krb5_ticket ac_aggr;
15214 if (sizeof ac_aggr.client)
15220 rm -f conftest.
$ac_objext
15221 if { (ac_try
="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_compile") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest.$ac_objext; then
15237 ac_cv_member_krb5_ticket_client=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_cv_member_krb5_ticket_client=no
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15251 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15252 if test $ac_cv_member_krb5_ticket_client = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_KRB5_TICKET_CLIENT 1
15260 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15261 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15262 { (exit 1); exit 1; }; }
15267 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15268 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15269 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15283 static krb5_error ac_aggr;
15284 if (ac_aggr.text.data)
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15294 *) ac_try_echo
=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1
>conftest.err
15301 cat conftest.err
>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest.
$ac_objext; then
15307 ac_cv_member_krb5_error_text_data
=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.
$ac_ext >&5
15312 cat >conftest.
$ac_ext <<_ACEOF
15315 cat confdefs.h
>>conftest.
$ac_ext
15316 cat >>conftest.
$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15323 static krb5_error ac_aggr;
15324 if (sizeof ac_aggr.text.data)
15330 rm -f conftest.
$ac_objext
15331 if { (ac_try
="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest.$ac_objext; then
15347 ac_cv_member_krb5_error_text_data=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_cv_member_krb5_error_text_data=no
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15361 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15362 if test $ac_cv_member_krb5_error_text_data = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15370 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15371 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15372 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15386 static krb5_error ac_aggr;
15387 if (ac_aggr.e_data)
15393 rm -f conftest.$ac_objext
15394 if { (ac_try="$ac_compile"
15395 case "(($ac_try" in
15396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15397 *) ac_try_echo
=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_compile") 2>conftest.er1
15402 grep -v '^ *+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest.
$ac_objext; then
15410 ac_cv_member_krb5_error_e_data
=yes
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.
$ac_ext >&5
15415 cat >conftest.
$ac_ext <<_ACEOF
15418 cat confdefs.h
>>conftest.
$ac_ext
15419 cat >>conftest.
$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15426 static krb5_error ac_aggr;
15427 if (sizeof ac_aggr.e_data)
15433 rm -f conftest.
$ac_objext
15434 if { (ac_try
="$ac_compile"
15435 case "(($ac_try" in
15436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_compile") 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest.$ac_objext; then
15450 ac_cv_member_krb5_error_e_data=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_member_krb5_error_e_data=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15464 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15465 if test $ac_cv_member_krb5_error_e_data = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_KRB5_ERROR_E_DATA 1
15473 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15474 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15475 { (exit 1); exit 1; }; }
15481 # Win32 requires headers to be loaded for __stdcall, so can't use
15482 # AC_CHECK_FUNCS here.
15483 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15484 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15495 krb5_free_unparsed_name(NULL,NULL);
15500 rm -f conftest.$ac_objext conftest$ac_exeext
15501 if { (ac_try="$ac_link"
15502 case "(($ac_try" in
15503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15504 *) ac_try_echo
=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_link") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1
>conftest.err
15511 cat conftest.err
>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } && {
15514 test -z "$ac_c_werror_flag" ||
15515 test ! -s conftest.err
15516 } && test -s conftest
$ac_exeext &&
15517 $as_test_x conftest
$ac_exeext; then
15519 cat >>confdefs.h
<<\_ACEOF
15520 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15523 { echo "$as_me:$LINENO: result: yes" >&5
15524 echo "${ECHO_T}yes" >&6; }
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.
$ac_ext >&5
15529 { echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6; }
15533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15534 conftest
$ac_exeext conftest.
$ac_ext
15539 ## Functions, global variables
15542 { echo "$as_me:$LINENO: checking for int timezone" >&5
15543 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15544 if test "${pgac_cv_var_int_timezone+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 cat >conftest.
$ac_ext <<_ACEOF
15550 cat confdefs.h
>>conftest.
$ac_ext
15551 cat >>conftest.
$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15559 res = timezone / 60;
15561 res = _timezone / 60;
15567 rm -f conftest.
$ac_objext conftest
$ac_exeext
15568 if { (ac_try
="$ac_link"
15569 case "(($ac_try" in
15570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_link") 2>conftest.er1
15576 grep -v '^ *+' conftest.er1 >conftest.err
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && {
15581 test -z "$ac_c_werror_flag" ||
15582 test ! -s conftest.err
15583 } && test -s conftest$ac_exeext &&
15584 $as_test_x conftest$ac_exeext; then
15585 pgac_cv_var_int_timezone=yes
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 pgac_cv_var_int_timezone=no
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594 conftest$ac_exeext conftest.$ac_ext
15596 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15597 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15598 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_INT_TIMEZONE
15605 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15606 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15607 if test "${ac_cv_func_accept_return+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 if test "${ac_cv_func_accept_arg1+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 if test "${ac_cv_func_accept_arg2+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 if test "${ac_cv_func_accept_arg3+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15620 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15621 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15622 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 #ifdef HAVE_SYS_TYPES_H
15630 #include <sys/types.h>
15632 #ifdef HAVE_SYS_SOCKET_H
15633 #include <sys/socket.h>
15635 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15644 rm -f conftest.$ac_objext
15645 if { (ac_try="$ac_compile"
15646 case "(($ac_try" in
15647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15648 *) ac_try_echo
=$ac_try;;
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651 (eval "$ac_compile") 2>conftest.er1
15653 grep -v '^ *+' conftest.er1
>conftest.err
15655 cat conftest.err
>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } && {
15658 test -z "$ac_c_werror_flag" ||
15659 test ! -s conftest.err
15660 } && test -s conftest.
$ac_objext; then
15661 ac_not_found
=no
; break 4
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.
$ac_ext >&5
15669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15674 if test "$ac_not_found" = yes; then
15675 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15676 echo "$as_me: error: could not determine argument types" >&2;}
15677 { (exit 1); exit 1; }; }
15679 if test "$ac_cv_func_accept_arg3" = "void"; then
15680 ac_cv_func_accept_arg3
=int
15690 { 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
15691 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15693 cat >>confdefs.h
<<_ACEOF
15694 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15698 cat >>confdefs.h
<<_ACEOF
15699 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15703 cat >>confdefs.h
<<_ACEOF
15704 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15708 cat >>confdefs.h
<<_ACEOF
15709 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15713 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15714 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15715 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 cat >conftest.
$ac_ext <<_ACEOF
15721 cat confdefs.h
>>conftest.
$ac_ext
15722 cat >>conftest.
$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <sys/time.h>
15728 struct timeval *tp;
15729 struct timezone *tzp;
15730 gettimeofday(tp,tzp);
15735 rm -f conftest.
$ac_objext
15736 if { (ac_try
="$ac_compile"
15737 case "(($ac_try" in
15738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest.$ac_objext; then
15752 pgac_cv_func_gettimeofday_1arg=no
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 pgac_cv_func_gettimeofday_1arg=yes
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15763 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15764 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15766 cat >>confdefs.h <<\_ACEOF
15767 #define GETTIMEOFDAY_1ARG
15794 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15796 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810 #define $ac_func innocuous_$ac_func
15812 /* System header to define __stub macros and hopefully few prototypes,
15813 which can conflict with char $ac_func (); below.
15814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 <limits.h> exists even on freestanding compilers. */
15818 # include <limits.h>
15820 # include <assert.h>
15825 /* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
15832 /* The GNU C library defines this for functions which it implements
15833 to always fail with ENOSYS. Some functions are actually named
15834 something starting with __ and the normal name is an alias. */
15835 #if defined __stub_$ac_func || defined __stub___$ac_func
15842 return $ac_func ();
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15851 *) ac_try_echo
=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_link") 2>conftest.er1
15856 grep -v '^ *+' conftest.er1
>conftest.err
15858 cat conftest.err
>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest
$ac_exeext &&
15864 $as_test_x conftest
$ac_exeext; then
15865 eval "$as_ac_var=yes"
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.
$ac_ext >&5
15870 eval "$as_ac_var=no"
15873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15874 conftest
$ac_exeext conftest.
$ac_ext
15876 ac_res
=`eval echo '${'$as_ac_var'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880 cat >>confdefs.h
<<_ACEOF
15881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15888 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15889 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15890 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 cat >conftest.
$ac_ext <<_ACEOF
15896 cat confdefs.h
>>conftest.
$ac_ext
15897 cat >>conftest.
$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <unistd.h>
15912 rm -f conftest.
$ac_objext
15913 if { (ac_try
="$ac_compile"
15914 case "(($ac_try" in
15915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_compile") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest.$ac_objext; then
15929 ac_cv_have_decl_fdatasync=yes
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_cv_have_decl_fdatasync=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15940 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15941 if test $ac_cv_have_decl_fdatasync = yes; then
15943 cat >>confdefs.h <<_ACEOF
15944 #define HAVE_DECL_FDATASYNC 1
15949 cat >>confdefs.h <<_ACEOF
15950 #define HAVE_DECL_FDATASYNC 0
15957 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15958 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15959 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15973 #ifndef posix_fadvise
15974 (void) posix_fadvise;
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15985 *) ac_try_echo
=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_compile") 2>conftest.er1
15990 grep -v '^ *+' conftest.er1
>conftest.err
15992 cat conftest.err
>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest.
$ac_objext; then
15998 ac_cv_have_decl_posix_fadvise
=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.
$ac_ext >&5
16003 ac_cv_have_decl_posix_fadvise
=no
16006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16008 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16009 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16010 if test $ac_cv_have_decl_posix_fadvise = yes; then
16012 cat >>confdefs.h
<<_ACEOF
16013 #define HAVE_DECL_POSIX_FADVISE 1
16018 cat >>confdefs.h
<<_ACEOF
16019 #define HAVE_DECL_POSIX_FADVISE 0
16026 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16027 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16028 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 cat >conftest.
$ac_ext <<_ACEOF
16034 cat confdefs.h
>>conftest.
$ac_ext
16035 cat >>conftest.
$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16049 rm -f conftest.
$ac_objext
16050 if { (ac_try
="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_cv_have_decl_strlcat=yes
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_cv_have_decl_strlcat=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16077 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16078 if test $ac_cv_have_decl_strlcat = yes; then
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_DECL_STRLCAT 1
16086 cat >>confdefs.h <<_ACEOF
16087 #define HAVE_DECL_STRLCAT 0
16092 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16093 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16094 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16115 rm -f conftest.$ac_objext
16116 if { (ac_try="$ac_compile"
16117 case "(($ac_try" in
16118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16119 *) ac_try_echo
=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_compile") 2>conftest.er1
16124 grep -v '^ *+' conftest.er1
>conftest.err
16126 cat conftest.err
>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && {
16129 test -z "$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16131 } && test -s conftest.
$ac_objext; then
16132 ac_cv_have_decl_strlcpy
=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.
$ac_ext >&5
16137 ac_cv_have_decl_strlcpy
=no
16140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16142 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16143 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16144 if test $ac_cv_have_decl_strlcpy = yes; then
16146 cat >>confdefs.h
<<_ACEOF
16147 #define HAVE_DECL_STRLCPY 1
16152 cat >>confdefs.h
<<_ACEOF
16153 #define HAVE_DECL_STRLCPY 0
16160 # This is probably only present on Darwin, but may as well check always
16161 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16162 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16163 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 cat >conftest.
$ac_ext <<_ACEOF
16169 cat confdefs.h
>>conftest.
$ac_ext
16170 cat >>conftest.
$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16177 #ifndef F_FULLFSYNC
16178 (void) F_FULLFSYNC;
16185 rm -f conftest.
$ac_objext
16186 if { (ac_try
="$ac_compile"
16187 case "(($ac_try" in
16188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_compile") 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } && {
16199 test -z "$ac_c_werror_flag" ||
16200 test ! -s conftest.err
16201 } && test -s conftest.$ac_objext; then
16202 ac_cv_have_decl_F_FULLFSYNC=yes
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 ac_cv_have_decl_F_FULLFSYNC=no
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16213 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16214 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16216 cat >>confdefs.h <<_ACEOF
16217 #define HAVE_DECL_F_FULLFSYNC 1
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE_DECL_F_FULLFSYNC 0
16232 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16233 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16234 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 #include <netinet/in.h>
16246 typedef struct sockaddr_in6 ac__type_new_;
16250 if ((ac__type_new_ *) 0)
16252 if (sizeof (ac__type_new_))
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16262 *) ac_try_echo
=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1
>conftest.err
16269 cat conftest.err
>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest.
$ac_objext; then
16275 ac_cv_type_struct_sockaddr_in6
=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.
$ac_ext >&5
16280 ac_cv_type_struct_sockaddr_in6
=no
16283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16286 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16287 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16289 cat >>confdefs.h
<<\_ACEOF
16290 #define HAVE_IPV6 1
16298 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16299 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16300 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 cat >conftest.
$ac_ext <<_ACEOF
16306 cat confdefs.h
>>conftest.
$ac_ext
16307 cat >>conftest.
$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <machine/vmparam.h>
16310 #include <sys/exec.h>
16315 PS_STRINGS->ps_nargvstr = 1;
16316 PS_STRINGS->ps_argvstr = "foo";
16321 rm -f conftest.
$ac_objext conftest
$ac_exeext
16322 if { (ac_try
="$ac_link"
16323 case "(($ac_try" in
16324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_link") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest$ac_exeext &&
16338 $as_test_x conftest$ac_exeext; then
16339 pgac_cv_var_PS_STRINGS=yes
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 pgac_cv_var_PS_STRINGS=no
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 conftest$ac_exeext conftest.$ac_ext
16350 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16351 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16352 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16354 cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_PS_STRINGS
16361 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16362 # is missing. Yes, there are machines that have only one. We may
16363 # also decide to use snprintf.c if snprintf() is present but does not
16364 # have all the features we need --- see below.
16366 if test "$PORTNAME" = "win32"; then
16367 # Win32 gets snprintf.c built unconditionally.
16369 # To properly translate all NLS languages strings, we must support the
16370 # *printf() %$ format, which allows *printf() arguments to be selected
16371 # by position in the translated string.
16373 # libintl versions < 0.13 use the native *printf() functions, and Win32
16374 # *printf() doesn't understand %$, so we must use our /port versions,
16375 # which do understand %$. libintl versions >= 0.13 include their own
16376 # *printf versions on Win32. The libintl 0.13 release note text is:
16378 # C format strings with positions, as they arise when a translator
16379 # needs to reorder a sentence, are now supported on all platforms.
16380 # On those few platforms (NetBSD and Woe32) for which the native
16381 # printf()/fprintf()/... functions don't support such format
16382 # strings, replacements are provided through <libintl.h>.
16384 # We could use libintl >= 0.13's *printf() if we were sure that we had
16385 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16386 # to guarantee that, it is best to just use our own, so we are sure to
16387 # get %$ support. In include/port.h we disable the *printf() macros
16388 # that might have been defined by libintl.
16390 # We do this unconditionally whether NLS is used or not so we are sure
16391 # that all Win32 libraries and binaries behave the same.
16392 pgac_need_repl_snprintf=yes
16394 pgac_need_repl_snprintf=no
16396 for ac_func in snprintf
16398 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16412 #define $ac_func innocuous_$ac_func
16414 /* System header to define __stub macros and hopefully few prototypes,
16415 which can conflict with char $ac_func (); below.
16416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16417 <limits.h> exists even on freestanding compilers. */
16420 # include <limits.h>
16422 # include <assert.h>
16427 /* Override any GCC internal prototype to avoid an error.
16428 Use char because int might match the return type of a GCC
16429 builtin and then its argument prototype would still apply. */
16434 /* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437 #if defined __stub_$ac_func || defined __stub___$ac_func
16444 return $ac_func ();
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16453 *) ac_try_echo
=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_link") 2>conftest.er1
16458 grep -v '^ *+' conftest.er1
>conftest.err
16460 cat conftest.err
>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest
$ac_exeext &&
16466 $as_test_x conftest
$ac_exeext; then
16467 eval "$as_ac_var=yes"
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.
$ac_ext >&5
16472 eval "$as_ac_var=no"
16475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16476 conftest
$ac_exeext conftest.
$ac_ext
16478 ac_res
=`eval echo '${'$as_ac_var'}'`
16479 { echo "$as_me:$LINENO: result: $ac_res" >&5
16480 echo "${ECHO_T}$ac_res" >&6; }
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h
<<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16487 pgac_need_repl_snprintf
=yes
16492 for ac_func
in vsnprintf
16494 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16497 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 cat >conftest.
$ac_ext <<_ACEOF
16503 cat confdefs.h
>>conftest.
$ac_ext
16504 cat >>conftest.
$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16508 #define $ac_func innocuous_$ac_func
16510 /* System header to define __stub macros and hopefully few prototypes,
16511 which can conflict with char $ac_func (); below.
16512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16513 <limits.h> exists even on freestanding compilers. */
16516 # include <limits.h>
16518 # include <assert.h>
16523 /* Override any GCC internal prototype to avoid an error.
16524 Use char because int might match the return type of a GCC
16525 builtin and then its argument prototype would still apply. */
16530 /* The GNU C library defines this for functions which it implements
16531 to always fail with ENOSYS. Some functions are actually named
16532 something starting with __ and the normal name is an alias. */
16533 #if defined __stub_$ac_func || defined __stub___$ac_func
16540 return $ac_func ();
16545 rm -f conftest.
$ac_objext conftest
$ac_exeext
16546 if { (ac_try
="$ac_link"
16547 case "(($ac_try" in
16548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_link") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && {
16559 test -z "$ac_c_werror_flag" ||
16560 test ! -s conftest.err
16561 } && test -s conftest$ac_exeext &&
16562 $as_test_x conftest$ac_exeext; then
16563 eval "$as_ac_var=yes"
16565 echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16568 eval "$as_ac_var=no"
16571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16572 conftest$ac_exeext conftest.$ac_ext
16574 ac_res=`eval echo '${'$as_ac_var'}'`
16575 { echo "$as_me:$LINENO: result: $ac_res" >&5
16576 echo "${ECHO_T}$ac_res" >&6; }
16577 if test `eval echo '${'$as_ac_var'}'` = yes; then
16578 cat >>confdefs.h <<_ACEOF
16579 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16583 pgac_need_repl_snprintf=yes
16590 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16591 # include/c.h will provide declarations. Note this is a separate test
16592 # from whether the functions exist in the C library --- there are
16593 # systems that have the functions but don't bother to declare them :-(
16595 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16596 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16597 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 $ac_includes_default
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16622 *) ac_try_echo
=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1
>conftest.err
16629 cat conftest.err
>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest.
$ac_objext; then
16635 ac_cv_have_decl_snprintf
=yes
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.
$ac_ext >&5
16640 ac_cv_have_decl_snprintf
=no
16643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16645 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16646 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16647 if test $ac_cv_have_decl_snprintf = yes; then
16649 cat >>confdefs.h
<<_ACEOF
16650 #define HAVE_DECL_SNPRINTF 1
16655 cat >>confdefs.h
<<_ACEOF
16656 #define HAVE_DECL_SNPRINTF 0
16661 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16662 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16663 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 cat >conftest.
$ac_ext <<_ACEOF
16669 cat confdefs.h
>>conftest.
$ac_ext
16670 cat >>conftest.
$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 $ac_includes_default
16684 rm -f conftest.
$ac_objext
16685 if { (ac_try
="$ac_compile"
16686 case "(($ac_try" in
16687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_compile") 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && {
16698 test -z "$ac_c_werror_flag" ||
16699 test ! -s conftest.err
16700 } && test -s conftest.$ac_objext; then
16701 ac_cv_have_decl_vsnprintf=yes
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_cv_have_decl_vsnprintf=no
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16712 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16713 if test $ac_cv_have_decl_vsnprintf = yes; then
16715 cat >>confdefs.h <<_ACEOF
16716 #define HAVE_DECL_VSNPRINTF 1
16721 cat >>confdefs.h <<_ACEOF
16722 #define HAVE_DECL_VSNPRINTF 0
16731 { echo "$as_me:$LINENO: checking for isinf" >&5
16732 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16733 if test "${ac_cv_func_isinf+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16744 double glob_double;
16749 return isinf(glob_double) ? 0 : 1;
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16758 *) ac_try_echo
=$ac_try;;
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>conftest.er1
16763 grep -v '^ *+' conftest.er1
>conftest.err
16765 cat conftest.err
>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } && {
16768 test -z "$ac_c_werror_flag" ||
16769 test ! -s conftest.err
16770 } && test -s conftest
$ac_exeext &&
16771 $as_test_x conftest
$ac_exeext; then
16772 ac_cv_func_isinf
=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.
$ac_ext >&5
16777 ac_cv_func_isinf
=no
16780 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16781 conftest
$ac_exeext conftest.
$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16784 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16786 if test $ac_cv_func_isinf = yes ; then
16788 cat >>confdefs.h
<<\_ACEOF
16789 #define HAVE_ISINF 1
16793 case " $LIBOBJS " in
16794 *" isinf.$ac_objext "* ) ;;
16795 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16799 # Look for a way to implement a substitute for isinf()
16804 for ac_func
in fpclass fp_class fp_class_d class
16806 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16809 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 cat >conftest.
$ac_ext <<_ACEOF
16815 cat confdefs.h
>>conftest.
$ac_ext
16816 cat >>conftest.
$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16820 #define $ac_func innocuous_$ac_func
16822 /* System header to define __stub macros and hopefully few prototypes,
16823 which can conflict with char $ac_func (); below.
16824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16825 <limits.h> exists even on freestanding compilers. */
16828 # include <limits.h>
16830 # include <assert.h>
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16842 /* The GNU C library defines this for functions which it implements
16843 to always fail with ENOSYS. Some functions are actually named
16844 something starting with __ and the normal name is an alias. */
16845 #if defined __stub_$ac_func || defined __stub___$ac_func
16852 return $ac_func ();
16857 rm -f conftest.
$ac_objext conftest
$ac_exeext
16858 if { (ac_try
="$ac_link"
16859 case "(($ac_try" in
16860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_link") 2>conftest.er1
16866 grep -v '^ *+' conftest.er1 >conftest.err
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } && {
16871 test -z "$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 } && test -s conftest$ac_exeext &&
16874 $as_test_x conftest$ac_exeext; then
16875 eval "$as_ac_var=yes"
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 eval "$as_ac_var=no"
16883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16884 conftest$ac_exeext conftest.$ac_ext
16886 ac_res=`eval echo '${'$as_ac_var'}'`
16887 { echo "$as_me:$LINENO: result: $ac_res" >&5
16888 echo "${ECHO_T}$ac_res" >&6; }
16889 if test `eval echo '${'$as_ac_var'}'` = yes; then
16890 cat >>confdefs.h <<_ACEOF
16891 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16899 # Some versions of libedit contain strlcpy(); so disregard that library while
16900 # checking for these standard libc functions.
16901 pgac_save_LIBS="$LIBS"
16902 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16918 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16920 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16942 # include <limits.h>
16944 # include <assert.h>
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16966 return $ac_func ();
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16975 *) ac_try_echo
=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1
>conftest.err
16982 cat conftest.err
>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && {
16985 test -z "$ac_c_werror_flag" ||
16986 test ! -s conftest.err
16987 } && test -s conftest
$ac_exeext &&
16988 $as_test_x conftest
$ac_exeext; then
16989 eval "$as_ac_var=yes"
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.
$ac_ext >&5
16994 eval "$as_ac_var=no"
16997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16998 conftest
$ac_exeext conftest.
$ac_ext
17000 ac_res
=`eval echo '${'$as_ac_var'}'`
17001 { echo "$as_me:$LINENO: result: $ac_res" >&5
17002 echo "${ECHO_T}$ac_res" >&6; }
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004 cat >>confdefs.h
<<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009 case " $LIBOBJS " in
17010 *" $ac_func.$ac_objext "* ) ;;
17011 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17020 LIBS
="$pgac_save_LIBS"
17022 # System's version of getaddrinfo(), if any, may be used only if we found
17023 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17024 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17025 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17026 # because we want to use our own getaddrinfo.c on Windows anyway.)
17027 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
17029 for ac_func
in getaddrinfo
17031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 cat >conftest.
$ac_ext <<_ACEOF
17040 cat confdefs.h
>>conftest.
$ac_ext
17041 cat >>conftest.
$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045 #define $ac_func innocuous_$ac_func
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17053 # include <limits.h>
17055 # include <assert.h>
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 return $ac_func ();
17082 rm -f conftest.
$ac_objext conftest
$ac_exeext
17083 if { (ac_try
="$ac_link"
17084 case "(($ac_try" in
17085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest$ac_exeext &&
17099 $as_test_x conftest$ac_exeext; then
17100 eval "$as_ac_var=yes"
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 eval "$as_ac_var=no"
17108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17109 conftest$ac_exeext conftest.$ac_ext
17111 ac_res=`eval echo '${'$as_ac_var'}'`
17112 { echo "$as_me:$LINENO: result: $ac_res" >&5
17113 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_var'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17120 case " $LIBOBJS " in
17121 *" $ac_func.$ac_objext "* ) ;;
17122 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17131 case " $LIBOBJS " in
17132 *" getaddrinfo.$ac_objext "* ) ;;
17133 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17139 # Similarly, use system's getopt_long() only if system provides struct option.
17140 # Solaris' getopt() doesn't do what we want for long options, so always use
17141 # our versions on that platform.
17142 if test "$PORTNAME" = "solaris"; then
17143 case " $LIBOBJS " in
17144 *" getopt.$ac_objext "* ) ;;
17145 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17149 case " $LIBOBJS " in
17150 *" getopt_long.$ac_objext "* ) ;;
17151 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17155 elif test x"$ac_cv_type_struct_option" = xyes ; then
17157 for ac_func in getopt_long
17159 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17173 #define $ac_func innocuous_$ac_func
17175 /* System header to define __stub macros and hopefully few prototypes,
17176 which can conflict with char $ac_func (); below.
17177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178 <limits.h> exists even on freestanding compilers. */
17181 # include <limits.h>
17183 # include <assert.h>
17188 /* Override any GCC internal prototype to avoid an error.
17189 Use char because int might match the return type of a GCC
17190 builtin and then its argument prototype would still apply. */
17195 /* The GNU C library defines this for functions which it implements
17196 to always fail with ENOSYS. Some functions are actually named
17197 something starting with __ and the normal name is an alias. */
17198 #if defined __stub_$ac_func || defined __stub___$ac_func
17205 return $ac_func ();
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (ac_try="$ac_link"
17212 case "(($ac_try" in
17213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17214 *) ac_try_echo
=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_link") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1
>conftest.err
17221 cat conftest.err
>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } && {
17224 test -z "$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17226 } && test -s conftest
$ac_exeext &&
17227 $as_test_x conftest
$ac_exeext; then
17228 eval "$as_ac_var=yes"
17230 echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.
$ac_ext >&5
17233 eval "$as_ac_var=no"
17236 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17237 conftest
$ac_exeext conftest.
$ac_ext
17239 ac_res
=`eval echo '${'$as_ac_var'}'`
17240 { echo "$as_me:$LINENO: result: $ac_res" >&5
17241 echo "${ECHO_T}$ac_res" >&6; }
17242 if test `eval echo '${'$as_ac_var'}'` = yes; then
17243 cat >>confdefs.h
<<_ACEOF
17244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 case " $LIBOBJS " in
17249 *" $ac_func.$ac_objext "* ) ;;
17250 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17259 case " $LIBOBJS " in
17260 *" getopt_long.$ac_objext "* ) ;;
17261 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17268 if test "$PORTNAME" = "win32"; then
17270 for ac_func
in gettimeofday
17272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17275 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.
$ac_ext <<_ACEOF
17281 cat confdefs.h
>>conftest.
$ac_ext
17282 cat >>conftest.
$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17286 #define $ac_func innocuous_$ac_func
17288 /* System header to define __stub macros and hopefully few prototypes,
17289 which can conflict with char $ac_func (); below.
17290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17291 <limits.h> exists even on freestanding compilers. */
17294 # include <limits.h>
17296 # include <assert.h>
17301 /* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17308 /* The GNU C library defines this for functions which it implements
17309 to always fail with ENOSYS. Some functions are actually named
17310 something starting with __ and the normal name is an alias. */
17311 #if defined __stub_$ac_func || defined __stub___$ac_func
17318 return $ac_func ();
17323 rm -f conftest.
$ac_objext conftest
$ac_exeext
17324 if { (ac_try
="$ac_link"
17325 case "(($ac_try" in
17326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_link") 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest$ac_exeext &&
17340 $as_test_x conftest$ac_exeext; then
17341 eval "$as_ac_var=yes"
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 eval "$as_ac_var=no"
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350 conftest$ac_exeext conftest.$ac_ext
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17361 case " $LIBOBJS " in
17362 *" $ac_func.$ac_objext "* ) ;;
17363 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17371 case " $LIBOBJS " in
17372 *" kill.$ac_objext "* ) ;;
17373 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17377 case " $LIBOBJS " in
17378 *" open.$ac_objext "* ) ;;
17379 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17383 case " $LIBOBJS " in
17384 *" rand.$ac_objext "* ) ;;
17385 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17389 case " $LIBOBJS " in
17390 *" win32error.$ac_objext "* ) ;;
17391 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_SYMLINK 1
17402 if test "$with_readline" = yes; then
17403 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17404 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17412 #ifdef HAVE_READLINE_READLINE_H
17413 # include <readline/readline.h>
17414 #elif defined(HAVE_READLINE_H)
17415 # include <readline.h>
17421 rl_completion_append_character = 'x';
17426 rm -f conftest.$ac_objext conftest$ac_exeext
17427 if { (ac_try="$ac_link"
17428 case "(($ac_try" in
17429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17430 *) ac_try_echo
=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_link") 2>conftest.er1
17435 grep -v '^ *+' conftest.er1
>conftest.err
17437 cat conftest.err
>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest
$ac_exeext &&
17443 $as_test_x conftest
$ac_exeext; then
17444 { echo "$as_me:$LINENO: result: yes" >&5
17445 echo "${ECHO_T}yes" >&6; }
17447 cat >>confdefs.h
<<\_ACEOF
17448 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.
$ac_ext >&5
17455 { echo "$as_me:$LINENO: result: no" >&5
17456 echo "${ECHO_T}no" >&6; }
17459 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17460 conftest
$ac_exeext conftest.
$ac_ext
17463 for ac_func
in rl_completion_matches rl_filename_completion_function
17465 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17468 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 cat >conftest.
$ac_ext <<_ACEOF
17474 cat confdefs.h
>>conftest.
$ac_ext
17475 cat >>conftest.
$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17479 #define $ac_func innocuous_$ac_func
17481 /* System header to define __stub macros and hopefully few prototypes,
17482 which can conflict with char $ac_func (); below.
17483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484 <limits.h> exists even on freestanding compilers. */
17487 # include <limits.h>
17489 # include <assert.h>
17494 /* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17501 /* The GNU C library defines this for functions which it implements
17502 to always fail with ENOSYS. Some functions are actually named
17503 something starting with __ and the normal name is an alias. */
17504 #if defined __stub_$ac_func || defined __stub___$ac_func
17511 return $ac_func ();
17516 rm -f conftest.
$ac_objext conftest
$ac_exeext
17517 if { (ac_try
="$ac_link"
17518 case "(($ac_try" in
17519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 eval "$as_ac_var=yes"
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 eval "$as_ac_var=no"
17542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543 conftest$ac_exeext conftest.$ac_ext
17545 ac_res=`eval echo '${'$as_ac_var'}'`
17546 { echo "$as_me:$LINENO: result: $ac_res" >&5
17547 echo "${ECHO_T}$ac_res" >&6; }
17548 if test `eval echo '${'$as_ac_var'}'` = yes; then
17549 cat >>confdefs.h <<_ACEOF
17550 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17557 for ac_func in replace_history_entry
17559 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 return $ac_func ();
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17614 *) ac_try_echo
=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1
>conftest.err
17621 cat conftest.err
>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest
$ac_exeext &&
17627 $as_test_x conftest
$ac_exeext; then
17628 eval "$as_ac_var=yes"
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.
$ac_ext >&5
17633 eval "$as_ac_var=no"
17636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17637 conftest
$ac_exeext conftest.
$ac_ext
17639 ac_res
=`eval echo '${'$as_ac_var'}'`
17640 { echo "$as_me:$LINENO: result: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643 cat >>confdefs.h
<<_ACEOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17654 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17655 cat >conftest.
$ac_ext <<_ACEOF
17658 cat confdefs.h
>>conftest.
$ac_ext
17659 cat >>conftest.
$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <setjmp.h>
17665 sigjmp_buf x; sigsetjmp(x, 1);
17670 rm -f conftest.
$ac_objext conftest
$ac_exeext
17671 if { (ac_try
="$ac_link"
17672 case "(($ac_try" in
17673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_link") 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && {
17684 test -z "$ac_c_werror_flag" ||
17685 test ! -s conftest.err
17686 } && test -s conftest$ac_exeext &&
17687 $as_test_x conftest$ac_exeext; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_SIGSETJMP 1
17693 { echo "$as_me:$LINENO: result: yes" >&5
17694 echo "${ECHO_T}yes" >&6; }
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 { echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6; }
17703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704 conftest$ac_exeext conftest.$ac_ext
17706 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17707 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17708 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 #include <signal.h>
17718 /* NetBSD declares sys_siglist in unistd.h. */
17719 #ifdef HAVE_UNISTD_H
17720 # include <unistd.h>
17727 #ifndef sys_siglist
17728 (void) sys_siglist;
17735 rm -f conftest.$ac_objext
17736 if { (ac_try="$ac_compile"
17737 case "(($ac_try" in
17738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17739 *) ac_try_echo
=$ac_try;;
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_compile") 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest.
$ac_objext; then
17752 ac_cv_have_decl_sys_siglist
=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.
$ac_ext >&5
17757 ac_cv_have_decl_sys_siglist
=no
17760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17762 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17763 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17764 if test $ac_cv_have_decl_sys_siglist = yes; then
17766 cat >>confdefs.h
<<_ACEOF
17767 #define HAVE_DECL_SYS_SIGLIST 1
17772 cat >>confdefs.h
<<_ACEOF
17773 #define HAVE_DECL_SYS_SIGLIST 0
17782 { echo "$as_me:$LINENO: checking for syslog" >&5
17783 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17784 if test "${ac_cv_func_syslog+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.
$ac_ext <<_ACEOF
17790 cat confdefs.h
>>conftest.
$ac_ext
17791 cat >>conftest.
$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define syslog innocuous_syslog
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char syslog (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_syslog || defined __stub___syslog
17832 rm -f conftest.
$ac_objext conftest
$ac_exeext
17833 if { (ac_try
="$ac_link"
17834 case "(($ac_try" in
17835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 ac_cv_func_syslog=yes
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 ac_cv_func_syslog=no
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17861 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17862 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17863 if test $ac_cv_func_syslog = yes; then
17864 if test "${ac_cv_header_syslog_h+set}" = set; then
17865 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17866 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17867 if test "${ac_cv_header_syslog_h+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17871 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17875 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <syslog.h>
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17889 *) ac_try_echo
=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1
>conftest.err
17896 cat conftest.err
>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.
$ac_objext; then
17902 ac_header_compiler
=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.
$ac_ext >&5
17907 ac_header_compiler
=no
17910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17916 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17917 cat >conftest.
$ac_ext <<_ACEOF
17920 cat confdefs.h
>>conftest.
$ac_ext
17921 cat >>conftest.
$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <syslog.h>
17925 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17926 case "(($ac_try" in
17927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17941 ac_header_preproc=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_header_preproc=no
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17956 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17957 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17959 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17960 ac_header_preproc=yes
17963 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17964 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17966 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17968 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17970 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17974 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17976 ## ---------------------------------------- ##
17977 ## Report this to pgsql-bugs@postgresql.org ##
17978 ## ---------------------------------------- ##
17980 ) | sed "s/^/$as_me: WARNING: /" >&2
17983 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17984 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17985 if test "${ac_cv_header_syslog_h+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 ac_cv_header_syslog_h=$ac_header_preproc
17990 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17991 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17994 if test $ac_cv_header_syslog_h = yes; then
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_SYSLOG 1
18006 { echo "$as_me:$LINENO: checking for optreset" >&5
18007 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18008 if test "${pgac_cv_var_int_optreset+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <unistd.h>
18021 extern int optreset; optreset = 1;
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18030 *) ac_try_echo
=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18035 grep -v '^ *+' conftest.er1
>conftest.err
18037 cat conftest.err
>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest
$ac_exeext &&
18043 $as_test_x conftest
$ac_exeext; then
18044 pgac_cv_var_int_optreset
=yes
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.
$ac_ext >&5
18049 pgac_cv_var_int_optreset
=no
18052 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18053 conftest
$ac_exeext conftest.
$ac_ext
18055 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18056 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18057 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
18059 cat >>confdefs.h
<<\_ACEOF
18060 #define HAVE_INT_OPTRESET 1
18067 for ac_func
in strtoll strtoq
18069 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.
$ac_ext <<_ACEOF
18078 cat confdefs.h
>>conftest.
$ac_ext
18079 cat >>conftest.
$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18083 #define $ac_func innocuous_$ac_func
18085 /* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char $ac_func (); below.
18087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088 <limits.h> exists even on freestanding compilers. */
18091 # include <limits.h>
18093 # include <assert.h>
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18105 /* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18115 return $ac_func ();
18120 rm -f conftest.
$ac_objext conftest
$ac_exeext
18121 if { (ac_try
="$ac_link"
18122 case "(($ac_try" in
18123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_c_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest$ac_exeext &&
18137 $as_test_x conftest$ac_exeext; then
18138 eval "$as_ac_var=yes"
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 eval "$as_ac_var=no"
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147 conftest$ac_exeext conftest.$ac_ext
18149 ac_res=`eval echo '${'$as_ac_var'}'`
18150 { echo "$as_me:$LINENO: result: $ac_res" >&5
18151 echo "${ECHO_T}$ac_res" >&6; }
18152 if test `eval echo '${'$as_ac_var'}'` = yes; then
18153 cat >>confdefs.h <<_ACEOF
18154 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18162 for ac_func in strtoull strtouq
18164 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define $ac_func innocuous_$ac_func
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18186 # include <limits.h>
18188 # include <assert.h>
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18210 return $ac_func ();
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18219 *) ac_try_echo
=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1
>conftest.err
18226 cat conftest.err
>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest
$ac_exeext &&
18232 $as_test_x conftest
$ac_exeext; then
18233 eval "$as_ac_var=yes"
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.
$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18242 conftest
$ac_exeext conftest.
$ac_ext
18244 ac_res
=`eval echo '${'$as_ac_var'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248 cat >>confdefs.h
<<_ACEOF
18249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18256 # Check for one of atexit() or on_exit()
18258 for ac_func
in atexit
18260 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.
$ac_ext <<_ACEOF
18269 cat confdefs.h
>>conftest.
$ac_ext
18270 cat >>conftest.
$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18306 return $ac_func ();
18311 rm -f conftest.
$ac_objext conftest
$ac_exeext
18312 if { (ac_try
="$ac_link"
18313 case "(($ac_try" in
18314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest$ac_exeext &&
18328 $as_test_x conftest$ac_exeext; then
18329 eval "$as_ac_var=yes"
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18334 eval "$as_ac_var=no"
18337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18338 conftest$ac_exeext conftest.$ac_ext
18340 ac_res=`eval echo '${'$as_ac_var'}'`
18341 { echo "$as_me:$LINENO: result: $ac_res" >&5
18342 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_var'}'` = yes; then
18344 cat >>confdefs.h <<_ACEOF
18345 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18350 for ac_func in on_exit
18352 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 cat >conftest.$ac_ext <<_ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18366 #define $ac_func innocuous_$ac_func
18368 /* System header to define __stub macros and hopefully few prototypes,
18369 which can conflict with char $ac_func (); below.
18370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18371 <limits.h> exists even on freestanding compilers. */
18374 # include <limits.h>
18376 # include <assert.h>
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18388 /* The GNU C library defines this for functions which it implements
18389 to always fail with ENOSYS. Some functions are actually named
18390 something starting with __ and the normal name is an alias. */
18391 #if defined __stub_$ac_func || defined __stub___$ac_func
18398 return $ac_func ();
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18407 *) ac_try_echo
=$ac_try;;
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_link") 2>conftest.er1
18412 grep -v '^ *+' conftest.er1
>conftest.err
18414 cat conftest.err
>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } && {
18417 test -z "$ac_c_werror_flag" ||
18418 test ! -s conftest.err
18419 } && test -s conftest
$ac_exeext &&
18420 $as_test_x conftest
$ac_exeext; then
18421 eval "$as_ac_var=yes"
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.
$ac_ext >&5
18426 eval "$as_ac_var=no"
18429 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18430 conftest
$ac_exeext conftest.
$ac_ext
18432 ac_res
=`eval echo '${'$as_ac_var'}'`
18433 { echo "$as_me:$LINENO: result: $ac_res" >&5
18434 echo "${ECHO_T}$ac_res" >&6; }
18435 if test `eval echo '${'$as_ac_var'}'` = yes; then
18436 cat >>confdefs.h
<<_ACEOF
18437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18441 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18442 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18443 { (exit 1); exit 1; }; }
18452 for ac_func
in fseeko
18454 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18457 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 cat >conftest.
$ac_ext <<_ACEOF
18463 cat confdefs.h
>>conftest.
$ac_ext
18464 cat >>conftest.
$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18468 #define $ac_func innocuous_$ac_func
18470 /* System header to define __stub macros and hopefully few prototypes,
18471 which can conflict with char $ac_func (); below.
18472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18473 <limits.h> exists even on freestanding compilers. */
18476 # include <limits.h>
18478 # include <assert.h>
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18490 /* The GNU C library defines this for functions which it implements
18491 to always fail with ENOSYS. Some functions are actually named
18492 something starting with __ and the normal name is an alias. */
18493 #if defined __stub_$ac_func || defined __stub___$ac_func
18500 return $ac_func ();
18505 rm -f conftest.
$ac_objext conftest
$ac_exeext
18506 if { (ac_try
="$ac_link"
18507 case "(($ac_try" in
18508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_link") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest$ac_exeext &&
18522 $as_test_x conftest$ac_exeext; then
18523 eval "$as_ac_var=yes"
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 eval "$as_ac_var=no"
18531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18532 conftest$ac_exeext conftest.$ac_ext
18534 ac_res=`eval echo '${'$as_ac_var'}'`
18535 { echo "$as_me:$LINENO: result: $ac_res" >&5
18536 echo "${ECHO_T}$ac_res" >&6; }
18537 if test `eval echo '${'$as_ac_var'}'` = yes; then
18538 cat >>confdefs.h <<_ACEOF
18539 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18543 case " $LIBOBJS " in
18544 *" $ac_func.$ac_objext "* ) ;;
18545 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18554 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_FSEEKO 1
18561 ac_cv_func_fseeko=yes;;
18563 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18564 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18565 if test "${ac_cv_sys_largefile_source+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <sys/types.h> /* for off_t */
18580 int (*fp) (FILE *, off_t, int) = fseeko;
18581 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18590 *) ac_try_echo
=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1
>conftest.err
18597 cat conftest.err
>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest
$ac_exeext &&
18603 $as_test_x conftest
$ac_exeext; then
18604 ac_cv_sys_largefile_source
=no
; break
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.
$ac_ext >&5
18612 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18613 conftest
$ac_exeext conftest.
$ac_ext
18614 cat >conftest.
$ac_ext <<_ACEOF
18617 cat confdefs.h
>>conftest.
$ac_ext
18618 cat >>conftest.
$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18620 #define _LARGEFILE_SOURCE 1
18621 #include <sys/types.h> /* for off_t */
18626 int (*fp) (FILE *, off_t, int) = fseeko;
18627 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18632 rm -f conftest.
$ac_objext conftest
$ac_exeext
18633 if { (ac_try
="$ac_link"
18634 case "(($ac_try" in
18635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_link") 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest$ac_exeext &&
18649 $as_test_x conftest$ac_exeext; then
18650 ac_cv_sys_largefile_source=1; break
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18659 conftest$ac_exeext conftest.$ac_ext
18660 ac_cv_sys_largefile_source=unknown
18664 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18665 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18666 case $ac_cv_sys_largefile_source in #(
18669 cat >>confdefs.h <<_ACEOF
18670 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18676 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18677 # in glibc 2.1.3, but that breaks too many other things.
18678 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18679 if test $ac_cv_sys_largefile_source != unknown; then
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_FSEEKO 1
18693 # For each platform, we need to know about any special compile and link
18694 # libraries, and whether the normal C function names are thread-safe.
18695 # See the comment at the top of src/port/thread.c for more information.
18696 # WIN32 doesn't need the pthread tests; it always uses threads
18697 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18709 # We used to check for pthread.h first, but this fails if pthread.h
18710 # requires special compiler flags (e.g. on True64 or Sequent).
18711 # It gets checked for in the link test anyway.
18713 # First of all, check if the user has set any of the PTHREAD_LIBS,
18714 # etcetera environment variables, and if threads linking works using
18716 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18717 save_CFLAGS="$CFLAGS"
18718 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18720 LIBS="$PTHREAD_LIBS $LIBS"
18721 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18722 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18736 char pthread_join ();
18740 return pthread_join ();
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18749 *) ac_try_echo
=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1
>conftest.err
18756 cat conftest.err
>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest
$ac_exeext &&
18762 $as_test_x conftest
$ac_exeext; then
18765 echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.
$ac_ext >&5
18771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18772 conftest
$ac_exeext conftest.
$ac_ext
18773 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18774 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18775 if test x
"$acx_pthread_ok" = xno
; then
18780 CFLAGS
="$save_CFLAGS"
18783 # We must check for the threads library under a number of different
18784 # names; the ordering is very important because some systems
18785 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18786 # libraries is broken (non-POSIX).
18788 # Create a list of thread flags to try. Items starting with a "-" are
18789 # C compiler flags, and other items are library names, except for "none"
18790 # which indicates that we try without any flags at all, and "pthread-config"
18791 # which is a program returning the flags for the Pth emulation library.
18793 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18795 # The ordering *is* (sometimes) important. Some notes on the
18796 # individual items follow:
18798 # pthreads: AIX (must check this before -lpthread)
18799 # none: in case threads are in libc; should be tried before -Kthread and
18800 # other compiler flags to prevent continual compiler warnings
18801 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18802 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18803 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18804 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18805 # -pthreads: Solaris/gcc
18806 # -mthreads: Mingw32/gcc, Lynx/gcc
18807 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18808 # doesn't hurt to check since this sometimes defines pthreads too;
18809 # also defines -D_REENTRANT)
18810 # pthread: Linux, etcetera
18811 # --thread-safe: KAI C++
18812 # pthread-config: use pthread-config program (for GNU Pth library)
18814 case "${host_cpu}-${host_os}" in
18817 # On Solaris (at least, for some versions), libc contains stubbed
18818 # (non-functional) versions of the pthreads routines, so link-based
18819 # tests will erroneously succeed. (We need to link with -pthread or
18820 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18821 # a function called by this macro, so we could check for that, but
18822 # who knows whether they'll stub that too in a future libc.) So,
18823 # we'll just look for -pthreads and -lpthread first:
18825 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18829 if test x
"$acx_pthread_ok" = xno
; then
18830 for flag
in $acx_pthread_flags; do
18832 tryPTHREAD_CFLAGS
=""
18836 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18837 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18841 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18842 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18843 tryPTHREAD_CFLAGS
="$flag"
18847 # skip this if we already have flags defined, for PostgreSQL
18848 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18849 # Extract the first word of "pthread-config", so it can be a program name with args.
18850 set dummy pthread-config
; ac_word
=$2
18851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18853 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 if test -n "$acx_pthread_config"; then
18857 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18860 for as_dir
in $PATH
18863 test -z "$as_dir" && as_dir
=.
18864 for ac_exec_ext
in '' $ac_executable_extensions; do
18865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18866 ac_cv_prog_acx_pthread_config
="yes"
18867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18874 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18877 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18878 if test -n "$acx_pthread_config"; then
18879 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18880 echo "${ECHO_T}$acx_pthread_config" >&6; }
18882 { echo "$as_me:$LINENO: result: no" >&5
18883 echo "${ECHO_T}no" >&6; }
18887 if test x
"$acx_pthread_config" = xno
; then continue; fi
18888 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18889 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18893 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18894 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18895 tryPTHREAD_LIBS
="-l$flag"
18900 save_CFLAGS
="$CFLAGS"
18901 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18902 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18904 # Check for various functions. We must include pthread.h,
18905 # since some functions may be macros. (On the Sequent, we
18906 # need a special flag -Kthread to make this header compile.)
18907 # We check for pthread_join because it is in -lpthread on IRIX
18908 # while pthread_create is in libc. We check for pthread_attr_init
18909 # due to DEC craziness with -lpthreads. We check for
18910 # pthread_cleanup_push because it is one of the few pthread
18911 # functions on Solaris that doesn't have a non-functional libc stub.
18912 # We try pthread_create on general principles.
18913 cat >conftest.
$ac_ext <<_ACEOF
18916 cat confdefs.h
>>conftest.
$ac_ext
18917 cat >>conftest.
$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919 #include <pthread.h>
18923 pthread_t th; pthread_join(th, 0);
18924 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18925 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18930 rm -f conftest.
$ac_objext conftest
$ac_exeext
18931 if { (ac_try
="$ac_link"
18932 case "(($ac_try" in
18933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext &&
18947 $as_test_x conftest$ac_exeext; then
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957 conftest$ac_exeext conftest.$ac_ext
18959 if test "x$acx_pthread_ok" = xyes; then
18960 # Don't use options that are ignored by the compiler.
18961 # We find them by checking stderror.
18962 cat >conftest.$ac_ext <<_ACEOF
18964 main (int argc, char **argv)
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18973 # we continue with more flags because Linux needs -lpthread
18974 # for libpq builds on PostgreSQL. The test above only
18975 # tests for building binaries, not shared libraries.
18976 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18977 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18978 else acx_pthread_ok=no
18983 CFLAGS="$save_CFLAGS"
18985 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18986 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18990 # Various other checks:
18991 if test "x$acx_pthread_ok" = xyes; then
18993 LIBS="$PTHREAD_LIBS $LIBS"
18994 save_CFLAGS="$CFLAGS"
18995 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18997 # Detect AIX lossage: threads are created detached by default
18998 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18999 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19000 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <pthread.h>
19011 int attr=PTHREAD_CREATE_JOINABLE;
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19020 *) ac_try_echo
=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1
>conftest.err
19027 cat conftest.err
>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } && {
19030 test -z "$ac_c_werror_flag" ||
19031 test ! -s conftest.err
19032 } && test -s conftest
$ac_exeext &&
19033 $as_test_x conftest
$ac_exeext; then
19034 ok
=PTHREAD_CREATE_JOINABLE
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.
$ac_ext >&5
19042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19043 conftest
$ac_exeext conftest.
$ac_ext
19044 if test x
"$ok" = xunknown
; then
19045 cat >conftest.
$ac_ext <<_ACEOF
19048 cat confdefs.h
>>conftest.
$ac_ext
19049 cat >>conftest.
$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <pthread.h>
19055 int attr=PTHREAD_CREATE_UNDETACHED;
19060 rm -f conftest.
$ac_objext conftest
$ac_exeext
19061 if { (ac_try
="$ac_link"
19062 case "(($ac_try" in
19063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 ok=PTHREAD_CREATE_UNDETACHED
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19089 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define PTHREAD_CREATE_JOINABLE $ok
19096 { echo "$as_me:$LINENO: result: ${ok}" >&5
19097 echo "${ECHO_T}${ok}" >&6; }
19098 if test x"$ok" = xunknown; then
19099 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19100 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19103 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19104 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19106 # We always add these in PostgreSQL
19107 # case "${host_cpu}-${host_os}" in
19108 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19109 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19111 { echo "$as_me:$LINENO: result: ${flag}" >&5
19112 echo "${ECHO_T}${flag}" >&6; }
19113 if test "x$flag" != xno; then
19114 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19118 CFLAGS="$save_CFLAGS"
19120 # Supporting cc_r would require a special CC in all places that
19121 # use libpq, and that is ugly, so we don't do it. Users can still
19122 # define their compiler as cc_r to do thread builds of everything.
19123 # More AIX lossage: must compile with cc_r
19124 # Extract the first word of "cc_r", so it can be a program name with args.
19125 set dummy cc_r; ac_word=$2
19126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19128 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 if test -n "$PTHREAD_CC"; then
19132 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19135 for as_dir in $PATH
19138 test -z "$as_dir" && as_dir=.
19139 for ac_exec_ext in '' $ac_executable_extensions; do
19140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19141 ac_cv_prog_PTHREAD_CC="cc_r"
19142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19149 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19152 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19153 if test -n "$PTHREAD_CC"; then
19154 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19155 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19157 { echo "$as_me:$LINENO: result: no" >&5
19158 echo "${ECHO_T}no" >&6; }
19170 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19171 if test x"$acx_pthread_ok" = xyes; then
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE_PTHREAD 1
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190 # Some platforms use these, so just define them. They can't hurt if they
19191 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19192 # enables 5-arg getpwuid_r, among other things.
19193 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19196 # At this point, we don't want to muck with the compiler name for threading.
19197 # Let's see who fails, perhaps AIX. 2004-04-23
19198 if test "$PTHREAD_CC" != "$CC"; then
19199 { { echo "$as_me:$LINENO: error:
19200 PostgreSQL does not support platforms that require a special compiler
19201 for thread safety." >&5
19202 echo "$as_me: error:
19203 PostgreSQL does not support platforms that require a special compiler
19204 for thread safety." >&2;}
19205 { (exit 1); exit 1; }; }
19208 if test "$THREAD_SUPPORT" = no; then
19209 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19210 This platform is known to not support thread-safe programs. For details,
19211 compile and run src/bin/pg_thread_test." >&5
19212 echo "$as_me: error: cannot enable threads on this platform
19213 This platform is known to not support thread-safe programs. For details,
19214 compile and run src/bin/pg_thread_test." >&2;}
19215 { (exit 1); exit 1; }; }
19218 # Check for *_r functions
19221 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19222 LIBS="$LIBS $PTHREAD_LIBS"
19224 if test "$PORTNAME" != "win32"; then
19225 if test "${ac_cv_header_pthread_h+set}" = set; then
19226 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19227 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19228 if test "${ac_cv_header_pthread_h+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19232 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19234 # Is the header compilable?
19235 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19236 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 $ac_includes_default
19244 #include <pthread.h>
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19250 *) ac_try_echo
=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1
>conftest.err
19257 cat conftest.err
>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest.
$ac_objext; then
19263 ac_header_compiler
=yes
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.
$ac_ext >&5
19268 ac_header_compiler
=no
19271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19273 echo "${ECHO_T}$ac_header_compiler" >&6; }
19275 # Is the header present?
19276 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19277 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19278 cat >conftest.
$ac_ext <<_ACEOF
19281 cat confdefs.h
>>conftest.
$ac_ext
19282 cat >>conftest.
$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 #include <pthread.h>
19286 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19287 case "(($ac_try" in
19288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } >/dev/null && {
19299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19302 ac_header_preproc=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_header_preproc=no
19310 rm -f conftest.err conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19312 echo "${ECHO_T}$ac_header_preproc" >&6; }
19314 # So? What about this header?
19315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19317 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19318 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19320 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19321 ac_header_preproc=yes
19324 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19325 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19327 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19329 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19331 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19333 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19335 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19337 ## ---------------------------------------- ##
19338 ## Report this to pgsql-bugs@postgresql.org ##
19339 ## ---------------------------------------- ##
19341 ) | sed "s/^/$as_me: WARNING: /" >&2
19344 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19345 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19346 if test "${ac_cv_header_pthread_h+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 ac_cv_header_pthread_h=$ac_header_preproc
19351 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19352 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19355 if test $ac_cv_header_pthread_h = yes; then
19358 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19359 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19360 { (exit 1); exit 1; }; }
19369 for ac_func in strerror_r getpwuid_r gethostbyname_r
19371 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19385 #define $ac_func innocuous_$ac_func
19387 /* System header to define __stub macros and hopefully few prototypes,
19388 which can conflict with char $ac_func (); below.
19389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390 <limits.h> exists even on freestanding compilers. */
19393 # include <limits.h>
19395 # include <assert.h>
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19407 /* The GNU C library defines this for functions which it implements
19408 to always fail with ENOSYS. Some functions are actually named
19409 something starting with __ and the normal name is an alias. */
19410 #if defined __stub_$ac_func || defined __stub___$ac_func
19417 return $ac_func ();
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19426 *) ac_try_echo
=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1
>conftest.err
19433 cat conftest.err
>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest
$ac_exeext &&
19439 $as_test_x conftest
$ac_exeext; then
19440 eval "$as_ac_var=yes"
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.
$ac_ext >&5
19445 eval "$as_ac_var=no"
19448 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19449 conftest
$ac_exeext conftest.
$ac_ext
19451 ac_res
=`eval echo '${'$as_ac_var'}'`
19452 { echo "$as_me:$LINENO: result: $ac_res" >&5
19453 echo "${ECHO_T}$ac_res" >&6; }
19454 if test `eval echo '${'$as_ac_var'}'` = yes; then
19455 cat >>confdefs.h
<<_ACEOF
19456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19463 # Do test here with the proper thread flags
19464 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19465 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19466 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 cat >conftest.
$ac_ext <<_ACEOF
19472 cat confdefs.h
>>conftest.
$ac_ext
19473 cat >>conftest.
$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19481 struct passwd *space;
19484 struct passwd **result;
19485 getpwuid_r(uid, space, buf, bufsize, result);
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_getpwuid_r_5arg=yes
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19512 pgac_cv_func_getpwuid_r_5arg=no
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19518 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19519 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19521 cat >>confdefs.h <<\_ACEOF
19522 #define GETPWUID_R_5ARG
19527 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19528 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19529 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 cat >conftest.$ac_ext <<_ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <string.h>
19543 int strerror_r(int, char *, size_t);
19545 /* Older AIX has 'int' for the third argument so we don't test the args. */
19552 rm -f conftest.$ac_objext
19553 if { (ac_try="$ac_compile"
19554 case "(($ac_try" in
19555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19556 *) ac_try_echo
=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_compile") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1
>conftest.err
19563 cat conftest.err
>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest.
$ac_objext; then
19569 pgac_cv_func_strerror_r_int
=yes
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.
$ac_ext >&5
19574 pgac_cv_func_strerror_r_int
=no
19577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19579 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19580 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19581 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
19583 cat >>confdefs.h
<<\_ACEOF
19584 #define STRERROR_R_INT
19594 # do not use values from template file
19603 # We can test for libldap_r only after we know PTHREAD_LIBS
19604 if test "$with_ldap" = yes ; then
19606 if test "$PORTNAME" != "win32"; then
19608 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19609 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19610 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 ac_check_lib_save_LIBS
=$LIBS
19614 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19615 cat >conftest.
$ac_ext <<_ACEOF
19618 cat confdefs.h
>>conftest.
$ac_ext
19619 cat >>conftest.
$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19622 /* Override any GCC internal prototype to avoid an error.
19623 Use char because int might match the return type of a GCC
19624 builtin and then its argument prototype would still apply. */
19632 return ldap_bind ();
19637 rm -f conftest.
$ac_objext conftest
$ac_exeext
19638 if { (ac_try
="$ac_link"
19639 case "(($ac_try" in
19640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_link") 2>conftest.er1
19646 grep -v '^ *+' conftest.er1 >conftest.err
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } && {
19651 test -z "$ac_c_werror_flag" ||
19652 test ! -s conftest.err
19653 } && test -s conftest$ac_exeext &&
19654 $as_test_x conftest$ac_exeext; then
19655 ac_cv_lib_ldap_ldap_bind=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_lib_ldap_ldap_bind=no
19663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19667 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19668 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19669 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define HAVE_LIBLDAP 1
19674 LIBS="-lldap $LIBS"
19677 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19678 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19679 { (exit 1); exit 1; }; }
19682 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19683 if test "$enable_thread_safety" = yes; then
19684 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19686 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19687 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19688 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19706 char ldap_simple_bind ();
19710 return ldap_simple_bind ();
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19719 *) ac_try_echo
=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_link") 2>conftest.er1
19724 grep -v '^ *+' conftest.er1
>conftest.err
19726 cat conftest.err
>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest
$ac_exeext &&
19732 $as_test_x conftest
$ac_exeext; then
19733 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.
$ac_ext >&5
19738 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19741 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19742 conftest
$ac_exeext conftest.
$ac_ext
19743 LIBS
=$ac_check_lib_save_LIBS
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19746 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19747 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19748 cat >>confdefs.h
<<_ACEOF
19749 #define HAVE_LIBLDAP_R 1
19752 LIBS
="-lldap_r $LIBS"
19755 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19756 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19757 { (exit 1); exit 1; }; }
19760 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19762 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19766 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19767 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS
=$LIBS
19772 LIBS
="-lwldap32 $LIBS"
19773 cat >conftest.
$ac_ext <<_ACEOF
19776 cat confdefs.h
>>conftest.
$ac_ext
19777 cat >>conftest.
$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19790 return ldap_bind ();
19795 rm -f conftest.
$ac_objext conftest
$ac_exeext
19796 if { (ac_try
="$ac_link"
19797 case "(($ac_try" in
19798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_wldap32_ldap_bind=yes
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_wldap32_ldap_bind=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19826 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19827 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19828 cat >>confdefs.h <<_ACEOF
19829 #define HAVE_LIBWLDAP32 1
19832 LIBS="-lwldap32 $LIBS"
19835 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19836 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19837 { (exit 1); exit 1; }; }
19840 LDAP_LIBS_FE="-lwldap32"
19841 LDAP_LIBS_BE="-lwldap32"
19849 # This test makes sure that run tests work at all. Sometimes a shared
19850 # library is found by the linker, but the runtime linker can't find it.
19851 # This check should come after all modifications of compiler or linker
19852 # variables, and before any other run tests.
19853 { echo "$as_me:$LINENO: checking test program" >&5
19854 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19855 if test "$cross_compiling" = yes; then
19856 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19857 echo "${ECHO_T}cross-compiling" >&6; }
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 int main() { return 0; }
19867 rm -f conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19871 *) ac_try_echo
=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19878 { (case "(($ac_try" in
19879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 { echo "$as_me:$LINENO: result: ok" >&5
19888 echo "${ECHO_T}ok" >&6; }
19890 echo "$as_me: program exited with status $ac_status" >&5
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ( exit $ac_status )
19895 { echo "$as_me:$LINENO: result: failed" >&5
19896 echo "${ECHO_T}failed" >&6; }
19897 { { echo "$as_me:$LINENO: error:
19898 Could not execute a simple test program. This may be a problem
19899 related to locating shared libraries. Check the file 'config.log'
19900 for the exact reason." >&5
19901 echo "$as_me: error:
19902 Could not execute a simple test program. This may be a problem
19903 related to locating shared libraries. Check the file 'config.log'
19904 for the exact reason." >&2;}
19905 { (exit 1); exit 1; }; }
19907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19912 # --------------------
19913 # Run tests below here
19914 # --------------------
19916 # Force use of our snprintf if system's doesn't do arg control
19917 # See comment above at snprintf test for details.
19918 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19919 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19920 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19921 if test "${pgac_cv_printf_arg_control+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 if test "$cross_compiling" = yes; then
19925 pgac_cv_printf_arg_control=cross
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19934 #include <string.h>
19940 /* can it swap arguments? */
19941 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19942 if (strcmp(buf, "4 3") != 0)
19947 rm -f conftest$ac_exeext
19948 if { (ac_try="$ac_link"
19949 case "(($ac_try" in
19950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19951 *) ac_try_echo
=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_link") 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19958 { (case "(($ac_try" in
19959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 pgac_cv_printf_arg_control=yes
19969 echo "$as_me: program exited with status $ac_status" >&5
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ( exit $ac_status )
19974 pgac_cv_printf_arg_control=no
19976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19982 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19983 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19985 if test $pgac_cv_printf_arg_control != yes ; then
19986 pgac_need_repl_snprintf=yes
19992 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19993 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19994 if test "${pgac_cv_type_long_int_64+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 if test "$cross_compiling" = yes; then
19998 # If cross-compiling, check the size reported by the compiler and
19999 # trust that the arithmetic works.
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20010 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20017 rm -f conftest.$ac_objext
20018 if { (ac_try="$ac_compile"
20019 case "(($ac_try" in
20020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20021 *) ac_try_echo
=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_compile") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1
>conftest.err
20028 cat conftest.err
>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest.
$ac_objext; then
20034 pgac_cv_type_long_int_64
=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.
$ac_ext >&5
20039 pgac_cv_type_long_int_64
=no
20042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20044 cat >conftest.
$ac_ext <<_ACEOF
20047 cat confdefs.h
>>conftest.
$ac_ext
20048 cat >>conftest.
$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 typedef long int ac_int64;
20053 * These are globals to discourage the compiler from folding all the
20054 * arithmetic tests down to compile-time constants.
20056 ac_int64 a = 20000001;
20057 ac_int64 b = 40000005;
20059 int does_int64_work()
20063 if (sizeof(ac_int64) != 8)
20064 return 0; /* definitely not the right size */
20066 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20074 exit(! does_int64_work());
20077 rm -f conftest
$ac_exeext
20078 if { (ac_try
="$ac_link"
20079 case "(($ac_try" in
20080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20088 { (case "(($ac_try" in
20089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20090 *) ac_try_echo
=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_try") 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 pgac_cv_type_long_int_64
=yes
20099 echo "$as_me: program exited with status $ac_status" >&5
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.
$ac_ext >&5
20103 ( exit $ac_status )
20104 pgac_cv_type_long_int_64
=no
20106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20111 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20112 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20114 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20115 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20117 cat >>confdefs.h
<<\_ACEOF
20118 #define HAVE_LONG_INT_64 1
20124 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20125 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20126 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20127 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 if test "$cross_compiling" = yes; then
20131 # If cross-compiling, check the size reported by the compiler and
20132 # trust that the arithmetic works.
20133 cat >conftest.
$ac_ext <<_ACEOF
20136 cat confdefs.h
>>conftest.
$ac_ext
20137 cat >>conftest.
$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20143 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20150 rm -f conftest.
$ac_objext
20151 if { (ac_try
="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 pgac_cv_type_long_long_int_64=yes
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 pgac_cv_type_long_long_int_64=no
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 cat >conftest.$ac_ext <<_ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 typedef long long int ac_int64;
20186 * These are globals to discourage the compiler from folding all the
20187 * arithmetic tests down to compile-time constants.
20189 ac_int64 a = 20000001;
20190 ac_int64 b = 40000005;
20192 int does_int64_work()
20196 if (sizeof(ac_int64) != 8)
20197 return 0; /* definitely not the right size */
20199 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20207 exit(! does_int64_work());
20210 rm -f conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20214 *) ac_try_echo
=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 pgac_cv_type_long_long_int_64=yes
20232 echo "$as_me: program exited with status $ac_status" >&5
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ( exit $ac_status )
20237 pgac_cv_type_long_long_int_64=no
20239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20245 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20247 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20248 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LONG_LONG_INT_64 1
20260 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20268 #define INT64CONST(x) x##LL
20269 long long int foo = INT64CONST(0x1234567890123456);
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20283 *) ac_try_echo
=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1
>conftest.err
20290 cat conftest.err
>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.
$ac_objext; then
20297 cat >>confdefs.h
<<\_ACEOF
20298 #define HAVE_LL_CONSTANTS 1
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.
$ac_ext >&5
20308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20312 # If we found "long int" is 64 bits, assume snprintf handles it. If
20313 # we found we need to use "long long int", better check. We cope with
20314 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20315 # work, fall back to our own snprintf emulation (which we know uses %lld).
20317 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20318 if test $pgac_need_repl_snprintf = no
; then
20319 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20320 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20321 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 for pgac_format
in '%lld' '%qd' '%I64d'; do
20325 if test "$cross_compiling" = yes; then
20326 pgac_cv_snprintf_long_long_int_format
=cross
; break
20328 cat >conftest.
$ac_ext <<_ACEOF
20331 cat confdefs.h
>>conftest.
$ac_ext
20332 cat >>conftest.
$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 typedef long long int ac_int64;
20336 #define INT64_FORMAT "$pgac_format"
20338 ac_int64 a = 20000001;
20339 ac_int64 b = 40000005;
20341 int does_int64_snprintf_work()
20346 if (sizeof(ac_int64) != 8)
20347 return 0; /* doesn't look like the right size */
20350 snprintf(buf, 100, INT64_FORMAT, c);
20351 if (strcmp(buf, "800000140000005") != 0)
20352 return 0; /* either multiply or snprintf is busted */
20356 exit(! does_int64_snprintf_work());
20359 rm -f conftest
$ac_exeext
20360 if { (ac_try
="$ac_link"
20361 case "(($ac_try" in
20362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20372 *) ac_try_echo
=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20381 echo "$as_me: program exited with status $ac_status" >&5
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.
$ac_ext >&5
20386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20393 LONG_LONG_INT_FORMAT
=''
20395 case $pgac_cv_snprintf_long_long_int_format in
20396 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20397 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20398 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20399 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20400 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20401 *) { echo "$as_me:$LINENO: result: none" >&5
20402 echo "${ECHO_T}none" >&6; };;
20404 if test "$LONG_LONG_INT_FORMAT" = ""; then
20405 # Force usage of our own snprintf, since system snprintf is broken
20406 pgac_need_repl_snprintf
=yes
20407 LONG_LONG_INT_FORMAT
='%lld'
20410 # Here if we previously decided we needed to use our own snprintf
20411 LONG_LONG_INT_FORMAT
='%lld'
20413 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20414 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20415 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20417 # Here if we are not using 'long long int' at all
20418 INT64_FORMAT
='"%ld"'
20419 UINT64_FORMAT
='"%lu"'
20423 cat >>confdefs.h
<<_ACEOF
20424 #define INT64_FORMAT $INT64_FORMAT
20429 cat >>confdefs.h
<<_ACEOF
20430 #define UINT64_FORMAT $UINT64_FORMAT
20434 # Now we have checked all the reasons to replace snprintf
20435 if test $pgac_need_repl_snprintf = yes; then
20437 cat >>confdefs.h
<<\_ACEOF
20438 #define USE_REPL_SNPRINTF 1
20441 case " $LIBOBJS " in
20442 *" snprintf.$ac_objext "* ) ;;
20443 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20449 # Need a #define for the size of Datum (unsigned long)
20450 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20451 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20452 if test "${ac_cv_type_unsigned_long+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 cat >conftest.
$ac_ext <<_ACEOF
20458 cat confdefs.h
>>conftest.
$ac_ext
20459 cat >>conftest.
$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 typedef unsigned long ac__type_new_;
20466 if ((ac__type_new_ *) 0)
20468 if (sizeof (ac__type_new_))
20474 rm -f conftest.
$ac_objext
20475 if { (ac_try
="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_compile") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest.$ac_objext; then
20491 ac_cv_type_unsigned_long=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_cv_type_unsigned_long=no
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20502 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20504 # The cast to long int works around a bug in the HP C Compiler
20505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20506 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20507 # This bug is HP SR number 8606223364.
20508 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20509 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20510 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 if test "$cross_compiling" = yes; then
20514 # Depending upon the size, compute the lo and hi bounds.
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20522 typedef unsigned long ac__type_sizeof_;
20526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20542 grep -v '^
*+' conftest.er1 >conftest.err
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.$ac_objext; then
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 typedef unsigned long ac__type_sizeof_;
20563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_compile") 2>conftest.er1
20579 grep -v '^
*+' conftest.er1 >conftest.err
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } && {
20584 test -z "$ac_c_werror_flag" ||
20585 test ! -s conftest.err
20586 } && test -s conftest.$ac_objext; then
20587 ac_hi=$ac_mid; break
20589 echo "$as_me: failed program was:" >&5
20590 sed 's
/^
/|
/' conftest.$ac_ext >&5
20592 ac_lo=`expr $ac_mid + 1`
20593 if test $ac_lo -le $ac_mid; then
20597 ac_mid=`expr 2 '*' $ac_mid + 1`
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 echo "$as_me: failed program was:" >&5
20604 sed 's
/^
/|
/' conftest.$ac_ext >&5
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 $ac_includes_default
20613 typedef unsigned long ac__type_sizeof_;
20617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20633 grep -v '^
*+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 $ac_includes_default
20650 typedef unsigned long ac__type_sizeof_;
20654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20670 grep -v '^
*+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest.$ac_objext; then
20678 ac_lo=$ac_mid; break
20680 echo "$as_me: failed program was:" >&5
20681 sed 's
/^
/|
/' conftest.$ac_ext >&5
20683 ac_hi=`expr '(' $ac_mid ')' - 1`
20684 if test $ac_mid -le $ac_hi; then
20688 ac_mid=`expr 2 '*' $ac_mid`
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 echo "$as_me: failed program was:" >&5
20695 sed 's
/^
/|
/' conftest.$ac_ext >&5
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 # Binary search between lo and hi bounds.
20705 while test "x$ac_lo" != "x$ac_hi"; do
20706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 $ac_includes_default
20714 typedef unsigned long ac__type_sizeof_;
20718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
20734 grep -v '^
*+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest.$ac_objext; then
20744 echo "$as_me: failed program was:" >&5
20745 sed 's
/^
/|
/' conftest.$ac_ext >&5
20747 ac_lo=`expr '(' $ac_mid ')' + 1`
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20754 '') if test "$ac_cv_type_unsigned_long" = yes; then
20755 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20756 See \`config.log' for more details.
" >&5
20757 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20758 See \
`config.log' for more details." >&2;}
20759 { (exit 77); exit 77; }; }
20761 ac_cv_sizeof_unsigned_long=0
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 typedef unsigned long ac__type_sizeof_;
20773 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20774 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20776 #include <stdlib.h>
20781 FILE *f = fopen ("conftest.val", "w");
20784 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20786 long int i = longval ();
20787 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20789 fprintf (f, "%ld\n", i);
20793 unsigned long int i = ulongval ();
20794 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20796 fprintf (f, "%lu\n", i);
20798 return ferror (f) || fclose (f) != 0;
20804 rm -f conftest$ac_exeext
20805 if { (ac_try="$ac_link"
20806 case "(($ac_try" in
20807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20808 *) ac_try_echo
=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_link") 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20815 { (case "(($ac_try" in
20816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_try") 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20826 echo "$as_me: program exited with status $ac_status" >&5
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 ( exit $ac_status )
20831 if test "$ac_cv_type_unsigned_long" = yes; then
20832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20833 See \`config.log
' for more details." >&5
20834 echo "$as_me: error: cannot compute sizeof (unsigned long)
20835 See \`config.log' for more details.
" >&2;}
20836 { (exit 77); exit 77; }; }
20838 ac_cv_sizeof_unsigned_long=0
20841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20846 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20850 cat >>confdefs.h <<_ACEOF
20851 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20856 # And one for the size of size_t (enables tweaks for > 32bit address space)
20857 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20858 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20859 if test "${ac_cv_type_size_t+set}" = set; then
20860 echo $ECHO_N "(cached
) $ECHO_C" >&6
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 typedef size_t ac__type_new_;
20873 if ((ac__type_new_ *) 0)
20875 if (sizeof (ac__type_new_))
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_compile") 2>conftest.er1
20890 grep -v '^ *+' conftest.er1 >conftest.err
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20894 (exit $ac_status); } && {
20895 test -z "$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest.$ac_objext; then
20898 ac_cv_type_size_t=yes
20900 echo "$as_me: failed program was
:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_cv_type_size_t=no
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20909 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20911 # The cast to long int works around a bug in the HP C Compiler
20912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20914 # This bug is HP SR number 8606223364.
20915 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20916 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20917 if test "${ac_cv_sizeof_size_t+set}" = set; then
20918 echo $ECHO_N "(cached
) $ECHO_C" >&6
20920 if test "$cross_compiling" = yes; then
20921 # Depending upon the size, compute the lo and hi bounds.
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 $ac_includes_default
20929 typedef size_t ac__type_sizeof_;
20933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_compile") 2>conftest.er1
20949 grep -v '^ *+' conftest.er1 >conftest.err
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20953 (exit $ac_status); } && {
20954 test -z "$ac_c_werror_flag" ||
20955 test ! -s conftest.err
20956 } && test -s conftest.$ac_objext; then
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 $ac_includes_default
20966 typedef size_t ac__type_sizeof_;
20970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20977 rm -f conftest.$ac_objext
20978 if { (ac_try="$ac_compile"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_compile") 2>conftest.er1
20986 grep -v '^ *+' conftest.er1 >conftest.err
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20990 (exit $ac_status); } && {
20991 test -z "$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 } && test -s conftest.$ac_objext; then
20994 ac_hi=$ac_mid; break
20996 echo "$as_me: failed program was
:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_lo=`expr $ac_mid + 1`
21000 if test $ac_lo -le $ac_mid; then
21004 ac_mid=`expr 2 '*' $ac_mid + 1`
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 echo "$as_me: failed program was
:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 typedef size_t ac__type_sizeof_;
21024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_compile") 2>conftest.er1
21040 grep -v '^ *+' conftest.er1 >conftest.err
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest.$ac_objext; then
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 $ac_includes_default
21057 typedef size_t ac__type_sizeof_;
21061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21068 rm -f conftest.$ac_objext
21069 if { (ac_try="$ac_compile"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_compile") 2>conftest.er1
21077 grep -v '^ *+' conftest.er1 >conftest.err
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21081 (exit $ac_status); } && {
21082 test -z "$ac_c_werror_flag" ||
21083 test ! -s conftest.err
21084 } && test -s conftest.$ac_objext; then
21085 ac_lo=$ac_mid; break
21087 echo "$as_me: failed program was
:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_hi=`expr '(' $ac_mid ')' - 1`
21091 if test $ac_mid -le $ac_hi; then
21095 ac_mid=`expr 2 '*' $ac_mid`
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 echo "$as_me: failed program was
:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 # Binary search between lo and hi bounds.
21112 while test "x
$ac_lo" != "x
$ac_hi"; do
21113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 typedef size_t ac__type_sizeof_;
21125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_compile") 2>conftest.er1
21141 grep -v '^ *+' conftest.er1 >conftest.err
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21145 (exit $ac_status); } && {
21146 test -z "$ac_c_werror_flag" ||
21147 test ! -s conftest.err
21148 } && test -s conftest.$ac_objext; then
21151 echo "$as_me: failed program was
:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 ac_lo=`expr '(' $ac_mid ')' + 1`
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21161 '') if test "$ac_cv_type_size_t" = yes; then
21162 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21163 See \
`config.log' for more details." >&5
21164 echo "$as_me: error: cannot compute sizeof (size_t)
21165 See \`config.log
' for more details." >&2;}
21166 { (exit 77); exit 77; }; }
21168 ac_cv_sizeof_size_t=0
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 typedef size_t ac__type_sizeof_;
21180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21183 #include <stdlib.h>
21188 FILE *f = fopen ("conftest.val", "w");
21191 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21193 long int i = longval ();
21194 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21196 fprintf (f, "%ld\n", i);
21200 unsigned long int i = ulongval ();
21201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21203 fprintf (f, "%lu\n", i);
21205 return ferror (f) || fclose (f) != 0;
21211 rm -f conftest$ac_exeext
21212 if { (ac_try="$ac_link"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_link") 2>&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21222 { (case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_try") 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 ac_cv_sizeof_size_t=`cat conftest.val`
21233 echo "$as_me: program exited with status $ac_status" >&5
21234 echo "$as_me: failed program was:" >&5
21235 sed 's
/^
/|
/' conftest.$ac_ext >&5
21237 ( exit $ac_status )
21238 if test "$ac_cv_type_size_t" = yes; then
21239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21240 See \`config.log' for more details.
" >&5
21241 echo "$as_me: error
: cannot compute sizeof
(size_t
)
21242 See \
`config.log' for more details." >&2;}
21243 { (exit 77); exit 77; }; }
21245 ac_cv_sizeof_size_t=0
21248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21253 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21257 cat >>confdefs.h <<_ACEOF
21258 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21263 # Decide whether float4 is passed by value: user-selectable, enabled by default
21264 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21265 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21267 pgac_args="$pgac_args enable_float4_byval"
21269 # Check whether --enable-float4-byval was given.
21270 if test "${enable_float4_byval+set}" = set; then
21271 enableval=$enable_float4_byval;
21275 cat >>confdefs.h <<\_ACEOF
21276 #define USE_FLOAT4_BYVAL 1
21279 float4passbyval=true
21282 float4passbyval=false
21285 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21286 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21287 { (exit 1); exit 1; }; }
21292 enable_float4_byval=yes
21294 cat >>confdefs.h <<\_ACEOF
21295 #define USE_FLOAT4_BYVAL 1
21298 float4passbyval=true
21302 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21303 echo "${ECHO_T}$enable_float4_byval" >&6; }
21305 cat >>confdefs.h <<_ACEOF
21306 #define FLOAT4PASSBYVAL $float4passbyval
21310 # Decide whether float8 is passed by value.
21311 # Note: this setting also controls int8 and related types such as timestamp.
21312 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21313 # If not, trying to select it is an error.
21314 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21315 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21316 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21318 pgac_args="$pgac_args enable_float8_byval"
21320 # Check whether --enable-float8-byval was given.
21321 if test "${enable_float8_byval+set}" = set; then
21322 enableval=$enable_float8_byval;
21331 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21332 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21333 { (exit 1); exit 1; }; }
21338 enable_float8_byval=yes
21345 pgac_args="$pgac_args enable_float8_byval"
21347 # Check whether --enable-float8-byval was given.
21348 if test "${enable_float8_byval+set}" = set; then
21349 enableval=$enable_float8_byval;
21358 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21359 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21360 { (exit 1); exit 1; }; }
21365 enable_float8_byval=no
21370 if test "$enable_float8_byval" = yes ; then
21371 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21372 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21373 { (exit 1); exit 1; }; }
21376 if test "$enable_float8_byval" = yes ; then
21378 cat >>confdefs.h <<\_ACEOF
21379 #define USE_FLOAT8_BYVAL 1
21382 float8passbyval=true
21384 float8passbyval=false
21386 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21387 echo "${ECHO_T}$enable_float8_byval" >&6; }
21389 cat >>confdefs.h <<_ACEOF
21390 #define FLOAT8PASSBYVAL $float8passbyval
21394 # Determine memory alignment requirements for the basic C data types.
21396 { echo "$as_me:$LINENO: checking for short" >&5
21397 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21398 if test "${ac_cv_type_short+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 typedef short ac__type_new_;
21412 if ((ac__type_new_ *) 0)
21414 if (sizeof (ac__type_new_))
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21424 *) ac_try_echo
=$ac_try;;
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21429 grep -v '^ *+' conftest.er1
>conftest.err
21431 cat conftest.err
>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.
$ac_objext; then
21437 ac_cv_type_short
=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.
$ac_ext >&5
21442 ac_cv_type_short
=no
21445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21447 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21448 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21450 # The cast to long int works around a bug in the HP C Compiler,
21451 # see AC_CHECK_SIZEOF for more information.
21452 { echo "$as_me:$LINENO: checking alignment of short" >&5
21453 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21454 if test "${ac_cv_alignof_short+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 if test "$cross_compiling" = yes; then
21458 # Depending upon the size, compute the lo and hi bounds.
21459 cat >conftest.
$ac_ext <<_ACEOF
21462 cat confdefs.h
>>conftest.
$ac_ext
21463 cat >>conftest.
$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21467 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21469 typedef struct { char x; short y; } ac__type_alignof_;
21473 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21480 rm -f conftest.
$ac_objext
21481 if { (ac_try
="$ac_compile"
21482 case "(($ac_try" in
21483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21507 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21509 typedef struct { char x; short y; } ac__type_alignof_;
21513 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21524 *) ac_try_echo
=$ac_try;;
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21529 grep -v '^ *+' conftest.er1
>conftest.err
21531 cat conftest.err
>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.
$ac_objext; then
21537 ac_hi
=$ac_mid; break
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.
$ac_ext >&5
21542 ac_lo
=`expr $ac_mid + 1`
21543 if test $ac_lo -le $ac_mid; then
21547 ac_mid
=`expr 2 '*' $ac_mid + 1`
21550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.
$ac_ext >&5
21556 cat >conftest.
$ac_ext <<_ACEOF
21559 cat confdefs.h
>>conftest.
$ac_ext
21560 cat >>conftest.
$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 $ac_includes_default
21564 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21566 typedef struct { char x; short y; } ac__type_alignof_;
21570 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21577 rm -f conftest.
$ac_objext
21578 if { (ac_try
="$ac_compile"
21579 case "(($ac_try" in
21580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 $ac_includes_default
21604 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21606 typedef struct { char x; short y; } ac__type_alignof_;
21610 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21621 *) ac_try_echo
=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1
>conftest.err
21628 cat conftest.err
>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.
$ac_objext; then
21634 ac_lo
=$ac_mid; break
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.
$ac_ext >&5
21639 ac_hi
=`expr '(' $ac_mid ')' - 1`
21640 if test $ac_mid -le $ac_hi; then
21644 ac_mid
=`expr 2 '*' $ac_mid`
21647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.
$ac_ext >&5
21656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21660 # Binary search between lo and hi bounds.
21661 while test "x$ac_lo" != "x$ac_hi"; do
21662 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663 cat >conftest.
$ac_ext <<_ACEOF
21666 cat confdefs.h
>>conftest.
$ac_ext
21667 cat >>conftest.
$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669 $ac_includes_default
21671 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21673 typedef struct { char x; short y; } ac__type_alignof_;
21677 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21684 rm -f conftest.
$ac_objext
21685 if { (ac_try
="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_lo=`expr '(' $ac_mid ')' + 1`
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712 ?*) ac_cv_alignof_short=$ac_lo;;
21713 '') if test "$ac_cv_type_short" = yes; then
21714 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21715 See \`config.log
' for more details." >&5
21716 echo "$as_me: error: cannot compute alignment of short
21717 See \`config.log' for more details.
" >&2;}
21718 { (exit 77); exit 77; }; }
21720 ac_cv_alignof_short=0
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 $ac_includes_default
21732 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21734 typedef struct { char x; short y; } ac__type_alignof_;
21735 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21736 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21738 #include <stdlib.h>
21743 FILE *f = fopen ("conftest.val
", "w
");
21746 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21748 long int i = longval ();
21749 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21751 fprintf (f, "%ld
\n", i);
21755 unsigned long int i = ulongval ();
21756 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21758 fprintf (f, "%lu
\n", i);
21760 return ferror (f) || fclose (f) != 0;
21766 rm -f conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>&5
21775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_cv_alignof_short=`cat conftest.val`
21788 echo "$as_me: program exited with status
$ac_status" >&5
21789 echo "$as_me: failed program was
:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ( exit $ac_status )
21793 if test "$ac_cv_type_short" = yes; then
21794 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21795 See \
`config.log' for more details." >&5
21796 echo "$as_me: error: cannot compute alignment of short
21797 See \`config.log
' for more details." >&2;}
21798 { (exit 77); exit 77; }; }
21800 ac_cv_alignof_short=0
21803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21807 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21808 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21812 cat >>confdefs.h <<_ACEOF
21813 #define ALIGNOF_SHORT $ac_cv_alignof_short
21817 { echo "$as_me:$LINENO: checking for int" >&5
21818 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21819 if test "${ac_cv_type_int+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21829 typedef int ac__type_new_;
21833 if ((ac__type_new_ *) 0)
21835 if (sizeof (ac__type_new_))
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_compile") 2>conftest.er1
21850 grep -v '^
*+' conftest.er1 >conftest.err
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest.$ac_objext; then
21860 echo "$as_me: failed program was:" >&5
21861 sed 's
/^
/|
/' conftest.$ac_ext >&5
21866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21869 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21871 # The cast to long int works around a bug in the HP C Compiler,
21872 # see AC_CHECK_SIZEOF for more information.
21873 { echo "$as_me:$LINENO: checking alignment of int" >&5
21874 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21875 if test "${ac_cv_alignof_int+set}" = set; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 if test "$cross_compiling" = yes; then
21879 # Depending upon the size, compute the lo and hi bounds.
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 $ac_includes_default
21888 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21890 typedef struct { char x; int y; } ac__type_alignof_;
21894 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_compile") 2>conftest.er1
21910 grep -v '^
*+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest.$ac_objext; then
21920 cat >conftest.$ac_ext <<_ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21926 $ac_includes_default
21928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21930 typedef struct { char x; int y; } ac__type_alignof_;
21934 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_compile") 2>conftest.er1
21950 grep -v '^
*+' conftest.er1 >conftest.err
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && {
21955 test -z "$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21957 } && test -s conftest.$ac_objext; then
21958 ac_hi=$ac_mid; break
21960 echo "$as_me: failed program was:" >&5
21961 sed 's
/^
/|
/' conftest.$ac_ext >&5
21963 ac_lo=`expr $ac_mid + 1`
21964 if test $ac_lo -le $ac_mid; then
21968 ac_mid=`expr 2 '*' $ac_mid + 1`
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 echo "$as_me: failed program was:" >&5
21975 sed 's
/^
/|
/' conftest.$ac_ext >&5
21977 cat >conftest.$ac_ext <<_ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 $ac_includes_default
21985 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21987 typedef struct { char x; int y; } ac__type_alignof_;
21991 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_compile") 2>conftest.er1
22007 grep -v '^
*+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest.$ac_objext; then
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 $ac_includes_default
22025 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22027 typedef struct { char x; int y; } ac__type_alignof_;
22031 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22047 grep -v '^
*+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22055 ac_lo=$ac_mid; break
22057 echo "$as_me: failed program was:" >&5
22058 sed 's
/^
/|
/' conftest.$ac_ext >&5
22060 ac_hi=`expr '(' $ac_mid ')' - 1`
22061 if test $ac_mid -le $ac_hi; then
22065 ac_mid=`expr 2 '*' $ac_mid`
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 echo "$as_me: failed program was:" >&5
22072 sed 's
/^
/|
/' conftest.$ac_ext >&5
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 # Binary search between lo and hi bounds.
22082 while test "x$ac_lo" != "x$ac_hi"; do
22083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 $ac_includes_default
22092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22094 typedef struct { char x; int y; } ac__type_alignof_;
22098 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22114 grep -v '^
*+' conftest.er1 >conftest.err
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22124 echo "$as_me: failed program was:" >&5
22125 sed 's
/^
/|
/' conftest.$ac_ext >&5
22127 ac_lo=`expr '(' $ac_mid ')' + 1`
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 ?*) ac_cv_alignof_int=$ac_lo;;
22134 '') if test "$ac_cv_type_int" = yes; then
22135 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22136 See \`config.log' for more details.
" >&5
22137 echo "$as_me: error
: cannot compute alignment of int
22138 See \
`config.log' for more details." >&2;}
22139 { (exit 77); exit 77; }; }
22141 ac_cv_alignof_int=0
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 $ac_includes_default
22153 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22155 typedef struct { char x; int y; } ac__type_alignof_;
22156 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22157 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22159 #include <stdlib.h>
22164 FILE *f = fopen ("conftest.val", "w");
22167 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22169 long int i = longval ();
22170 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22172 fprintf (f, "%ld\n", i);
22176 unsigned long int i = ulongval ();
22177 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22179 fprintf (f, "%lu\n", i);
22181 return ferror (f) || fclose (f) != 0;
22187 rm -f conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22191 *) ac_try_echo
=$ac_try;;
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22198 { (case "(($ac_try" in
22199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_alignof_int=`cat conftest.val
`
22209 echo "$as_me: program exited with status $ac_status" >&5
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ( exit $ac_status )
22214 if test "$ac_cv_type_int" = yes; then
22215 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22216 See \`config.log
' for more details." >&5
22217 echo "$as_me: error: cannot compute alignment of int
22218 See \`config.log' for more details.
" >&2;}
22219 { (exit 77); exit 77; }; }
22221 ac_cv_alignof_int=0
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22228 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
22229 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22233 cat >>confdefs.h <<_ACEOF
22234 #define ALIGNOF_INT $ac_cv_alignof_int
22238 { echo "$as_me:$LINENO: checking
for long
" >&5
22239 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
22240 if test "${ac_cv_type_long+set}" = set; then
22241 echo $ECHO_N "(cached
) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 $ac_includes_default
22250 typedef long ac__type_new_;
22254 if ((ac__type_new_ *) 0)
22256 if (sizeof (ac__type_new_))
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest.$ac_objext; then
22279 ac_cv_type_long=yes
22281 echo "$as_me: failed program was
:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22290 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22292 # The cast to long int works around a bug in the HP C Compiler,
22293 # see AC_CHECK_SIZEOF for more information.
22294 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22295 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22296 if test "${ac_cv_alignof_long+set}" = set; then
22297 echo $ECHO_N "(cached
) $ECHO_C" >&6
22299 if test "$cross_compiling" = yes; then
22300 # Depending upon the size, compute the lo and hi bounds.
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 $ac_includes_default
22309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22311 typedef struct { char x; long y; } ac__type_alignof_;
22315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22322 rm -f conftest.$ac_objext
22323 if { (ac_try="$ac_compile"
22324 case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22329 (eval "$ac_compile") 2>conftest.er1
22331 grep -v '^ *+' conftest.er1 >conftest.err
22333 cat conftest.err >&5
22334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22335 (exit $ac_status); } && {
22336 test -z "$ac_c_werror_flag" ||
22337 test ! -s conftest.err
22338 } && test -s conftest.$ac_objext; then
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 $ac_includes_default
22349 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22351 typedef struct { char x; long y; } ac__type_alignof_;
22355 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_compile") 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest.$ac_objext; then
22379 ac_hi=$ac_mid; break
22381 echo "$as_me: failed program was
:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_lo=`expr $ac_mid + 1`
22385 if test $ac_lo -le $ac_mid; then
22389 ac_mid=`expr 2 '*' $ac_mid + 1`
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 echo "$as_me: failed program was
:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 $ac_includes_default
22406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22408 typedef struct { char x; long y; } ac__type_alignof_;
22412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22432 (exit $ac_status); } && {
22433 test -z "$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22435 } && test -s conftest.$ac_objext; then
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 $ac_includes_default
22446 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22448 typedef struct { char x; long y; } ac__type_alignof_;
22452 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_lo=$ac_mid; break
22478 echo "$as_me: failed program was
:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_hi=`expr '(' $ac_mid ')' - 1`
22482 if test $ac_mid -le $ac_hi; then
22486 ac_mid=`expr 2 '*' $ac_mid`
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 echo "$as_me: failed program was
:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 # Binary search between lo and hi bounds.
22503 while test "x
$ac_lo" != "x
$ac_hi"; do
22504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 $ac_includes_default
22513 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22515 typedef struct { char x; long y; } ac__type_alignof_;
22519 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22545 echo "$as_me: failed program was
:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_lo=`expr '(' $ac_mid ')' + 1`
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 ?*) ac_cv_alignof_long=$ac_lo;;
22555 '') if test "$ac_cv_type_long" = yes; then
22556 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22557 See \
`config.log' for more details." >&5
22558 echo "$as_me: error: cannot compute alignment of long
22559 See \`config.log
' for more details." >&2;}
22560 { (exit 77); exit 77; }; }
22562 ac_cv_alignof_long=0
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 $ac_includes_default
22574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22576 typedef struct { char x; long y; } ac__type_alignof_;
22577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22580 #include <stdlib.h>
22585 FILE *f = fopen ("conftest.val", "w");
22588 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22590 long int i = longval ();
22591 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22593 fprintf (f, "%ld\n", i);
22597 unsigned long int i = ulongval ();
22598 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22600 fprintf (f, "%lu\n", i);
22602 return ferror (f) || fclose (f) != 0;
22608 rm -f conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22619 { (case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_try") 2>&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22628 ac_cv_alignof_long=`cat conftest.val`
22630 echo "$as_me: program exited with status $ac_status" >&5
22631 echo "$as_me: failed program was:" >&5
22632 sed 's
/^
/|
/' conftest.$ac_ext >&5
22634 ( exit $ac_status )
22635 if test "$ac_cv_type_long" = yes; then
22636 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22637 See \`config.log' for more details.
" >&5
22638 echo "$as_me: error
: cannot compute alignment of long
22639 See \
`config.log' for more details." >&2;}
22640 { (exit 77); exit 77; }; }
22642 ac_cv_alignof_long=0
22645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22650 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22654 cat >>confdefs.h <<_ACEOF
22655 #define ALIGNOF_LONG $ac_cv_alignof_long
22659 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22660 { echo "$as_me:$LINENO: checking for long long int" >&5
22661 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22662 if test "${ac_cv_type_long_long_int+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 $ac_includes_default
22672 typedef long long int ac__type_new_;
22676 if ((ac__type_new_ *) 0)
22678 if (sizeof (ac__type_new_))
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22688 *) ac_try_echo
=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1
>conftest.err
22695 cat conftest.err
>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.
$ac_objext; then
22701 ac_cv_type_long_long_int
=yes
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.
$ac_ext >&5
22706 ac_cv_type_long_long_int
=no
22709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22711 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22712 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22714 # The cast to long int works around a bug in the HP C Compiler,
22715 # see AC_CHECK_SIZEOF for more information.
22716 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22717 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22718 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 if test "$cross_compiling" = yes; then
22722 # Depending upon the size, compute the lo and hi bounds.
22723 cat >conftest.
$ac_ext <<_ACEOF
22726 cat confdefs.h
>>conftest.
$ac_ext
22727 cat >>conftest.
$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22731 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22733 typedef struct { char x; long long int y; } ac__type_alignof_;
22737 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22744 rm -f conftest.
$ac_objext
22745 if { (ac_try
="$ac_compile"
22746 case "(($ac_try" in
22747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 $ac_includes_default
22771 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22773 typedef struct { char x; long long int y; } ac__type_alignof_;
22777 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22788 *) ac_try_echo
=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_compile") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1
>conftest.err
22795 cat conftest.err
>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest.
$ac_objext; then
22801 ac_hi
=$ac_mid; break
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.
$ac_ext >&5
22806 ac_lo
=`expr $ac_mid + 1`
22807 if test $ac_lo -le $ac_mid; then
22811 ac_mid
=`expr 2 '*' $ac_mid + 1`
22814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.
$ac_ext >&5
22820 cat >conftest.
$ac_ext <<_ACEOF
22823 cat confdefs.h
>>conftest.
$ac_ext
22824 cat >>conftest.
$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 $ac_includes_default
22828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22830 typedef struct { char x; long long int y; } ac__type_alignof_;
22834 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22841 rm -f conftest.
$ac_objext
22842 if { (ac_try
="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 $ac_includes_default
22868 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22870 typedef struct { char x; long long int y; } ac__type_alignof_;
22874 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22885 *) ac_try_echo
=$ac_try;;
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_compile") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1
>conftest.err
22892 cat conftest.err
>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest.
$ac_objext; then
22898 ac_lo
=$ac_mid; break
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.
$ac_ext >&5
22903 ac_hi
=`expr '(' $ac_mid ')' - 1`
22904 if test $ac_mid -le $ac_hi; then
22908 ac_mid
=`expr 2 '*' $ac_mid`
22911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.
$ac_ext >&5
22920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22924 # Binary search between lo and hi bounds.
22925 while test "x$ac_lo" != "x$ac_hi"; do
22926 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22927 cat >conftest.
$ac_ext <<_ACEOF
22930 cat confdefs.h
>>conftest.
$ac_ext
22931 cat >>conftest.
$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 $ac_includes_default
22935 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22937 typedef struct { char x; long long int y; } ac__type_alignof_;
22941 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22948 rm -f conftest.
$ac_objext
22949 if { (ac_try
="$ac_compile"
22950 case "(($ac_try" in
22951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22952 *) ac_try_echo=$ac_try;;
22954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22955 (eval "$ac_compile") 2>conftest.er1
22957 grep -v '^ *+' conftest.er1 >conftest.err
22959 cat conftest.err >&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && {
22962 test -z "$ac_c_werror_flag" ||
22963 test ! -s conftest.err
22964 } && test -s conftest.$ac_objext; then
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 ac_lo=`expr '(' $ac_mid ')' + 1`
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22977 '') if test "$ac_cv_type_long_long_int" = yes; then
22978 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22979 See \`config.log
' for more details." >&5
22980 echo "$as_me: error: cannot compute alignment of long long int
22981 See \`config.log' for more details.
" >&2;}
22982 { (exit 77); exit 77; }; }
22984 ac_cv_alignof_long_long_int=0
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 $ac_includes_default
22996 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22998 typedef struct { char x; long long int y; } ac__type_alignof_;
22999 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23000 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23002 #include <stdlib.h>
23007 FILE *f = fopen ("conftest.val
", "w
");
23010 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23012 long int i = longval ();
23013 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23015 fprintf (f, "%ld
\n", i);
23019 unsigned long int i = ulongval ();
23020 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23022 fprintf (f, "%lu
\n", i);
23024 return ferror (f) || fclose (f) != 0;
23030 rm -f conftest$ac_exeext
23031 if { (ac_try="$ac_link"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_link") 2>&5
23039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23041 { (case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_try") 2>&5
23048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ac_cv_alignof_long_long_int=`cat conftest.val`
23052 echo "$as_me: program exited with status
$ac_status" >&5
23053 echo "$as_me: failed program was
:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056 ( exit $ac_status )
23057 if test "$ac_cv_type_long_long_int" = yes; then
23058 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
23059 See \
`config.log' for more details." >&5
23060 echo "$as_me: error: cannot compute alignment of long long int
23061 See \`config.log
' for more details." >&2;}
23062 { (exit 77); exit 77; }; }
23064 ac_cv_alignof_long_long_int=0
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23072 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23076 cat >>confdefs.h <<_ACEOF
23077 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23082 { echo "$as_me:$LINENO: checking for double" >&5
23083 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23084 if test "${ac_cv_type_double+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 $ac_includes_default
23094 typedef double ac__type_new_;
23098 if ((ac__type_new_ *) 0)
23100 if (sizeof (ac__type_new_))
23106 rm -f conftest.$ac_objext
23107 if { (ac_try="$ac_compile"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_compile") 2>conftest.er1
23115 grep -v '^
*+' conftest.er1 >conftest.err
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && {
23120 test -z "$ac_c_werror_flag" ||
23121 test ! -s conftest.err
23122 } && test -s conftest.$ac_objext; then
23123 ac_cv_type_double=yes
23125 echo "$as_me: failed program was:" >&5
23126 sed 's
/^
/|
/' conftest.$ac_ext >&5
23128 ac_cv_type_double=no
23131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23134 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23136 # The cast to long int works around a bug in the HP C Compiler,
23137 # see AC_CHECK_SIZEOF for more information.
23138 { echo "$as_me:$LINENO: checking alignment of double" >&5
23139 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23140 if test "${ac_cv_alignof_double+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 if test "$cross_compiling" = yes; then
23144 # Depending upon the size, compute the lo and hi bounds.
23145 cat >conftest.$ac_ext <<_ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23153 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23155 typedef struct { char x; double y; } ac__type_alignof_;
23159 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_compile") 2>conftest.er1
23175 grep -v '^
*+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } && {
23180 test -z "$ac_c_werror_flag" ||
23181 test ! -s conftest.err
23182 } && test -s conftest.$ac_objext; then
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23193 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23195 typedef struct { char x; double y; } ac__type_alignof_;
23199 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_compile") 2>conftest.er1
23215 grep -v '^
*+' conftest.er1 >conftest.err
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest.$ac_objext; then
23223 ac_hi=$ac_mid; break
23225 echo "$as_me: failed program was:" >&5
23226 sed 's
/^
/|
/' conftest.$ac_ext >&5
23228 ac_lo=`expr $ac_mid + 1`
23229 if test $ac_lo -le $ac_mid; then
23233 ac_mid=`expr 2 '*' $ac_mid + 1`
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239 echo "$as_me: failed program was:" >&5
23240 sed 's
/^
/|
/' conftest.$ac_ext >&5
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23250 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23252 typedef struct { char x; double y; } ac__type_alignof_;
23256 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23263 rm -f conftest.$ac_objext
23264 if { (ac_try="$ac_compile"
23265 case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270 (eval "$ac_compile") 2>conftest.er1
23272 grep -v '^
*+' conftest.er1 >conftest.err
23274 cat conftest.err >&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } && {
23277 test -z "$ac_c_werror_flag" ||
23278 test ! -s conftest.err
23279 } && test -s conftest.$ac_objext; then
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 $ac_includes_default
23290 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23292 typedef struct { char x; double y; } ac__type_alignof_;
23296 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23303 rm -f conftest.$ac_objext
23304 if { (ac_try="$ac_compile"
23305 case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23312 grep -v '^
*+' conftest.er1 >conftest.err
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.$ac_objext; then
23320 ac_lo=$ac_mid; break
23322 echo "$as_me: failed program was:" >&5
23323 sed 's
/^
/|
/' conftest.$ac_ext >&5
23325 ac_hi=`expr '(' $ac_mid ')' - 1`
23326 if test $ac_mid -le $ac_hi; then
23330 ac_mid=`expr 2 '*' $ac_mid`
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336 echo "$as_me: failed program was:" >&5
23337 sed 's
/^
/|
/' conftest.$ac_ext >&5
23342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 # Binary search between lo and hi bounds.
23347 while test "x$ac_lo" != "x$ac_hi"; do
23348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 $ac_includes_default
23357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23359 typedef struct { char x; double y; } ac__type_alignof_;
23363 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_compile") 2>conftest.er1
23379 grep -v '^
*+' conftest.er1 >conftest.err
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest.$ac_objext; then
23389 echo "$as_me: failed program was:" >&5
23390 sed 's
/^
/|
/' conftest.$ac_ext >&5
23392 ac_lo=`expr '(' $ac_mid ')' + 1`
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398 ?*) ac_cv_alignof_double=$ac_lo;;
23399 '') if test "$ac_cv_type_double" = yes; then
23400 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23401 See \`config.log' for more details.
" >&5
23402 echo "$as_me: error
: cannot compute alignment of double
23403 See \
`config.log' for more details." >&2;}
23404 { (exit 77); exit 77; }; }
23406 ac_cv_alignof_double=0
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23420 typedef struct { char x; double y; } ac__type_alignof_;
23421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23424 #include <stdlib.h>
23429 FILE *f = fopen ("conftest.val", "w");
23432 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23434 long int i = longval ();
23435 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23437 fprintf (f, "%ld\n", i);
23441 unsigned long int i = ulongval ();
23442 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23444 fprintf (f, "%lu\n", i);
23446 return ferror (f) || fclose (f) != 0;
23452 rm -f conftest$ac_exeext
23453 if { (ac_try="$ac_link"
23454 case "(($ac_try" in
23455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23456 *) ac_try_echo
=$ac_try;;
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_link") 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23463 { (case "(($ac_try" in
23464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_try") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 ac_cv_alignof_double=`cat conftest.val
`
23474 echo "$as_me: program exited with status $ac_status" >&5
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 ( exit $ac_status )
23479 if test "$ac_cv_type_double" = yes; then
23480 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23481 See \`config.log
' for more details." >&5
23482 echo "$as_me: error: cannot compute alignment of double
23483 See \`config.log' for more details.
" >&2;}
23484 { (exit 77); exit 77; }; }
23486 ac_cv_alignof_double=0
23489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23493 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23494 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23498 cat >>confdefs.h <<_ACEOF
23499 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23504 # Compute maximum alignment of any basic type.
23505 # We assume long's alignment is at least as strong as char, short, or int;
23506 # but we must check long long (if it exists) and double.
23508 MAX_ALIGNOF=$ac_cv_alignof_long
23509 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23510 MAX_ALIGNOF=$ac_cv_alignof_double
23512 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23513 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23516 cat >>confdefs.h <<_ACEOF
23517 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23522 # Some platforms predefine the types int8, int16, etc. Only check
23523 # a (hopefully) representative subset.
23524 { echo "$as_me:$LINENO: checking
for int8
" >&5
23525 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23526 if test "${ac_cv_type_int8+set}" = set; then
23527 echo $ECHO_N "(cached
) $ECHO_C" >&6
23529 cat >conftest.$ac_ext <<_ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23536 #ifdef HAVE_SUPPORTDEFS_H
23537 #include <SupportDefs.h>
23540 typedef int8 ac__type_new_;
23544 if ((ac__type_new_ *) 0)
23546 if (sizeof (ac__type_new_))
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_compile") 2>conftest.er1
23561 grep -v '^ *+' conftest.er1 >conftest.err
23563 cat conftest.err >&5
23564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23565 (exit $ac_status); } && {
23566 test -z "$ac_c_werror_flag" ||
23567 test ! -s conftest.err
23568 } && test -s conftest.$ac_objext; then
23569 ac_cv_type_int8=yes
23571 echo "$as_me: failed program was
:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23580 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23581 if test $ac_cv_type_int8 = yes; then
23583 cat >>confdefs.h <<_ACEOF
23584 #define HAVE_INT8 1
23589 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23590 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23591 if test "${ac_cv_type_uint8+set}" = set; then
23592 echo $ECHO_N "(cached
) $ECHO_C" >&6
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23601 #ifdef HAVE_SUPPORTDEFS_H
23602 #include <SupportDefs.h>
23605 typedef uint8 ac__type_new_;
23609 if ((ac__type_new_ *) 0)
23611 if (sizeof (ac__type_new_))
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23626 grep -v '^ *+' conftest.er1 >conftest.err
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 ac_cv_type_uint8=yes
23636 echo "$as_me: failed program was
:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_type_uint8=no
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23645 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23646 if test $ac_cv_type_uint8 = yes; then
23648 cat >>confdefs.h <<_ACEOF
23649 #define HAVE_UINT8 1
23654 { echo "$as_me:$LINENO: checking
for int64
" >&5
23655 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23656 if test "${ac_cv_type_int64+set}" = set; then
23657 echo $ECHO_N "(cached
) $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23666 #ifdef HAVE_SUPPORTDEFS_H
23667 #include <SupportDefs.h>
23670 typedef int64 ac__type_new_;
23674 if ((ac__type_new_ *) 0)
23676 if (sizeof (ac__type_new_))
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_compile") 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23695 (exit $ac_status); } && {
23696 test -z "$ac_c_werror_flag" ||
23697 test ! -s conftest.err
23698 } && test -s conftest.$ac_objext; then
23699 ac_cv_type_int64=yes
23701 echo "$as_me: failed program was
:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ac_cv_type_int64=no
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23710 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23711 if test $ac_cv_type_int64 = yes; then
23713 cat >>confdefs.h <<_ACEOF
23714 #define HAVE_INT64 1
23719 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23720 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23721 if test "${ac_cv_type_uint64+set}" = set; then
23722 echo $ECHO_N "(cached
) $ECHO_C" >&6
23724 cat >conftest.$ac_ext <<_ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h. */
23731 #ifdef HAVE_SUPPORTDEFS_H
23732 #include <SupportDefs.h>
23735 typedef uint64 ac__type_new_;
23739 if ((ac__type_new_ *) 0)
23741 if (sizeof (ac__type_new_))
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_compile") 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest.$ac_objext; then
23764 ac_cv_type_uint64=yes
23766 echo "$as_me: failed program was
:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769 ac_cv_type_uint64=no
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23775 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23776 if test $ac_cv_type_uint64 = yes; then
23778 cat >>confdefs.h <<_ACEOF
23779 #define HAVE_UINT64 1
23786 # We also check for sig_atomic_t, which *should* be defined per ANSI
23787 # C, but is missing on some old platforms.
23788 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23789 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23790 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23791 echo $ECHO_N "(cached
) $ECHO_C" >&6
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23799 #include <signal.h>
23801 typedef sig_atomic_t ac__type_new_;
23805 if ((ac__type_new_ *) 0)
23807 if (sizeof (ac__type_new_))
23813 rm -f conftest.$ac_objext
23814 if { (ac_try="$ac_compile"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23820 (eval "$ac_compile") 2>conftest.er1
23822 grep -v '^ *+' conftest.er1 >conftest.err
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23826 (exit $ac_status); } && {
23827 test -z "$ac_c_werror_flag" ||
23828 test ! -s conftest.err
23829 } && test -s conftest.$ac_objext; then
23830 ac_cv_type_sig_atomic_t=yes
23832 echo "$as_me: failed program was
:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 ac_cv_type_sig_atomic_t=no
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23841 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23842 if test $ac_cv_type_sig_atomic_t = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_SIG_ATOMIC_T 1
23853 # If the user did not disable integer datetimes, check that
23854 # there is a working 64-bit integral type to use.
23855 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23856 test x"$HAVE_LONG_INT_64" = x"no
" &&
23857 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23858 test x"$HAVE_INT64" = x"no
" ; then
23859 { { echo "$as_me:$LINENO: error
:
23860 Integer-based datetime support requires a
64-bit integer
type,
23861 but no such
type could be found. The
--disable-integer-datetimes
23862 configure option can be used to disable integer-based storage
23863 of datetime values.
" >&5
23864 echo "$as_me: error
:
23865 Integer-based datetime support requires a
64-bit integer
type,
23866 but no such
type could be found. The
--disable-integer-datetimes
23867 configure option can be used to disable integer-based storage
23868 of datetime values.
" >&2;}
23869 { (exit 1); exit 1; }; }
23873 if test "$PORTNAME" != "win32
"
23875 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23876 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23877 if test "${pgac_cv_func_posix_signals+set}" = set; then
23878 echo $ECHO_N "(cached
) $ECHO_C" >&6
23880 cat >conftest.$ac_ext <<_ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 #include <signal.h>
23891 struct sigaction act, oact;
23892 sigemptyset(&act.sa_mask);
23893 act.sa_flags = SA_RESTART;
23894 sigaction(0, &act, &oact);
23899 rm -f conftest.$ac_objext conftest$ac_exeext
23900 if { (ac_try="$ac_link"
23901 case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_link") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest$ac_exeext &&
23916 $as_test_x conftest$ac_exeext; then
23917 pgac_cv_func_posix_signals=yes
23919 echo "$as_me: failed program was
:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 pgac_cv_func_posix_signals=no
23925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23926 conftest$ac_exeext conftest.$ac_ext
23928 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23929 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23930 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_POSIX_SIGNALS
23937 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23939 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23940 { { echo "$as_me:$LINENO: error
:
23941 Thread-safety requires POSIX signals
, which are not supported by this
23942 operating system.
" >&5
23943 echo "$as_me: error
:
23944 Thread-safety requires POSIX signals
, which are not supported by this
23945 operating system.
" >&2;}
23946 { (exit 1); exit 1; }; }
23950 if test $ac_cv_func_fseeko = yes; then
23951 # Check whether --enable-largefile was given.
23952 if test "${enable_largefile+set}" = set; then
23953 enableval=$enable_largefile;
23956 if test "$enable_largefile" != no; then
23958 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23959 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23960 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23961 echo $ECHO_N "(cached
) $ECHO_C" >&6
23963 ac_cv_sys_largefile_CC=no
23964 if test "$GCC" != yes; then
23967 # IRIX 6.2 and later do not support large files by default,
23968 # so use the C compiler's -n32 option if that helps.
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 #include <sys/types.h>
23976 /* Check that off_t can represent 2**63 - 1 correctly.
23977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23978 since some C++ compilers masquerading as C compilers
23979 incorrectly reject 9223372036854775807. */
23980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23982 && LARGE_OFF_T % 2147483647 == 1)
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1 >conftest.err
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24011 echo "$as_me: failed program was
:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24017 rm -f core conftest.err conftest.$ac_objext
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24026 (eval "$ac_compile") 2>conftest.er1
24028 grep -v '^ *+' conftest.er1 >conftest.err
24030 cat conftest.err >&5
24031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24032 (exit $ac_status); } && {
24033 test -z "$ac_c_werror_flag" ||
24034 test ! -s conftest.err
24035 } && test -s conftest.$ac_objext; then
24036 ac_cv_sys_largefile_CC=' -n32'; break
24038 echo "$as_me: failed program was
:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24044 rm -f core conftest.err conftest.$ac_objext
24048 rm -f conftest.$ac_ext
24051 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
24052 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24053 if test "$ac_cv_sys_largefile_CC" != no; then
24054 CC=$CC$ac_cv_sys_largefile_CC
24057 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
24058 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
24059 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24060 echo $ECHO_N "(cached
) $ECHO_C" >&6
24063 cat >conftest.$ac_ext <<_ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069 #include <sys/types.h>
24070 /* Check that off_t can represent 2**63 - 1 correctly.
24071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24072 since some C++ compilers masquerading as C compilers
24073 incorrectly reject 9223372036854775807. */
24074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24076 && LARGE_OFF_T % 2147483647 == 1)
24086 rm -f conftest.$ac_objext
24087 if { (ac_try="$ac_compile"
24088 case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24093 (eval "$ac_compile") 2>conftest.er1
24095 grep -v '^ *+' conftest.er1 >conftest.err
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest.$ac_objext; then
24103 ac_cv_sys_file_offset_bits=no; break
24105 echo "$as_me: failed program was
:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112 cat >conftest.$ac_ext <<_ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 #define _FILE_OFFSET_BITS 64
24119 #include <sys/types.h>
24120 /* Check that off_t can represent 2**63 - 1 correctly.
24121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24122 since some C++ compilers masquerading as C compilers
24123 incorrectly reject 9223372036854775807. */
24124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24126 && LARGE_OFF_T % 2147483647 == 1)
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest.$ac_objext; then
24153 ac_cv_sys_file_offset_bits=64; break
24155 echo "$as_me: failed program was
:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 ac_cv_sys_file_offset_bits=unknown
24166 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
24167 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24168 case $ac_cv_sys_file_offset_bits in #(
24171 cat >>confdefs.h <<_ACEOF
24172 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24177 if test $ac_cv_sys_file_offset_bits = unknown; then
24178 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
24179 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
24180 if test "${ac_cv_sys_large_files+set}" = set; then
24181 echo $ECHO_N "(cached
) $ECHO_C" >&6
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include <sys/types.h>
24191 /* Check that off_t can represent 2**63 - 1 correctly.
24192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24193 since some C++ compilers masquerading as C compilers
24194 incorrectly reject 9223372036854775807. */
24195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24197 && LARGE_OFF_T % 2147483647 == 1)
24207 rm -f conftest.$ac_objext
24208 if { (ac_try="$ac_compile"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_compile") 2>conftest.er1
24216 grep -v '^ *+' conftest.er1 >conftest.err
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24220 (exit $ac_status); } && {
24221 test -z "$ac_c_werror_flag" ||
24222 test ! -s conftest.err
24223 } && test -s conftest.$ac_objext; then
24224 ac_cv_sys_large_files=no; break
24226 echo "$as_me: failed program was
:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 #define _LARGE_FILES 1
24240 #include <sys/types.h>
24241 /* Check that off_t can represent 2**63 - 1 correctly.
24242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24243 since some C++ compilers masquerading as C compilers
24244 incorrectly reject 9223372036854775807. */
24245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24247 && LARGE_OFF_T % 2147483647 == 1)
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24266 grep -v '^ *+' conftest.er1 >conftest.err
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_cv_sys_large_files=1; break
24276 echo "$as_me: failed program was
:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283 ac_cv_sys_large_files=unknown
24287 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24288 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24289 case $ac_cv_sys_large_files in #(
24292 cat >>confdefs.h <<_ACEOF
24293 #define _LARGE_FILES $ac_cv_sys_large_files
24303 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24304 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24305 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24306 if test "${ac_cv_type_off_t+set}" = set; then
24307 echo $ECHO_N "(cached
) $ECHO_C" >&6
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 $ac_includes_default
24316 typedef off_t ac__type_new_;
24320 if ((ac__type_new_ *) 0)
24322 if (sizeof (ac__type_new_))
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24335 (eval "$ac_compile") 2>conftest.er1
24337 grep -v '^ *+' conftest.er1 >conftest.err
24339 cat conftest.err >&5
24340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24341 (exit $ac_status); } && {
24342 test -z "$ac_c_werror_flag" ||
24343 test ! -s conftest.err
24344 } && test -s conftest.$ac_objext; then
24345 ac_cv_type_off_t=yes
24347 echo "$as_me: failed program was
:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24350 ac_cv_type_off_t=no
24353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24356 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24358 # The cast to long int works around a bug in the HP C Compiler
24359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24361 # This bug is HP SR number 8606223364.
24362 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24363 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24364 if test "${ac_cv_sizeof_off_t+set}" = set; then
24365 echo $ECHO_N "(cached
) $ECHO_C" >&6
24367 if test "$cross_compiling" = yes; then
24368 # Depending upon the size, compute the lo and hi bounds.
24369 cat >conftest.$ac_ext <<_ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24375 $ac_includes_default
24376 typedef off_t ac__type_sizeof_;
24380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391 *) ac_try_echo=$ac_try;;
24393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24394 (eval "$ac_compile") 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24400 (exit $ac_status); } && {
24401 test -z "$ac_c_werror_flag" ||
24402 test ! -s conftest.err
24403 } && test -s conftest.$ac_objext; then
24406 cat >conftest.$ac_ext <<_ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h. */
24412 $ac_includes_default
24413 typedef off_t ac__type_sizeof_;
24417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_compile") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest.$ac_objext; then
24441 ac_hi=$ac_mid; break
24443 echo "$as_me: failed program was
:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24446 ac_lo=`expr $ac_mid + 1`
24447 if test $ac_lo -le $ac_mid; then
24451 ac_mid=`expr 2 '*' $ac_mid + 1`
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 echo "$as_me: failed program was
:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24466 $ac_includes_default
24467 typedef off_t ac__type_sizeof_;
24471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24478 rm -f conftest.$ac_objext
24479 if { (ac_try="$ac_compile"
24480 case "(($ac_try" in
24481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482 *) ac_try_echo=$ac_try;;
24484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_compile") 2>conftest.er1
24487 grep -v '^ *+' conftest.er1 >conftest.err
24489 cat conftest.err >&5
24490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24491 (exit $ac_status); } && {
24492 test -z "$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 } && test -s conftest.$ac_objext; then
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 $ac_includes_default
24504 typedef off_t ac__type_sizeof_;
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.$ac_objext; then
24532 ac_lo=$ac_mid; break
24534 echo "$as_me: failed program was
:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 ac_hi=`expr '(' $ac_mid ')' - 1`
24538 if test $ac_mid -le $ac_hi; then
24542 ac_mid=`expr 2 '*' $ac_mid`
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548 echo "$as_me: failed program was
:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24558 # Binary search between lo and hi bounds.
24559 while test "x
$ac_lo" != "x
$ac_hi"; do
24560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 $ac_includes_default
24568 typedef off_t ac__type_sizeof_;
24572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24579 rm -f conftest.$ac_objext
24580 if { (ac_try="$ac_compile"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_compile") 2>conftest.er1
24588 grep -v '^ *+' conftest.er1 >conftest.err
24590 cat conftest.err >&5
24591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24592 (exit $ac_status); } && {
24593 test -z "$ac_c_werror_flag" ||
24594 test ! -s conftest.err
24595 } && test -s conftest.$ac_objext; then
24598 echo "$as_me: failed program was
:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_lo=`expr '(' $ac_mid ')' + 1`
24604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24608 '') if test "$ac_cv_type_off_t" = yes; then
24609 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24610 See \
`config.log' for more details." >&5
24611 echo "$as_me: error: cannot compute sizeof (off_t)
24612 See \`config.log
' for more details." >&2;}
24613 { (exit 77); exit 77; }; }
24615 ac_cv_sizeof_off_t=0
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 $ac_includes_default
24626 typedef off_t ac__type_sizeof_;
24627 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24628 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24630 #include <stdlib.h>
24635 FILE *f = fopen ("conftest.val", "w");
24638 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24640 long int i = longval ();
24641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24643 fprintf (f, "%ld\n", i);
24647 unsigned long int i = ulongval ();
24648 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24650 fprintf (f, "%lu\n", i);
24652 return ferror (f) || fclose (f) != 0;
24658 rm -f conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_link") 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_cv_sizeof_off_t=`cat conftest.val`
24680 echo "$as_me: program exited with status $ac_status" >&5
24681 echo "$as_me: failed program was:" >&5
24682 sed 's
/^
/|
/' conftest.$ac_ext >&5
24684 ( exit $ac_status )
24685 if test "$ac_cv_type_off_t" = yes; then
24686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24687 See \`config.log' for more details.
" >&5
24688 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24689 See \
`config.log' for more details." >&2;}
24690 { (exit 77); exit 77; }; }
24692 ac_cv_sizeof_off_t=0
24695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24699 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24700 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24704 cat >>confdefs.h <<_ACEOF
24705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24710 # If we don't have largefile support, can't handle segsize >= 2GB.
24711 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24712 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24713 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24714 { (exit 1); exit 1; }; }
24717 # SunOS doesn't handle negative byte comparisons properly with +/- return
24718 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24719 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24720 if test "${ac_cv_func_memcmp_working+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24723 if test "$cross_compiling" = yes; then
24724 ac_cv_func_memcmp_working=no
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24732 $ac_includes_default
24737 /* Some versions of memcmp are not 8-bit clean. */
24738 char c0 = '\100', c1 = '\200', c2 = '\201';
24739 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24742 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24743 or more and with at least one buffer not starting on a 4-byte boundary.
24744 William Lewis provided this test program. */
24749 for (i = 0; i < 4; i++)
24753 strcpy (a, "--------01111111");
24754 strcpy (b, "--------10000000");
24755 if (memcmp (a, b, 16) >= 0)
24765 rm -f conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24769 *) ac_try_echo
=$ac_try;;
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_link") 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24776 { (case "(($ac_try" in
24777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_try") 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ac_cv_func_memcmp_working=yes
24787 echo "$as_me: program exited with status $ac_status" >&5
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ( exit $ac_status )
24792 ac_cv_func_memcmp_working=no
24794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24800 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24801 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24802 *" memcmp.$ac_objext "* ) ;;
24803 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24810 # Select semaphore implementation type.
24811 if test "$PORTNAME" != "win32"; then
24812 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24814 cat >>confdefs.h <<\_ACEOF
24815 #define USE_NAMED_POSIX_SEMAPHORES 1
24818 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24820 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24822 cat >>confdefs.h <<\_ACEOF
24823 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24826 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24829 cat >>confdefs.h <<\_ACEOF
24830 #define USE_SYSV_SEMAPHORES 1
24833 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24838 cat >>confdefs.h <<\_ACEOF
24839 #define USE_WIN32_SEMAPHORES 1
24842 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24846 # Select shared-memory implementation type.
24847 if test "$PORTNAME" != "win32"; then
24849 cat >>confdefs.h <<\_ACEOF
24850 #define USE_SYSV_SHARED_MEMORY 1
24853 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24856 cat >>confdefs.h <<\_ACEOF
24857 #define USE_WIN32_SHARED_MEMORY 1
24860 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24863 # If not set in template file, set bytes to use libc memset()
24864 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24865 MEMSET_LOOP_LIMIT=1024
24868 cat >>confdefs.h <<_ACEOF
24869 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24874 if test "$enable_nls" = yes ; then
24876 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24877 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24878 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 ac_func_search_save_LIBS=$LIBS
24882 cat >conftest.$ac_ext <<_ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h. */
24889 /* Override any GCC internal prototype to avoid an error.
24890 Use char because int might match the return type of a GCC
24891 builtin and then its argument prototype would still apply. */
24895 char bind_textdomain_codeset ();
24899 return bind_textdomain_codeset ();
24904 for ac_lib in '' intl; do
24905 if test -z "$ac_lib"; then
24906 ac_res="none required"
24909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24915 *) ac_try_echo
=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1
>conftest.err
24922 cat conftest.err
>&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } && {
24925 test -z "$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 } && test -s conftest
$ac_exeext &&
24928 $as_test_x conftest
$ac_exeext; then
24929 ac_cv_search_bind_textdomain_codeset
=$ac_res
24931 echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.
$ac_ext >&5
24937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24939 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24943 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24946 ac_cv_search_bind_textdomain_codeset
=no
24948 rm conftest.
$ac_ext
24949 LIBS
=$ac_func_search_save_LIBS
24951 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24952 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24953 ac_res
=$ac_cv_search_bind_textdomain_codeset
24954 if test "$ac_res" != no
; then
24955 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24958 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24959 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24960 { (exit 1); exit 1; }; }
24963 if test "${ac_cv_header_libintl_h+set}" = set; then
24964 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24965 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24966 if test "${ac_cv_header_libintl_h+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24970 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24972 # Is the header compilable?
24973 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24974 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24975 cat >conftest.
$ac_ext <<_ACEOF
24978 cat confdefs.h
>>conftest.
$ac_ext
24979 cat >>conftest.
$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24982 #include <libintl.h>
24984 rm -f conftest.
$ac_objext
24985 if { (ac_try
="$ac_compile"
24986 case "(($ac_try" in
24987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_compile") 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest.$ac_objext; then
25001 ac_header_compiler=yes
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25006 ac_header_compiler=no
25009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25011 echo "${ECHO_T}$ac_header_compiler" >&6; }
25013 # Is the header present?
25014 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25015 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 #include <libintl.h>
25024 if { (ac_try="$ac_cpp conftest.$ac_ext"
25025 case "(($ac_try" in
25026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25027 *) ac_try_echo
=$ac_try;;
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25032 grep -v '^ *+' conftest.er1
>conftest.err
25034 cat conftest.err
>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } >/dev
/null
&& {
25037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25038 test ! -s conftest.err
25040 ac_header_preproc
=yes
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.
$ac_ext >&5
25045 ac_header_preproc
=no
25048 rm -f conftest.err conftest.
$ac_ext
25049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25050 echo "${ECHO_T}$ac_header_preproc" >&6; }
25052 # So? What about this header?
25053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25055 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25056 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25057 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25058 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25059 ac_header_preproc
=yes
25062 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25063 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25065 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25067 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25068 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25069 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25072 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25073 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25075 ## ---------------------------------------- ##
25076 ## Report this to pgsql-bugs@postgresql.org ##
25077 ## ---------------------------------------- ##
25079 ) |
sed "s/^/$as_me: WARNING: /" >&2
25082 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25083 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25084 if test "${ac_cv_header_libintl_h+set}" = set; then
25085 echo $ECHO_N "(cached) $ECHO_C" >&6
25087 ac_cv_header_libintl_h
=$ac_header_preproc
25089 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25090 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25093 if test $ac_cv_header_libintl_h = yes; then
25096 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25097 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25098 { (exit 1); exit 1; }; }
25102 for ac_prog
in msgfmt
25104 # Extract the first word of "$ac_prog", so it can be a program name with args.
25105 set dummy
$ac_prog; ac_word
=$2
25106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25108 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25109 echo $ECHO_N "(cached) $ECHO_C" >&6
25111 if test -n "$MSGFMT"; then
25112 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
25114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25115 for as_dir
in $PATH
25118 test -z "$as_dir" && as_dir
=.
25119 for ac_exec_ext
in '' $ac_executable_extensions; do
25120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25121 ac_cv_prog_MSGFMT
="$ac_prog"
25122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25131 MSGFMT
=$ac_cv_prog_MSGFMT
25132 if test -n "$MSGFMT"; then
25133 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25134 echo "${ECHO_T}$MSGFMT" >&6; }
25136 { echo "$as_me:$LINENO: result: no" >&5
25137 echo "${ECHO_T}no" >&6; }
25141 test -n "$MSGFMT" && break
25144 if test -z "$MSGFMT"; then
25145 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25146 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25147 { (exit 1); exit 1; }; }
25149 for ac_prog
in msgmerge
25151 # Extract the first word of "$ac_prog", so it can be a program name with args.
25152 set dummy
$ac_prog; ac_word
=$2
25153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25155 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 if test -n "$MSGMERGE"; then
25159 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
25161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25162 for as_dir
in $PATH
25165 test -z "$as_dir" && as_dir
=.
25166 for ac_exec_ext
in '' $ac_executable_extensions; do
25167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25168 ac_cv_prog_MSGMERGE
="$ac_prog"
25169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25178 MSGMERGE
=$ac_cv_prog_MSGMERGE
25179 if test -n "$MSGMERGE"; then
25180 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25181 echo "${ECHO_T}$MSGMERGE" >&6; }
25183 { echo "$as_me:$LINENO: result: no" >&5
25184 echo "${ECHO_T}no" >&6; }
25188 test -n "$MSGMERGE" && break
25191 for ac_prog
in xgettext
25193 # Extract the first word of "$ac_prog", so it can be a program name with args.
25194 set dummy
$ac_prog; ac_word
=$2
25195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25197 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 if test -n "$XGETTEXT"; then
25201 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
25203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25204 for as_dir
in $PATH
25207 test -z "$as_dir" && as_dir
=.
25208 for ac_exec_ext
in '' $ac_executable_extensions; do
25209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25210 ac_cv_prog_XGETTEXT
="$ac_prog"
25211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25220 XGETTEXT
=$ac_cv_prog_XGETTEXT
25221 if test -n "$XGETTEXT"; then
25222 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25223 echo "${ECHO_T}$XGETTEXT" >&6; }
25225 { echo "$as_me:$LINENO: result: no" >&5
25226 echo "${ECHO_T}no" >&6; }
25230 test -n "$XGETTEXT" && break
25236 # Check for Tcl configuration script tclConfig.sh
25237 if test "$with_tcl" = yes; then
25238 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25240 # Extract the first word of "$ac_prog", so it can be a program name with args.
25241 set dummy
$ac_prog; ac_word
=$2
25242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25244 if test "${ac_cv_path_TCLSH+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25253 for as_dir
in $PATH
25256 test -z "$as_dir" && as_dir
=.
25257 for ac_exec_ext
in '' $ac_executable_extensions; do
25258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25259 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 TCLSH
=$ac_cv_path_TCLSH
25271 if test -n "$TCLSH"; then
25272 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25273 echo "${ECHO_T}$TCLSH" >&6; }
25275 { echo "$as_me:$LINENO: result: no" >&5
25276 echo "${ECHO_T}no" >&6; }
25280 test -n "$TCLSH" && break
25283 if test x
"$TCLSH" = x
""; then
25284 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25285 echo "$as_me: error: Tcl shell not found" >&2;}
25286 { (exit 1); exit 1; }; }
25289 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25290 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25291 # Let user override test
25292 if test -z "$TCL_CONFIG_SH"; then
25293 pgac_test_dirs
="$with_tclconfig"
25295 set X
$pgac_test_dirs; shift
25296 if test $# -eq 0; then
25297 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25298 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25299 { (exit 1); exit 1; }; }
25300 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25304 if test -r "$pgac_dir/tclConfig.sh"; then
25305 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25311 if test -z "$TCL_CONFIG_SH"; then
25312 { echo "$as_me:$LINENO: result: no" >&5
25313 echo "${ECHO_T}no" >&6; }
25314 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25315 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25316 { (exit 1); exit 1; }; }
25318 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25319 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25325 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25326 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25327 eval TCL_LIBS
=\"$TCL_LIBS\"
25328 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25329 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25331 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25332 ac_save_CPPFLAGS
=$CPPFLAGS
25333 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25334 if test "${ac_cv_header_tcl_h+set}" = set; then
25335 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25336 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25337 if test "${ac_cv_header_tcl_h+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25340 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25341 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25343 # Is the header compilable?
25344 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25345 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25346 cat >conftest.
$ac_ext <<_ACEOF
25349 cat confdefs.h
>>conftest.
$ac_ext
25350 cat >>conftest.
$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 $ac_includes_default
25355 rm -f conftest.
$ac_objext
25356 if { (ac_try
="$ac_compile"
25357 case "(($ac_try" in
25358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25362 (eval "$ac_compile") 2>conftest.er1
25364 grep -v '^ *+' conftest.er1 >conftest.err
25366 cat conftest.err >&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } && {
25369 test -z "$ac_c_werror_flag" ||
25370 test ! -s conftest.err
25371 } && test -s conftest.$ac_objext; then
25372 ac_header_compiler=yes
25374 echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25377 ac_header_compiler=no
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25382 echo "${ECHO_T}$ac_header_compiler" >&6; }
25384 # Is the header present?
25385 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25386 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25387 cat >conftest.$ac_ext <<_ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25395 if { (ac_try="$ac_cpp conftest.$ac_ext"
25396 case "(($ac_try" in
25397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25398 *) ac_try_echo
=$ac_try;;
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25403 grep -v '^ *+' conftest.er1
>conftest.err
25405 cat conftest.err
>&5
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } >/dev
/null
&& {
25408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25411 ac_header_preproc
=yes
25413 echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.
$ac_ext >&5
25416 ac_header_preproc
=no
25419 rm -f conftest.err conftest.
$ac_ext
25420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25421 echo "${ECHO_T}$ac_header_preproc" >&6; }
25423 # So? What about this header?
25424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25426 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25427 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25428 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25429 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25430 ac_header_preproc
=yes
25433 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25434 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25435 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25436 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25437 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25438 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25439 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25440 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25442 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25444 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25446 ## ---------------------------------------- ##
25447 ## Report this to pgsql-bugs@postgresql.org ##
25448 ## ---------------------------------------- ##
25450 ) |
sed "s/^/$as_me: WARNING: /" >&2
25453 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25454 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25455 if test "${ac_cv_header_tcl_h+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25458 ac_cv_header_tcl_h
=$ac_header_preproc
25460 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25461 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25464 if test $ac_cv_header_tcl_h = yes; then
25467 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25468 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25469 { (exit 1); exit 1; }; }
25473 CPPFLAGS
=$ac_save_CPPFLAGS
25477 # Check for DocBook and tools
25479 for ac_prog
in onsgmls nsgmls
25481 # Extract the first word of "$ac_prog", so it can be a program name with args.
25482 set dummy
$ac_prog; ac_word
=$2
25483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25485 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25488 if test -n "$NSGMLS"; then
25489 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25492 for as_dir
in $PATH
25495 test -z "$as_dir" && as_dir
=.
25496 for ac_exec_ext
in '' $ac_executable_extensions; do
25497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25498 ac_cv_prog_NSGMLS
="$ac_prog"
25499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25508 NSGMLS
=$ac_cv_prog_NSGMLS
25509 if test -n "$NSGMLS"; then
25510 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25511 echo "${ECHO_T}$NSGMLS" >&6; }
25513 { echo "$as_me:$LINENO: result: no" >&5
25514 echo "${ECHO_T}no" >&6; }
25518 test -n "$NSGMLS" && break
25521 for ac_prog
in openjade jade
25523 # Extract the first word of "$ac_prog", so it can be a program name with args.
25524 set dummy
$ac_prog; ac_word
=$2
25525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25527 if test "${ac_cv_prog_JADE+set}" = set; then
25528 echo $ECHO_N "(cached) $ECHO_C" >&6
25530 if test -n "$JADE"; then
25531 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25534 for as_dir
in $PATH
25537 test -z "$as_dir" && as_dir
=.
25538 for ac_exec_ext
in '' $ac_executable_extensions; do
25539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25540 ac_cv_prog_JADE
="$ac_prog"
25541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25550 JADE
=$ac_cv_prog_JADE
25551 if test -n "$JADE"; then
25552 { echo "$as_me:$LINENO: result: $JADE" >&5
25553 echo "${ECHO_T}$JADE" >&6; }
25555 { echo "$as_me:$LINENO: result: no" >&5
25556 echo "${ECHO_T}no" >&6; }
25560 test -n "$JADE" && break
25564 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25565 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25566 if test "${pgac_cv_check_docbook+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25569 cat >conftest.sgml
<<EOF
25570 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25572 <title>test</title>
25574 <title>random</title>
25576 <title>testsect</title>
25583 pgac_cv_check_docbook
=no
25585 if test -n "$NSGMLS"; then
25586 $NSGMLS -s conftest.sgml
1>&5 2>&1
25587 if test $?
-eq 0; then
25588 pgac_cv_check_docbook
=yes
25591 rm -f conftest.sgml
25593 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25594 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25596 have_docbook
=$pgac_cv_check_docbook
25599 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25600 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25601 if test "${pgac_cv_path_stylesheets+set}" = set; then
25602 echo $ECHO_N "(cached) $ECHO_C" >&6
25604 if test -n "$DOCBOOKSTYLE"; then
25605 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25607 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
25608 for pgac_infix
in share lib
; do
25609 for pgac_postfix
in \
25610 sgml
/stylesheets
/nwalsh-modular \
25611 sgml
/stylesheets
/docbook \
25612 sgml
/stylesheets
/dsssl
/docbook \
25613 sgml
/docbook-dsssl \
25614 sgml
/docbook
/dsssl
/modular \
25615 sgml
/docbook
/stylesheet
/dsssl
/modular \
25616 sgml
/docbook
/dsssl-stylesheets \
25617 sgml
/dsssl
/docbook-dsssl-nwalsh
25619 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25620 if test -r "$pgac_candidate/html/docbook.dsl" \
25621 && test -r "$pgac_candidate/print/docbook.dsl"
25623 pgac_cv_path_stylesheets
=$pgac_candidate
25632 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25634 if test -n "$DOCBOOKSTYLE"; then
25635 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25636 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25638 { echo "$as_me:$LINENO: result: no" >&5
25639 echo "${ECHO_T}no" >&6; }
25641 if test -n "$DOCBOOKSTYLE"; then
25642 for ac_prog
in collateindex.pl
25644 # Extract the first word of "$ac_prog", so it can be a program name with args.
25645 set dummy
$ac_prog; ac_word
=$2
25646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25648 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25649 echo $ECHO_N "(cached) $ECHO_C" >&6
25651 case $COLLATEINDEX in
25653 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25657 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25660 test -z "$as_dir" && as_dir
=.
25661 for ac_exec_ext
in '' $ac_executable_extensions; do
25662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25663 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25674 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25675 if test -n "$COLLATEINDEX"; then
25676 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25677 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25679 { echo "$as_me:$LINENO: result: no" >&5
25680 echo "${ECHO_T}no" >&6; }
25684 test -n "$COLLATEINDEX" && break
25688 for ac_prog
in collateindex.pl
25690 # Extract the first word of "$ac_prog", so it can be a program name with args.
25691 set dummy
$ac_prog; ac_word
=$2
25692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25694 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25697 case $COLLATEINDEX in
25699 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25703 for as_dir
in $PATH
25706 test -z "$as_dir" && as_dir
=.
25707 for ac_exec_ext
in '' $ac_executable_extensions; do
25708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25709 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25720 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25721 if test -n "$COLLATEINDEX"; then
25722 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25723 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25725 { echo "$as_me:$LINENO: result: no" >&5
25726 echo "${ECHO_T}no" >&6; }
25730 test -n "$COLLATEINDEX" && break
25734 for ac_prog
in sgmlspl
25736 # Extract the first word of "$ac_prog", so it can be a program name with args.
25737 set dummy
$ac_prog; ac_word
=$2
25738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25740 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 if test -n "$SGMLSPL"; then
25744 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25747 for as_dir
in $PATH
25750 test -z "$as_dir" && as_dir
=.
25751 for ac_exec_ext
in '' $ac_executable_extensions; do
25752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25753 ac_cv_prog_SGMLSPL
="$ac_prog"
25754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25763 SGMLSPL
=$ac_cv_prog_SGMLSPL
25764 if test -n "$SGMLSPL"; then
25765 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25766 echo "${ECHO_T}$SGMLSPL" >&6; }
25768 { echo "$as_me:$LINENO: result: no" >&5
25769 echo "${ECHO_T}no" >&6; }
25773 test -n "$SGMLSPL" && break
25779 # We have to run the thread test near the end so we have all our symbols
25780 # defined. Cross compiling throws a warning.
25782 if test "$enable_thread_safety_force" = yes; then
25783 if test "$PORTNAME" != "win32"
25785 { echo "$as_me:$LINENO: WARNING:
25786 *** Skipping thread test program. --enable-thread-safety-force was used.
25787 *** Run the program in src/test/thread on the your machine and add proper
25788 *** locking function calls to your applications to guarantee thread safety.
25790 echo "$as_me: WARNING:
25791 *** Skipping thread test program. --enable-thread-safety-force was used.
25792 *** Run the program in src/test/thread on the your machine and add proper
25793 *** locking function calls to your applications to guarantee thread safety.
25796 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25797 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25799 elif test "$enable_thread_safety" = yes; then
25800 if test "$PORTNAME" != "win32"
25802 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25803 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25807 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25808 LIBS
="$LIBS $PTHREAD_LIBS"
25809 if test "$cross_compiling" = yes; then
25810 { echo "$as_me:$LINENO: result: maybe" >&5
25811 echo "${ECHO_T}maybe" >&6; }
25812 { echo "$as_me:$LINENO: WARNING:
25813 *** Skipping thread test program because of cross-compile build.
25814 *** Run the program in src/test/thread on the target machine.
25816 echo "$as_me: WARNING:
25817 *** Skipping thread test program because of cross-compile build.
25818 *** Run the program in src/test/thread on the target machine.
25821 cat >conftest.
$ac_ext <<_ACEOF
25824 cat confdefs.h
>>conftest.
$ac_ext
25825 cat >>conftest.
$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827 #include "$srcdir/src/test/thread/thread_test.c"
25829 rm -f conftest
$ac_exeext
25830 if { (ac_try
="$ac_link"
25831 case "(($ac_try" in
25832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836 (eval "$ac_link") 2>&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25840 { (case "(($ac_try" in
25841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25842 *) ac_try_echo
=$ac_try;;
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845 (eval "$ac_try") 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 { echo "$as_me:$LINENO: result: yes" >&5
25850 echo "${ECHO_T}yes" >&6; }
25852 echo "$as_me: program exited with status $ac_status" >&5
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.
$ac_ext >&5
25856 ( exit $ac_status )
25857 { echo "$as_me:$LINENO: result: no" >&5
25858 echo "${ECHO_T}no" >&6; }
25859 { { echo "$as_me:$LINENO: error: thread test program failed
25860 This platform is not thread-safe. Check the file 'config.log' for the
25863 You can use the configure option --enable-thread-safety-force to force
25864 threads to be enabled. But you must then run the program in
25865 src/test/thread and add locking function calls to your applications to
25866 guarantee thread safety." >&5
25867 echo "$as_me: error: thread test program failed
25868 This platform is not thread-safe. Check the file 'config.log' for the
25871 You can use the configure option --enable-thread-safety-force to force
25872 threads to be enabled. But you must then run the program in
25873 src/test/thread and add locking function calls to your applications to
25874 guarantee thread safety." >&2;}
25875 { (exit 1); exit 1; }; }
25877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25884 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25885 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25889 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25890 # This is much easier than trying to filter LIBS to the minimum for each
25891 # executable. (Note that shared library links won't use this switch, though.)
25892 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25893 # libreadline; therefore we postpone testing it until we know what library
25894 # dependencies readline has. The test code will try to link with $LIBS.
25895 if test "$with_readline" = yes; then
25896 link_test_func
=readline
25898 link_test_func
=exit
25900 if test "$PORTNAME" != "darwin"; then
25901 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25902 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25903 pgac_save_LDFLAGS
=$LDFLAGS
25904 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
25905 if test "$cross_compiling" = yes; then
25906 LDFLAGS
="$pgac_save_LDFLAGS"
25907 { echo "$as_me:$LINENO: result: assuming no" >&5
25908 echo "${ECHO_T}assuming no" >&6; }
25910 cat >conftest.
$ac_ext <<_ACEOF
25913 cat confdefs.h
>>conftest.
$ac_ext
25914 cat >>conftest.
$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25925 rm -f conftest
$ac_exeext
25926 if { (ac_try
="$ac_link"
25927 case "(($ac_try" in
25928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932 (eval "$ac_link") 2>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936 { (case "(($ac_try" in
25937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25938 *) ac_try_echo
=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_try") 2>&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 { echo "$as_me:$LINENO: result: yes" >&5
25946 echo "${ECHO_T}yes" >&6; }
25948 echo "$as_me: program exited with status $ac_status" >&5
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.
$ac_ext >&5
25952 ( exit $ac_status )
25953 LDFLAGS
="$pgac_save_LDFLAGS"
25954 { echo "$as_me:$LINENO: result: no" >&5
25955 echo "${ECHO_T}no" >&6; }
25957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25963 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25964 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25965 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25966 pgac_save_LDFLAGS
=$LDFLAGS
25967 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25968 if test "$cross_compiling" = yes; then
25969 LDFLAGS
="$pgac_save_LDFLAGS"
25970 { echo "$as_me:$LINENO: result: assuming no" >&5
25971 echo "${ECHO_T}assuming no" >&6; }
25973 cat >conftest.
$ac_ext <<_ACEOF
25976 cat confdefs.h
>>conftest.
$ac_ext
25977 cat >>conftest.
$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25979 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25988 rm -f conftest
$ac_exeext
25989 if { (ac_try
="$ac_link"
25990 case "(($ac_try" in
25991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25992 *) ac_try_echo=$ac_try;;
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995 (eval "$ac_link") 2>&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25999 { (case "(($ac_try" in
26000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26001 *) ac_try_echo
=$ac_try;;
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004 (eval "$ac_try") 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 { echo "$as_me:$LINENO: result: yes" >&5
26009 echo "${ECHO_T}yes" >&6; }
26011 echo "$as_me: program exited with status $ac_status" >&5
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.
$ac_ext >&5
26015 ( exit $ac_status )
26016 LDFLAGS
="$pgac_save_LDFLAGS"
26017 { echo "$as_me:$LINENO: result: no" >&5
26018 echo "${ECHO_T}no" >&6; }
26020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26028 # Begin output steps
26030 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26031 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26032 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26033 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26034 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26035 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26037 # prepare build tree if outside source tree
26038 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26039 # Note 2: /bin/pwd might be better than shell's built-in at getting
26040 # a symlink-free name.
26041 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26045 if test "$no_create" != yes; then
26046 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26047 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
26048 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26049 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
26050 echo "$as_me: error: failed" >&2;}
26051 { (exit 1); exit 1; }; }
26052 { echo "$as_me:$LINENO: result: done" >&5
26053 echo "${ECHO_T}done" >&6; }
26059 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
26062 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}"
26065 if test "$PORTNAME" = "win32"; then
26066 ac_config_commands
="$ac_config_commands check_win32_symlinks"
26070 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
26073 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26076 cat >confcache
<<\_ACEOF
26077 # This file is a shell script that caches the results of configure
26078 # tests run on this system so they can be shared between configure
26079 # scripts and configure runs, see configure's option --config-cache.
26080 # It is not useful on other systems. If it contains results you don't
26081 # want to keep, you may remove or edit it.
26083 # config.status only pays attention to the cache file if you give it
26084 # the --recheck option to rerun configure.
26086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26088 # following values.
26092 # The following way of writing the cache mishandles newlines in values,
26093 # but we know of no workaround that is simple, portable, and efficient.
26094 # So, we kill variables containing newlines.
26095 # Ultrix sh set writes to stderr and can't be redirected directly,
26096 # and sets the high bit in the cache file unless we assign to the vars.
26098 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26099 eval ac_val
=\$
$ac_var
26103 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26104 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26107 _ | IFS | as_nl
) ;; #(
26108 *) $as_unset $ac_var ;;
26114 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26115 *${as_nl}ac_space
=\
*)
26116 # `set' does not quote correctly, so add quotes (double-quote
26117 # substitution turns \\\\ into \\, and sed turns \\ into \).
26120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26123 # `set' quotes correctly as required by POSIX, so do not add quotes.
26124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26135 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26137 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26138 if test -w "$cache_file"; then
26139 test "x$cache_file" != "x/dev/null" &&
26140 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26141 echo "$as_me: updating cache $cache_file" >&6;}
26142 cat confcache
>$cache_file
26144 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26145 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26150 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26151 # Let make expand exec_prefix.
26152 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26154 DEFS
=-DHAVE_CONFIG_H
26158 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26159 # 1. Remove the extension, and $U if already installed.
26160 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26161 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26162 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26163 # will be set to the directory where LIBOBJS objects are built.
26164 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26165 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26167 LIBOBJS
=$ac_libobjs
26169 LTLIBOBJS
=$ac_ltlibobjs
26173 : ${CONFIG_STATUS=./config.status}
26174 ac_clean_files_save
=$ac_clean_files
26175 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26178 cat >$CONFIG_STATUS <<_ACEOF
26180 # Generated by $as_me.
26181 # Run this file to recreate the current configuration.
26182 # Compiler output produced by configure, useful for debugging
26183 # configure, is in config.log if it exists.
26186 ac_cs_recheck=false
26188 SHELL=\${CONFIG_SHELL-$SHELL}
26191 cat >>$CONFIG_STATUS <<\_ACEOF
26192 ## --------------------- ##
26193 ## M4sh Initialization. ##
26194 ## --------------------- ##
26196 # Be more Bourne compatible
26197 DUALCASE
=1; export DUALCASE
# for MKS sh
26198 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26201 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26202 # is contrary to our usage. Disable this feature.
26203 alias -g '${1+"$@"}'='"$@"'
26204 setopt NO_GLOB_SUBST
26206 case `(set -o) 2>/dev/null` in
26207 *posix
*) set -o posix
;;
26216 # Avoid depending upon Character Ranges.
26217 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26218 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26219 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26220 as_cr_digits
='0123456789'
26221 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26223 # The user is always right.
26224 if test "${PATH_SEPARATOR+set}" != set; then
26225 echo "#! /bin/sh" >conf$$.sh
26226 echo "exit 0" >>conf$$.sh
26228 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26236 # Support unset when possible.
26237 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26245 # We need space, tab and new line, in precisely that order. Quoting is
26246 # there to prevent editors from complaining about space-tab.
26247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26248 # splitting by setting IFS to empty value.)
26253 # Find who we are. Look in the path if we contain no directory separator.
26255 *[\\/]* ) as_myself
=$0 ;;
26256 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26257 for as_dir
in $PATH
26260 test -z "$as_dir" && as_dir
=.
26261 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26267 # We did not find ourselves, most probably we were run as `sh COMMAND'
26268 # in which case we are not to be found in the path.
26269 if test "x$as_myself" = x
; then
26272 if test ! -f "$as_myself"; then
26273 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26274 { (exit 1); exit 1; }
26277 # Work around bugs in pre-3.0 UWIN ksh.
26278 for as_var
in ENV MAIL MAILPATH
26279 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26287 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26288 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26289 LC_TELEPHONE LC_TIME
26291 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26292 eval $as_var=C
; export $as_var
26294 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26298 # Required to use basename.
26299 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26300 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26306 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26307 as_basename
=basename
26313 # Name of the executable.
26314 as_me
=`$as_basename -- "$0" ||
26315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26316 X"$0" : 'X\(//\)$' \| \
26317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26319 sed '/^.*\/\([^/][^/]*\)\/*$/{
26338 as_lineno_1
=$LINENO
26339 as_lineno_2
=$LINENO
26340 test "x$as_lineno_1" != "x$as_lineno_2" &&
26341 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26344 # uniformly replaced by the line number. The first 'sed' inserts a
26345 # line-number line after each line using $LINENO; the second 'sed'
26346 # does the real work. The second script uses 'N' to pair each
26347 # line-number line with the line containing $LINENO, and appends
26348 # trailing '-' during substitution so that $LINENO is not a special
26349 # case at line end.
26350 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26351 # scripts with optimization help from Paolo Bonzini. Blame Lee
26352 # E. McMahon (1931-1989) for sed's syntax. :-)
26364 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26367 ' >$as_me.lineno
&&
26368 chmod +x
"$as_me.lineno" ||
26369 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26370 { (exit 1); exit 1; }; }
26372 # Don't try to exec as it changes $[0], causing all sort of problems
26373 # (the dirname of $[0] is not the place where we might find the
26374 # original and so on. Autoconf is especially sensitive to this).
26375 .
"./$as_me.lineno"
26376 # Exit status is that of the last command.
26381 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26387 ECHO_C
= ECHO_N
= ECHO_T
=
26388 case `echo -n x` in
26390 case `echo 'x\c'` in
26391 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26398 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26399 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26405 rm -f conf$$ conf$$.exe conf$$.
file
26406 if test -d conf$$.dir
; then
26407 rm -f conf$$.dir
/conf$$.
file
26413 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26415 # ... but there are two gotchas:
26416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26418 # In both cases, we have to default to `cp -p'.
26419 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26421 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26426 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26427 rmdir conf$$.dir
2>/dev
/null
26429 if mkdir
-p .
2>/dev
/null
; then
26432 test -d .
/-p && rmdir .
/-p
26436 if test -x / >/dev
/null
2>&1; then
26437 as_test_x
='test -x'
26439 if ls -dL / >/dev
/null
2>&1; then
26446 if test -d "$1"; then
26452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26453 ???[sx]*):;;*)false;;esac;fi
26457 as_executable_p
=$as_test_x
26459 # Sed expression to map a string onto a valid CPP name.
26460 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26462 # Sed expression to map a string onto a valid variable name.
26463 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26468 # Save the log message, to keep $[0] and so on meaningful, and to
26469 # report actual input values of CONFIG_FILES etc. instead of their
26470 # values after options handling.
26472 This file was extended by PostgreSQL $as_me 8.4devel, which was
26473 generated by GNU Autoconf 2.61. Invocation command line was
26475 CONFIG_FILES = $CONFIG_FILES
26476 CONFIG_HEADERS = $CONFIG_HEADERS
26477 CONFIG_LINKS = $CONFIG_LINKS
26478 CONFIG_COMMANDS = $CONFIG_COMMANDS
26481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26486 cat >>$CONFIG_STATUS <<_ACEOF
26487 # Files that config.status was made for.
26488 config_files="$ac_config_files"
26489 config_headers="$ac_config_headers"
26490 config_links="$ac_config_links"
26491 config_commands="$ac_config_commands"
26495 cat >>$CONFIG_STATUS <<\_ACEOF
26497 \`$as_me' instantiates files from templates according to the
26498 current configuration.
26500 Usage: $0 [OPTIONS] [FILE]...
26502 -h, --help print this help, then exit
26503 -V, --version print version number and configuration settings, then exit
26504 -q, --quiet do not print progress messages
26505 -d, --debug don't remove temporary files
26506 --recheck update $as_me by reconfiguring in the same conditions
26507 --file=FILE[:TEMPLATE]
26508 instantiate the configuration file FILE
26509 --header=FILE[:TEMPLATE]
26510 instantiate the configuration header FILE
26512 Configuration files:
26515 Configuration headers:
26518 Configuration links:
26521 Configuration commands:
26524 Report bugs to <bug-autoconf@gnu.org>."
26527 cat >>$CONFIG_STATUS <<_ACEOF
26529 PostgreSQL config.status 8.4devel
26530 configured by $0, generated by GNU Autoconf 2.61,
26531 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26533 Copyright (C) 2006 Free Software Foundation, Inc.
26534 This config.status script is free software; the Free Software Foundation
26535 gives unlimited permission to copy, distribute and modify it."
26541 cat >>$CONFIG_STATUS <<\_ACEOF
26542 # If no file are specified by the user, then we need to provide default
26543 # value. By we need to know if files were specified by the user.
26549 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26550 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26561 # Handling of the options.
26562 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26564 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26565 echo "$ac_cs_version"; exit ;;
26566 --debug |
--debu |
--deb |
--de |
--d |
-d )
26568 --file |
--fil |
--fi |
--f )
26570 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26571 ac_need_defaults
=false
;;
26572 --header |
--heade |
--head |
--hea )
26574 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26575 ac_need_defaults
=false
;;
26577 # Conflict between --help and --header
26578 { echo "$as_me: error: ambiguous option: $1
26579 Try \`$0 --help' for more information." >&2
26580 { (exit 1); exit 1; }; };;
26581 --help |
--hel |
-h )
26582 echo "$ac_cs_usage"; exit ;;
26583 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26584 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26587 # This is an error.
26588 -*) { echo "$as_me: error: unrecognized option: $1
26589 Try \`$0 --help' for more information." >&2
26590 { (exit 1); exit 1; }; } ;;
26592 *) ac_config_targets
="$ac_config_targets $1"
26593 ac_need_defaults
=false
;;
26599 ac_configure_extra_args
=
26601 if $ac_cs_silent; then
26603 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26607 cat >>$CONFIG_STATUS <<_ACEOF
26608 if \$ac_cs_recheck; then
26609 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26610 CONFIG_SHELL=$SHELL
26611 export CONFIG_SHELL
26612 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26616 cat >>$CONFIG_STATUS <<\_ACEOF
26620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26621 ## Running $as_me. ##
26627 cat >>$CONFIG_STATUS <<_ACEOF
26630 cat >>$CONFIG_STATUS <<\_ACEOF
26632 # Handling of arguments.
26633 for ac_config_target
in $ac_config_targets
26635 case $ac_config_target in
26636 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26637 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26638 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26639 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26640 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26641 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26642 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26643 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26644 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26645 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26646 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26647 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26651 { (exit 1); exit 1; }; };;
26656 # If the user did not use the arguments to specify the items to instantiate,
26657 # then the envvar interface is used. Set only those that are not.
26658 # We use the long form for the default assignment because of an extremely
26659 # bizarre bug on SunOS 4.1.3.
26660 if $ac_need_defaults; then
26661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26663 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26667 # Have a temporary directory for convenience. Make it in the build tree
26668 # simply because there is no reason against having it here, and in addition,
26669 # creating and moving files from /tmp can sometimes cause problems.
26670 # Hook for its removal unless debugging.
26671 # Note that there is a small window in which the directory will not be cleaned:
26672 # after its creation but before its name has been assigned to `$tmp'.
26676 trap 'exit_status=$?
26677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26679 trap '{ (exit 1); exit 1; }' 1 2 13 15
26681 # Create a (secure) tmp directory for tmp files.
26684 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26685 test -n "$tmp" && test -d "$tmp"
26688 tmp
=.
/conf$$
-$RANDOM
26689 (umask 077 && mkdir
"$tmp")
26692 echo "$me: cannot create a temporary directory in ." >&2
26693 { (exit 1); exit 1; }
26697 # Set up the sed scripts for CONFIG_FILES section.
26700 # No need to generate the scripts if there are no CONFIG_FILES.
26701 # This happens for instance when ./config.status config.h
26702 if test -n "$CONFIG_FILES"; then
26709 for ac_last_try
in false false false false false
:; do
26710 cat >conf$
$subs.
sed <<_ACEOF
26711 SHELL!$SHELL$ac_delim
26712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26718 exec_prefix!$exec_prefix$ac_delim
26719 prefix!$prefix$ac_delim
26720 program_transform_name!$program_transform_name$ac_delim
26721 bindir!$bindir$ac_delim
26722 sbindir!$sbindir$ac_delim
26723 libexecdir!$libexecdir$ac_delim
26724 datarootdir!$datarootdir$ac_delim
26725 datadir!$datadir$ac_delim
26726 sysconfdir!$sysconfdir$ac_delim
26727 sharedstatedir!$sharedstatedir$ac_delim
26728 localstatedir!$localstatedir$ac_delim
26729 includedir!$includedir$ac_delim
26730 oldincludedir!$oldincludedir$ac_delim
26731 docdir!$docdir$ac_delim
26732 infodir!$infodir$ac_delim
26733 htmldir!$htmldir$ac_delim
26734 dvidir!$dvidir$ac_delim
26735 pdfdir!$pdfdir$ac_delim
26736 psdir!$psdir$ac_delim
26737 libdir!$libdir$ac_delim
26738 localedir!$localedir$ac_delim
26739 mandir!$mandir$ac_delim
26740 DEFS!$DEFS$ac_delim
26741 ECHO_C!$ECHO_C$ac_delim
26742 ECHO_N!$ECHO_N$ac_delim
26743 ECHO_T!$ECHO_T$ac_delim
26744 LIBS!$LIBS$ac_delim
26745 build_alias!$build_alias$ac_delim
26746 host_alias!$host_alias$ac_delim
26747 target_alias!$target_alias$ac_delim
26748 configure_args!$configure_args$ac_delim
26749 build!$build$ac_delim
26750 build_cpu!$build_cpu$ac_delim
26751 build_vendor!$build_vendor$ac_delim
26752 build_os!$build_os$ac_delim
26753 host!$host$ac_delim
26754 host_cpu!$host_cpu$ac_delim
26755 host_vendor!$host_vendor$ac_delim
26756 host_os!$host_os$ac_delim
26757 PORTNAME!$PORTNAME$ac_delim
26758 enable_nls!$enable_nls$ac_delim
26759 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26760 default_port!$default_port$ac_delim
26761 enable_shared!$enable_shared$ac_delim
26762 enable_rpath!$enable_rpath$ac_delim
26763 enable_debug!$enable_debug$ac_delim
26764 enable_profiling!$enable_profiling$ac_delim
26765 GCOV!$GCOV$ac_delim
26766 LCOV!$LCOV$ac_delim
26767 GENHTML!$GENHTML$ac_delim
26768 enable_coverage!$enable_coverage$ac_delim
26769 DTRACE!$DTRACE$ac_delim
26770 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26771 enable_dtrace!$enable_dtrace$ac_delim
26773 CFLAGS!$CFLAGS$ac_delim
26774 LDFLAGS!$LDFLAGS$ac_delim
26775 CPPFLAGS!$CPPFLAGS$ac_delim
26776 ac_ct_CC!$ac_ct_CC$ac_delim
26777 EXEEXT!$EXEEXT$ac_delim
26778 OBJEXT!$OBJEXT$ac_delim
26779 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26783 autodepend!$autodepend$ac_delim
26784 INCLUDES!$INCLUDES$ac_delim
26785 enable_thread_safety!$enable_thread_safety$ac_delim
26786 with_tcl!$with_tcl$ac_delim
26787 with_perl!$with_perl$ac_delim
26788 with_python!$with_python$ac_delim
26789 with_gssapi!$with_gssapi$ac_delim
26790 with_krb5!$with_krb5$ac_delim
26791 krb_srvtab!$krb_srvtab$ac_delim
26792 with_pam!$with_pam$ac_delim
26793 with_ldap!$with_ldap$ac_delim
26794 with_bonjour!$with_bonjour$ac_delim
26795 with_openssl!$with_openssl$ac_delim
26796 with_ossp_uuid!$with_ossp_uuid$ac_delim
26797 XML2_CONFIG!$XML2_CONFIG$ac_delim
26798 with_libxml!$with_libxml$ac_delim
26799 with_libxslt!$with_libxslt$ac_delim
26800 with_system_tzdata!$with_system_tzdata$ac_delim
26801 with_zlib!$with_zlib$ac_delim
26802 GREP!$GREP$ac_delim
26803 EGREP!$EGREP$ac_delim
26804 ELF_SYS!$ELF_SYS$ac_delim
26805 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26807 with_gnu_ld!$with_gnu_ld$ac_delim
26810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26812 elif $ac_last_try; then
26813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26815 { (exit 1); exit 1; }; }
26817 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26821 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26822 if test -n "$ac_eof"; then
26823 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26824 ac_eof
=`expr $ac_eof + 1`
26827 cat >>$CONFIG_STATUS <<_ACEOF
26828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26833 s/^/s,@/; s/!/@,|#_!!_#|/
26836 s/'"$ac_delim"'$/,g/; t
26838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26839 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26840 rm -f conf$
$subs.
sed
26841 cat >>$CONFIG_STATUS <<_ACEOF
26847 for ac_last_try
in false false false false false
:; do
26848 cat >conf$
$subs.
sed <<_ACEOF
26849 ld_R_works!$ld_R_works$ac_delim
26850 RANLIB!$RANLIB$ac_delim
26851 STRIP!$STRIP$ac_delim
26852 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26853 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26855 LN_S!$LN_S$ac_delim
26857 BISON!$BISON$ac_delim
26858 BISONFLAGS!$BISONFLAGS$ac_delim
26859 FLEX!$FLEX$ac_delim
26860 FLEXFLAGS!$FLEXFLAGS$ac_delim
26861 PERL!$PERL$ac_delim
26862 perl_archlibexp!$perl_archlibexp$ac_delim
26863 perl_privlibexp!$perl_privlibexp$ac_delim
26864 perl_useshrplib!$perl_useshrplib$ac_delim
26865 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26866 PYTHON!$PYTHON$ac_delim
26867 python_version!$python_version$ac_delim
26868 python_configdir!$python_configdir$ac_delim
26869 python_includespec!$python_includespec$ac_delim
26870 python_libdir!$python_libdir$ac_delim
26871 python_libspec!$python_libspec$ac_delim
26872 python_additional_libs!$python_additional_libs$ac_delim
26873 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26874 HAVE_IPV6!$HAVE_IPV6$ac_delim
26875 LIBOBJS!$LIBOBJS$ac_delim
26876 acx_pthread_config!$acx_pthread_config$ac_delim
26877 PTHREAD_CC!$PTHREAD_CC$ac_delim
26878 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26879 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26880 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26881 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26882 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26883 MSGFMT!$MSGFMT$ac_delim
26884 MSGMERGE!$MSGMERGE$ac_delim
26885 XGETTEXT!$XGETTEXT$ac_delim
26886 TCLSH!$TCLSH$ac_delim
26887 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26888 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26889 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26890 TCL_LIBS!$TCL_LIBS$ac_delim
26891 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26892 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26893 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26894 NSGMLS!$NSGMLS$ac_delim
26895 JADE!$JADE$ac_delim
26896 have_docbook!$have_docbook$ac_delim
26897 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26898 COLLATEINDEX!$COLLATEINDEX$ac_delim
26899 SGMLSPL!$SGMLSPL$ac_delim
26900 vpath_build!$vpath_build$ac_delim
26901 LTLIBOBJS!$LTLIBOBJS$ac_delim
26904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26906 elif $ac_last_try; then
26907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26909 { (exit 1); exit 1; }; }
26911 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26915 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26916 if test -n "$ac_eof"; then
26917 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26918 ac_eof
=`expr $ac_eof + 1`
26921 cat >>$CONFIG_STATUS <<_ACEOF
26922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26927 s/^/s,@/; s/!/@,|#_!!_#|/
26930 s/'"$ac_delim"'$/,g/; t
26932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26933 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26934 rm -f conf$
$subs.
sed
26935 cat >>$CONFIG_STATUS <<_ACEOF
26942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26944 # trailing colons and then remove the whole line if VPATH becomes empty
26945 # (actually we leave an empty line to preserve line numbers).
26946 if test "x$srcdir" = x.
; then
26947 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26948 s/:*\$(srcdir):*/:/
26949 s/:*\${srcdir}:*/:/
26951 s/^\([^=]*=[ ]*\):*/\1/
26957 cat >>$CONFIG_STATUS <<\_ACEOF
26958 fi # test -n "$CONFIG_FILES"
26961 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
26964 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26966 case $ac_mode$ac_tag in
26968 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26970 { (exit 1); exit 1; }; };;
26971 :[FH
]-) ac_tag
=-:-;;
26972 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26989 -) ac_f
="$tmp/stdin";;
26990 *) # Look for the file first in the build tree, then in the source tree
26991 # (if the path is not absolute). The absolute path cannot be DOS-style,
26992 # because $ac_f cannot contain `:'.
26996 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26998 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27000 { (exit 1); exit 1; }; };;
27002 ac_file_inputs
="$ac_file_inputs $ac_f"
27005 # Let's still pretend it is `configure' which instantiates (i.e., don't
27006 # use $as_me), people would be surprised to read:
27007 # /* config.h. Generated by config.status. */
27008 configure_input
="Generated from "`IFS=:
27009 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27010 if test x
"$ac_file" != x-
; then
27011 configure_input
="$ac_file. $configure_input"
27012 { echo "$as_me:$LINENO: creating $ac_file" >&5
27013 echo "$as_me: creating $ac_file" >&6;}
27017 *:-:* |
*:-) cat >"$tmp/stdin";;
27022 ac_dir
=`$as_dirname -- "$ac_file" ||
27023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27024 X"$ac_file" : 'X\(//\)[^/]' \| \
27025 X"$ac_file" : 'X\(//\)$' \| \
27026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27032 /^X\(\/\/\)[^/].*/{
27047 -*) as_dir
=.
/$as_dir;;
27049 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27053 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27054 *) as_qdir
=$as_dir;;
27056 as_dirs
="'$as_qdir' $as_dirs"
27057 as_dir
=`$as_dirname -- "$as_dir" ||
27058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27059 X"$as_dir" : 'X\(//\)[^/]' \| \
27060 X"$as_dir" : 'X\(//\)$' \| \
27061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27067 /^X\(\/\/\)[^/].*/{
27080 test -d "$as_dir" && break
27082 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27083 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27085 { (exit 1); exit 1; }; }; }
27089 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27091 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27092 # A ".." for each directory in $ac_dir_suffix.
27093 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27094 case $ac_top_builddir_sub in
27095 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27096 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27099 ac_abs_top_builddir
=$ac_pwd
27100 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27101 # for backward compatibility:
27102 ac_top_builddir
=$ac_top_build_prefix
27105 .
) # We are building in place.
27107 ac_top_srcdir
=$ac_top_builddir_sub
27108 ac_abs_top_srcdir
=$ac_pwd ;;
27109 [\\/]* | ?
:[\\/]* ) # Absolute name.
27110 ac_srcdir
=$srcdir$ac_dir_suffix;
27111 ac_top_srcdir
=$srcdir
27112 ac_abs_top_srcdir
=$srcdir ;;
27113 *) # Relative name.
27114 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27115 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27116 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27118 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27129 cat >>$CONFIG_STATUS <<\_ACEOF
27130 # If the template does not know about datarootdir, expand it.
27131 # FIXME: This hack should be removed a few years after 2.60.
27132 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27134 case `sed -n '/datarootdir/ {
27143 ' $ac_file_inputs` in
27144 *datarootdir
*) ac_datarootdir_seen
=yes;;
27145 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27146 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27147 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27149 cat >>$CONFIG_STATUS <<_ACEOF
27150 ac_datarootdir_hack='
27151 s&@datadir@&$datadir&g
27152 s&@docdir@&$docdir&g
27153 s&@infodir@&$infodir&g
27154 s&@localedir@&$localedir&g
27155 s&@mandir@&$mandir&g
27156 s&\\\${datarootdir}&$datarootdir&g' ;;
27160 # Neutralize VPATH when `$srcdir' = `.'.
27161 # Shell code in configure.ac might set extrasub.
27162 # FIXME: do we really want to maintain this feature?
27163 cat >>$CONFIG_STATUS <<_ACEOF
27167 cat >>$CONFIG_STATUS <<\_ACEOF
27169 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27170 s
&@configure_input@
&$configure_input&;t t
27171 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27172 s
&@srcdir@
&$ac_srcdir&;t t
27173 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27174 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27175 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27176 s
&@builddir@
&$ac_builddir&;t t
27177 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27178 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27179 $ac_datarootdir_hack
27180 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27183 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27185 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27186 which seems to be undefined. Please make sure it is defined." >&5
27187 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27188 which seems to be undefined. Please make sure it is defined." >&2;}
27192 -) cat "$tmp/out"; rm -f "$tmp/out";;
27193 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27202 # Transform confdefs.h into a sed script `conftest.defines', that
27203 # substitutes the proper values into config.h.in to produce config.h.
27204 rm -f conftest.defines conftest.
tail
27205 # First, append a space to every undef/define line, to ease matching.
27206 echo 's/$/ /' >conftest.defines
27207 # Then, protect against being on the right side of a sed subst, or in
27208 # an unquoted here document, in config.status. If some macros were
27209 # called several times there might be several #defines for the same
27210 # symbol, which is useless. But do not sort them, since the last
27211 # AC_DEFINE must be honored.
27212 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27213 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27214 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27215 # PARAMS is the parameter list in the macro definition--in most cases, it's
27216 # just an empty string.
27217 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27218 ac_dB
='\\)[ (].*,\\1define\\2'
27226 s/^[ ]*#[ ]*define[ ][ ]*//
27231 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27232 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27233 ' >>conftest.defines
27235 # Remove the space that was appended to ease matching.
27236 # Then replace #undef with comments. This is necessary, for
27237 # example, in the case of _POSIX_SOURCE, which is predefined and required
27238 # on some systems where configure will not decide to define it.
27239 # (The regexp can be short, since the line contains either #define or #undef.)
27241 s,^[ #]*u.*,/* & */,' >>conftest.defines
27243 # Break up conftest.defines:
27244 ac_max_sed_lines
=50
27246 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27247 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27248 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27250 ac_in
='$ac_file_inputs'
27251 ac_out
='"$tmp/out1"'
27252 ac_nxt
='"$tmp/out2"'
27256 # Write a here document:
27257 cat >>$CONFIG_STATUS <<_ACEOF
27258 # First, check the format of the line:
27259 cat >"\$tmp/defines.sed" <<\\CEOF
27260 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27261 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27265 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27267 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27268 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27269 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27270 grep . conftest.
tail >/dev
/null ||
break
27271 rm -f conftest.defines
27272 mv conftest.
tail conftest.defines
27274 rm -f conftest.defines conftest.
tail
27276 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27277 cat >>$CONFIG_STATUS <<\_ACEOF
27278 if test x
"$ac_file" != x-
; then
27279 echo "/* $configure_input */" >"$tmp/config.h"
27280 cat "$ac_result" >>"$tmp/config.h"
27281 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27282 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27283 echo "$as_me: $ac_file is unchanged" >&6;}
27286 mv "$tmp/config.h" $ac_file
27289 echo "/* $configure_input */"
27299 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27300 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27302 if test ! -r "$srcdir/$ac_source"; then
27303 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27304 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27305 { (exit 1); exit 1; }; }
27309 # Try a relative symlink, then a hard link, then a copy.
27311 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27312 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27314 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27315 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27316 cp -p "$srcdir/$ac_source" "$ac_file" ||
27317 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27318 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27319 { (exit 1); exit 1; }; }
27321 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27322 echo "$as_me: executing $ac_file commands" >&6;}
27327 case $ac_file$ac_mode in
27328 "check_win32_symlinks":C
)
27329 # Links sometimes fail undetected on Mingw -
27330 # so here we detect it and warn the user
27331 for FILE
in $CONFIG_LINKS
27333 # test -e works for symlinks in the MinGW console
27334 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27335 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27338 "src/include/pg_config.h":H
)
27339 # Update timestamp for pg_config.h (see Makefile.global)
27340 echo >src
/include
/stamp-h
27347 { (exit 0); exit 0; }
27349 chmod +x
$CONFIG_STATUS
27350 ac_clean_files
=$ac_clean_files_save
27353 # configure is writing to config.log, and then calls config.status.
27354 # config.status does its own redirection, appending to config.log.
27355 # Unfortunately, on DOS this fails, as config.log is still kept open
27356 # by configure, so config.status won't be able to write to it; its
27357 # output is simply discarded. So we exec the FD to /dev/null,
27358 # effectively closing config.log, so it can be properly (re)opened and
27359 # appended to by config.status. When coming back to configure, we
27360 # need to make the FD available again.
27361 if test "$no_create" != yes; then
27363 ac_config_status_args
=
27364 test "$silent" = yes &&
27365 ac_config_status_args
="$ac_config_status_args --quiet"
27367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27370 # would make configure fail if this is the last instruction.
27371 $ac_cs_success ||
{ (exit 1); exit 1; }
27375 # Warn about unknown options
27376 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27377 for pgac_arg
in $pgac_args with_gnu_ld
; do
27378 if test "$pgac_var" = "$pgac_arg"; then
27382 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27383 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27384 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}