2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
746 python_additional_libs
779 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name=s,x,x,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_$ac_feature=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_$ac_feature=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
933 -help | --help | --hel | --he | -h)
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 # Obsolete; use --without-fp.
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1082 -site=* | --site=* | --sit=*)
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=no ;;
1127 # Obsolete; use --with-x.
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --disable-integer-datetimes
1365 disable 64-bit integer date/time support
1366 --enable-nls[=LANGUAGES]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path in
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols (-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks (for debugging)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support for large files
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS look for additional header files in DIRS
1390 --with-libraries=DIRS look for additional libraries in DIRS
1391 --with-libs=DIRS alternative spelling of --with-libraries
1392 --with-pgport=PORTNUM set default port number [5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size in kB [8]
1395 --with-segsize=SEGSIZE set table segment size in GB [1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size in kB [8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size in MB [16]
1400 --with-CC=CMD set compiler (deprecated)
1401 --with-tcl build Tcl modules (PL/Tcl)
1402 --with-tclconfig=DIR tclConfig.sh is in DIR
1403 --with-perl build Perl modules (PL/Perl)
1404 --with-python build Python modules (PL/Python)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos 5 support
1407 --with-krb-srvnam=NAME default service principal name in Kerberos
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib/xml2
1420 --with-system-tzdata=DIR
1421 use system time zone data in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_must_keep_next=false
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 -* ) ac_must_keep_next=true ;;
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 echo "$ac_var='\''$ac_val'\''"
1682 if test -n "$ac_subst_files"; then
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1700 if test -s confdefs.h; then
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1791 # Check that the precious variables saved in the cache have kept the same
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1813 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1814 echo "$as_me: former value: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1816 echo "$as_me: current value: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1834 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1835 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2047 # --with-template not given
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2069 case $host_vendor in
2070 univel) template=univel ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2087 *******************************************************************
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2098 *******************************************************************
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2278 WANTED_LANGUAGES=$enableval
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2790 case ${blocksize} in
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2943 case ${wal_segsize} in
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3052 if test -z "$CC"; then
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { (ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3218 # We found the default executable, but exeext='' is most
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 { echo "$as_me:$LINENO: result: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='./$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 if test "$cross_compiling" = maybe; then
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.$ac_objext; then
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3600 if test "$GCC" = yes; then
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_prog_cc_c89=no
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3637 s = g (p, va_arg (v,int));
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_prog_cc_c89=$ac_arg
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 rm -f conftest.$ac_ext
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3742 #ifndef __INTEL_COMPILER
3749 rm -f conftest.$ac_objext
3750 if { (ac_try="$ac_compile"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1 >conftest.err
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 . "$srcdir/src/template/$template" || exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3857 if test "$GCC" = yes -a "$ICC" = no; then
3858 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3859 # These work in some but not all gcc versions
3860 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3861 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3862 pgac_save_CFLAGS=$CFLAGS
3863 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 CFLAGS="$pgac_save_CFLAGS"
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3910 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3911 pgac_save_CFLAGS=$CFLAGS
3912 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3937 grep -v '^ *+' conftest.er1 >conftest.err
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3945 { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 CFLAGS="$pgac_save_CFLAGS"
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 # Disable strict-aliasing rules; needed for gcc 3.3+
3959 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3960 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3961 pgac_save_CFLAGS=$CFLAGS
3962 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 rm -f conftest.$ac_objext
3979 if { (ac_try="$ac_compile"
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 { echo "$as_me:$LINENO: result: yes" >&5
3996 echo "${ECHO_T}yes" >&6; }
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 CFLAGS="$pgac_save_CFLAGS"
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4009 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4010 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.$ac_objext; then
4045 { echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6; }
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 CFLAGS="$pgac_save_CFLAGS"
4052 { echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6; }
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 elif test "$ICC" = yes; then
4059 # Intel's compiler has a bug/misoptimization in checking for
4060 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4061 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4062 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4063 pgac_save_CFLAGS=$CFLAGS
4064 CFLAGS="$pgac_save_CFLAGS -mp1"
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 { echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6; }
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 CFLAGS="$pgac_save_CFLAGS"
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 # Make sure strict aliasing is off (though this is said to be the default)
4111 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4112 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 CFLAGS="$pgac_save_CFLAGS"
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 elif test x"${CC}" = x"xlc"; then
4161 # AIX xlc has to have strict aliasing turned off too
4162 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4163 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4164 pgac_save_CFLAGS=$CFLAGS
4165 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4181 rm -f conftest.$ac_objext
4182 if { (ac_try="$ac_compile"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4198 { echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6; }
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 CFLAGS="$pgac_save_CFLAGS"
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 # supply -g if --enable-debug
4214 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218 # enable code coverage if --enable-coverage
4219 if test "$enable_coverage" = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4223 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4224 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4225 { (exit 1); exit 1; }; }
4229 # enable profiling if --enable-profiling
4230 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4231 if test "$GCC" = yes; then
4233 cat >>confdefs.h <<\_ACEOF
4234 #define PROFILE_PID_DIR 1
4237 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4239 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4240 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4241 { (exit 1); exit 1; }; }
4245 # We already have this in Makefile.win32, but configure needs it too
4246 if test "$PORTNAME" = "win32"; then
4247 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4250 # Check if the compiler still works with the template settings
4251 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4252 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (ac_try="$ac_link"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_link") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest$ac_exeext &&
4285 $as_test_x conftest$ac_exeext; then
4286 { echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6; }
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4295 echo "$as_me: error: cannot proceed" >&2;}
4296 { (exit 1); exit 1; }; }
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext conftest.$ac_ext
4302 # Defend against gcc -ffast-math
4303 if test "$GCC" = yes; then
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4314 #ifdef __FAST_MATH__
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4344 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4345 { (exit 1); exit 1; }; }
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4385 # include <limits.h>
4387 # include <assert.h>
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev/null && {
4404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 # Broken: fails on valid input.
4416 rm -f conftest.err conftest.$ac_ext
4418 # OK, works on sane cases. Now check whether nonexistent headers
4419 # can be detected and how.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <ac_nonexistent.h>
4428 if { (ac_try="$ac_cpp conftest.$ac_ext"
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null && {
4441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4444 # Broken: success on invalid input.
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # Passes both tests.
4455 rm -f conftest.err conftest.$ac_ext
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then
4472 { echo "$as_me:$LINENO: result: $CPP" >&5
4473 echo "${ECHO_T}$CPP" >&6; }
4475 for ac_c_preproc_warn_flag in '' yes
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4490 # include <limits.h>
4492 # include <assert.h>
4496 if { (ac_try="$ac_cpp conftest.$ac_ext"
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null && {
4509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Broken: fails on valid input.
4521 rm -f conftest.err conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev/null && {
4546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4549 # Broken: success on invalid input.
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 # Passes both tests.
4560 rm -f conftest.err conftest.$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then
4568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&2;}
4572 { (exit 1); exit 1; }; }
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 # Set up TAS assembly code if needed; the template file has now had its
4586 # chance to request this.
4588 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4591 if test "$need_tas" = yes ; then
4600 # Automatic dependency tracking
4603 pgac_args="$pgac_args enable_depend"
4605 # Check whether --enable-depend was given.
4606 if test "${enable_depend+set}" = set; then
4607 enableval=$enable_depend;
4616 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4617 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4618 { (exit 1); exit 1; }; }
4632 # Enable assert checks
4635 pgac_args="$pgac_args enable_cassert"
4637 # Check whether --enable-cassert was given.
4638 if test "${enable_cassert+set}" = set; then
4639 enableval=$enable_cassert;
4643 cat >>confdefs.h <<\_ACEOF
4644 #define USE_ASSERT_CHECKING 1
4652 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4653 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4654 { (exit 1); exit 1; }; }
4667 # Include directories
4670 IFS="${IFS}${PATH_SEPARATOR}"
4671 # SRCH_INC comes from the template file
4672 for dir in $with_includes $SRCH_INC; do
4673 if test -d "$dir"; then
4674 INCLUDES="$INCLUDES -I$dir"
4676 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4677 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4685 # Library directories
4688 IFS="${IFS}${PATH_SEPARATOR}"
4689 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4690 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4691 if test -d "$dir"; then
4692 LIBDIRS="$LIBDIRS -L$dir"
4694 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4695 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4701 # Enable thread-safe client libraries
4703 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4704 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4705 if test "$PORTNAME" != "win32"; then
4707 pgac_args="$pgac_args enable_thread_safety"
4709 # Check whether --enable-thread-safety was given.
4710 if test "${enable_thread_safety+set}" = set; then
4711 enableval=$enable_thread_safety;
4720 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4721 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4722 { (exit 1); exit 1; }; }
4727 enable_thread_safety=no
4733 # Win32 should always use threads
4735 pgac_args="$pgac_args enable_thread_safety"
4737 # Check whether --enable-thread-safety was given.
4738 if test "${enable_thread_safety+set}" = set; then
4739 enableval=$enable_thread_safety;
4748 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4749 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4750 { (exit 1); exit 1; }; }
4755 enable_thread_safety=yes
4763 pgac_args="$pgac_args enable_thread_safety_force"
4765 # Check whether --enable-thread-safety-force was given.
4766 if test "${enable_thread_safety_force+set}" = set; then
4767 enableval=$enable_thread_safety_force;
4776 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4777 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4778 { (exit 1); exit 1; }; }
4783 enable_thread_safety_force=no
4788 if test "$enable_thread_safety" = yes -o \
4789 "$enable_thread_safety_force" = yes; then
4790 enable_thread_safety="yes" # for 'force'
4792 cat >>confdefs.h <<\_ACEOF
4793 #define ENABLE_THREAD_SAFETY 1
4797 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4798 echo "${ECHO_T}$enable_thread_safety" >&6; }
4802 # Optionally build Tcl modules (PL/Tcl)
4804 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4805 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4807 pgac_args="$pgac_args with_tcl"
4810 # Check whether --with-tcl was given.
4811 if test "${with_tcl+set}" = set; then
4821 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4822 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4823 { (exit 1); exit 1; }; }
4833 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4834 echo "${ECHO_T}$with_tcl" >&6; }
4837 # We see if the path to the Tcl/Tk configuration scripts is specified.
4838 # This will override the use of tclsh to find the paths to search.
4841 pgac_args="$pgac_args with_tclconfig"
4844 # Check whether --with-tclconfig was given.
4845 if test "${with_tclconfig+set}" = set; then
4846 withval=$with_tclconfig;
4849 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4850 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4851 { (exit 1); exit 1; }; }
4854 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4855 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4856 { (exit 1); exit 1; }; }
4868 # Optionally build Perl modules (PL/Perl)
4870 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4871 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4873 pgac_args="$pgac_args with_perl"
4876 # Check whether --with-perl was given.
4877 if test "${with_perl+set}" = set; then
4887 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4888 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4889 { (exit 1); exit 1; }; }
4899 { echo "$as_me:$LINENO: result: $with_perl" >&5
4900 echo "${ECHO_T}$with_perl" >&6; }
4904 # Optionally build Python modules (PL/Python)
4906 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4907 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4909 pgac_args="$pgac_args with_python"
4912 # Check whether --with-python was given.
4913 if test "${with_python+set}" = set; then
4914 withval=$with_python;
4923 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4924 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4925 { (exit 1); exit 1; }; }
4935 { echo "$as_me:$LINENO: result: $with_python" >&5
4936 echo "${ECHO_T}$with_python" >&6; }
4942 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4943 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4945 pgac_args="$pgac_args with_gssapi"
4948 # Check whether --with-gssapi was given.
4949 if test "${with_gssapi+set}" = set; then
4950 withval=$with_gssapi;
4955 cat >>confdefs.h <<\_ACEOF
4956 #define ENABLE_GSS 1
4959 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4966 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4967 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4968 { (exit 1); exit 1; }; }
4978 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4979 echo "${ECHO_T}$with_gssapi" >&6; }
4985 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4986 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4988 pgac_args="$pgac_args with_krb5"
4991 # Check whether --with-krb5 was given.
4992 if test "${with_krb5+set}" = set; then
4998 cat >>confdefs.h <<\_ACEOF
5002 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5009 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5010 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5011 { (exit 1); exit 1; }; }
5021 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5022 echo "${ECHO_T}$with_krb5" >&6; }
5030 # Kerberos configuration parameters
5033 pgac_args="$pgac_args with_krb_srvnam"
5036 # Check whether --with-krb-srvnam was given.
5037 if test "${with_krb_srvnam+set}" = set; then
5038 withval=$with_krb_srvnam;
5041 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5042 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5043 { (exit 1); exit 1; }; }
5046 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5047 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5048 { (exit 1); exit 1; }; }
5056 with_krb_srvnam="postgres"
5061 cat >>confdefs.h <<_ACEOF
5062 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5070 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5071 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5073 pgac_args="$pgac_args with_pam"
5076 # Check whether --with-pam was given.
5077 if test "${with_pam+set}" = set; then
5082 cat >>confdefs.h <<\_ACEOF
5091 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5092 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5093 { (exit 1); exit 1; }; }
5103 { echo "$as_me:$LINENO: result: $with_pam" >&5
5104 echo "${ECHO_T}$with_pam" >&6; }
5111 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5112 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5114 pgac_args="$pgac_args with_ldap"
5117 # Check whether --with-ldap was given.
5118 if test "${with_ldap+set}" = set; then
5123 cat >>confdefs.h <<\_ACEOF
5132 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5133 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5134 { (exit 1); exit 1; }; }
5144 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5145 echo "${ECHO_T}$with_ldap" >&6; }
5152 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5153 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5155 pgac_args="$pgac_args with_bonjour"
5158 # Check whether --with-bonjour was given.
5159 if test "${with_bonjour+set}" = set; then
5160 withval=$with_bonjour;
5164 cat >>confdefs.h <<\_ACEOF
5165 #define USE_BONJOUR 1
5173 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5174 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5175 { (exit 1); exit 1; }; }
5185 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5186 echo "${ECHO_T}$with_bonjour" >&6; }
5193 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5194 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5196 pgac_args="$pgac_args with_openssl"
5199 # Check whether --with-openssl was given.
5200 if test "${with_openssl+set}" = set; then
5201 withval=$with_openssl;
5205 cat >>confdefs.h <<\_ACEOF
5214 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5215 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5216 { (exit 1); exit 1; }; }
5226 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5227 echo "${ECHO_T}$with_openssl" >&6; }
5235 pgac_args="$pgac_args with_readline"
5238 # Check whether --with-readline was given.
5239 if test "${with_readline+set}" = set; then
5240 withval=$with_readline;
5249 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5250 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5251 { (exit 1); exit 1; }; }
5261 # readline on MinGW has problems with backslashes in psql and other bugs.
5262 # This is particularly a problem with non-US code pages.
5263 # Therefore disable its use until we understand the cause. 2004-07-20
5264 if test "$PORTNAME" = "win32"; then
5265 if test "$with_readline" = yes; then
5266 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5267 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5277 pgac_args="$pgac_args with_libedit_preferred"
5280 # Check whether --with-libedit-preferred was given.
5281 if test "${with_libedit_preferred+set}" = set; then
5282 withval=$with_libedit_preferred;
5291 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5292 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5293 { (exit 1); exit 1; }; }
5298 with_libedit_preferred=no
5309 pgac_args="$pgac_args with_ossp_uuid"
5312 # Check whether --with-ossp-uuid was given.
5313 if test "${with_ossp_uuid+set}" = set; then
5314 withval=$with_ossp_uuid;
5323 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5324 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5325 { (exit 1); exit 1; }; }
5342 pgac_args="$pgac_args with_libxml"
5345 # Check whether --with-libxml was given.
5346 if test "${with_libxml+set}" = set; then
5347 withval=$with_libxml;
5351 cat >>confdefs.h <<\_ACEOF
5352 #define USE_LIBXML 1
5360 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5361 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5362 { (exit 1); exit 1; }; }
5373 if test "$with_libxml" = yes ; then
5374 for ac_prog in xml2-config
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test -n "$XML2_CONFIG"; then
5384 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_XML2_CONFIG="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5404 if test -n "$XML2_CONFIG"; then
5405 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5406 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$XML2_CONFIG" && break
5416 if test -n "$XML2_CONFIG"; then
5417 for pgac_option in `$XML2_CONFIG --cflags`; do
5418 case $pgac_option in
5419 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5422 for pgac_option in `$XML2_CONFIG --libs`; do
5423 case $pgac_option in
5424 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5436 pgac_args="$pgac_args with_libxslt"
5439 # Check whether --with-libxslt was given.
5440 if test "${with_libxslt+set}" = set; then
5441 withval=$with_libxslt;
5445 cat >>confdefs.h <<\_ACEOF
5446 #define USE_LIBXSLT 1
5454 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5455 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5456 { (exit 1); exit 1; }; }
5474 pgac_args="$pgac_args with_system_tzdata"
5477 # Check whether --with-system-tzdata was given.
5478 if test "${with_system_tzdata+set}" = set; then
5479 withval=$with_system_tzdata;
5482 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5483 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5484 { (exit 1); exit 1; }; }
5487 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5488 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5489 { (exit 1); exit 1; }; }
5505 pgac_args="$pgac_args with_zlib"
5508 # Check whether --with-zlib was given.
5509 if test "${with_zlib+set}" = set; then
5519 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5520 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5521 { (exit 1); exit 1; }; }
5537 # Assume system is ELF if it predefines __ELF__ as 1,
5538 # otherwise believe host_os based default.
5540 freebsd1*|freebsd2*) elf=no;;
5541 freebsd3*|freebsd4*) elf=yes;;
5545 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5546 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5547 if test "${ac_cv_path_GREP+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 # Extract the first word of "grep ggrep" to use in msg output
5551 if test -z "$GREP"; then
5552 set dummy grep ggrep; ac_prog_name=$2
5553 if test "${ac_cv_path_GREP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_path_GREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in grep ggrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5567 # Check for GNU ac_path_GREP and select it if it is found.
5568 # Check for GNU $ac_path_GREP
5569 case `"$ac_path_GREP" --version 2>&1` in
5571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 echo 'GREP' >> "conftest.nl"
5581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 ac_count=`expr $ac_count + 1`
5584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_GREP="$ac_path_GREP"
5587 ac_path_GREP_max=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 $ac_path_GREP_found && break 3
5606 GREP="$ac_cv_path_GREP"
5607 if test -z "$GREP"; then
5608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610 { (exit 1); exit 1; }; }
5614 ac_cv_path_GREP=$GREP
5619 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5620 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5621 GREP="$ac_cv_path_GREP"
5624 { echo "$as_me:$LINENO: checking for egrep" >&5
5625 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_EGREP+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5630 then ac_cv_path_EGREP="$GREP -E"
5632 # Extract the first word of "egrep" to use in msg output
5633 if test -z "$EGREP"; then
5634 set dummy egrep; ac_prog_name=$2
5635 if test "${ac_cv_path_EGREP+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_path_EGREP_found=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 test -z "$as_dir" && as_dir=.
5645 for ac_prog in egrep; do
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5648 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5649 # Check for GNU ac_path_EGREP and select it if it is found.
5650 # Check for GNU $ac_path_EGREP
5651 case `"$ac_path_EGREP" --version 2>&1` in
5653 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 echo 'EGREP' >> "conftest.nl"
5663 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665 ac_count=`expr $ac_count + 1`
5666 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_EGREP="$ac_path_EGREP"
5669 ac_path_EGREP_max=$ac_count
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 $ac_path_EGREP_found && break 3
5688 EGREP="$ac_cv_path_EGREP"
5689 if test -z "$EGREP"; then
5690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5691 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5692 { (exit 1); exit 1; }; }
5696 ac_cv_path_EGREP=$EGREP
5702 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5703 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5704 EGREP="$ac_cv_path_EGREP"
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719 $EGREP "yes" >/dev/null 2>&1; then
5722 if test "X$elf" = "Xyes" ; then
5736 CPPFLAGS="$CPPFLAGS $INCLUDES"
5737 LDFLAGS="$LDFLAGS $LIBDIRS"
5742 # Check whether --with-gnu-ld was given.
5743 if test "${with_gnu_ld+set}" = set; then
5744 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5750 if test "$GCC" = yes; then
5751 # Check if gcc -print-prog-name=ld gives a path.
5752 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5756 # gcc leaves a trailing carriage return which upsets mingw
5757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5762 # Accept absolute paths.
5763 [\\/]* | [A-Za-z]:[\\/]*)
5764 re_direlt='/[^/][^/]*/\.\./'
5765 # Canonicalize the path of ld
5766 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5768 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5770 test -z "$LD" && LD="$ac_prog"
5773 # If it fails, then pretend we aren't using GCC.
5777 # If it is relative, then search for the first ld in PATH.
5781 elif test "$with_gnu_ld" = yes; then
5782 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5785 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_LD+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -z "$LD"; then
5792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5793 for ac_dir in $PATH; do
5794 test -z "$ac_dir" && ac_dir=.
5795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5796 ac_cv_path_LD="$ac_dir/$ac_prog"
5797 # Check to see if the program is GNU ld. I'd rather use --version,
5798 # but apparently some GNU ld's only accept -v.
5799 # Break only if it was the GNU/non-GNU ld that we prefer.
5800 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5801 test "$with_gnu_ld" != no && break
5803 test "$with_gnu_ld" != yes && break
5809 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5814 if test -n "$LD"; then
5815 { echo "$as_me:$LINENO: result: $LD" >&5
5816 echo "${ECHO_T}$LD" >&6; }
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5823 { (exit 1); exit 1; }; }
5824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5830 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5831 ac_cv_prog_gnu_ld=yes
5833 ac_cv_prog_gnu_ld=no
5836 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5837 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5838 with_gnu_ld=$ac_cv_prog_gnu_ld
5843 case $host_os in sysv5*)
5844 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5845 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5846 if test "${pgac_cv_prog_ld_R+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (ac_try="$ac_link"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_link") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest$ac_exeext &&
5883 $as_test_x conftest$ac_exeext; then
5884 pgac_cv_prog_ld_R=yes
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 pgac_cv_prog_ld_R=no
5892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LDFLAGS=$pgac_save_LDFLAGS
5897 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5898 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5899 ld_R_works=$pgac_cv_prog_ld_R
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_RANLIB+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$RANLIB"; then
5911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 RANLIB=$ac_cv_prog_RANLIB
5931 if test -n "$RANLIB"; then
5932 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5933 echo "${ECHO_T}$RANLIB" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5941 if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944 set dummy ranlib; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971 if test -n "$ac_ct_RANLIB"; then
5972 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5973 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5979 if test "x$ac_ct_RANLIB" = x; then
5982 case $cross_compiling:$ac_tool_warned in
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5992 RANLIB=$ac_ct_RANLIB
5995 RANLIB="$ac_cv_prog_RANLIB"
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_STRIP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029 { echo "$as_me:$LINENO: result: $STRIP" >&5
6030 echo "${ECHO_T}$STRIP" >&6; }
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6038 if test -z "$ac_cv_prog_STRIP"; then
6040 # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_STRIP="strip"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6076 if test "x$ac_ct_STRIP" = x; then
6079 case $cross_compiling:$ac_tool_warned in
6081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&5
6084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet. If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6087 ac_tool_warned=yes ;;
6092 STRIP="$ac_cv_prog_STRIP"
6096 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6097 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6098 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6099 STRIP_STATIC_LIB="$STRIP -x"
6100 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ar; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_AR+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$AR"; then
6121 ac_cv_prog_AR="$AR" # Let the user override the test.
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_prog_AR="${ac_tool_prefix}ar"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 if test -n "$AR"; then
6142 { echo "$as_me:$LINENO: result: $AR" >&5
6143 echo "${ECHO_T}$AR" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6151 if test -z "$ac_cv_prog_AR"; then
6153 # Extract the first word of "ar", so it can be a program name with args.
6154 set dummy ar; ac_word=$2
6155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 if test -n "$ac_ct_AR"; then
6161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_AR="ar"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6181 if test -n "$ac_ct_AR"; then
6182 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6183 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6189 if test "x$ac_ct_AR" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&5
6197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet. If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6200 ac_tool_warned=yes ;;
6208 if test "$PORTNAME" = "win32"; then
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$DLLTOOL"; then
6218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 DLLTOOL=$ac_cv_prog_DLLTOOL
6238 if test -n "$DLLTOOL"; then
6239 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6240 echo "${ECHO_T}$DLLTOOL" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6248 if test -z "$ac_cv_prog_DLLTOOL"; then
6249 ac_ct_DLLTOOL=$DLLTOOL
6250 # Extract the first word of "dlltool", so it can be a program name with args.
6251 set dummy dlltool; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$ac_ct_DLLTOOL"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6278 if test -n "$ac_ct_DLLTOOL"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6280 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6286 if test "x$ac_ct_DLLTOOL" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet. If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6299 DLLTOOL=$ac_ct_DLLTOOL
6302 DLLTOOL="$ac_cv_prog_DLLTOOL"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 if test -n "$DLLWRAP"; then
6314 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 DLLWRAP=$ac_cv_prog_DLLWRAP
6334 if test -n "$DLLWRAP"; then
6335 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6336 echo "${ECHO_T}$DLLWRAP" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6344 if test -z "$ac_cv_prog_DLLWRAP"; then
6345 ac_ct_DLLWRAP=$DLLWRAP
6346 # Extract the first word of "dllwrap", so it can be a program name with args.
6347 set dummy dllwrap; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 if test -n "$ac_ct_DLLWRAP"; then
6354 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6374 if test -n "$ac_ct_DLLWRAP"; then
6375 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6376 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6382 if test "x$ac_ct_DLLWRAP" = x; then
6385 case $cross_compiling:$ac_tool_warned in
6387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet. If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&5
6390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6393 ac_tool_warned=yes ;;
6395 DLLWRAP=$ac_ct_DLLWRAP
6398 DLLWRAP="$ac_cv_prog_DLLWRAP"
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}windres; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_prog_WINDRES+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 if test -n "$WINDRES"; then
6410 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 WINDRES=$ac_cv_prog_WINDRES
6430 if test -n "$WINDRES"; then
6431 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6432 echo "${ECHO_T}$WINDRES" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6440 if test -z "$ac_cv_prog_WINDRES"; then
6441 ac_ct_WINDRES=$WINDRES
6442 # Extract the first word of "windres", so it can be a program name with args.
6443 set dummy windres; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 if test -n "$ac_ct_WINDRES"; then
6450 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_WINDRES="windres"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6470 if test -n "$ac_ct_WINDRES"; then
6471 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6472 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6474 { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6478 if test "x$ac_ct_WINDRES" = x; then
6481 case $cross_compiling:$ac_tool_warned in
6483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6484 whose name does not start with the host triplet. If you think this
6485 configuration is useful to you, please write to autoconf@gnu.org." >&5
6486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6487 whose name does not start with the host triplet. If you think this
6488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6489 ac_tool_warned=yes ;;
6491 WINDRES=$ac_ct_WINDRES
6494 WINDRES="$ac_cv_prog_WINDRES"
6499 # Extract the first word of "tar", so it can be a program name with args.
6500 set dummy tar; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_TAR+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 if test -n "$TAR"; then
6531 { echo "$as_me:$LINENO: result: $TAR" >&5
6532 echo "${ECHO_T}$TAR" >&6; }
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6542 if test "$LN_S" = "ln -s"; then
6543 { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6546 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6547 echo "${ECHO_T}no, using $LN_S" >&6; }
6550 for ac_prog in gawk mawk nawk awk
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy $ac_prog; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_AWK+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test -n "$AWK"; then
6560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_AWK="$ac_prog"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 if test -n "$AWK"; then
6581 { echo "$as_me:$LINENO: result: $AWK" >&5
6582 echo "${ECHO_T}$AWK" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6589 test -n "$AWK" && break
6593 # Let the user override the search
6594 if test -z "$BISON"; then
6595 for ac_prog in bison
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_prog_BISON+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 if test -n "$BISON"; then
6605 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_BISON="$ac_prog"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 BISON=$ac_cv_prog_BISON
6625 if test -n "$BISON"; then
6626 { echo "$as_me:$LINENO: result: $BISON" >&5
6627 echo "${ECHO_T}$BISON" >&6; }
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6634 test -n "$BISON" && break
6639 if test "$BISON"; then
6640 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6641 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6642 echo "$as_me: using $pgac_bison_version" >&6;}
6643 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6645 { echo "$as_me:$LINENO: WARNING:
6646 *** The installed version of Bison is too old to use with PostgreSQL.
6647 *** Bison version 1.875 or later is required." >&5
6648 echo "$as_me: WARNING:
6649 *** The installed version of Bison is too old to use with PostgreSQL.
6650 *** Bison version 1.875 or later is required." >&2;}
6655 if test -z "$BISON"; then
6656 { echo "$as_me:$LINENO: WARNING:
6657 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6658 *** change any of the parser definition files. You can obtain Bison from
6659 *** a GNU mirror site. (If you are using the official distribution of
6660 *** PostgreSQL then you do not need to worry about this, because the Bison
6661 *** output is pre-generated.)" >&5
6662 echo "$as_me: WARNING:
6663 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6664 *** change any of the parser definition files. You can obtain Bison from
6665 *** a GNU mirror site. (If you are using the official distribution of
6666 *** PostgreSQL then you do not need to worry about this, because the Bison
6667 *** output is pre-generated.)" >&2;}
6669 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6672 { echo "$as_me:$LINENO: checking for flex" >&5
6673 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6674 if test "${pgac_cv_path_flex+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 # Let the user override the test
6678 if test -n "$FLEX"; then
6679 pgac_cv_path_flex=$FLEX
6683 for pgac_dir in $PATH; do
6685 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6688 for pgac_prog in flex lex; do
6689 pgac_candidate="$pgac_dir/$pgac_prog"
6690 if test -f "$pgac_candidate" \
6691 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6693 echo '%%' > conftest.l
6694 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6695 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6696 pgac_broken_flex=$pgac_candidate
6700 pgac_cv_path_flex=$pgac_candidate
6706 rm -f conftest.l lex.yy.c
6707 : ${pgac_cv_path_flex=no}
6711 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6712 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6713 if test x"$pgac_cv_path_flex" = x"no"; then
6714 if test -n "$pgac_broken_flex"; then
6715 { echo "$as_me:$LINENO: WARNING:
6716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6717 *** should get version 2.5.4 or later." >&5
6718 echo "$as_me: WARNING:
6719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6720 *** should get version 2.5.4 or later." >&2;}
6723 { echo "$as_me:$LINENO: WARNING:
6724 *** Without Flex you will not be able to build PostgreSQL from CVS or
6725 *** change any of the scanner definition files. You can obtain Flex from
6726 *** a GNU mirror site. (If you are using the official distribution of
6727 *** PostgreSQL then you do not need to worry about this because the Flex
6728 *** output is pre-generated.)" >&5
6729 echo "$as_me: WARNING:
6730 *** Without Flex you will not be able to build PostgreSQL from CVS or
6731 *** change any of the scanner definition files. You can obtain Flex from
6732 *** a GNU mirror site. (If you are using the official distribution of
6733 *** PostgreSQL then you do not need to worry about this because the Flex
6734 *** output is pre-generated.)" >&2;}
6738 FLEX=$pgac_cv_path_flex
6739 pgac_flex_version=`$FLEX -V 2>/dev/null`
6740 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6741 echo "$as_me: using $pgac_flex_version" >&6;}
6748 # Extract the first word of "perl", so it can be a program name with args.
6749 set dummy perl; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_PERL+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 PERL=$ac_cv_path_PERL
6779 if test -n "$PERL"; then
6780 { echo "$as_me:$LINENO: result: $PERL" >&5
6781 echo "${ECHO_T}$PERL" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$with_perl" = yes; then
6790 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6791 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6792 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6793 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6794 echo "${ECHO_T}$perl_archlibexp" >&6; }
6795 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6796 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6797 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6798 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6799 echo "${ECHO_T}$perl_privlibexp" >&6; }
6800 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6801 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6802 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6803 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6804 echo "${ECHO_T}$perl_useshrplib" >&6; }
6806 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6807 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6808 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6809 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6810 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6811 if test -z "$perl_embed_ldflags" ; then
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6815 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6817 echo "$as_me: error: could not determine flags for linking embedded Perl.
6818 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6820 { (exit 1); exit 1; }; }
6822 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6823 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6828 if test "$with_python" = yes; then
6829 # Extract the first word of "python", so it can be a program name with args.
6830 set dummy python; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_PYTHON+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 PYTHON=$ac_cv_path_PYTHON
6860 if test -n "$PYTHON"; then
6861 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6862 echo "${ECHO_T}$PYTHON" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test x"$PYTHON" = x""; then
6870 { { echo "$as_me:$LINENO: error: Python not found" >&5
6871 echo "$as_me: error: Python not found" >&2;}
6872 { (exit 1); exit 1; }; }
6876 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6877 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6878 if "${PYTHON}" 2>&- -c 'import distutils'
6880 { echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6886 echo "$as_me: error: distutils module not found" >&2;}
6887 { (exit 1); exit 1; }; }
6889 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6890 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6891 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6892 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'))"`
6893 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6895 # This should be enough of a message.
6896 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6897 echo "${ECHO_T}$python_configdir" >&6; }
6900 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6901 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6903 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6904 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6905 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6906 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6908 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6910 # New way: use the official shared library
6911 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6912 python_libspec="-L${python_libdir} -l${ldlibrary}"
6914 # Old way: use libpython from python_configdir
6915 python_libdir="${python_configdir}"
6916 python_libspec="-L${python_libdir} -lpython${python_version}"
6919 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6921 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6922 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6925 # threaded python is not supported on bsd's
6926 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6927 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6928 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6929 if test "$pythreads" = "1"; then
6930 { echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6; }
6934 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6935 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6936 { (exit 1); exit 1; }; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6947 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6948 # Extract the first word of "zic", so it can be a program name with args.
6949 set dummy zic; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_ZIC+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 if test -n "$ZIC"; then
6980 { echo "$as_me:$LINENO: result: $ZIC" >&5
6981 echo "${ECHO_T}$ZIC" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 if test -z "$ZIC"; then
6989 { { echo "$as_me:$LINENO: error:
6990 When cross-compiling, either use the option --with-system-tzdata to use
6991 existing time-zone data, or set the environment variable ZIC to a zic
6992 program to use during the build." >&5
6993 echo "$as_me: error:
6994 When cross-compiling, either use the option --with-system-tzdata to use
6995 existing time-zone data, or set the environment variable ZIC to a zic
6996 program to use during the build." >&2;}
6997 { (exit 1); exit 1; }; }
7005 ## Most libraries are included only if they demonstrably provide a function
7006 ## we need, but libm is an exception: always include it, because there are
7007 ## too many compilers that play cute optimization games that will break
7008 ## probes for standard functions such as pow().
7012 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7013 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7014 if test "${ac_cv_lib_m_main+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 ac_check_lib_save_LIBS=$LIBS
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (ac_try="$ac_link"
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_link") 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest$ac_exeext &&
7052 $as_test_x conftest$ac_exeext; then
7053 ac_cv_lib_m_main=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7066 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7067 if test $ac_cv_lib_m_main = yes; then
7068 cat >>confdefs.h <<_ACEOF
7076 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7077 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7078 if test "${ac_cv_search_setproctitle+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_func_search_save_LIBS=$LIBS
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7095 char setproctitle ();
7099 return setproctitle ();
7104 for ac_lib in '' util; do
7105 if test -z "$ac_lib"; then
7106 ac_res="none required"
7109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 ac_cv_search_setproctitle=$ac_res
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 if test "${ac_cv_search_setproctitle+set}" = set; then
7143 if test "${ac_cv_search_setproctitle+set}" = set; then
7146 ac_cv_search_setproctitle=no
7149 LIBS=$ac_func_search_save_LIBS
7151 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7152 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7153 ac_res=$ac_cv_search_setproctitle
7154 if test "$ac_res" != no; then
7155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7159 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7160 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7161 if test "${ac_cv_search_dlopen+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 ac_func_search_save_LIBS=$LIBS
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7187 for ac_lib in '' dl; do
7188 if test -z "$ac_lib"; then
7189 ac_res="none required"
7192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (ac_try="$ac_link"
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_link") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest$ac_exeext &&
7211 $as_test_x conftest$ac_exeext; then
7212 ac_cv_search_dlopen=$ac_res
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7222 if test "${ac_cv_search_dlopen+set}" = set; then
7226 if test "${ac_cv_search_dlopen+set}" = set; then
7229 ac_cv_search_dlopen=no
7232 LIBS=$ac_func_search_save_LIBS
7234 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7235 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7236 ac_res=$ac_cv_search_dlopen
7237 if test "$ac_res" != no; then
7238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7242 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7243 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7244 if test "${ac_cv_search_socket+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_func_search_save_LIBS=$LIBS
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7270 for ac_lib in '' socket wsock32; do
7271 if test -z "$ac_lib"; then
7272 ac_res="none required"
7275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest$ac_exeext &&
7294 $as_test_x conftest$ac_exeext; then
7295 ac_cv_search_socket=$ac_res
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305 if test "${ac_cv_search_socket+set}" = set; then
7309 if test "${ac_cv_search_socket+set}" = set; then
7312 ac_cv_search_socket=no
7315 LIBS=$ac_func_search_save_LIBS
7317 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7318 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7319 ac_res=$ac_cv_search_socket
7320 if test "$ac_res" != no; then
7321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7325 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7326 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7327 if test "${ac_cv_search_shl_load+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_func_search_save_LIBS=$LIBS
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7338 /* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7353 for ac_lib in '' dld; do
7354 if test -z "$ac_lib"; then
7355 ac_res="none required"
7358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest$ac_exeext &&
7377 $as_test_x conftest$ac_exeext; then
7378 ac_cv_search_shl_load=$ac_res
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7388 if test "${ac_cv_search_shl_load+set}" = set; then
7392 if test "${ac_cv_search_shl_load+set}" = set; then
7395 ac_cv_search_shl_load=no
7398 LIBS=$ac_func_search_save_LIBS
7400 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7401 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7402 ac_res=$ac_cv_search_shl_load
7403 if test "$ac_res" != no; then
7404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7408 # We only use libld in port/dynloader/aix.c
7411 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7412 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7413 if test "${ac_cv_search_ldopen+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 ac_func_search_save_LIBS=$LIBS
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7439 for ac_lib in '' ld; do
7440 if test -z "$ac_lib"; then
7441 ac_res="none required"
7444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (ac_try="$ac_link"
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_link") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext &&
7463 $as_test_x conftest$ac_exeext; then
7464 ac_cv_search_ldopen=$ac_res
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7474 if test "${ac_cv_search_ldopen+set}" = set; then
7478 if test "${ac_cv_search_ldopen+set}" = set; then
7481 ac_cv_search_ldopen=no
7484 LIBS=$ac_func_search_save_LIBS
7486 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7487 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7488 ac_res=$ac_cv_search_ldopen
7489 if test "$ac_res" != no; then
7490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7496 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7497 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7498 if test "${ac_cv_search_getopt_long+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_func_search_save_LIBS=$LIBS
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7515 char getopt_long ();
7519 return getopt_long ();
7524 for ac_lib in '' getopt gnugetopt; do
7525 if test -z "$ac_lib"; then
7526 ac_res="none required"
7529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_link") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest$ac_exeext &&
7548 $as_test_x conftest$ac_exeext; then
7549 ac_cv_search_getopt_long=$ac_res
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7559 if test "${ac_cv_search_getopt_long+set}" = set; then
7563 if test "${ac_cv_search_getopt_long+set}" = set; then
7566 ac_cv_search_getopt_long=no
7569 LIBS=$ac_func_search_save_LIBS
7571 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7572 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7573 ac_res=$ac_cv_search_getopt_long
7574 if test "$ac_res" != no; then
7575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7579 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7580 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7581 if test "${ac_cv_search_crypt+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_func_search_save_LIBS=$LIBS
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7607 for ac_lib in '' crypt; do
7608 if test -z "$ac_lib"; then
7609 ac_res="none required"
7612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (ac_try="$ac_link"
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_link") 2>conftest.er1
7623 grep -v '^ *+' conftest.er1 >conftest.err
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest$ac_exeext &&
7631 $as_test_x conftest$ac_exeext; then
7632 ac_cv_search_crypt=$ac_res
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 if test "${ac_cv_search_crypt+set}" = set; then
7646 if test "${ac_cv_search_crypt+set}" = set; then
7649 ac_cv_search_crypt=no
7652 LIBS=$ac_func_search_save_LIBS
7654 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7655 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7656 ac_res=$ac_cv_search_crypt
7657 if test "$ac_res" != no; then
7658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7663 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7664 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7665 if test "${ac_cv_search_fdatasync+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_func_search_save_LIBS=$LIBS
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 /* Override any GCC internal prototype to avoid an error.
7677 Use char because int might match the return type of a GCC
7678 builtin and then its argument prototype would still apply. */
7686 return fdatasync ();
7691 for ac_lib in '' rt posix4; do
7692 if test -z "$ac_lib"; then
7693 ac_res="none required"
7696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (ac_try="$ac_link"
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_link") 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest$ac_exeext &&
7715 $as_test_x conftest$ac_exeext; then
7716 ac_cv_search_fdatasync=$ac_res
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726 if test "${ac_cv_search_fdatasync+set}" = set; then
7730 if test "${ac_cv_search_fdatasync+set}" = set; then
7733 ac_cv_search_fdatasync=no
7736 LIBS=$ac_func_search_save_LIBS
7738 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7739 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7740 ac_res=$ac_cv_search_fdatasync
7741 if test "$ac_res" != no; then
7742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7746 # Required for thread_test.c on Solaris 2.5:
7747 # Other ports use it too (HP-UX) so test unconditionally
7748 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7749 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7750 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_func_search_save_LIBS=$LIBS
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7767 char gethostbyname_r ();
7771 return gethostbyname_r ();
7776 for ac_lib in '' nsl; do
7777 if test -z "$ac_lib"; then
7778 ac_res="none required"
7781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (ac_try="$ac_link"
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest$ac_exeext &&
7800 $as_test_x conftest$ac_exeext; then
7801 ac_cv_search_gethostbyname_r=$ac_res
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7815 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7818 ac_cv_search_gethostbyname_r=no
7821 LIBS=$ac_func_search_save_LIBS
7823 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7824 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7825 ac_res=$ac_cv_search_gethostbyname_r
7826 if test "$ac_res" != no; then
7827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7832 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7833 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7834 if test "${ac_cv_search_shmget+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_func_search_save_LIBS=$LIBS
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any GCC internal prototype to avoid an error.
7846 Use char because int might match the return type of a GCC
7847 builtin and then its argument prototype would still apply. */
7860 for ac_lib in '' cygipc; do
7861 if test -z "$ac_lib"; then
7862 ac_res="none required"
7865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 ac_cv_search_shmget=$ac_res
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 if test "${ac_cv_search_shmget+set}" = set; then
7899 if test "${ac_cv_search_shmget+set}" = set; then
7902 ac_cv_search_shmget=no
7905 LIBS=$ac_func_search_save_LIBS
7907 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7908 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7909 ac_res=$ac_cv_search_shmget
7910 if test "$ac_res" != no; then
7911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7916 if test "$with_readline" = yes; then
7919 if test "${pgac_cv_check_readline+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 pgac_cv_check_readline=no
7923 pgac_save_LIBS=$LIBS
7924 if test x"$with_libedit_preferred" != x"yes"
7925 then READLINE_ORDER="-lreadline -ledit"
7926 else READLINE_ORDER="-ledit -lreadline"
7928 for pgac_rllib in $READLINE_ORDER ; do
7929 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7930 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7931 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7932 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any GCC internal prototype to avoid an error.
7941 Use char because int might match the return type of a GCC
7942 builtin and then its argument prototype would still apply. */
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7974 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7975 # recognize dependent libraries; assume curses is needed if we didn't
7976 # find any dependency.
7978 netbsd* | openbsd* | irix*)
7979 if test x"$pgac_lib" = x"" ; then
7980 pgac_lib=" -lcurses"
7984 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7997 if test "$pgac_cv_check_readline" != no ; then
7998 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7999 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8006 LIBS=$pgac_save_LIBS
8010 if test "$pgac_cv_check_readline" != no ; then
8011 LIBS="$pgac_cv_check_readline $LIBS"
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_LIBREADLINE 1
8020 if test x"$pgac_cv_check_readline" = x"no"; then
8021 { { echo "$as_me:$LINENO: error: readline library not found
8022 If you have readline already installed, see config.log for details on the
8023 failure. It is possible the compiler isn't looking in the proper directory.
8024 Use --without-readline to disable readline support." >&5
8025 echo "$as_me: error: readline library not found
8026 If you have readline already installed, see config.log for details on the
8027 failure. It is possible the compiler isn't looking in the proper directory.
8028 Use --without-readline to disable readline support." >&2;}
8029 { (exit 1); exit 1; }; }
8033 if test "$with_zlib" = yes; then
8035 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8036 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8037 if test "${ac_cv_lib_z_inflate+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 ac_check_lib_save_LIBS=$LIBS
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8049 /* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8082 ac_cv_lib_z_inflate=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_cv_lib_z_inflate=no
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8095 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8096 if test $ac_cv_lib_z_inflate = yes; then
8097 cat >>confdefs.h <<_ACEOF
8104 { { echo "$as_me:$LINENO: error: zlib library not found
8105 If you have zlib already installed, see config.log for details on the
8106 failure. It is possible the compiler isn't looking in the proper directory.
8107 Use --without-zlib to disable zlib support." >&5
8108 echo "$as_me: error: zlib library not found
8109 If you have zlib already installed, see config.log for details on the
8110 failure. It is possible the compiler isn't looking in the proper directory.
8111 Use --without-zlib to disable zlib support." >&2;}
8112 { (exit 1); exit 1; }; }
8117 if test "$enable_spinlocks" = yes; then
8119 cat >>confdefs.h <<\_ACEOF
8120 #define HAVE_SPINLOCKS 1
8124 { echo "$as_me:$LINENO: WARNING:
8125 *** Not using spinlocks will cause poor performance." >&5
8126 echo "$as_me: WARNING:
8127 *** Not using spinlocks will cause poor performance." >&2;}
8130 if test "$with_gssapi" = yes ; then
8131 if test "$PORTNAME" != "win32"; then
8132 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8133 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8134 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_func_search_save_LIBS=$LIBS
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8151 char gss_init_sec_context ();
8155 return gss_init_sec_context ();
8160 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8161 if test -z "$ac_lib"; then
8162 ac_res="none required"
8165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && {
8181 test -z "$ac_c_werror_flag" ||
8182 test ! -s conftest.err
8183 } && test -s conftest$ac_exeext &&
8184 $as_test_x conftest$ac_exeext; then
8185 ac_cv_search_gss_init_sec_context=$ac_res
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8199 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8202 ac_cv_search_gss_init_sec_context=no
8205 LIBS=$ac_func_search_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8208 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8209 ac_res=$ac_cv_search_gss_init_sec_context
8210 if test "$ac_res" != no; then
8211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8215 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8216 { (exit 1); exit 1; }; }
8220 LIBS="$LIBS -lgssapi32"
8224 if test "$with_krb5" = yes ; then
8225 if test "$PORTNAME" != "win32"; then
8226 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8228 if test "${ac_cv_search_com_err+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 ac_func_search_save_LIBS=$LIBS
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8239 /* Override any GCC internal prototype to avoid an error.
8240 Use char because int might match the return type of a GCC
8241 builtin and then its argument prototype would still apply. */
8254 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8255 if test -z "$ac_lib"; then
8256 ac_res="none required"
8259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest$ac_exeext &&
8278 $as_test_x conftest$ac_exeext; then
8279 ac_cv_search_com_err=$ac_res
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 if test "${ac_cv_search_com_err+set}" = set; then
8293 if test "${ac_cv_search_com_err+set}" = set; then
8296 ac_cv_search_com_err=no
8299 LIBS=$ac_func_search_save_LIBS
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8302 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8303 ac_res=$ac_cv_search_com_err
8304 if test "$ac_res" != no; then
8305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8308 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8309 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8310 { (exit 1); exit 1; }; }
8313 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8314 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8315 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8332 char krb5_sendauth ();
8336 return krb5_sendauth ();
8341 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_link") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest$ac_exeext &&
8365 $as_test_x conftest$ac_exeext; then
8366 ac_cv_search_krb5_sendauth=$ac_res
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8376 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8380 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8383 ac_cv_search_krb5_sendauth=no
8386 LIBS=$ac_func_search_save_LIBS
8388 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8389 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8390 ac_res=$ac_cv_search_krb5_sendauth
8391 if test "$ac_res" != no; then
8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8395 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8396 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8397 { (exit 1); exit 1; }; }
8401 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8403 if test "${ac_cv_search_com_err+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8429 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest$ac_exeext &&
8453 $as_test_x conftest$ac_exeext; then
8454 ac_cv_search_com_err=$ac_res
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8464 if test "${ac_cv_search_com_err+set}" = set; then
8468 if test "${ac_cv_search_com_err+set}" = set; then
8471 ac_cv_search_com_err=no
8474 LIBS=$ac_func_search_save_LIBS
8476 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8477 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8478 ac_res=$ac_cv_search_com_err
8479 if test "$ac_res" != no; then
8480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8483 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8484 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8485 { (exit 1); exit 1; }; }
8491 if test "$with_openssl" = yes ; then
8492 if test "$PORTNAME" != "win32"; then
8494 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8495 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8496 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-lcrypto $LIBS"
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8514 char CRYPTO_new_ex_data ();
8518 return CRYPTO_new_ex_data ();
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (ac_try="$ac_link"
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_link") 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext &&
8540 $as_test_x conftest$ac_exeext; then
8541 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8554 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8555 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_LIBCRYPTO 1
8560 LIBS="-lcrypto $LIBS"
8563 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8564 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8565 { (exit 1); exit 1; }; }
8569 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8570 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8571 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 ac_check_lib_save_LIBS=$LIBS
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8589 char SSL_library_init ();
8593 return SSL_library_init ();
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest$ac_exeext &&
8615 $as_test_x conftest$ac_exeext; then
8616 ac_cv_lib_ssl_SSL_library_init=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_lib_ssl_SSL_library_init=no
8624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8629 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8630 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_LIBSSL 1
8638 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8639 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8640 { (exit 1); exit 1; }; }
8645 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8646 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8647 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-leay32 $LIBS"
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any GCC internal prototype to avoid an error.
8660 Use char because int might match the return type of a GCC
8661 builtin and then its argument prototype would still apply. */
8665 char CRYPTO_new_ex_data ();
8669 return CRYPTO_new_ex_data ();
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (ac_try="$ac_link"
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_link") 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext &&
8691 $as_test_x conftest$ac_exeext; then
8692 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8704 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8705 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8706 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_LIBEAY32 1
8711 LIBS="-leay32 $LIBS"
8714 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8715 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8716 { (exit 1); exit 1; }; }
8720 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8721 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8722 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lssleay32 $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8740 char SSL_library_init ();
8744 return SSL_library_init ();
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest$ac_exeext &&
8766 $as_test_x conftest$ac_exeext; then
8767 ac_cv_lib_ssleay32_SSL_library_init=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_lib_ssleay32_SSL_library_init=no
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8780 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8781 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_LIBSSLEAY32 1
8786 LIBS="-lssleay32 $LIBS"
8789 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8790 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8791 { (exit 1); exit 1; }; }
8797 if test "$with_pam" = yes ; then
8799 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8800 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8801 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_check_lib_save_LIBS=$LIBS
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8823 return pam_start ();
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_link") 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest$ac_exeext &&
8845 $as_test_x conftest$ac_exeext; then
8846 ac_cv_lib_pam_pam_start=yes
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_cv_lib_pam_pam_start=no
8854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8859 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8860 if test $ac_cv_lib_pam_pam_start = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_LIBPAM 1
8868 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8869 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8870 { (exit 1); exit 1; }; }
8875 if test "$with_libxml" = yes ; then
8877 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8878 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8879 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8897 char xmlSaveToBuffer ();
8901 return xmlSaveToBuffer ();
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (ac_try="$ac_link"
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_link") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest$ac_exeext &&
8923 $as_test_x conftest$ac_exeext; then
8924 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_lib_xml2_xmlSaveToBuffer=no
8932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8937 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8938 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_LIBXML2 1
8946 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8947 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8948 { (exit 1); exit 1; }; }
8953 if test "$with_libxslt" = yes ; then
8955 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8956 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8957 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 ac_check_lib_save_LIBS=$LIBS
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8975 char xsltCleanupGlobals ();
8979 return xsltCleanupGlobals ();
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext &&
9001 $as_test_x conftest$ac_exeext; then
9002 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_lib_xslt_xsltCleanupGlobals=no
9010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9014 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9015 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9016 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_LIBXSLT 1
9024 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9025 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9026 { (exit 1); exit 1; }; }
9031 # for contrib/uuid-ossp
9032 if test "$with_ossp_uuid" = yes ; then
9033 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9034 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lossp-uuid $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9053 char uuid_export ();
9057 return uuid_export ();
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_lib_ossp_uuid_uuid_export=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_cv_lib_ossp_uuid_uuid_export=no
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9093 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9094 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9095 OSSP_UUID_LIBS="-lossp-uuid"
9097 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9098 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9099 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_check_lib_save_LIBS=$LIBS
9104 cat >conftest.$ac_ext <<_ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9117 char uuid_export ();
9121 return uuid_export ();
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (ac_try="$ac_link"
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_link") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest$ac_exeext &&
9143 $as_test_x conftest$ac_exeext; then
9144 ac_cv_lib_uuid_uuid_export=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_cv_lib_uuid_uuid_export=no
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9157 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9158 if test $ac_cv_lib_uuid_uuid_export = yes; then
9159 OSSP_UUID_LIBS="-luuid"
9161 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9162 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9163 { (exit 1); exit 1; }; }
9176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9178 if test "${ac_cv_header_stdc+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 ac_cv_header_stdc=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_cv_header_stdc=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 if test $ac_cv_header_stdc = yes; then
9228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 $EGREP "memchr" >/dev/null 2>&1; then
9242 ac_cv_header_stdc=no
9248 if test $ac_cv_header_stdc = yes; then
9249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "free" >/dev/null 2>&1; then
9263 ac_cv_header_stdc=no
9269 if test $ac_cv_header_stdc = yes; then
9270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9271 if test "$cross_compiling" = yes; then
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9282 #if ((' ' & 0x0FF) == 0x020)
9283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9286 # define ISLOWER(c) \
9287 (('a' <= (c) && (c) <= 'i') \
9288 || ('j' <= (c) && (c) <= 'r') \
9289 || ('s' <= (c) && (c) <= 'z'))
9290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9298 for (i = 0; i < 256; i++)
9299 if (XOR (islower (i), ISLOWER (i))
9300 || toupper (i) != TOUPPER (i))
9305 rm -f conftest$ac_exeext
9306 if { (ac_try="$ac_link"
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_link") 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9327 echo "$as_me: program exited with status $ac_status" >&5
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_cv_header_stdc=no
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9342 if test $ac_cv_header_stdc = yes; then
9344 cat >>confdefs.h <<\_ACEOF
9345 #define STDC_HEADERS 1
9350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9361 inttypes.h stdint.h unistd.h
9363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 #include <$ac_header>
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 eval "$as_ac_Header=yes"
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 eval "$as_ac_Header=no"
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 ac_res=`eval echo '${'$as_ac_Header'}'`
9407 { echo "$as_me:$LINENO: result: $ac_res" >&5
9408 echo "${ECHO_T}$ac_res" >&6; }
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9446 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9459 # Is the header compilable?
9460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <$ac_header>
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_compile") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest.$ac_objext; then
9488 ac_header_compiler=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_header_compiler=no
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9498 echo "${ECHO_T}$ac_header_compiler" >&6; }
9500 # Is the header present?
9501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <$ac_header>
9511 if { (ac_try="$ac_cpp conftest.$ac_ext"
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null && {
9524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9527 ac_header_preproc=yes
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_header_preproc=no
9535 rm -f conftest.err conftest.$ac_ext
9536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9537 echo "${ECHO_T}$ac_header_preproc" >&6; }
9539 # So? What about this header?
9540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9546 ac_header_preproc=yes
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9562 ## ---------------------------------------- ##
9563 ## Report this to pgsql-bugs@postgresql.org ##
9564 ## ---------------------------------------- ##
9566 ) | sed "s/^/$as_me: WARNING: /" >&2
9569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 eval "$as_ac_Header=\$ac_header_preproc"
9576 ac_res=`eval echo '${'$as_ac_Header'}'`
9577 { echo "$as_me:$LINENO: result: $ac_res" >&5
9578 echo "${ECHO_T}$ac_res" >&6; }
9581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9592 # netinet/in.h is included first.
9594 for ac_header in netinet/in.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9675 ac_header_preproc=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9710 ## ---------------------------------------- ##
9711 ## Report this to pgsql-bugs@postgresql.org ##
9712 ## ---------------------------------------- ##
9714 ) | sed "s/^/$as_me: WARNING: /" >&2
9717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 eval "$as_ac_Header=\$ac_header_preproc"
9724 ac_res=`eval echo '${'$as_ac_Header'}'`
9725 { echo "$as_me:$LINENO: result: $ac_res" >&5
9726 echo "${ECHO_T}$ac_res" >&6; }
9729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9730 cat >>confdefs.h <<_ACEOF
9731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9739 for ac_header in netinet/tcp.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 #ifdef HAVE_NETINET_IN_H
9755 #include <netinet/in.h>
9759 #include <$ac_header>
9761 rm -f conftest.$ac_objext
9762 if { (ac_try="$ac_compile"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.$ac_objext; then
9778 eval "$as_ac_Header=yes"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 eval "$as_ac_Header=no"
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 ac_res=`eval echo '${'$as_ac_Header'}'`
9789 { echo "$as_me:$LINENO: result: $ac_res" >&5
9790 echo "${ECHO_T}$ac_res" >&6; }
9791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9792 cat >>confdefs.h <<_ACEOF
9793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9801 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9803 for ac_header in readline/readline.h
9805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_res=`eval echo '${'$as_ac_Header'}'`
9813 { echo "$as_me:$LINENO: result: $ac_res" >&5
9814 echo "${ECHO_T}$ac_res" >&6; }
9816 # Is the header compilable?
9817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 $ac_includes_default
9826 #include <$ac_header>
9828 rm -f conftest.$ac_objext
9829 if { (ac_try="$ac_compile"
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_header_compiler=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_compiler=no
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855 echo "${ECHO_T}$ac_header_compiler" >&6; }
9857 # Is the header present?
9858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9868 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null && {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9884 ac_header_preproc=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_header_preproc=no
9892 rm -f conftest.err conftest.$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6; }
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc=yes
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9919 ## ---------------------------------------- ##
9920 ## Report this to pgsql-bugs@postgresql.org ##
9921 ## ---------------------------------------- ##
9923 ) | sed "s/^/$as_me: WARNING: /" >&2
9926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 eval "$as_ac_Header=\$ac_header_preproc"
9933 ac_res=`eval echo '${'$as_ac_Header'}'`
9934 { echo "$as_me:$LINENO: result: $ac_res" >&5
9935 echo "${ECHO_T}$ac_res" >&6; }
9938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 for ac_header in readline.h
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_res=`eval echo '${'$as_ac_Header'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9958 # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 #include <$ac_header>
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest.$ac_objext; then
9987 ac_header_compiler=yes
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9992 ac_header_compiler=no
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9997 echo "${ECHO_T}$ac_header_compiler" >&6; }
9999 # Is the header present?
10000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <$ac_header>
10010 if { (ac_try="$ac_cpp conftest.$ac_ext"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null && {
10023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10026 ac_header_preproc=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_preproc=no
10034 rm -f conftest.err conftest.$ac_ext
10035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036 echo "${ECHO_T}$ac_header_preproc" >&6; }
10038 # So? What about this header?
10039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10045 ac_header_preproc=yes
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10061 ## ---------------------------------------- ##
10062 ## Report this to pgsql-bugs@postgresql.org ##
10063 ## ---------------------------------------- ##
10065 ) | sed "s/^/$as_me: WARNING: /" >&2
10068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 eval "$as_ac_Header=\$ac_header_preproc"
10075 ac_res=`eval echo '${'$as_ac_Header'}'`
10076 { echo "$as_me:$LINENO: result: $ac_res" >&5
10077 echo "${ECHO_T}$ac_res" >&6; }
10080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 { { echo "$as_me:$LINENO: error: readline header not found
10087 If you have readline already installed, see config.log for details on the
10088 failure. It is possible the compiler isn't looking in the proper directory.
10089 Use --without-readline to disable readline support." >&5
10090 echo "$as_me: error: readline header not found
10091 If you have readline already installed, see config.log for details on the
10092 failure. It is possible the compiler isn't looking in the proper directory.
10093 Use --without-readline to disable readline support." >&2;}
10094 { (exit 1); exit 1; }; }
10104 for ac_header in readline/history.h
10106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 ac_res=`eval echo '${'$as_ac_Header'}'`
10114 { echo "$as_me:$LINENO: result: $ac_res" >&5
10115 echo "${ECHO_T}$ac_res" >&6; }
10117 # Is the header compilable?
10118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10146 ac_header_compiler=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_compiler=no
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10156 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158 # Is the header present?
10159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #include <$ac_header>
10169 if { (ac_try="$ac_cpp conftest.$ac_ext"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null && {
10182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10185 ac_header_preproc=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_header_preproc=no
10193 rm -f conftest.err conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10195 echo "${ECHO_T}$ac_header_preproc" >&6; }
10197 # So? What about this header?
10198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10204 ac_header_preproc=yes
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220 ## ---------------------------------------- ##
10221 ## Report this to pgsql-bugs@postgresql.org ##
10222 ## ---------------------------------------- ##
10224 ) | sed "s/^/$as_me: WARNING: /" >&2
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 ac_res=`eval echo '${'$as_ac_Header'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10246 for ac_header in history.h
10248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_res=`eval echo '${'$as_ac_Header'}'`
10256 { echo "$as_me:$LINENO: result: $ac_res" >&5
10257 echo "${ECHO_T}$ac_res" >&6; }
10259 # Is the header compilable?
10260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 $ac_includes_default
10269 #include <$ac_header>
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_header_compiler=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_header_compiler=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10298 echo "${ECHO_T}$ac_header_compiler" >&6; }
10300 # Is the header present?
10301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <$ac_header>
10311 if { (ac_try="$ac_cpp conftest.$ac_ext"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } >/dev/null && {
10324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10327 ac_header_preproc=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_header_preproc=no
10335 rm -f conftest.err conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 echo "${ECHO_T}$ac_header_preproc" >&6; }
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc=yes
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362 ## ---------------------------------------- ##
10363 ## Report this to pgsql-bugs@postgresql.org ##
10364 ## ---------------------------------------- ##
10366 ) | sed "s/^/$as_me: WARNING: /" >&2
10369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 eval "$as_ac_Header=\$ac_header_preproc"
10376 ac_res=`eval echo '${'$as_ac_Header'}'`
10377 { echo "$as_me:$LINENO: result: $ac_res" >&5
10378 echo "${ECHO_T}$ac_res" >&6; }
10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10382 cat >>confdefs.h <<_ACEOF
10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387 { { echo "$as_me:$LINENO: error: history header not found
10388 If you have readline already installed, see config.log for details on the
10389 failure. It is possible the compiler isn't looking in the proper directory.
10390 Use --without-readline to disable readline support." >&5
10391 echo "$as_me: error: history header not found
10392 If you have readline already installed, see config.log for details on the
10393 failure. It is possible the compiler isn't looking in the proper directory.
10394 Use --without-readline to disable readline support." >&2;}
10395 { (exit 1); exit 1; }; }
10406 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10407 # Some installations of libedit usurp /usr/include/readline/, which seems
10408 # bad practice, since in combined installations readline will have its headers
10409 # there. We might have to resort to AC_EGREP checks to make sure we found
10410 # the proper header...
10412 for ac_header in editline/readline.h
10414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_res=`eval echo '${'$as_ac_Header'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10425 # Is the header compilable?
10426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10428 cat >conftest.$ac_ext <<_ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 #include <$ac_header>
10437 rm -f conftest.$ac_objext
10438 if { (ac_try="$ac_compile"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 ac_header_compiler=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_compiler=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <$ac_header>
10477 if { (ac_try="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } >/dev/null && {
10490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10493 ac_header_preproc=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_header_preproc=no
10501 rm -f conftest.err conftest.$ac_ext
10502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10503 echo "${ECHO_T}$ac_header_preproc" >&6; }
10505 # So? What about this header?
10506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10512 ac_header_preproc=yes
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10528 ## ---------------------------------------- ##
10529 ## Report this to pgsql-bugs@postgresql.org ##
10530 ## ---------------------------------------- ##
10532 ) | sed "s/^/$as_me: WARNING: /" >&2
10535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 eval "$as_ac_Header=\$ac_header_preproc"
10542 ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10554 for ac_header in readline.h
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 ac_res=`eval echo '${'$as_ac_Header'}'`
10564 { echo "$as_me:$LINENO: result: $ac_res" >&5
10565 echo "${ECHO_T}$ac_res" >&6; }
10567 # Is the header compilable?
10568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <$ac_header>
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10596 ac_header_compiler=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_compiler=no
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <$ac_header>
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null && {
10632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10635 ac_header_preproc=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_header_preproc=no
10643 rm -f conftest.err conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10645 echo "${ECHO_T}$ac_header_preproc" >&6; }
10647 # So? What about this header?
10648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10654 ac_header_preproc=yes
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10670 ## ---------------------------------------- ##
10671 ## Report this to pgsql-bugs@postgresql.org ##
10672 ## ---------------------------------------- ##
10674 ) | sed "s/^/$as_me: WARNING: /" >&2
10677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 eval "$as_ac_Header=\$ac_header_preproc"
10684 ac_res=`eval echo '${'$as_ac_Header'}'`
10685 { echo "$as_me:$LINENO: result: $ac_res" >&5
10686 echo "${ECHO_T}$ac_res" >&6; }
10689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10690 cat >>confdefs.h <<_ACEOF
10691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 for ac_header in readline/readline.h
10698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 ac_res=`eval echo '${'$as_ac_Header'}'`
10706 { echo "$as_me:$LINENO: result: $ac_res" >&5
10707 echo "${ECHO_T}$ac_res" >&6; }
10709 # Is the header compilable?
10710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 #include <$ac_header>
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 ac_header_compiler=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_header_compiler=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 echo "${ECHO_T}$ac_header_compiler" >&6; }
10750 # Is the header present?
10751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <$ac_header>
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null && {
10774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10777 ac_header_preproc=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_header_preproc=no
10785 rm -f conftest.err conftest.$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787 echo "${ECHO_T}$ac_header_preproc" >&6; }
10789 # So? What about this header?
10790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796 ac_header_preproc=yes
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812 ## ---------------------------------------- ##
10813 ## Report this to pgsql-bugs@postgresql.org ##
10814 ## ---------------------------------------- ##
10816 ) | sed "s/^/$as_me: WARNING: /" >&2
10819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 eval "$as_ac_Header=\$ac_header_preproc"
10826 ac_res=`eval echo '${'$as_ac_Header'}'`
10827 { echo "$as_me:$LINENO: result: $ac_res" >&5
10828 echo "${ECHO_T}$ac_res" >&6; }
10831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10832 cat >>confdefs.h <<_ACEOF
10833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 { { echo "$as_me:$LINENO: error: readline header not found
10838 If you have libedit already installed, see config.log for details on the
10839 failure. It is possible the compiler isn't looking in the proper directory.
10840 Use --without-readline to disable libedit support." >&5
10841 echo "$as_me: error: readline header not found
10842 If you have libedit already installed, see config.log for details on the
10843 failure. It is possible the compiler isn't looking in the proper directory.
10844 Use --without-readline to disable libedit support." >&2;}
10845 { (exit 1); exit 1; }; }
10858 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10859 # not be there at all. Hence, don't complain if not found. We must check
10860 # though, since in yet other versions it is an independent header.
10862 for ac_header in editline/history.h
10864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_res=`eval echo '${'$as_ac_Header'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10875 # Is the header compilable?
10876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 #include <$ac_header>
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 ac_header_compiler=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_header_compiler=no
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10914 echo "${ECHO_T}$ac_header_compiler" >&6; }
10916 # Is the header present?
10917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <$ac_header>
10927 if { (ac_try="$ac_cpp conftest.$ac_ext"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null && {
10940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10943 ac_header_preproc=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_header_preproc=no
10951 rm -f conftest.err conftest.$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 echo "${ECHO_T}$ac_header_preproc" >&6; }
10955 # So? What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962 ac_header_preproc=yes
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978 ## ---------------------------------------- ##
10979 ## Report this to pgsql-bugs@postgresql.org ##
10980 ## ---------------------------------------- ##
10982 ) | sed "s/^/$as_me: WARNING: /" >&2
10985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 eval "$as_ac_Header=\$ac_header_preproc"
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10998 cat >>confdefs.h <<_ACEOF
10999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11004 for ac_header in history.h
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 ac_res=`eval echo '${'$as_ac_Header'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11017 # Is the header compilable?
11018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 $ac_includes_default
11027 #include <$ac_header>
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 ac_header_compiler=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_compiler=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056 echo "${ECHO_T}$ac_header_compiler" >&6; }
11058 # Is the header present?
11059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <$ac_header>
11069 if { (ac_try="$ac_cpp conftest.$ac_ext"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null && {
11082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11085 ac_header_preproc=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11120 ## ---------------------------------------- ##
11121 ## Report this to pgsql-bugs@postgresql.org ##
11122 ## ---------------------------------------- ##
11124 ) | sed "s/^/$as_me: WARNING: /" >&2
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 for ac_header in readline/history.h
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11159 # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 #include <$ac_header>
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 ac_header_compiler=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_compiler=no
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198 echo "${ECHO_T}$ac_header_compiler" >&6; }
11200 # Is the header present?
11201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <$ac_header>
11211 if { (ac_try="$ac_cpp conftest.$ac_ext"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null && {
11224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11227 ac_header_preproc=yes
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_header_preproc=no
11235 rm -f conftest.err conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11237 echo "${ECHO_T}$ac_header_preproc" >&6; }
11239 # So? What about this header?
11240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11246 ac_header_preproc=yes
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262 ## ---------------------------------------- ##
11263 ## Report this to pgsql-bugs@postgresql.org ##
11264 ## ---------------------------------------- ##
11266 ) | sed "s/^/$as_me: WARNING: /" >&2
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 eval "$as_ac_Header=\$ac_header_preproc"
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 if test "$with_zlib" = yes; then
11301 if test "${ac_cv_header_zlib_h+set}" = set; then
11302 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11303 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11304 if test "${ac_cv_header_zlib_h+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11308 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11312 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null && {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11378 ac_header_preproc=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11386 rm -f conftest.err conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11400 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11413 ## ---------------------------------------- ##
11414 ## Report this to pgsql-bugs@postgresql.org ##
11415 ## ---------------------------------------- ##
11417 ) | sed "s/^/$as_me: WARNING: /" >&2
11420 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11421 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11422 if test "${ac_cv_header_zlib_h+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 ac_cv_header_zlib_h=$ac_header_preproc
11427 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11428 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11431 if test $ac_cv_header_zlib_h = yes; then
11434 { { echo "$as_me:$LINENO: error: zlib header not found
11435 If you have zlib already installed, see config.log for details on the
11436 failure. It is possible the compiler isn't looking in the proper directory.
11437 Use --without-zlib to disable zlib support." >&5
11438 echo "$as_me: error: zlib header not found
11439 If you have zlib already installed, see config.log for details on the
11440 failure. It is possible the compiler isn't looking in the proper directory.
11441 Use --without-zlib to disable zlib support." >&2;}
11442 { (exit 1); exit 1; }; }
11448 if test "$with_gssapi" = yes ; then
11450 for ac_header in gssapi/gssapi.h
11452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_res=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11463 # Is the header compilable?
11464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492 ac_header_compiler=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null && {
11528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11531 ac_header_preproc=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 ## ---------------------------------------- ##
11567 ## Report this to pgsql-bugs@postgresql.org ##
11568 ## ---------------------------------------- ##
11570 ) | sed "s/^/$as_me: WARNING: /" >&2
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 eval "$as_ac_Header=\$ac_header_preproc"
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_header in gssapi.h
11594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
11634 ac_header_compiler=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11665 grep -v '^ *+' conftest.er1 >conftest.err
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null && {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11673 ac_header_preproc=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc=yes
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 ## ---------------------------------------- ##
11709 ## Report this to pgsql-bugs@postgresql.org ##
11710 ## ---------------------------------------- ##
11712 ) | sed "s/^/$as_me: WARNING: /" >&2
11715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 eval "$as_ac_Header=\$ac_header_preproc"
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11733 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11734 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11735 { (exit 1); exit 1; }; }
11746 if test "$with_krb5" = yes ; then
11747 if test "${ac_cv_header_krb5_h+set}" = set; then
11748 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_krb5_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11754 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11756 # Is the header compilable?
11757 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11758 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11759 cat >conftest.$ac_ext <<_ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11799 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null && {
11821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11824 ac_header_preproc=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_header_preproc=no
11832 rm -f conftest.err conftest.$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6; }
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc=yes
11846 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11859 ## ---------------------------------------- ##
11860 ## Report this to pgsql-bugs@postgresql.org ##
11861 ## ---------------------------------------- ##
11863 ) | sed "s/^/$as_me: WARNING: /" >&2
11866 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11867 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11868 if test "${ac_cv_header_krb5_h+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_cv_header_krb5_h=$ac_header_preproc
11873 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11877 if test $ac_cv_header_krb5_h = yes; then
11880 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11881 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11882 { (exit 1); exit 1; }; }
11888 if test "$with_openssl" = yes ; then
11889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11896 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11898 # Is the header compilable?
11899 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11900 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11908 #include <openssl/ssl.h>
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_header_compiler=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11941 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <openssl/ssl.h>
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null && {
11963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11966 ac_header_preproc=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_header_preproc=no
11974 rm -f conftest.err conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11976 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978 # So? What about this header?
11979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11982 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11984 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11985 ac_header_preproc=yes
11988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11989 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11991 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11993 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11995 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11997 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11999 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12001 ## ---------------------------------------- ##
12002 ## Report this to pgsql-bugs@postgresql.org ##
12003 ## ---------------------------------------- ##
12005 ) | sed "s/^/$as_me: WARNING: /" >&2
12008 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12009 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12010 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12015 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12016 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12019 if test $ac_cv_header_openssl_ssl_h = yes; then
12022 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12023 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12024 { (exit 1); exit 1; }; }
12028 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12029 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12030 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12035 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12037 # Is the header compilable?
12038 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12039 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 $ac_includes_default
12047 #include <openssl/err.h>
12049 rm -f conftest.$ac_objext
12050 if { (ac_try="$ac_compile"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
12066 ac_header_compiler=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_compiler=no
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6; }
12078 # Is the header present?
12079 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12080 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <openssl/err.h>
12089 if { (ac_try="$ac_cpp conftest.$ac_ext"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null && {
12102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12105 ac_header_preproc=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_header_preproc=no
12113 rm -f conftest.err conftest.$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12115 echo "${ECHO_T}$ac_header_preproc" >&6; }
12117 # So? What about this header?
12118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12121 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12123 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12124 ac_header_preproc=yes
12127 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12128 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12130 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12132 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12134 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12136 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12138 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12140 ## ---------------------------------------- ##
12141 ## Report this to pgsql-bugs@postgresql.org ##
12142 ## ---------------------------------------- ##
12144 ) | sed "s/^/$as_me: WARNING: /" >&2
12147 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12148 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12149 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_cv_header_openssl_err_h=$ac_header_preproc
12154 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12158 if test $ac_cv_header_openssl_err_h = yes; then
12161 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12162 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12163 { (exit 1); exit 1; }; }
12168 for ac_func in ERR_set_mark
12170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184 #define $ac_func innocuous_$ac_func
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
12192 # include <limits.h>
12194 # include <assert.h>
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined __stub_$ac_func || defined __stub___$ac_func
12216 return $ac_func ();
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (ac_try="$ac_link"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_link") 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && {
12235 test -z "$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 } && test -s conftest$ac_exeext &&
12238 $as_test_x conftest$ac_exeext; then
12239 eval "$as_ac_var=yes"
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 eval "$as_ac_var=no"
12247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12248 conftest$ac_exeext conftest.$ac_ext
12250 ac_res=`eval echo '${'$as_ac_var'}'`
12251 { echo "$as_me:$LINENO: result: $ac_res" >&5
12252 echo "${ECHO_T}$ac_res" >&6; }
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263 if test "$with_pam" = yes ; then
12265 for ac_header in security/pam_appl.h
12267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 ac_res=`eval echo '${'$as_ac_Header'}'`
12275 { echo "$as_me:$LINENO: result: $ac_res" >&5
12276 echo "${ECHO_T}$ac_res" >&6; }
12278 # Is the header compilable?
12279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12288 #include <$ac_header>
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
12307 ac_header_compiler=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_header_compiler=no
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12317 echo "${ECHO_T}$ac_header_compiler" >&6; }
12319 # Is the header present?
12320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 #include <$ac_header>
12330 if { (ac_try="$ac_cpp conftest.$ac_ext"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } >/dev/null && {
12343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12346 ac_header_preproc=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_header_preproc=no
12354 rm -f conftest.err conftest.$ac_ext
12355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12356 echo "${ECHO_T}$ac_header_preproc" >&6; }
12358 # So? What about this header?
12359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12365 ac_header_preproc=yes
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12381 ## ---------------------------------------- ##
12382 ## Report this to pgsql-bugs@postgresql.org ##
12383 ## ---------------------------------------- ##
12385 ) | sed "s/^/$as_me: WARNING: /" >&2
12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 eval "$as_ac_Header=\$ac_header_preproc"
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12401 cat >>confdefs.h <<_ACEOF
12402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12407 for ac_header in pam/pam_appl.h
12409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_res=`eval echo '${'$as_ac_Header'}'`
12417 { echo "$as_me:$LINENO: result: $ac_res" >&5
12418 echo "${ECHO_T}$ac_res" >&6; }
12420 # Is the header compilable?
12421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12430 #include <$ac_header>
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.$ac_objext; then
12449 ac_header_compiler=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_header_compiler=no
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12459 echo "${ECHO_T}$ac_header_compiler" >&6; }
12461 # Is the header present?
12462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <$ac_header>
12472 if { (ac_try="$ac_cpp conftest.$ac_ext"
12473 case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12480 grep -v '^ *+' conftest.er1 >conftest.err
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } >/dev/null && {
12485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12486 test ! -s conftest.err
12488 ac_header_preproc=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523 ## ---------------------------------------- ##
12524 ## Report this to pgsql-bugs@postgresql.org ##
12525 ## ---------------------------------------- ##
12527 ) | sed "s/^/$as_me: WARNING: /" >&2
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 eval "$as_ac_Header=\$ac_header_preproc"
12537 ac_res=`eval echo '${'$as_ac_Header'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12548 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12549 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12550 { (exit 1); exit 1; }; }
12561 if test "$with_libxml" = yes ; then
12562 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12563 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12564 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12565 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12569 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12571 # Is the header compilable?
12572 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12573 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12581 #include <libxml/parser.h>
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
12600 ac_header_compiler=yes
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_header_compiler=no
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12610 echo "${ECHO_T}$ac_header_compiler" >&6; }
12612 # Is the header present?
12613 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12614 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12615 cat >conftest.$ac_ext <<_ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 #include <libxml/parser.h>
12623 if { (ac_try="$ac_cpp conftest.$ac_ext"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } >/dev/null && {
12636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12639 ac_header_preproc=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_header_preproc=no
12647 rm -f conftest.err conftest.$ac_ext
12648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12649 echo "${ECHO_T}$ac_header_preproc" >&6; }
12651 # So? What about this header?
12652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12654 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12655 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12657 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12658 ac_header_preproc=yes
12661 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12662 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12664 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12666 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12668 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12670 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12672 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12674 ## ---------------------------------------- ##
12675 ## Report this to pgsql-bugs@postgresql.org ##
12676 ## ---------------------------------------- ##
12678 ) | sed "s/^/$as_me: WARNING: /" >&2
12681 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12682 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12683 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_cv_header_libxml_parser_h=$ac_header_preproc
12688 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12689 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12692 if test $ac_cv_header_libxml_parser_h = yes; then
12695 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12696 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12697 { (exit 1); exit 1; }; }
12703 if test "$with_libxslt" = yes ; then
12704 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12705 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12706 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12707 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12711 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12713 # Is the header compilable?
12714 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12715 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 #include <libxslt/xslt.h>
12725 rm -f conftest.$ac_objext
12726 if { (ac_try="$ac_compile"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_compile") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } && {
12739 test -z "$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12741 } && test -s conftest.$ac_objext; then
12742 ac_header_compiler=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_header_compiler=no
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12752 echo "${ECHO_T}$ac_header_compiler" >&6; }
12754 # Is the header present?
12755 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12756 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <libxslt/xslt.h>
12765 if { (ac_try="$ac_cpp conftest.$ac_ext"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } >/dev/null && {
12778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12781 ac_header_preproc=yes
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12786 ac_header_preproc=no
12789 rm -f conftest.err conftest.$ac_ext
12790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6; }
12793 # So? What about this header?
12794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12799 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12803 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12804 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12806 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12808 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12810 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12814 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12816 ## ---------------------------------------- ##
12817 ## Report this to pgsql-bugs@postgresql.org ##
12818 ## ---------------------------------------- ##
12820 ) | sed "s/^/$as_me: WARNING: /" >&2
12823 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12824 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12825 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12830 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12831 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12834 if test $ac_cv_header_libxslt_xslt_h = yes; then
12837 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12838 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12839 { (exit 1); exit 1; }; }
12845 if test "$with_ldap" = yes ; then
12846 if test "$PORTNAME" != "win32"; then
12848 for ac_header in ldap.h
12850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859 echo "${ECHO_T}$ac_res" >&6; }
12861 # Is the header compilable?
12862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12864 cat >conftest.$ac_ext <<_ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12871 #include <$ac_header>
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
12890 ac_header_compiler=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_header_compiler=no
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6; }
12902 # Is the header present?
12903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <$ac_header>
12913 if { (ac_try="$ac_cpp conftest.$ac_ext"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null && {
12926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12929 ac_header_preproc=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_header_preproc=no
12937 rm -f conftest.err conftest.$ac_ext
12938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12939 echo "${ECHO_T}$ac_header_preproc" >&6; }
12941 # So? What about this header?
12942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12948 ac_header_preproc=yes
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12964 ## ---------------------------------------- ##
12965 ## Report this to pgsql-bugs@postgresql.org ##
12966 ## ---------------------------------------- ##
12968 ) | sed "s/^/$as_me: WARNING: /" >&2
12971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 eval "$as_ac_Header=\$ac_header_preproc"
12978 ac_res=`eval echo '${'$as_ac_Header'}'`
12979 { echo "$as_me:$LINENO: result: $ac_res" >&5
12980 echo "${ECHO_T}$ac_res" >&6; }
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12989 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12990 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12991 { (exit 1); exit 1; }; }
12998 for ac_header in winldap.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <windows.h>
13016 #include <$ac_header>
13018 rm -f conftest.$ac_objext
13019 if { (ac_try="$ac_compile"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_compile") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest.$ac_objext; then
13035 eval "$as_ac_Header=yes"
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 eval "$as_ac_Header=no"
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 ac_res=`eval echo '${'$as_ac_Header'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13049 cat >>confdefs.h <<_ACEOF
13050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13054 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13055 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13056 { (exit 1); exit 1; }; }
13064 if test "$with_bonjour" = yes ; then
13065 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13066 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13067 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13072 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13074 # Is the header compilable?
13075 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13076 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13084 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 ac_header_compiler=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_compiler=no
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13113 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115 # Is the header present?
13116 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13117 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13126 if { (ac_try="$ac_cpp conftest.$ac_ext"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } >/dev/null && {
13139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13142 ac_header_preproc=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_preproc=no
13150 rm -f conftest.err conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
13164 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13177 ## ---------------------------------------- ##
13178 ## Report this to pgsql-bugs@postgresql.org ##
13179 ## ---------------------------------------- ##
13181 ) | sed "s/^/$as_me: WARNING: /" >&2
13184 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13185 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13186 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13191 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13195 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13198 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13199 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13200 { (exit 1); exit 1; }; }
13206 # for contrib/uuid-ossp
13207 if test "$with_ossp_uuid" = yes ; then
13209 for ac_header in ossp/uuid.h
13211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_res=`eval echo '${'$as_ac_Header'}'`
13219 { echo "$as_me:$LINENO: result: $ac_res" >&5
13220 echo "${ECHO_T}$ac_res" >&6; }
13222 # Is the header compilable?
13223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <$ac_header>
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_header_compiler=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_header_compiler=no
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261 echo "${ECHO_T}$ac_header_compiler" >&6; }
13263 # Is the header present?
13264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <$ac_header>
13274 if { (ac_try="$ac_cpp conftest.$ac_ext"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev/null && {
13287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13290 ac_header_preproc=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_preproc=no
13298 rm -f conftest.err conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6; }
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13325 ## ---------------------------------------- ##
13326 ## Report this to pgsql-bugs@postgresql.org ##
13327 ## ---------------------------------------- ##
13329 ) | sed "s/^/$as_me: WARNING: /" >&2
13332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 eval "$as_ac_Header=\$ac_header_preproc"
13339 ac_res=`eval echo '${'$as_ac_Header'}'`
13340 { echo "$as_me:$LINENO: result: $ac_res" >&5
13341 echo "${ECHO_T}$ac_res" >&6; }
13344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13345 cat >>confdefs.h <<_ACEOF
13346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13352 for ac_header in uuid.h
13354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362 { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13365 # Is the header compilable?
13366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13377 rm -f conftest.$ac_objext
13378 if { (ac_try="$ac_compile"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 ac_header_compiler=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_compiler=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13404 echo "${ECHO_T}$ac_header_compiler" >&6; }
13406 # Is the header present?
13407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13409 cat >conftest.$ac_ext <<_ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 #include <$ac_header>
13417 if { (ac_try="$ac_cpp conftest.$ac_ext"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13425 grep -v '^ *+' conftest.er1 >conftest.err
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } >/dev/null && {
13430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13433 ac_header_preproc=yes
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_preproc=no
13441 rm -f conftest.err conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13443 echo "${ECHO_T}$ac_header_preproc" >&6; }
13445 # So? What about this header?
13446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13452 ac_header_preproc=yes
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13468 ## ---------------------------------------- ##
13469 ## Report this to pgsql-bugs@postgresql.org ##
13470 ## ---------------------------------------- ##
13472 ) | sed "s/^/$as_me: WARNING: /" >&2
13475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 eval "$as_ac_Header=\$ac_header_preproc"
13482 ac_res=`eval echo '${'$as_ac_Header'}'`
13483 { echo "$as_me:$LINENO: result: $ac_res" >&5
13484 echo "${ECHO_T}$ac_res" >&6; }
13487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13493 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13494 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13495 { (exit 1); exit 1; }; }
13508 ## Types, structures, compiler characteristics
13511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13513 if test "${ac_cv_c_bigendian+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 # See if sys/param.h defines the BYTE_ORDER macro.
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <sys/param.h>
13529 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13530 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13531 bogus endian macros
13538 rm -f conftest.$ac_objext
13539 if { (ac_try="$ac_compile"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_compile") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && {
13552 test -z "$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 } && test -s conftest.$ac_objext; then
13555 # It does; now see whether it defined to BIG_ENDIAN or not.
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #include <sys/param.h>
13568 #if BYTE_ORDER != BIG_ENDIAN
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_cv_c_bigendian=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_cv_c_bigendian=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 # It does not; compile a test program.
13607 if test "$cross_compiling" = yes; then
13608 # try to guess the endianness by grepping values into an object file
13609 ac_cv_c_bigendian=unknown
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13617 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13619 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13620 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13625 _ascii (); _ebcdic ();
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13648 ac_cv_c_bigendian=yes
13650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13651 if test "$ac_cv_c_bigendian" = unknown; then
13652 ac_cv_c_bigendian=no
13654 # finding both strings is unlikely to happen, but who knows?
13655 ac_cv_c_bigendian=unknown
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13678 /* Are we little or big endian? From Harbison&Steele. */
13682 char c[sizeof (long int)];
13685 return u.c[sizeof (long int) - 1] == 1;
13691 rm -f conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_c_bigendian=no
13713 echo "$as_me: program exited with status $ac_status" >&5
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ( exit $ac_status )
13718 ac_cv_c_bigendian=yes
13720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13729 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13730 case $ac_cv_c_bigendian in
13733 cat >>confdefs.h <<\_ACEOF
13734 #define WORDS_BIGENDIAN 1
13740 { { echo "$as_me:$LINENO: error: unknown endianness
13741 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13742 echo "$as_me: error: unknown endianness
13743 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13744 { (exit 1); exit 1; }; } ;;
13747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13749 if test "${ac_cv_c_const+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13762 /* FIXME: Include the comments suggested by Paul. */
13763 #ifndef __cplusplus
13764 /* Ultrix mips cc rejects this. */
13765 typedef int charset[2];
13767 /* SunOS 4.1.1 cc rejects this. */
13768 char const *const *pcpcc;
13770 /* NEC SVR4.0.2 mips cc rejects this. */
13771 struct point {int x, y;};
13772 static struct point const zero = {0,0};
13773 /* AIX XL C 1.02.0.0 rejects this.
13774 It does not let you subtract one const X* pointer from another in
13775 an arm of an if-expression whose if-part is not a constant
13777 const char *g = "string";
13778 pcpcc = &g + (g ? g-g : 0);
13779 /* HPUX 7.0 cc rejects these. */
13781 ppc = (char**) pcpcc;
13782 pcpcc = (char const *const *) ppc;
13783 { /* SCO 3.2v4 cc rejects this. */
13785 char const *s = 0 ? (char *) 0 : (char const *) 0;
13790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13791 int x[] = {25, 17};
13792 const int *foo = &x[0];
13795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13796 typedef const int *iptr;
13800 { /* AIX XL C 1.02.0.0 rejects this saying
13801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13802 struct s { int j; const int *ap[3]; };
13803 struct s *b; b->j = 5;
13805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13806 const int foo = 10;
13807 if (!foo) return 0;
13809 return !cs[0] && !zero.x;
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.$ac_objext; then
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13845 if test $ac_cv_c_const = no; then
13847 cat >>confdefs.h <<\_ACEOF
13853 { echo "$as_me:$LINENO: checking for inline" >&5
13854 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13855 if test "${ac_cv_c_inline+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 for ac_kw in inline __inline__ __inline; do
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #ifndef __cplusplus
13868 static $ac_kw foo_t static_foo () {return 0; }
13869 $ac_kw foo_t foo () {return 0; }
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_cv_c_inline=$ac_kw
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 test "$ac_cv_c_inline" != no && break
13903 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13904 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13907 case $ac_cv_c_inline in
13910 case $ac_cv_c_inline in
13912 *) ac_val=$ac_cv_c_inline;;
13914 cat >>confdefs.h <<_ACEOF
13915 #ifndef __cplusplus
13916 #define inline $ac_val
13922 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13923 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13924 if test "${ac_cv_c_stringize+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 cat >conftest.$ac_ext <<_ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13935 char *s = x(teststring);
13937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938 $EGREP "#teststring" >/dev/null 2>&1; then
13939 ac_cv_c_stringize=no
13941 ac_cv_c_stringize=yes
13946 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13947 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13948 if test $ac_cv_c_stringize = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_STRINGIZE 1
13956 { echo "$as_me:$LINENO: checking for signed types" >&5
13957 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13958 if test "${pgac_cv_c_signed+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13971 signed char c; signed short s; signed int i;
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.$ac_objext; then
13993 pgac_cv_c_signed=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 pgac_cv_c_signed=no
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14004 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14005 if test x"$pgac_cv_c_signed" = xno ; then
14007 cat >>confdefs.h <<\_ACEOF
14012 { echo "$as_me:$LINENO: checking for working volatile" >&5
14013 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14014 if test "${ac_cv_c_volatile+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14029 int * volatile y = (int *) 0;
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_cv_c_volatile=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_cv_c_volatile=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14063 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14064 if test $ac_cv_c_volatile = no; then
14066 cat >>confdefs.h <<\_ACEOF
14072 { echo "$as_me:$LINENO: checking for __func__" >&5
14073 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14074 if test "${pgac_cv_funcname_func_support+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14087 printf("%s\n", __func__);
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.$ac_objext; then
14109 pgac_cv_funcname_func_support=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 pgac_cv_funcname_func_support=no
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14120 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14121 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14123 cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_FUNCNAME__FUNC 1
14128 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14129 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14130 if test "${pgac_cv_funcname_function_support+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14143 printf("%s\n", __FUNCTION__);
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.$ac_objext; then
14165 pgac_cv_funcname_function_support=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 pgac_cv_funcname_function_support=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14176 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14177 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_FUNCNAME__FUNCTION 1
14185 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14186 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14187 if test "${ac_cv_struct_tm+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14203 int *p = &tm.tm_sec;
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.$ac_objext; then
14226 ac_cv_struct_tm=time.h
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_struct_tm=sys/time.h
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14237 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14238 if test $ac_cv_struct_tm = sys/time.h; then
14240 cat >>confdefs.h <<\_ACEOF
14241 #define TM_IN_SYS_TIME 1
14246 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14247 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14248 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include <sys/types.h>
14258 #include <$ac_cv_struct_tm>
14264 static struct tm ac_aggr;
14265 if (ac_aggr.tm_zone)
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } && {
14285 test -z "$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14287 } && test -s conftest.$ac_objext; then
14288 ac_cv_member_struct_tm_tm_zone=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 #include <sys/types.h>
14300 #include <$ac_cv_struct_tm>
14306 static struct tm ac_aggr;
14307 if (sizeof ac_aggr.tm_zone)
14313 rm -f conftest.$ac_objext
14314 if { (ac_try="$ac_compile"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.$ac_objext; then
14330 ac_cv_member_struct_tm_tm_zone=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_cv_member_struct_tm_tm_zone=no
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14344 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14345 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRUCT_TM_TM_ZONE 1
14354 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_TM_ZONE 1
14361 { echo "$as_me:$LINENO: checking for tzname" >&5
14362 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14363 if test "${ac_cv_var_tzname+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14373 #ifndef tzname /* For SGI. */
14374 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (ac_try="$ac_link"
14387 case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest$ac_exeext &&
14402 $as_test_x conftest$ac_exeext; then
14403 ac_cv_var_tzname=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_var_tzname=no
14411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14412 conftest$ac_exeext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14415 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14416 if test $ac_cv_var_tzname = yes; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_TZNAME 1
14424 { echo "$as_me:$LINENO: checking for union semun" >&5
14425 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14426 if test "${ac_cv_type_union_semun+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/types.h>
14436 #include <sys/ipc.h>
14437 #include <sys/sem.h>
14439 typedef union semun ac__type_new_;
14443 if ((ac__type_new_ *) 0)
14445 if (sizeof (ac__type_new_))
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_compile") 2>conftest.er1
14460 grep -v '^ *+' conftest.er1 >conftest.err
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && {
14465 test -z "$ac_c_werror_flag" ||
14466 test ! -s conftest.err
14467 } && test -s conftest.$ac_objext; then
14468 ac_cv_type_union_semun=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_type_union_semun=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14479 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14480 if test $ac_cv_type_union_semun = yes; then
14482 cat >>confdefs.h <<_ACEOF
14483 #define HAVE_UNION_SEMUN 1
14489 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14490 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14491 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <sys/types.h>
14501 #ifdef HAVE_SYS_UN_H
14502 #include <sys/un.h>
14506 typedef struct sockaddr_un ac__type_new_;
14510 if ((ac__type_new_ *) 0)
14512 if (sizeof (ac__type_new_))
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_cv_type_struct_sockaddr_un=yes
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_type_struct_sockaddr_un=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14546 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14547 if test $ac_cv_type_struct_sockaddr_un = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_UN 1
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_UNIX_SOCKETS 1
14560 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14561 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14562 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <sys/types.h>
14572 #ifdef HAVE_SYS_SOCKET_H
14573 #include <sys/socket.h>
14577 typedef struct sockaddr_storage ac__type_new_;
14581 if ((ac__type_new_ *) 0)
14583 if (sizeof (ac__type_new_))
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.$ac_objext; then
14606 ac_cv_type_struct_sockaddr_storage=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_cv_type_struct_sockaddr_storage=no
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14617 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14618 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14627 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14628 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14629 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #ifdef HAVE_SYS_SOCKET_H
14640 #include <sys/socket.h>
14647 static struct sockaddr_storage ac_aggr;
14648 if (ac_aggr.ss_family)
14654 rm -f conftest.$ac_objext
14655 if { (ac_try="$ac_compile"
14656 case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_compile") 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } && {
14668 test -z "$ac_c_werror_flag" ||
14669 test ! -s conftest.err
14670 } && test -s conftest.$ac_objext; then
14671 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <sys/types.h>
14683 #ifdef HAVE_SYS_SOCKET_H
14684 #include <sys/socket.h>
14691 static struct sockaddr_storage ac_aggr;
14692 if (sizeof ac_aggr.ss_family)
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_member_struct_sockaddr_storage_ss_family=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14729 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14730 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14738 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14739 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14740 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <sys/types.h>
14750 #ifdef HAVE_SYS_SOCKET_H
14751 #include <sys/socket.h>
14758 static struct sockaddr_storage ac_aggr;
14759 if (ac_aggr.__ss_family)
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <sys/types.h>
14794 #ifdef HAVE_SYS_SOCKET_H
14795 #include <sys/socket.h>
14802 static struct sockaddr_storage ac_aggr;
14803 if (sizeof ac_aggr.__ss_family)
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
14826 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 ac_cv_member_struct_sockaddr_storage___ss_family=no
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14840 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14841 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14849 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14850 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14851 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+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/types.h>
14861 #ifdef HAVE_SYS_SOCKET_H
14862 #include <sys/socket.h>
14869 static struct sockaddr_storage ac_aggr;
14870 if (ac_aggr.ss_len)
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && {
14890 test -z "$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14892 } && test -s conftest.$ac_objext; then
14893 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #ifdef HAVE_SYS_SOCKET_H
14906 #include <sys/socket.h>
14913 static struct sockaddr_storage ac_aggr;
14914 if (sizeof ac_aggr.ss_len)
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_member_struct_sockaddr_storage_ss_len=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14952 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14960 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14961 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14962 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14972 #ifdef HAVE_SYS_SOCKET_H
14973 #include <sys/socket.h>
14980 static struct sockaddr_storage ac_aggr;
14981 if (ac_aggr.__ss_len)
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #ifdef HAVE_SYS_SOCKET_H
15017 #include <sys/socket.h>
15024 static struct sockaddr_storage ac_aggr;
15025 if (sizeof ac_aggr.__ss_len)
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest.$ac_objext; then
15048 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_member_struct_sockaddr_storage___ss_len=no
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15062 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15063 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15071 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15072 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15073 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15083 #ifdef HAVE_SYS_SOCKET_H
15084 #include <sys/socket.h>
15091 static struct sockaddr ac_aggr;
15092 if (ac_aggr.sa_len)
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest.$ac_objext; then
15115 ac_cv_member_struct_sockaddr_sa_len=yes
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <sys/types.h>
15127 #ifdef HAVE_SYS_SOCKET_H
15128 #include <sys/socket.h>
15135 static struct sockaddr ac_aggr;
15136 if (sizeof ac_aggr.sa_len)
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest.$ac_objext; then
15159 ac_cv_member_struct_sockaddr_sa_len=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_member_struct_sockaddr_sa_len=no
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15173 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15174 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15183 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15184 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 #include <sys/types.h>
15195 #include <sys/socket.h>
15199 typedef struct addrinfo ac__type_new_;
15203 if ((ac__type_new_ *) 0)
15205 if (sizeof (ac__type_new_))
15211 rm -f conftest.$ac_objext
15212 if { (ac_try="$ac_compile"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest.$ac_objext; then
15228 ac_cv_type_struct_addrinfo=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_cv_type_struct_addrinfo=no
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15239 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15240 if test $ac_cv_type_struct_addrinfo = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_STRUCT_ADDRINFO 1
15250 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15251 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15252 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <sys/param.h>
15262 #include <sys/types.h>
15263 #include <sys/socket.h>
15264 #include <sys/ucred.h>
15266 typedef struct cmsgcred ac__type_new_;
15270 if ((ac__type_new_ *) 0)
15272 if (sizeof (ac__type_new_))
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1 >conftest.err
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_c_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest.$ac_objext; then
15295 ac_cv_type_struct_cmsgcred=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_type_struct_cmsgcred=no
15303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15306 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15307 if test $ac_cv_type_struct_cmsgcred = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_STRUCT_CMSGCRED 1
15315 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15316 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15317 if test "${ac_cv_type_struct_fcred+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <sys/param.h>
15327 #include <sys/types.h>
15328 #include <sys/socket.h>
15329 #include <sys/ucred.h>
15331 typedef struct fcred ac__type_new_;
15335 if ((ac__type_new_ *) 0)
15337 if (sizeof (ac__type_new_))
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest.$ac_objext; then
15360 ac_cv_type_struct_fcred=yes
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_type_struct_fcred=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15371 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15372 if test $ac_cv_type_struct_fcred = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define HAVE_STRUCT_FCRED 1
15380 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15381 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15382 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <sys/param.h>
15392 #include <sys/types.h>
15393 #include <sys/socket.h>
15394 #include <sys/ucred.h>
15396 typedef struct sockcred ac__type_new_;
15400 if ((ac__type_new_ *) 0)
15402 if (sizeof (ac__type_new_))
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest.$ac_objext; then
15425 ac_cv_type_struct_sockcred=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_type_struct_sockcred=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15436 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15437 if test $ac_cv_type_struct_sockcred = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_STRUCT_SOCKCRED 1
15447 { echo "$as_me:$LINENO: checking for struct option" >&5
15448 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15449 if test "${ac_cv_type_struct_option+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 #ifdef HAVE_GETOPT_H
15459 #include <getopt.h>
15462 typedef struct option ac__type_new_;
15466 if ((ac__type_new_ *) 0)
15468 if (sizeof (ac__type_new_))
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15483 grep -v '^ *+' conftest.er1 >conftest.err
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } && {
15488 test -z "$ac_c_werror_flag" ||
15489 test ! -s conftest.err
15490 } && test -s conftest.$ac_objext; then
15491 ac_cv_type_struct_option=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_type_struct_option=no
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15502 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15503 if test $ac_cv_type_struct_option = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define HAVE_STRUCT_OPTION 1
15513 if test "$with_zlib" = yes; then
15514 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15515 # did not). While we could work around the lack of z_streamp, it
15516 # seems unwise to encourage people to use such old zlib versions...
15517 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15518 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15519 if test "${ac_cv_type_z_streamp+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15530 typedef z_streamp ac__type_new_;
15534 if ((ac__type_new_ *) 0)
15536 if (sizeof (ac__type_new_))
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest.$ac_objext; then
15559 ac_cv_type_z_streamp=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_type_z_streamp=no
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15570 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15571 if test $ac_cv_type_z_streamp = yes; then
15574 { { echo "$as_me:$LINENO: error: zlib version is too old
15575 Use --without-zlib to disable zlib support." >&5
15576 echo "$as_me: error: zlib version is too old
15577 Use --without-zlib to disable zlib support." >&2;}
15578 { (exit 1); exit 1; }; }
15583 if test "$with_krb5" = yes; then
15584 # Check for differences between MIT and Heimdal (KTH) releases
15585 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15586 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15587 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15601 static krb5_ticket ac_aggr;
15602 if (ac_aggr.enc_part2)
15608 rm -f conftest.$ac_objext
15609 if { (ac_try="$ac_compile"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest.$ac_objext; then
15625 ac_cv_member_krb5_ticket_enc_part2=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15641 static krb5_ticket ac_aggr;
15642 if (sizeof ac_aggr.enc_part2)
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.$ac_objext; then
15665 ac_cv_member_krb5_ticket_enc_part2=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_cv_member_krb5_ticket_enc_part2=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15679 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15680 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_KRB5_TICKET_ENC_PART2 1
15688 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15689 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15690 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15704 static krb5_ticket ac_aggr;
15705 if (ac_aggr.client)
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
15728 ac_cv_member_krb5_ticket_client=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15744 static krb5_ticket ac_aggr;
15745 if (sizeof ac_aggr.client)
15751 rm -f conftest.$ac_objext
15752 if { (ac_try="$ac_compile"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_compile") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && {
15765 test -z "$ac_c_werror_flag" ||
15766 test ! -s conftest.err
15767 } && test -s conftest.$ac_objext; then
15768 ac_cv_member_krb5_ticket_client=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_cv_member_krb5_ticket_client=no
15776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15782 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15783 if test $ac_cv_member_krb5_ticket_client = yes; then
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_KRB5_TICKET_CLIENT 1
15791 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15792 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15793 { (exit 1); exit 1; }; }
15798 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15799 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15800 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15814 static krb5_error ac_aggr;
15815 if (ac_aggr.text.data)
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 ac_cv_member_krb5_error_text_data=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15854 static krb5_error ac_aggr;
15855 if (sizeof ac_aggr.text.data)
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_cv_member_krb5_error_text_data=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_cv_member_krb5_error_text_data=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15892 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15893 if test $ac_cv_member_krb5_error_text_data = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15901 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15902 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15903 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15917 static krb5_error ac_aggr;
15918 if (ac_aggr.e_data)
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.$ac_objext; then
15941 ac_cv_member_krb5_error_e_data=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 cat >conftest.$ac_ext <<_ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15957 static krb5_error ac_aggr;
15958 if (sizeof ac_aggr.e_data)
15964 rm -f conftest.$ac_objext
15965 if { (ac_try="$ac_compile"
15966 case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_compile") 2>conftest.er1
15973 grep -v '^ *+' conftest.er1 >conftest.err
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest.$ac_objext; then
15981 ac_cv_member_krb5_error_e_data=yes
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_member_krb5_error_e_data=no
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15995 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15996 if test $ac_cv_member_krb5_error_e_data = yes; then
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_KRB5_ERROR_E_DATA 1
16004 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16005 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16006 { (exit 1); exit 1; }; }
16012 # Win32 requires headers to be loaded for __stdcall, so can't use
16013 # AC_CHECK_FUNCS here.
16014 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16015 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16026 krb5_free_unparsed_name(NULL,NULL);
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (ac_try="$ac_link"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_link") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest$ac_exeext &&
16048 $as_test_x conftest$ac_exeext; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16054 { echo "$as_me:$LINENO: result: yes" >&5
16055 echo "${ECHO_T}yes" >&6; }
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 { echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6; }
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16070 ## Functions, global variables
16073 { echo "$as_me:$LINENO: checking for int timezone" >&5
16074 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16075 if test "${pgac_cv_var_int_timezone+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16090 res = timezone / 60;
16092 res = _timezone / 60;
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (ac_try="$ac_link"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_link") 2>conftest.er1
16107 grep -v '^ *+' conftest.er1 >conftest.err
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && {
16112 test -z "$ac_c_werror_flag" ||
16113 test ! -s conftest.err
16114 } && test -s conftest$ac_exeext &&
16115 $as_test_x conftest$ac_exeext; then
16116 pgac_cv_var_int_timezone=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 pgac_cv_var_int_timezone=no
16124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16125 conftest$ac_exeext conftest.$ac_ext
16127 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16128 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16129 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE_INT_TIMEZONE
16136 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16137 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16138 if test "${ac_cv_func_accept_return+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 if test "${ac_cv_func_accept_arg1+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 if test "${ac_cv_func_accept_arg2+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 if test "${ac_cv_func_accept_arg3+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16151 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16152 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16153 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16154 cat >conftest.$ac_ext <<_ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 #ifdef HAVE_SYS_TYPES_H
16161 #include <sys/types.h>
16163 #ifdef HAVE_SYS_SOCKET_H
16164 #include <sys/socket.h>
16166 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_not_found=no; break 4
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 if test "$ac_not_found" = yes; then
16206 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16207 echo "$as_me: error: could not determine argument types" >&2;}
16208 { (exit 1); exit 1; }; }
16210 if test "$ac_cv_func_accept_arg3" = "void"; then
16211 ac_cv_func_accept_arg3=int
16221 { 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
16222 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16224 cat >>confdefs.h <<_ACEOF
16225 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16229 cat >>confdefs.h <<_ACEOF
16230 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16234 cat >>confdefs.h <<_ACEOF
16235 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16239 cat >>confdefs.h <<_ACEOF
16240 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16244 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16245 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16246 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <sys/time.h>
16259 struct timeval *tp;
16260 struct timezone *tzp;
16261 gettimeofday(tp,tzp);
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest.$ac_objext; then
16283 pgac_cv_func_gettimeofday_1arg=no
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 pgac_cv_func_gettimeofday_1arg=yes
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16294 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16295 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define GETTIMEOFDAY_1ARG
16327 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll posix_fadvise pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16343 #define $ac_func innocuous_$ac_func
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char $ac_func (); below.
16347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16348 <limits.h> exists even on freestanding compilers. */
16351 # include <limits.h>
16353 # include <assert.h>
16358 /* Override any GCC internal prototype to avoid an error.
16359 Use char because int might match the return type of a GCC
16360 builtin and then its argument prototype would still apply. */
16365 /* The GNU C library defines this for functions which it implements
16366 to always fail with ENOSYS. Some functions are actually named
16367 something starting with __ and the normal name is an alias. */
16368 #if defined __stub_$ac_func || defined __stub___$ac_func
16375 return $ac_func ();
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (ac_try="$ac_link"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_link") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest$ac_exeext &&
16397 $as_test_x conftest$ac_exeext; then
16398 eval "$as_ac_var=yes"
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16407 conftest$ac_exeext conftest.$ac_ext
16409 ac_res=`eval echo '${'$as_ac_var'}'`
16410 { echo "$as_me:$LINENO: result: $ac_res" >&5
16411 echo "${ECHO_T}$ac_res" >&6; }
16412 if test `eval echo '${'$as_ac_var'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16421 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16422 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16423 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <unistd.h>
16445 rm -f conftest.$ac_objext
16446 if { (ac_try="$ac_compile"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1 >conftest.err
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.$ac_objext; then
16462 ac_cv_have_decl_fdatasync=yes
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_have_decl_fdatasync=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16473 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16474 if test $ac_cv_have_decl_fdatasync = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_DECL_FDATASYNC 1
16482 cat >>confdefs.h <<_ACEOF
16483 #define HAVE_DECL_FDATASYNC 0
16490 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16491 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16492 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16506 #ifndef posix_fadvise
16507 (void) posix_fadvise;
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_cv_have_decl_posix_fadvise=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_have_decl_posix_fadvise=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16542 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16543 if test $ac_cv_have_decl_posix_fadvise = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define HAVE_DECL_POSIX_FADVISE 1
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_DECL_POSIX_FADVISE 0
16559 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16560 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16561 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest.$ac_objext; then
16599 ac_cv_have_decl_strlcat=yes
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_have_decl_strlcat=no
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16610 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16611 if test $ac_cv_have_decl_strlcat = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_DECL_STRLCAT 1
16619 cat >>confdefs.h <<_ACEOF
16620 #define HAVE_DECL_STRLCAT 0
16625 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16626 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16627 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 cat >conftest.$ac_ext <<_ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 $ac_includes_default
16648 rm -f conftest.$ac_objext
16649 if { (ac_try="$ac_compile"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_compile") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } && {
16662 test -z "$ac_c_werror_flag" ||
16663 test ! -s conftest.err
16664 } && test -s conftest.$ac_objext; then
16665 ac_cv_have_decl_strlcpy=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_have_decl_strlcpy=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16676 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16677 if test $ac_cv_have_decl_strlcpy = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_DECL_STRLCPY 1
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_STRLCPY 0
16693 # This is probably only present on Darwin, but may as well check always
16694 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16695 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16696 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16710 #ifndef F_FULLFSYNC
16711 (void) F_FULLFSYNC;
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16735 ac_cv_have_decl_F_FULLFSYNC=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_have_decl_F_FULLFSYNC=no
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16746 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16747 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16749 cat >>confdefs.h <<_ACEOF
16750 #define HAVE_DECL_F_FULLFSYNC 1
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_DECL_F_FULLFSYNC 0
16765 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16766 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16767 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16777 #include <netinet/in.h>
16779 typedef struct sockaddr_in6 ac__type_new_;
16783 if ((ac__type_new_ *) 0)
16785 if (sizeof (ac__type_new_))
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16808 ac_cv_type_struct_sockaddr_in6=yes
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_cv_type_struct_sockaddr_in6=no
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16819 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16820 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_IPV6 1
16831 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16832 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16833 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 cat >conftest.$ac_ext <<_ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 #include <machine/vmparam.h>
16843 #include <sys/exec.h>
16848 PS_STRINGS->ps_nargvstr = 1;
16849 PS_STRINGS->ps_argvstr = "foo";
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 pgac_cv_var_PS_STRINGS=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 pgac_cv_var_PS_STRINGS=no
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16884 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16885 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_PS_STRINGS
16894 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16895 # is missing. Yes, there are machines that have only one. We may
16896 # also decide to use snprintf.c if snprintf() is present but does not
16897 # have all the features we need --- see below.
16899 if test "$PORTNAME" = "win32"; then
16900 # Win32 gets snprintf.c built unconditionally.
16902 # To properly translate all NLS languages strings, we must support the
16903 # *printf() %$ format, which allows *printf() arguments to be selected
16904 # by position in the translated string.
16906 # libintl versions < 0.13 use the native *printf() functions, and Win32
16907 # *printf() doesn't understand %$, so we must use our /port versions,
16908 # which do understand %$. libintl versions >= 0.13 include their own
16909 # *printf versions on Win32. The libintl 0.13 release note text is:
16911 # C format strings with positions, as they arise when a translator
16912 # needs to reorder a sentence, are now supported on all platforms.
16913 # On those few platforms (NetBSD and Woe32) for which the native
16914 # printf()/fprintf()/... functions don't support such format
16915 # strings, replacements are provided through <libintl.h>.
16917 # We could use libintl >= 0.13's *printf() if we were sure that we had
16918 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16919 # to guarantee that, it is best to just use our own, so we are sure to
16920 # get %$ support. In include/port.h we disable the *printf() macros
16921 # that might have been defined by libintl.
16923 # We do this unconditionally whether NLS is used or not so we are sure
16924 # that all Win32 libraries and binaries behave the same.
16925 pgac_need_repl_snprintf=yes
16927 pgac_need_repl_snprintf=no
16929 for ac_func in snprintf
16931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945 #define $ac_func innocuous_$ac_func
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char $ac_func (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16953 # include <limits.h>
16955 # include <assert.h>
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16967 /* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
16970 #if defined __stub_$ac_func || defined __stub___$ac_func
16977 return $ac_func ();
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17000 eval "$as_ac_var=yes"
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 eval "$as_ac_var=no"
17008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17009 conftest$ac_exeext conftest.$ac_ext
17011 ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17014 if test `eval echo '${'$as_ac_var'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17020 pgac_need_repl_snprintf=yes
17025 for ac_func in vsnprintf
17027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17041 #define $ac_func innocuous_$ac_func
17043 /* System header to define __stub macros and hopefully few prototypes,
17044 which can conflict with char $ac_func (); below.
17045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046 <limits.h> exists even on freestanding compilers. */
17049 # include <limits.h>
17051 # include <assert.h>
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17063 /* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066 #if defined __stub_$ac_func || defined __stub___$ac_func
17073 return $ac_func ();
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest$ac_exeext &&
17095 $as_test_x conftest$ac_exeext; then
17096 eval "$as_ac_var=yes"
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 eval "$as_ac_var=no"
17104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17105 conftest$ac_exeext conftest.$ac_ext
17107 ac_res=`eval echo '${'$as_ac_var'}'`
17108 { echo "$as_me:$LINENO: result: $ac_res" >&5
17109 echo "${ECHO_T}$ac_res" >&6; }
17110 if test `eval echo '${'$as_ac_var'}'` = yes; then
17111 cat >>confdefs.h <<_ACEOF
17112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17116 pgac_need_repl_snprintf=yes
17123 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17124 # include/c.h will provide declarations. Note this is a separate test
17125 # from whether the functions exist in the C library --- there are
17126 # systems that have the functions but don't bother to declare them :-(
17128 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17129 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17130 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } && {
17165 test -z "$ac_c_werror_flag" ||
17166 test ! -s conftest.err
17167 } && test -s conftest.$ac_objext; then
17168 ac_cv_have_decl_snprintf=yes
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_have_decl_snprintf=no
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17179 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17180 if test $ac_cv_have_decl_snprintf = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_DECL_SNPRINTF 1
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_SNPRINTF 0
17194 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17195 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17196 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.$ac_objext; then
17234 ac_cv_have_decl_vsnprintf=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_cv_have_decl_vsnprintf=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17245 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17246 if test $ac_cv_have_decl_vsnprintf = yes; then
17248 cat >>confdefs.h <<_ACEOF
17249 #define HAVE_DECL_VSNPRINTF 1
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_DECL_VSNPRINTF 0
17264 { echo "$as_me:$LINENO: checking for isinf" >&5
17265 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17266 if test "${ac_cv_func_isinf+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17277 double glob_double;
17282 return isinf(glob_double) ? 0 : 1;
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
17305 ac_cv_func_isinf=yes
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_cv_func_isinf=no
17313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17314 conftest$ac_exeext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17317 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17319 if test $ac_cv_func_isinf = yes ; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_ISINF 1
17326 case " $LIBOBJS " in
17327 *" isinf.$ac_objext "* ) ;;
17328 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17332 # Look for a way to implement a substitute for isinf()
17337 for ac_func in fpclass fp_class fp_class_d class
17339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define $ac_func innocuous_$ac_func
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char $ac_func (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17361 # include <limits.h>
17363 # include <assert.h>
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17375 /* The GNU C library defines this for functions which it implements
17376 to always fail with ENOSYS. Some functions are actually named
17377 something starting with __ and the normal name is an alias. */
17378 #if defined __stub_$ac_func || defined __stub___$ac_func
17385 return $ac_func ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest$ac_exeext &&
17407 $as_test_x conftest$ac_exeext; then
17408 eval "$as_ac_var=yes"
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 eval "$as_ac_var=no"
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417 conftest$ac_exeext conftest.$ac_ext
17419 ac_res=`eval echo '${'$as_ac_var'}'`
17420 { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17422 if test `eval echo '${'$as_ac_var'}'` = yes; then
17423 cat >>confdefs.h <<_ACEOF
17424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 # Some versions of libedit contain strlcpy(); so disregard that library while
17433 # checking for these standard libc functions.
17434 pgac_save_LIBS="$LIBS"
17435 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17451 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17467 #define $ac_func innocuous_$ac_func
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char $ac_func (); below.
17471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472 <limits.h> exists even on freestanding compilers. */
17475 # include <limits.h>
17477 # include <assert.h>
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined __stub_$ac_func || defined __stub___$ac_func
17499 return $ac_func ();
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && {
17518 test -z "$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 } && test -s conftest$ac_exeext &&
17521 $as_test_x conftest$ac_exeext; then
17522 eval "$as_ac_var=yes"
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 eval "$as_ac_var=no"
17530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 conftest$ac_exeext conftest.$ac_ext
17533 ac_res=`eval echo '${'$as_ac_var'}'`
17534 { echo "$as_me:$LINENO: result: $ac_res" >&5
17535 echo "${ECHO_T}$ac_res" >&6; }
17536 if test `eval echo '${'$as_ac_var'}'` = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17542 case " $LIBOBJS " in
17543 *" $ac_func.$ac_objext "* ) ;;
17544 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17553 LIBS="$pgac_save_LIBS"
17555 # System's version of getaddrinfo(), if any, may be used only if we found
17556 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17557 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17558 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17559 # because we want to use our own getaddrinfo.c on Windows anyway.)
17560 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17562 for ac_func in getaddrinfo
17564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17578 #define $ac_func innocuous_$ac_func
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char $ac_func (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17586 # include <limits.h>
17588 # include <assert.h>
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined __stub_$ac_func || defined __stub___$ac_func
17610 return $ac_func ();
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17624 grep -v '^ *+' conftest.er1 >conftest.err
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext &&
17632 $as_test_x conftest$ac_exeext; then
17633 eval "$as_ac_var=yes"
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 eval "$as_ac_var=no"
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642 conftest$ac_exeext conftest.$ac_ext
17644 ac_res=`eval echo '${'$as_ac_var'}'`
17645 { echo "$as_me:$LINENO: result: $ac_res" >&5
17646 echo "${ECHO_T}$ac_res" >&6; }
17647 if test `eval echo '${'$as_ac_var'}'` = yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 case " $LIBOBJS " in
17654 *" $ac_func.$ac_objext "* ) ;;
17655 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17664 case " $LIBOBJS " in
17665 *" getaddrinfo.$ac_objext "* ) ;;
17666 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17672 # Similarly, use system's getopt_long() only if system provides struct option.
17673 # Solaris' getopt() doesn't do what we want for long options, so always use
17674 # our versions on that platform.
17675 if test "$PORTNAME" = "solaris"; then
17676 case " $LIBOBJS " in
17677 *" getopt.$ac_objext "* ) ;;
17678 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17682 case " $LIBOBJS " in
17683 *" getopt_long.$ac_objext "* ) ;;
17684 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17688 elif test x"$ac_cv_type_struct_option" = xyes ; then
17690 for ac_func in getopt_long
17692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706 #define $ac_func innocuous_$ac_func
17708 /* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17714 # include <limits.h>
17716 # include <assert.h>
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17738 return $ac_func ();
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest$ac_exeext &&
17760 $as_test_x conftest$ac_exeext; then
17761 eval "$as_ac_var=yes"
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 eval "$as_ac_var=no"
17769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17770 conftest$ac_exeext conftest.$ac_ext
17772 ac_res=`eval echo '${'$as_ac_var'}'`
17773 { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17781 case " $LIBOBJS " in
17782 *" $ac_func.$ac_objext "* ) ;;
17783 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17792 case " $LIBOBJS " in
17793 *" getopt_long.$ac_objext "* ) ;;
17794 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17801 if test "$PORTNAME" = "win32"; then
17803 for ac_func in gettimeofday
17805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define $ac_func innocuous_$ac_func
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17827 # include <limits.h>
17829 # include <assert.h>
17834 /* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined __stub_$ac_func || defined __stub___$ac_func
17851 return $ac_func ();
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest$ac_exeext &&
17873 $as_test_x conftest$ac_exeext; then
17874 eval "$as_ac_var=yes"
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 eval "$as_ac_var=no"
17882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883 conftest$ac_exeext conftest.$ac_ext
17885 ac_res=`eval echo '${'$as_ac_var'}'`
17886 { echo "$as_me:$LINENO: result: $ac_res" >&5
17887 echo "${ECHO_T}$ac_res" >&6; }
17888 if test `eval echo '${'$as_ac_var'}'` = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17894 case " $LIBOBJS " in
17895 *" $ac_func.$ac_objext "* ) ;;
17896 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17904 case " $LIBOBJS " in
17905 *" kill.$ac_objext "* ) ;;
17906 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17910 case " $LIBOBJS " in
17911 *" open.$ac_objext "* ) ;;
17912 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17916 case " $LIBOBJS " in
17917 *" rand.$ac_objext "* ) ;;
17918 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17922 case " $LIBOBJS " in
17923 *" win32error.$ac_objext "* ) ;;
17924 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_SYMLINK 1
17935 if test "$with_readline" = yes; then
17936 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17937 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 #ifdef HAVE_READLINE_READLINE_H
17946 # include <readline/readline.h>
17947 #elif defined(HAVE_READLINE_H)
17948 # include <readline.h>
17954 rl_completion_append_character = 'x';
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17968 grep -v '^ *+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 { echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6; }
17980 cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17993 conftest$ac_exeext conftest.$ac_ext
17996 for ac_func in rl_completion_matches rl_filename_completion_function
17998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012 #define $ac_func innocuous_$ac_func
18014 /* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18020 # include <limits.h>
18022 # include <assert.h>
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18034 /* The GNU C library defines this for functions which it implements
18035 to always fail with ENOSYS. Some functions are actually named
18036 something starting with __ and the normal name is an alias. */
18037 #if defined __stub_$ac_func || defined __stub___$ac_func
18044 return $ac_func ();
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest$ac_exeext &&
18066 $as_test_x conftest$ac_exeext; then
18067 eval "$as_ac_var=yes"
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 eval "$as_ac_var=no"
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076 conftest$ac_exeext conftest.$ac_ext
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18090 for ac_func in replace_history_entry
18092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18106 #define $ac_func innocuous_$ac_func
18108 /* System header to define __stub macros and hopefully few prototypes,
18109 which can conflict with char $ac_func (); below.
18110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18111 <limits.h> exists even on freestanding compilers. */
18114 # include <limits.h>
18116 # include <assert.h>
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18128 /* The GNU C library defines this for functions which it implements
18129 to always fail with ENOSYS. Some functions are actually named
18130 something starting with __ and the normal name is an alias. */
18131 #if defined __stub_$ac_func || defined __stub___$ac_func
18138 return $ac_func ();
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (ac_try="$ac_link"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_link") 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest$ac_exeext &&
18160 $as_test_x conftest$ac_exeext; then
18161 eval "$as_ac_var=yes"
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 eval "$as_ac_var=no"
18169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18170 conftest$ac_exeext conftest.$ac_ext
18172 ac_res=`eval echo '${'$as_ac_var'}'`
18173 { echo "$as_me:$LINENO: result: $ac_res" >&5
18174 echo "${ECHO_T}$ac_res" >&6; }
18175 if test `eval echo '${'$as_ac_var'}'` = yes; then
18176 cat >>confdefs.h <<_ACEOF
18177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18186 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18187 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 #include <setjmp.h>
18198 sigjmp_buf x; sigsetjmp(x, 1);
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18212 grep -v '^ *+' conftest.er1 >conftest.err
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest$ac_exeext &&
18220 $as_test_x conftest$ac_exeext; then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_SIGSETJMP 1
18226 { echo "$as_me:$LINENO: result: yes" >&5
18227 echo "${ECHO_T}yes" >&6; }
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 { echo "$as_me:$LINENO: result: no" >&5
18233 echo "${ECHO_T}no" >&6; }
18236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18237 conftest$ac_exeext conftest.$ac_ext
18239 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18240 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18241 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 #include <signal.h>
18251 /* NetBSD declares sys_siglist in unistd.h. */
18252 #ifdef HAVE_UNISTD_H
18253 # include <unistd.h>
18260 #ifndef sys_siglist
18261 (void) sys_siglist;
18268 rm -f conftest.$ac_objext
18269 if { (ac_try="$ac_compile"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_compile") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest.$ac_objext; then
18285 ac_cv_have_decl_sys_siglist=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_cv_have_decl_sys_siglist=no
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18296 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18297 if test $ac_cv_have_decl_sys_siglist = yes; then
18299 cat >>confdefs.h <<_ACEOF
18300 #define HAVE_DECL_SYS_SIGLIST 1
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_DECL_SYS_SIGLIST 0
18315 { echo "$as_me:$LINENO: checking for syslog" >&5
18316 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18317 if test "${ac_cv_func_syslog+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18328 #define syslog innocuous_syslog
18330 /* System header to define __stub macros and hopefully few prototypes,
18331 which can conflict with char syslog (); below.
18332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18333 <limits.h> exists even on freestanding compilers. */
18336 # include <limits.h>
18338 # include <assert.h>
18343 /* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18350 /* The GNU C library defines this for functions which it implements
18351 to always fail with ENOSYS. Some functions are actually named
18352 something starting with __ and the normal name is an alias. */
18353 #if defined __stub_syslog || defined __stub___syslog
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (ac_try="$ac_link"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_link") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest$ac_exeext &&
18382 $as_test_x conftest$ac_exeext; then
18383 ac_cv_func_syslog=yes
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ac_cv_func_syslog=no
18391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18392 conftest$ac_exeext conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18395 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18396 if test $ac_cv_func_syslog = yes; then
18397 if test "${ac_cv_header_syslog_h+set}" = set; then
18398 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18399 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18400 if test "${ac_cv_header_syslog_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18404 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18406 # Is the header compilable?
18407 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18408 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 $ac_includes_default
18416 #include <syslog.h>
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_compile") 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest.$ac_objext; then
18435 ac_header_compiler=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_header_compiler=no
18443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18445 echo "${ECHO_T}$ac_header_compiler" >&6; }
18447 # Is the header present?
18448 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18449 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 #include <syslog.h>
18458 if { (ac_try="$ac_cpp conftest.$ac_ext"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } >/dev/null && {
18471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18474 ac_header_preproc=yes
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_header_preproc=no
18482 rm -f conftest.err conftest.$ac_ext
18483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18484 echo "${ECHO_T}$ac_header_preproc" >&6; }
18486 # So? What about this header?
18487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18489 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18490 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18492 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18493 ac_header_preproc=yes
18496 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18497 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18499 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18501 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18503 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18505 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18507 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18509 ## ---------------------------------------- ##
18510 ## Report this to pgsql-bugs@postgresql.org ##
18511 ## ---------------------------------------- ##
18513 ) | sed "s/^/$as_me: WARNING: /" >&2
18516 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18517 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18518 if test "${ac_cv_header_syslog_h+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_cv_header_syslog_h=$ac_header_preproc
18523 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18524 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18527 if test $ac_cv_header_syslog_h = yes; then
18529 cat >>confdefs.h <<\_ACEOF
18530 #define HAVE_SYSLOG 1
18539 { echo "$as_me:$LINENO: checking for optreset" >&5
18540 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18541 if test "${pgac_cv_var_int_optreset+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 #include <unistd.h>
18554 extern int optreset; optreset = 1;
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_link") 2>conftest.er1
18568 grep -v '^ *+' conftest.er1 >conftest.err
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } && {
18573 test -z "$ac_c_werror_flag" ||
18574 test ! -s conftest.err
18575 } && test -s conftest$ac_exeext &&
18576 $as_test_x conftest$ac_exeext; then
18577 pgac_cv_var_int_optreset=yes
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 pgac_cv_var_int_optreset=no
18585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18586 conftest$ac_exeext conftest.$ac_ext
18588 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18589 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18590 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18592 cat >>confdefs.h <<\_ACEOF
18593 #define HAVE_INT_OPTRESET 1
18600 for ac_func in strtoll strtoq
18602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18616 #define $ac_func innocuous_$ac_func
18618 /* System header to define __stub macros and hopefully few prototypes,
18619 which can conflict with char $ac_func (); below.
18620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18621 <limits.h> exists even on freestanding compilers. */
18624 # include <limits.h>
18626 # include <assert.h>
18631 /* Override any GCC internal prototype to avoid an error.
18632 Use char because int might match the return type of a GCC
18633 builtin and then its argument prototype would still apply. */
18638 /* The GNU C library defines this for functions which it implements
18639 to always fail with ENOSYS. Some functions are actually named
18640 something starting with __ and the normal name is an alias. */
18641 #if defined __stub_$ac_func || defined __stub___$ac_func
18648 return $ac_func ();
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>conftest.er1
18662 grep -v '^ *+' conftest.er1 >conftest.err
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && {
18667 test -z "$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 } && test -s conftest$ac_exeext &&
18670 $as_test_x conftest$ac_exeext; then
18671 eval "$as_ac_var=yes"
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 eval "$as_ac_var=no"
18679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18680 conftest$ac_exeext conftest.$ac_ext
18682 ac_res=`eval echo '${'$as_ac_var'}'`
18683 { echo "$as_me:$LINENO: result: $ac_res" >&5
18684 echo "${ECHO_T}$ac_res" >&6; }
18685 if test `eval echo '${'$as_ac_var'}'` = yes; then
18686 cat >>confdefs.h <<_ACEOF
18687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18695 for ac_func in strtoull strtouq
18697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18711 #define $ac_func innocuous_$ac_func
18713 /* System header to define __stub macros and hopefully few prototypes,
18714 which can conflict with char $ac_func (); below.
18715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18716 <limits.h> exists even on freestanding compilers. */
18719 # include <limits.h>
18721 # include <assert.h>
18726 /* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18733 /* The GNU C library defines this for functions which it implements
18734 to always fail with ENOSYS. Some functions are actually named
18735 something starting with __ and the normal name is an alias. */
18736 #if defined __stub_$ac_func || defined __stub___$ac_func
18743 return $ac_func ();
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (ac_try="$ac_link"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_link") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest$ac_exeext &&
18765 $as_test_x conftest$ac_exeext; then
18766 eval "$as_ac_var=yes"
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 eval "$as_ac_var=no"
18774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18775 conftest$ac_exeext conftest.$ac_ext
18777 ac_res=`eval echo '${'$as_ac_var'}'`
18778 { echo "$as_me:$LINENO: result: $ac_res" >&5
18779 echo "${ECHO_T}$ac_res" >&6; }
18780 if test `eval echo '${'$as_ac_var'}'` = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18789 # Check for one of atexit() or on_exit()
18791 for ac_func in atexit
18793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18807 #define $ac_func innocuous_$ac_func
18809 /* System header to define __stub macros and hopefully few prototypes,
18810 which can conflict with char $ac_func (); below.
18811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 <limits.h> exists even on freestanding compilers. */
18815 # include <limits.h>
18817 # include <assert.h>
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18829 /* The GNU C library defines this for functions which it implements
18830 to always fail with ENOSYS. Some functions are actually named
18831 something starting with __ and the normal name is an alias. */
18832 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 return $ac_func ();
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext &&
18861 $as_test_x conftest$ac_exeext; then
18862 eval "$as_ac_var=yes"
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 eval "$as_ac_var=no"
18870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18871 conftest$ac_exeext conftest.$ac_ext
18873 ac_res=`eval echo '${'$as_ac_var'}'`
18874 { echo "$as_me:$LINENO: result: $ac_res" >&5
18875 echo "${ECHO_T}$ac_res" >&6; }
18876 if test `eval echo '${'$as_ac_var'}'` = yes; then
18877 cat >>confdefs.h <<_ACEOF
18878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18883 for ac_func in on_exit
18885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18899 #define $ac_func innocuous_$ac_func
18901 /* System header to define __stub macros and hopefully few prototypes,
18902 which can conflict with char $ac_func (); below.
18903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18904 <limits.h> exists even on freestanding compilers. */
18907 # include <limits.h>
18909 # include <assert.h>
18914 /* Override any GCC internal prototype to avoid an error.
18915 Use char because int might match the return type of a GCC
18916 builtin and then its argument prototype would still apply. */
18921 /* The GNU C library defines this for functions which it implements
18922 to always fail with ENOSYS. Some functions are actually named
18923 something starting with __ and the normal name is an alias. */
18924 #if defined __stub_$ac_func || defined __stub___$ac_func
18931 return $ac_func ();
18936 rm -f conftest.$ac_objext conftest$ac_exeext
18937 if { (ac_try="$ac_link"
18938 case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_link") 2>conftest.er1
18945 grep -v '^ *+' conftest.er1 >conftest.err
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } && {
18950 test -z "$ac_c_werror_flag" ||
18951 test ! -s conftest.err
18952 } && test -s conftest$ac_exeext &&
18953 $as_test_x conftest$ac_exeext; then
18954 eval "$as_ac_var=yes"
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18965 ac_res=`eval echo '${'$as_ac_var'}'`
18966 { echo "$as_me:$LINENO: result: $ac_res" >&5
18967 echo "${ECHO_T}$ac_res" >&6; }
18968 if test `eval echo '${'$as_ac_var'}'` = yes; then
18969 cat >>confdefs.h <<_ACEOF
18970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18974 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18975 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18976 { (exit 1); exit 1; }; }
18985 for ac_func in fseeko
18987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 cat >conftest.$ac_ext <<_ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19001 #define $ac_func innocuous_$ac_func
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char $ac_func (); below.
19005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006 <limits.h> exists even on freestanding compilers. */
19009 # include <limits.h>
19011 # include <assert.h>
19016 /* Override any GCC internal prototype to avoid an error.
19017 Use char because int might match the return type of a GCC
19018 builtin and then its argument prototype would still apply. */
19023 /* The GNU C library defines this for functions which it implements
19024 to always fail with ENOSYS. Some functions are actually named
19025 something starting with __ and the normal name is an alias. */
19026 #if defined __stub_$ac_func || defined __stub___$ac_func
19033 return $ac_func ();
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } && {
19052 test -z "$ac_c_werror_flag" ||
19053 test ! -s conftest.err
19054 } && test -s conftest$ac_exeext &&
19055 $as_test_x conftest$ac_exeext; then
19056 eval "$as_ac_var=yes"
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 eval "$as_ac_var=no"
19064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065 conftest$ac_exeext conftest.$ac_ext
19067 ac_res=`eval echo '${'$as_ac_var'}'`
19068 { echo "$as_me:$LINENO: result: $ac_res" >&5
19069 echo "${ECHO_T}$ac_res" >&6; }
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071 cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19076 case " $LIBOBJS " in
19077 *" $ac_func.$ac_objext "* ) ;;
19078 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19087 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19088 # Mingw uses macros to access Win32 API calls
19089 bsdi*|netbsd*|mingw*)
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_FSEEKO 1
19095 ac_cv_func_fseeko=yes;;
19097 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19098 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19099 if test "${ac_cv_sys_largefile_source+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <sys/types.h> /* for off_t */
19114 int (*fp) (FILE *, off_t, int) = fseeko;
19115 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext &&
19137 $as_test_x conftest$ac_exeext; then
19138 ac_cv_sys_largefile_source=no; break
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19147 conftest$ac_exeext conftest.$ac_ext
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #define _LARGEFILE_SOURCE 1
19155 #include <sys/types.h> /* for off_t */
19160 int (*fp) (FILE *, off_t, int) = fseeko;
19161 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (ac_try="$ac_link"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_link") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext &&
19183 $as_test_x conftest$ac_exeext; then
19184 ac_cv_sys_largefile_source=1; break
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19193 conftest$ac_exeext conftest.$ac_ext
19194 ac_cv_sys_largefile_source=unknown
19198 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19199 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19200 case $ac_cv_sys_largefile_source in #(
19203 cat >>confdefs.h <<_ACEOF
19204 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19210 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19211 # in glibc 2.1.3, but that breaks too many other things.
19212 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19213 if test $ac_cv_sys_largefile_source != unknown; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_FSEEKO 1
19227 # For each platform, we need to know about any special compile and link
19228 # libraries, and whether the normal C function names are thread-safe.
19229 # See the comment at the top of src/port/thread.c for more information.
19230 # WIN32 doesn't need the pthread tests; it always uses threads
19231 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19236 ac_cpp='$CPP $CPPFLAGS'
19237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19243 # We used to check for pthread.h first, but this fails if pthread.h
19244 # requires special compiler flags (e.g. on True64 or Sequent).
19245 # It gets checked for in the link test anyway.
19247 # First of all, check if the user has set any of the PTHREAD_LIBS,
19248 # etcetera environment variables, and if threads linking works using
19250 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19251 save_CFLAGS="$CFLAGS"
19252 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19254 LIBS="$PTHREAD_LIBS $LIBS"
19255 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19256 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19264 /* Override any GCC internal prototype to avoid an error.
19265 Use char because int might match the return type of a GCC
19266 builtin and then its argument prototype would still apply. */
19270 char pthread_join ();
19274 return pthread_join ();
19279 rm -f conftest.$ac_objext conftest$ac_exeext
19280 if { (ac_try="$ac_link"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_link") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && {
19293 test -z "$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 } && test -s conftest$ac_exeext &&
19296 $as_test_x conftest$ac_exeext; then
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19306 conftest$ac_exeext conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19308 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19309 if test x"$acx_pthread_ok" = xno; then
19314 CFLAGS="$save_CFLAGS"
19317 # We must check for the threads library under a number of different
19318 # names; the ordering is very important because some systems
19319 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19320 # libraries is broken (non-POSIX).
19322 # Create a list of thread flags to try. Items starting with a "-" are
19323 # C compiler flags, and other items are library names, except for "none"
19324 # which indicates that we try without any flags at all, and "pthread-config"
19325 # which is a program returning the flags for the Pth emulation library.
19327 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19329 # The ordering *is* (sometimes) important. Some notes on the
19330 # individual items follow:
19332 # pthreads: AIX (must check this before -lpthread)
19333 # none: in case threads are in libc; should be tried before -Kthread and
19334 # other compiler flags to prevent continual compiler warnings
19335 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19336 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19337 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19338 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19339 # -pthreads: Solaris/gcc
19340 # -mthreads: Mingw32/gcc, Lynx/gcc
19341 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19342 # doesn't hurt to check since this sometimes defines pthreads too;
19343 # also defines -D_REENTRANT)
19344 # pthread: Linux, etcetera
19345 # --thread-safe: KAI C++
19346 # pthread-config: use pthread-config program (for GNU Pth library)
19348 case "${host_cpu}-${host_os}" in
19351 # On Solaris (at least, for some versions), libc contains stubbed
19352 # (non-functional) versions of the pthreads routines, so link-based
19353 # tests will erroneously succeed. (We need to link with -pthread or
19354 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19355 # a function called by this macro, so we could check for that, but
19356 # who knows whether they'll stub that too in a future libc.) So,
19357 # we'll just look for -pthreads and -lpthread first:
19359 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19363 if test x"$acx_pthread_ok" = xno; then
19364 for flag in $acx_pthread_flags; do
19366 tryPTHREAD_CFLAGS=""
19370 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19371 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19375 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19376 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19377 tryPTHREAD_CFLAGS="$flag"
19381 # skip this if we already have flags defined, for PostgreSQL
19382 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19383 # Extract the first word of "pthread-config", so it can be a program name with args.
19384 set dummy pthread-config; ac_word=$2
19385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19387 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 if test -n "$acx_pthread_config"; then
19391 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in $PATH
19397 test -z "$as_dir" && as_dir=.
19398 for ac_exec_ext in '' $ac_executable_extensions; do
19399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19400 ac_cv_prog_acx_pthread_config="yes"
19401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19408 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19411 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19412 if test -n "$acx_pthread_config"; then
19413 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19414 echo "${ECHO_T}$acx_pthread_config" >&6; }
19416 { echo "$as_me:$LINENO: result: no" >&5
19417 echo "${ECHO_T}no" >&6; }
19421 if test x"$acx_pthread_config" = xno; then continue; fi
19422 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19423 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19427 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19428 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19429 tryPTHREAD_LIBS="-l$flag"
19434 save_CFLAGS="$CFLAGS"
19435 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19436 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19438 # Check for various functions. We must include pthread.h,
19439 # since some functions may be macros. (On the Sequent, we
19440 # need a special flag -Kthread to make this header compile.)
19441 # We check for pthread_join because it is in -lpthread on IRIX
19442 # while pthread_create is in libc. We check for pthread_attr_init
19443 # due to DEC craziness with -lpthreads. We check for
19444 # pthread_cleanup_push because it is one of the few pthread
19445 # functions on Solaris that doesn't have a non-functional libc stub.
19446 # We try pthread_create on general principles.
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453 #include <pthread.h>
19457 pthread_t th; pthread_join(th, 0);
19458 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19459 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest$ac_exeext &&
19481 $as_test_x conftest$ac_exeext; then
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
19493 if test "x$acx_pthread_ok" = xyes; then
19494 # Don't use options that are ignored by the compiler.
19495 # We find them by checking stderror.
19496 cat >conftest.$ac_ext <<_ACEOF
19498 main (int argc, char **argv)
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19507 # we continue with more flags because Linux needs -lpthread
19508 # for libpq builds on PostgreSQL. The test above only
19509 # tests for building binaries, not shared libraries.
19510 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19511 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19512 else acx_pthread_ok=no
19517 CFLAGS="$save_CFLAGS"
19519 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19520 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19524 # Various other checks:
19525 if test "x$acx_pthread_ok" = xyes; then
19527 LIBS="$PTHREAD_LIBS $LIBS"
19528 save_CFLAGS="$CFLAGS"
19529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19531 # Detect AIX lossage: threads are created detached by default
19532 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19533 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19534 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #include <pthread.h>
19545 int attr=PTHREAD_CREATE_JOINABLE;
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 ok=PTHREAD_CREATE_JOINABLE
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19578 if test x"$ok" = xunknown; then
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <pthread.h>
19589 int attr=PTHREAD_CREATE_UNDETACHED;
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_link") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest$ac_exeext &&
19611 $as_test_x conftest$ac_exeext; then
19612 ok=PTHREAD_CREATE_UNDETACHED
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19621 conftest$ac_exeext conftest.$ac_ext
19623 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define PTHREAD_CREATE_JOINABLE $ok
19630 { echo "$as_me:$LINENO: result: ${ok}" >&5
19631 echo "${ECHO_T}${ok}" >&6; }
19632 if test x"$ok" = xunknown; then
19633 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19634 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19637 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19638 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19640 # We always add these in PostgreSQL
19641 # case "${host_cpu}-${host_os}" in
19642 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19643 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19645 { echo "$as_me:$LINENO: result: ${flag}" >&5
19646 echo "${ECHO_T}${flag}" >&6; }
19647 if test "x$flag" != xno; then
19648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19652 CFLAGS="$save_CFLAGS"
19654 # Supporting cc_r would require a special CC in all places that
19655 # use libpq, and that is ugly, so we don't do it. Users can still
19656 # define their compiler as cc_r to do thread builds of everything.
19657 # More AIX lossage: must compile with cc_r
19658 # Extract the first word of "cc_r", so it can be a program name with args.
19659 set dummy cc_r; ac_word=$2
19660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19662 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 if test -n "$PTHREAD_CC"; then
19666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_prog_PTHREAD_CC="cc_r"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19683 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19686 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19687 if test -n "$PTHREAD_CC"; then
19688 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19689 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19691 { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19704 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19705 if test x"$acx_pthread_ok" = xyes; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_PTHREAD 1
19717 ac_cpp='$CPP $CPPFLAGS'
19718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19724 # Some platforms use these, so just define them. They can't hurt if they
19725 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19726 # enables 5-arg getpwuid_r, among other things.
19727 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19730 # At this point, we don't want to muck with the compiler name for threading.
19731 # Let's see who fails, perhaps AIX. 2004-04-23
19732 if test "$PTHREAD_CC" != "$CC"; then
19733 { { echo "$as_me:$LINENO: error:
19734 PostgreSQL does not support platforms that require a special compiler
19735 for thread safety." >&5
19736 echo "$as_me: error:
19737 PostgreSQL does not support platforms that require a special compiler
19738 for thread safety." >&2;}
19739 { (exit 1); exit 1; }; }
19742 if test "$THREAD_SUPPORT" = no; then
19743 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19744 This platform is known to not support thread-safe programs. For details,
19745 compile and run src/bin/pg_thread_test." >&5
19746 echo "$as_me: error: cannot enable threads on this platform
19747 This platform is known to not support thread-safe programs. For details,
19748 compile and run src/bin/pg_thread_test." >&2;}
19749 { (exit 1); exit 1; }; }
19752 # Check for *_r functions
19755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19756 LIBS="$LIBS $PTHREAD_LIBS"
19758 if test "$PORTNAME" != "win32"; then
19759 if test "${ac_cv_header_pthread_h+set}" = set; then
19760 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19761 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19762 if test "${ac_cv_header_pthread_h+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19768 # Is the header compilable?
19769 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19770 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19778 #include <pthread.h>
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_header_compiler=yes
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_header_compiler=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19807 echo "${ECHO_T}$ac_header_compiler" >&6; }
19809 # Is the header present?
19810 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19811 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <pthread.h>
19820 if { (ac_try="$ac_cpp conftest.$ac_ext"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } >/dev/null && {
19833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19836 ac_header_preproc=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_header_preproc=no
19844 rm -f conftest.err conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19846 echo "${ECHO_T}$ac_header_preproc" >&6; }
19848 # So? What about this header?
19849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19851 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19852 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19854 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19855 ac_header_preproc=yes
19858 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19859 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19861 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19863 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19865 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19867 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19869 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19871 ## ---------------------------------------- ##
19872 ## Report this to pgsql-bugs@postgresql.org ##
19873 ## ---------------------------------------- ##
19875 ) | sed "s/^/$as_me: WARNING: /" >&2
19878 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19879 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19880 if test "${ac_cv_header_pthread_h+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 ac_cv_header_pthread_h=$ac_header_preproc
19885 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19889 if test $ac_cv_header_pthread_h = yes; then
19892 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19893 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19894 { (exit 1); exit 1; }; }
19903 for ac_func in strerror_r getpwuid_r gethostbyname_r
19905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define $ac_func innocuous_$ac_func
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char $ac_func (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19927 # include <limits.h>
19929 # include <assert.h>
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19941 /* The GNU C library defines this for functions which it implements
19942 to always fail with ENOSYS. Some functions are actually named
19943 something starting with __ and the normal name is an alias. */
19944 #if defined __stub_$ac_func || defined __stub___$ac_func
19951 return $ac_func ();
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 eval "$as_ac_var=yes"
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 eval "$as_ac_var=no"
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19985 ac_res=`eval echo '${'$as_ac_var'}'`
19986 { echo "$as_me:$LINENO: result: $ac_res" >&5
19987 echo "${ECHO_T}$ac_res" >&6; }
19988 if test `eval echo '${'$as_ac_var'}'` = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19997 # Do test here with the proper thread flags
19998 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19999 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20000 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <sys/types.h>
20015 struct passwd *space;
20018 struct passwd **result;
20019 getpwuid_r(uid, space, buf, bufsize, result);
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest.$ac_objext; then
20041 pgac_cv_func_getpwuid_r_5arg=yes
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 pgac_cv_func_getpwuid_r_5arg=no
20049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20052 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20053 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20055 cat >>confdefs.h <<\_ACEOF
20056 #define GETPWUID_R_5ARG
20061 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20062 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20063 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <string.h>
20077 int strerror_r(int, char *, size_t);
20079 /* Older AIX has 'int' for the third argument so we don't test the args. */
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 pgac_cv_func_strerror_r_int=yes
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 pgac_cv_func_strerror_r_int=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20114 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20115 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20117 cat >>confdefs.h <<\_ACEOF
20118 #define STRERROR_R_INT
20128 # do not use values from template file
20137 # We can test for libldap_r only after we know PTHREAD_LIBS
20138 if test "$with_ldap" = yes ; then
20140 if test "$PORTNAME" != "win32"; then
20142 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20143 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20166 return ldap_bind ();
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext &&
20188 $as_test_x conftest$ac_exeext; then
20189 ac_cv_lib_ldap_ldap_bind=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_ldap_ldap_bind=no
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20202 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20203 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_LIBLDAP 1
20208 LIBS="-lldap $LIBS"
20211 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20212 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20213 { (exit 1); exit 1; }; }
20216 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20217 if test "$enable_thread_safety" = yes; then
20218 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20220 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20221 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20222 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 ac_check_lib_save_LIBS=$LIBS
20226 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20240 char ldap_simple_bind ();
20244 return ldap_simple_bind ();
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_cv_lib_ldap_r_ldap_simple_bind=no
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20277 LIBS=$ac_check_lib_save_LIBS
20279 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20280 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20281 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_LIBLDAP_R 1
20286 LIBS="-lldap_r $LIBS"
20289 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20290 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20291 { (exit 1); exit 1; }; }
20294 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20296 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20300 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20301 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lwldap32 $LIBS"
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20324 return ldap_bind ();
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 ac_cv_lib_wldap32_ldap_bind=yes
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_lib_wldap32_ldap_bind=no
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20360 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20361 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define HAVE_LIBWLDAP32 1
20366 LIBS="-lwldap32 $LIBS"
20369 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20370 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20371 { (exit 1); exit 1; }; }
20374 LDAP_LIBS_FE="-lwldap32"
20375 LDAP_LIBS_BE="-lwldap32"
20383 # This test makes sure that run tests work at all. Sometimes a shared
20384 # library is found by the linker, but the runtime linker can't find it.
20385 # This check should come after all modifications of compiler or linker
20386 # variables, and before any other run tests.
20387 { echo "$as_me:$LINENO: checking test program" >&5
20388 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20389 if test "$cross_compiling" = yes; then
20390 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20391 echo "${ECHO_T}cross-compiling" >&6; }
20393 cat >conftest.$ac_ext <<_ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 int main() { return 0; }
20401 rm -f conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20412 { (case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_try") 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 { echo "$as_me:$LINENO: result: ok" >&5
20422 echo "${ECHO_T}ok" >&6; }
20424 echo "$as_me: program exited with status $ac_status" >&5
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ( exit $ac_status )
20429 { echo "$as_me:$LINENO: result: failed" >&5
20430 echo "${ECHO_T}failed" >&6; }
20431 { { echo "$as_me:$LINENO: error:
20432 Could not execute a simple test program. This may be a problem
20433 related to locating shared libraries. Check the file 'config.log'
20434 for the exact reason." >&5
20435 echo "$as_me: error:
20436 Could not execute a simple test program. This may be a problem
20437 related to locating shared libraries. Check the file 'config.log'
20438 for the exact reason." >&2;}
20439 { (exit 1); exit 1; }; }
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20446 # --------------------
20447 # Run tests below here
20448 # --------------------
20450 # Force use of our snprintf if system's doesn't do arg control
20451 # See comment above at snprintf test for details.
20452 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20453 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20454 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20455 if test "${pgac_cv_printf_arg_control+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 if test "$cross_compiling" = yes; then
20459 pgac_cv_printf_arg_control=cross
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 #include <string.h>
20474 /* can it swap arguments? */
20475 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20476 if (strcmp(buf, "4 3") != 0)
20481 rm -f conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_link") 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 pgac_cv_printf_arg_control=yes
20503 echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ( exit $ac_status )
20508 pgac_cv_printf_arg_control=no
20510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20516 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20517 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20519 if test $pgac_cv_printf_arg_control != yes ; then
20520 pgac_need_repl_snprintf=yes
20526 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20528 if test "${pgac_cv_type_long_int_64+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 if test "$cross_compiling" = yes; then
20532 # If cross-compiling, check the size reported by the compiler and
20533 # trust that the arithmetic works.
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20544 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20551 rm -f conftest.$ac_objext
20552 if { (ac_try="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_compile") 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest.$ac_objext; then
20568 pgac_cv_type_long_int_64=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 pgac_cv_type_long_int_64=no
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 typedef long int ac_int64;
20587 * These are globals to discourage the compiler from folding all the
20588 * arithmetic tests down to compile-time constants.
20590 ac_int64 a = 20000001;
20591 ac_int64 b = 40000005;
20593 int does_int64_work()
20597 if (sizeof(ac_int64) != 8)
20598 return 0; /* definitely not the right size */
20600 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20608 exit(! does_int64_work());
20611 rm -f conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20622 { (case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_try") 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 pgac_cv_type_long_int_64=yes
20633 echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ( exit $ac_status )
20638 pgac_cv_type_long_int_64=no
20640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20646 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20648 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20649 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE_LONG_INT_64 1
20658 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20659 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20660 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20661 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 if test "$cross_compiling" = yes; then
20665 # If cross-compiling, check the size reported by the compiler and
20666 # trust that the arithmetic works.
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20677 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20684 rm -f conftest.$ac_objext
20685 if { (ac_try="$ac_compile"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_compile") 2>conftest.er1
20693 grep -v '^ *+' conftest.er1 >conftest.err
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest.$ac_objext; then
20701 pgac_cv_type_long_long_int_64=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 pgac_cv_type_long_long_int_64=no
20709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 typedef long long int ac_int64;
20720 * These are globals to discourage the compiler from folding all the
20721 * arithmetic tests down to compile-time constants.
20723 ac_int64 a = 20000001;
20724 ac_int64 b = 40000005;
20726 int does_int64_work()
20730 if (sizeof(ac_int64) != 8)
20731 return 0; /* definitely not the right size */
20733 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20741 exit(! does_int64_work());
20744 rm -f conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_link") 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 pgac_cv_type_long_long_int_64=yes
20766 echo "$as_me: program exited with status $ac_status" >&5
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ( exit $ac_status )
20771 pgac_cv_type_long_long_int_64=no
20773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20779 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20781 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20782 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_LONG_LONG_INT_64 1
20794 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20802 #define INT64CONST(x) x##LL
20803 long long int foo = INT64CONST(0x1234567890123456);
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20822 grep -v '^ *+' conftest.er1 >conftest.err
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_LL_CONSTANTS 1
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 # If we found "long int" is 64 bits, assume snprintf handles it. If
20847 # we found we need to use "long long int", better check. We cope with
20848 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20849 # work, fall back to our own snprintf emulation (which we know uses %lld).
20851 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20852 if test $pgac_need_repl_snprintf = no; then
20853 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20854 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20855 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 for pgac_format in '%lld' '%qd' '%I64d'; do
20859 if test "$cross_compiling" = yes; then
20860 pgac_cv_snprintf_long_long_int_format=cross; break
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 typedef long long int ac_int64;
20870 #define INT64_FORMAT "$pgac_format"
20872 ac_int64 a = 20000001;
20873 ac_int64 b = 40000005;
20875 int does_int64_snprintf_work()
20880 if (sizeof(ac_int64) != 8)
20881 return 0; /* doesn't look like the right size */
20884 snprintf(buf, 100, INT64_FORMAT, c);
20885 if (strcmp(buf, "800000140000005") != 0)
20886 return 0; /* either multiply or snprintf is busted */
20890 exit(! does_int64_snprintf_work());
20893 rm -f conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_link") 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_try") 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20915 echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20927 LONG_LONG_INT_FORMAT=''
20929 case $pgac_cv_snprintf_long_long_int_format in
20930 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20931 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20932 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20933 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20934 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20935 *) { echo "$as_me:$LINENO: result: none" >&5
20936 echo "${ECHO_T}none" >&6; };;
20938 if test "$LONG_LONG_INT_FORMAT" = ""; then
20939 # Force usage of our own snprintf, since system snprintf is broken
20940 pgac_need_repl_snprintf=yes
20941 LONG_LONG_INT_FORMAT='%lld'
20944 # Here if we previously decided we needed to use our own snprintf
20945 LONG_LONG_INT_FORMAT='%lld'
20947 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20948 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20949 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20951 # Here if we are not using 'long long int' at all
20952 INT64_FORMAT='"%ld"'
20953 UINT64_FORMAT='"%lu"'
20957 cat >>confdefs.h <<_ACEOF
20958 #define INT64_FORMAT $INT64_FORMAT
20963 cat >>confdefs.h <<_ACEOF
20964 #define UINT64_FORMAT $UINT64_FORMAT
20968 # Now we have checked all the reasons to replace snprintf
20969 if test $pgac_need_repl_snprintf = yes; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define USE_REPL_SNPRINTF 1
20975 case " $LIBOBJS " in
20976 *" snprintf.$ac_objext "* ) ;;
20977 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20983 # Need a #define for the size of Datum (unsigned long)
20984 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20985 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20986 if test "${ac_cv_type_unsigned_long+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 typedef unsigned long ac__type_new_;
21000 if ((ac__type_new_ *) 0)
21002 if (sizeof (ac__type_new_))
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_cv_type_unsigned_long=yes
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_cv_type_unsigned_long=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21036 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21038 # The cast to long int works around a bug in the HP C Compiler
21039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21041 # This bug is HP SR number 8606223364.
21042 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21043 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21044 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 if test "$cross_compiling" = yes; then
21048 # Depending upon the size, compute the lo and hi bounds.
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 typedef unsigned long ac__type_sizeof_;
21060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 typedef unsigned long ac__type_sizeof_;
21097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 ac_hi=$ac_mid; break
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_lo=`expr $ac_mid + 1`
21127 if test $ac_lo -le $ac_mid; then
21131 ac_mid=`expr 2 '*' $ac_mid + 1`
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 typedef unsigned long ac__type_sizeof_;
21151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_compile") 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest.$ac_objext; then
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 $ac_includes_default
21184 typedef unsigned long ac__type_sizeof_;
21188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_lo=$ac_mid; break
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_hi=`expr '(' $ac_mid ')' - 1`
21218 if test $ac_mid -le $ac_hi; then
21222 ac_mid=`expr 2 '*' $ac_mid`
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 # Binary search between lo and hi bounds.
21239 while test "x$ac_lo" != "x$ac_hi"; do
21240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 $ac_includes_default
21248 typedef unsigned long ac__type_sizeof_;
21252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1 >conftest.err
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_lo=`expr '(' $ac_mid ')' + 1`
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21288 '') if test "$ac_cv_type_unsigned_long" = yes; then
21289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21290 See \`config.log' for more details." >&5
21291 echo "$as_me: error: cannot compute sizeof (unsigned long)
21292 See \`config.log' for more details." >&2;}
21293 { (exit 77); exit 77; }; }
21295 ac_cv_sizeof_unsigned_long=0
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 typedef unsigned long ac__type_sizeof_;
21307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21310 #include <stdlib.h>
21315 FILE *f = fopen ("conftest.val", "w");
21318 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21320 long int i = longval ();
21321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21323 fprintf (f, "%ld\n", i);
21327 unsigned long int i = ulongval ();
21328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21330 fprintf (f, "%lu\n", i);
21332 return ferror (f) || fclose (f) != 0;
21338 rm -f conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_link") 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349 { (case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_try") 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21360 echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ( exit $ac_status )
21365 if test "$ac_cv_type_unsigned_long" = yes; then
21366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21367 See \`config.log' for more details." >&5
21368 echo "$as_me: error: cannot compute sizeof (unsigned long)
21369 See \`config.log' for more details." >&2;}
21370 { (exit 77); exit 77; }; }
21372 ac_cv_sizeof_unsigned_long=0
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21380 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21384 cat >>confdefs.h <<_ACEOF
21385 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21390 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21391 { echo "$as_me:$LINENO: checking for void *" >&5
21392 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21393 if test "${ac_cv_type_void_p+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 typedef void * ac__type_new_;
21407 if ((ac__type_new_ *) 0)
21409 if (sizeof (ac__type_new_))
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_cv_type_void_p=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_cv_type_void_p=no
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21443 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21445 # The cast to long int works around a bug in the HP C Compiler
21446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21448 # This bug is HP SR number 8606223364.
21449 { echo "$as_me:$LINENO: checking size of void *" >&5
21450 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21451 if test "${ac_cv_sizeof_void_p+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 if test "$cross_compiling" = yes; then
21455 # Depending upon the size, compute the lo and hi bounds.
21456 cat >conftest.$ac_ext <<_ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 $ac_includes_default
21463 typedef void * ac__type_sizeof_;
21467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 typedef void * ac__type_sizeof_;
21504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21528 ac_hi=$ac_mid; break
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 ac_lo=`expr $ac_mid + 1`
21534 if test $ac_lo -le $ac_mid; then
21538 ac_mid=`expr 2 '*' $ac_mid + 1`
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 typedef void * ac__type_sizeof_;
21558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_compile") 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest.$ac_objext; then
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 $ac_includes_default
21591 typedef void * ac__type_sizeof_;
21595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_compile") 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest.$ac_objext; then
21619 ac_lo=$ac_mid; break
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_hi=`expr '(' $ac_mid ')' - 1`
21625 if test $ac_mid -le $ac_hi; then
21629 ac_mid=`expr 2 '*' $ac_mid`
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 # Binary search between lo and hi bounds.
21646 while test "x$ac_lo" != "x$ac_hi"; do
21647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21648 cat >conftest.$ac_ext <<_ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 $ac_includes_default
21655 typedef void * ac__type_sizeof_;
21659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_compile") 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest.$ac_objext; then
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_lo=`expr '(' $ac_mid ')' + 1`
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21695 '') if test "$ac_cv_type_void_p" = yes; then
21696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21697 See \`config.log' for more details." >&5
21698 echo "$as_me: error: cannot compute sizeof (void *)
21699 See \`config.log' for more details." >&2;}
21700 { (exit 77); exit 77; }; }
21702 ac_cv_sizeof_void_p=0
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 $ac_includes_default
21713 typedef void * ac__type_sizeof_;
21714 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21715 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21717 #include <stdlib.h>
21722 FILE *f = fopen ("conftest.val", "w");
21725 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21727 long int i = longval ();
21728 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21730 fprintf (f, "%ld\n", i);
21734 unsigned long int i = ulongval ();
21735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21737 fprintf (f, "%lu\n", i);
21739 return ferror (f) || fclose (f) != 0;
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_link") 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_sizeof_void_p=`cat conftest.val`
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ( exit $ac_status )
21772 if test "$ac_cv_type_void_p" = yes; then
21773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21774 See \`config.log' for more details." >&5
21775 echo "$as_me: error: cannot compute sizeof (void *)
21776 See \`config.log' for more details." >&2;}
21777 { (exit 77); exit 77; }; }
21779 ac_cv_sizeof_void_p=0
21782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21787 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21791 cat >>confdefs.h <<_ACEOF
21792 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21796 { echo "$as_me:$LINENO: checking for size_t" >&5
21797 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21798 if test "${ac_cv_type_size_t+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 cat >conftest.$ac_ext <<_ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 $ac_includes_default
21808 typedef size_t ac__type_new_;
21812 if ((ac__type_new_ *) 0)
21814 if (sizeof (ac__type_new_))
21820 rm -f conftest.$ac_objext
21821 if { (ac_try="$ac_compile"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_compile") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest.$ac_objext; then
21837 ac_cv_type_size_t=yes
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_cv_type_size_t=no
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21848 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { echo "$as_me:$LINENO: checking size of size_t" >&5
21855 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21856 if test "${ac_cv_sizeof_size_t+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 if test "$cross_compiling" = yes; then
21860 # Depending upon the size, compute the lo and hi bounds.
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 typedef size_t ac__type_sizeof_;
21872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 typedef size_t ac__type_sizeof_;
21909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21916 rm -f conftest.$ac_objext
21917 if { (ac_try="$ac_compile"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_compile") 2>conftest.er1
21925 grep -v '^ *+' conftest.er1 >conftest.err
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } && {
21930 test -z "$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 } && test -s conftest.$ac_objext; then
21933 ac_hi=$ac_mid; break
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21938 ac_lo=`expr $ac_mid + 1`
21939 if test $ac_lo -le $ac_mid; then
21943 ac_mid=`expr 2 '*' $ac_mid + 1`
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21959 typedef size_t ac__type_sizeof_;
21963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21989 cat >conftest.$ac_ext <<_ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21996 typedef size_t ac__type_sizeof_;
22000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_lo=$ac_mid; break
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_hi=`expr '(' $ac_mid ')' - 1`
22030 if test $ac_mid -le $ac_hi; then
22034 ac_mid=`expr 2 '*' $ac_mid`
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 # Binary search between lo and hi bounds.
22051 while test "x$ac_lo" != "x$ac_hi"; do
22052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22060 typedef size_t ac__type_sizeof_;
22064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22100 '') if test "$ac_cv_type_size_t" = yes; then
22101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22102 See \`config.log' for more details." >&5
22103 echo "$as_me: error: cannot compute sizeof (size_t)
22104 See \`config.log' for more details." >&2;}
22105 { (exit 77); exit 77; }; }
22107 ac_cv_sizeof_size_t=0
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 $ac_includes_default
22118 typedef size_t ac__type_sizeof_;
22119 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22120 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22122 #include <stdlib.h>
22127 FILE *f = fopen ("conftest.val", "w");
22130 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22132 long int i = longval ();
22133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22135 fprintf (f, "%ld\n", i);
22139 unsigned long int i = ulongval ();
22140 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22142 fprintf (f, "%lu\n", i);
22144 return ferror (f) || fclose (f) != 0;
22150 rm -f conftest$ac_exeext
22151 if { (ac_try="$ac_link"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_link") 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22161 { (case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_try") 2>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170 ac_cv_sizeof_size_t=`cat conftest.val`
22172 echo "$as_me: program exited with status $ac_status" >&5
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ( exit $ac_status )
22177 if test "$ac_cv_type_size_t" = yes; then
22178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22179 See \`config.log' for more details." >&5
22180 echo "$as_me: error: cannot compute sizeof (size_t)
22181 See \`config.log' for more details." >&2;}
22182 { (exit 77); exit 77; }; }
22184 ac_cv_sizeof_size_t=0
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22192 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22196 cat >>confdefs.h <<_ACEOF
22197 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22202 # Decide whether float4 is passed by value: user-selectable, enabled by default
22203 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22204 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22206 pgac_args="$pgac_args enable_float4_byval"
22208 # Check whether --enable-float4-byval was given.
22209 if test "${enable_float4_byval+set}" = set; then
22210 enableval=$enable_float4_byval;
22214 cat >>confdefs.h <<\_ACEOF
22215 #define USE_FLOAT4_BYVAL 1
22218 float4passbyval=true
22221 float4passbyval=false
22224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22225 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22226 { (exit 1); exit 1; }; }
22231 enable_float4_byval=yes
22233 cat >>confdefs.h <<\_ACEOF
22234 #define USE_FLOAT4_BYVAL 1
22237 float4passbyval=true
22241 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22242 echo "${ECHO_T}$enable_float4_byval" >&6; }
22244 cat >>confdefs.h <<_ACEOF
22245 #define FLOAT4PASSBYVAL $float4passbyval
22249 # Decide whether float8 is passed by value.
22250 # Note: this setting also controls int8 and related types such as timestamp.
22251 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22252 # If not, trying to select it is an error.
22253 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22254 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22255 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22257 pgac_args="$pgac_args enable_float8_byval"
22259 # Check whether --enable-float8-byval was given.
22260 if test "${enable_float8_byval+set}" = set; then
22261 enableval=$enable_float8_byval;
22270 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22271 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22272 { (exit 1); exit 1; }; }
22277 enable_float8_byval=yes
22284 pgac_args="$pgac_args enable_float8_byval"
22286 # Check whether --enable-float8-byval was given.
22287 if test "${enable_float8_byval+set}" = set; then
22288 enableval=$enable_float8_byval;
22297 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22298 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22299 { (exit 1); exit 1; }; }
22304 enable_float8_byval=no
22309 if test "$enable_float8_byval" = yes ; then
22310 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22311 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22312 { (exit 1); exit 1; }; }
22315 if test "$enable_float8_byval" = yes ; then
22317 cat >>confdefs.h <<\_ACEOF
22318 #define USE_FLOAT8_BYVAL 1
22321 float8passbyval=true
22323 float8passbyval=false
22325 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22326 echo "${ECHO_T}$enable_float8_byval" >&6; }
22328 cat >>confdefs.h <<_ACEOF
22329 #define FLOAT8PASSBYVAL $float8passbyval
22333 # Determine memory alignment requirements for the basic C data types.
22335 { echo "$as_me:$LINENO: checking for short" >&5
22336 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22337 if test "${ac_cv_type_short+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 cat >conftest.$ac_ext <<_ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 $ac_includes_default
22347 typedef short ac__type_new_;
22351 if ((ac__type_new_ *) 0)
22353 if (sizeof (ac__type_new_))
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_compile") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest.$ac_objext; then
22376 ac_cv_type_short=yes
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 ac_cv_type_short=no
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22387 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22389 # The cast to long int works around a bug in the HP C Compiler,
22390 # see AC_CHECK_SIZEOF for more information.
22391 { echo "$as_me:$LINENO: checking alignment of short" >&5
22392 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22393 if test "${ac_cv_alignof_short+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 if test "$cross_compiling" = yes; then
22397 # Depending upon the size, compute the lo and hi bounds.
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; short 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; short 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_hi=$ac_mid; break
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_lo=`expr $ac_mid + 1`
22482 if test $ac_lo -le $ac_mid; then
22486 ac_mid=`expr 2 '*' $ac_mid + 1`
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
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22503 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22505 typedef struct { char x; short y; } ac__type_alignof_;
22509 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest.$ac_objext; then
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 $ac_includes_default
22543 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22545 typedef struct { char x; short y; } ac__type_alignof_;
22549 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_lo=$ac_mid; break
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_hi=`expr '(' $ac_mid ')' - 1`
22579 if test $ac_mid -le $ac_hi; then
22583 ac_mid=`expr 2 '*' $ac_mid`
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 # Binary search between lo and hi bounds.
22600 while test "x$ac_lo" != "x$ac_hi"; do
22601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22602 cat >conftest.$ac_ext <<_ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 $ac_includes_default
22610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22612 typedef struct { char x; short y; } ac__type_alignof_;
22616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_compile") 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest.$ac_objext; then
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22645 ac_lo=`expr '(' $ac_mid ')' + 1`
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 ?*) ac_cv_alignof_short=$ac_lo;;
22652 '') if test "$ac_cv_type_short" = yes; then
22653 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22654 See \`config.log' for more details." >&5
22655 echo "$as_me: error: cannot compute alignment of short
22656 See \`config.log' for more details." >&2;}
22657 { (exit 77); exit 77; }; }
22659 ac_cv_alignof_short=0
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 $ac_includes_default
22671 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22673 typedef struct { char x; short y; } ac__type_alignof_;
22674 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22675 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22677 #include <stdlib.h>
22682 FILE *f = fopen ("conftest.val", "w");
22685 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22687 long int i = longval ();
22688 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22690 fprintf (f, "%ld\n", i);
22694 unsigned long int i = ulongval ();
22695 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22697 fprintf (f, "%lu\n", i);
22699 return ferror (f) || fclose (f) != 0;
22705 rm -f conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712 (eval "$ac_link") 2>&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22716 { (case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_try") 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; }; then
22725 ac_cv_alignof_short=`cat conftest.val`
22727 echo "$as_me: program exited with status $ac_status" >&5
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ( exit $ac_status )
22732 if test "$ac_cv_type_short" = yes; then
22733 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22734 See \`config.log' for more details." >&5
22735 echo "$as_me: error: cannot compute alignment of short
22736 See \`config.log' for more details." >&2;}
22737 { (exit 77); exit 77; }; }
22739 ac_cv_alignof_short=0
22742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22746 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22747 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22751 cat >>confdefs.h <<_ACEOF
22752 #define ALIGNOF_SHORT $ac_cv_alignof_short
22756 { echo "$as_me:$LINENO: checking for int" >&5
22757 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22758 if test "${ac_cv_type_int+set}" = set; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 $ac_includes_default
22768 typedef int ac__type_new_;
22772 if ((ac__type_new_ *) 0)
22774 if (sizeof (ac__type_new_))
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22808 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22810 # The cast to long int works around a bug in the HP C Compiler,
22811 # see AC_CHECK_SIZEOF for more information.
22812 { echo "$as_me:$LINENO: checking alignment of int" >&5
22813 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22814 if test "${ac_cv_alignof_int+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 if test "$cross_compiling" = yes; then
22818 # Depending upon the size, compute the lo and hi bounds.
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 $ac_includes_default
22827 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22829 typedef struct { char x; int y; } ac__type_alignof_;
22833 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_compile") 2>conftest.er1
22849 grep -v '^ *+' conftest.er1 >conftest.err
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && {
22854 test -z "$ac_c_werror_flag" ||
22855 test ! -s conftest.err
22856 } && test -s conftest.$ac_objext; then
22859 cat >conftest.$ac_ext <<_ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 $ac_includes_default
22867 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22869 typedef struct { char x; int y; } ac__type_alignof_;
22873 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_hi=$ac_mid; break
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_lo=`expr $ac_mid + 1`
22903 if test $ac_lo -le $ac_mid; then
22907 ac_mid=`expr 2 '*' $ac_mid + 1`
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22924 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22926 typedef struct { char x; int y; } ac__type_alignof_;
22930 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22964 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22966 typedef struct { char x; int y; } ac__type_alignof_;
22970 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_compile") 2>conftest.er1
22986 grep -v '^ *+' conftest.er1 >conftest.err
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } && {
22991 test -z "$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 } && test -s conftest.$ac_objext; then
22994 ac_lo=$ac_mid; break
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_hi=`expr '(' $ac_mid ')' - 1`
23000 if test $ac_mid -le $ac_hi; then
23004 ac_mid=`expr 2 '*' $ac_mid`
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020 # Binary search between lo and hi bounds.
23021 while test "x$ac_lo" != "x$ac_hi"; do
23022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23031 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23033 typedef struct { char x; int y; } ac__type_alignof_;
23037 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_compile") 2>conftest.er1
23053 grep -v '^ *+' conftest.er1 >conftest.err
23055 cat conftest.err >&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } && {
23058 test -z "$ac_c_werror_flag" ||
23059 test ! -s conftest.err
23060 } && test -s conftest.$ac_objext; then
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_lo=`expr '(' $ac_mid ')' + 1`
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 ?*) ac_cv_alignof_int=$ac_lo;;
23073 '') if test "$ac_cv_type_int" = yes; then
23074 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23075 See \`config.log' for more details." >&5
23076 echo "$as_me: error: cannot compute alignment of int
23077 See \`config.log' for more details." >&2;}
23078 { (exit 77); exit 77; }; }
23080 ac_cv_alignof_int=0
23084 cat >conftest.$ac_ext <<_ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 $ac_includes_default
23092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23094 typedef struct { char x; int y; } ac__type_alignof_;
23095 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23096 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23098 #include <stdlib.h>
23103 FILE *f = fopen ("conftest.val", "w");
23106 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23108 long int i = longval ();
23109 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23111 fprintf (f, "%ld\n", i);
23115 unsigned long int i = ulongval ();
23116 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23118 fprintf (f, "%lu\n", i);
23120 return ferror (f) || fclose (f) != 0;
23126 rm -f conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_link") 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137 { (case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_try") 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_alignof_int=`cat conftest.val`
23148 echo "$as_me: program exited with status $ac_status" >&5
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ( exit $ac_status )
23153 if test "$ac_cv_type_int" = yes; then
23154 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23155 See \`config.log' for more details." >&5
23156 echo "$as_me: error: cannot compute alignment of int
23157 See \`config.log' for more details." >&2;}
23158 { (exit 77); exit 77; }; }
23160 ac_cv_alignof_int=0
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23167 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23168 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23172 cat >>confdefs.h <<_ACEOF
23173 #define ALIGNOF_INT $ac_cv_alignof_int
23177 { echo "$as_me:$LINENO: checking for long" >&5
23178 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23179 if test "${ac_cv_type_long+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 typedef long ac__type_new_;
23193 if ((ac__type_new_ *) 0)
23195 if (sizeof (ac__type_new_))
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_cv_type_long=yes
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23229 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23231 # The cast to long int works around a bug in the HP C Compiler,
23232 # see AC_CHECK_SIZEOF for more information.
23233 { echo "$as_me:$LINENO: checking alignment of long" >&5
23234 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23235 if test "${ac_cv_alignof_long+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 if test "$cross_compiling" = yes; then
23239 # Depending upon the size, compute the lo and hi bounds.
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 $ac_includes_default
23248 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23250 typedef struct { char x; long y; } ac__type_alignof_;
23254 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23280 cat >conftest.$ac_ext <<_ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 $ac_includes_default
23288 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23290 typedef struct { char x; long y; } ac__type_alignof_;
23294 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23301 rm -f conftest.$ac_objext
23302 if { (ac_try="$ac_compile"
23303 case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308 (eval "$ac_compile") 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && {
23315 test -z "$ac_c_werror_flag" ||
23316 test ! -s conftest.err
23317 } && test -s conftest.$ac_objext; then
23318 ac_hi=$ac_mid; break
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_lo=`expr $ac_mid + 1`
23324 if test $ac_lo -le $ac_mid; then
23328 ac_mid=`expr 2 '*' $ac_mid + 1`
23331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 $ac_includes_default
23345 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23347 typedef struct { char x; long y; } ac__type_alignof_;
23351 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_compile") 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest.$ac_objext; then
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 $ac_includes_default
23385 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23387 typedef struct { char x; long y; } ac__type_alignof_;
23391 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_compile") 2>conftest.er1
23407 grep -v '^ *+' conftest.er1 >conftest.err
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest.$ac_objext; then
23415 ac_lo=$ac_mid; break
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_hi=`expr '(' $ac_mid ')' - 1`
23421 if test $ac_mid -le $ac_hi; then
23425 ac_mid=`expr 2 '*' $ac_mid`
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 # Binary search between lo and hi bounds.
23442 while test "x$ac_lo" != "x$ac_hi"; do
23443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23444 cat >conftest.$ac_ext <<_ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23450 $ac_includes_default
23452 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23454 typedef struct { char x; long y; } ac__type_alignof_;
23458 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ac_lo=`expr '(' $ac_mid ')' + 1`
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 ?*) ac_cv_alignof_long=$ac_lo;;
23494 '') if test "$ac_cv_type_long" = yes; then
23495 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23496 See \`config.log' for more details." >&5
23497 echo "$as_me: error: cannot compute alignment of long
23498 See \`config.log' for more details." >&2;}
23499 { (exit 77); exit 77; }; }
23501 ac_cv_alignof_long=0
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 $ac_includes_default
23513 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23515 typedef struct { char x; long y; } ac__type_alignof_;
23516 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23517 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23519 #include <stdlib.h>
23524 FILE *f = fopen ("conftest.val", "w");
23527 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23529 long int i = longval ();
23530 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23532 fprintf (f, "%ld\n", i);
23536 unsigned long int i = ulongval ();
23537 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23539 fprintf (f, "%lu\n", i);
23541 return ferror (f) || fclose (f) != 0;
23547 rm -f conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_link") 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23558 { (case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_try") 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_alignof_long=`cat conftest.val`
23569 echo "$as_me: program exited with status $ac_status" >&5
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ( exit $ac_status )
23574 if test "$ac_cv_type_long" = yes; then
23575 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23576 See \`config.log' for more details." >&5
23577 echo "$as_me: error: cannot compute alignment of long
23578 See \`config.log' for more details." >&2;}
23579 { (exit 77); exit 77; }; }
23581 ac_cv_alignof_long=0
23584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23588 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23589 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23593 cat >>confdefs.h <<_ACEOF
23594 #define ALIGNOF_LONG $ac_cv_alignof_long
23598 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23599 { echo "$as_me:$LINENO: checking for long long int" >&5
23600 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23601 if test "${ac_cv_type_long_long_int+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23610 $ac_includes_default
23611 typedef long long int ac__type_new_;
23615 if ((ac__type_new_ *) 0)
23617 if (sizeof (ac__type_new_))
23623 rm -f conftest.$ac_objext
23624 if { (ac_try="$ac_compile"
23625 case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_compile") 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } && {
23637 test -z "$ac_c_werror_flag" ||
23638 test ! -s conftest.err
23639 } && test -s conftest.$ac_objext; then
23640 ac_cv_type_long_long_int=yes
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_cv_type_long_long_int=no
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23651 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23653 # The cast to long int works around a bug in the HP C Compiler,
23654 # see AC_CHECK_SIZEOF for more information.
23655 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23656 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23657 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23660 if test "$cross_compiling" = yes; then
23661 # Depending upon the size, compute the lo and hi bounds.
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23670 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23672 typedef struct { char x; long long int y; } ac__type_alignof_;
23676 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23683 rm -f conftest.$ac_objext
23684 if { (ac_try="$ac_compile"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23692 grep -v '^ *+' conftest.er1 >conftest.err
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 $ac_includes_default
23710 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23712 typedef struct { char x; long long int y; } ac__type_alignof_;
23716 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23723 rm -f conftest.$ac_objext
23724 if { (ac_try="$ac_compile"
23725 case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_compile") 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && {
23737 test -z "$ac_c_werror_flag" ||
23738 test ! -s conftest.err
23739 } && test -s conftest.$ac_objext; then
23740 ac_hi=$ac_mid; break
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_lo=`expr $ac_mid + 1`
23746 if test $ac_lo -le $ac_mid; then
23750 ac_mid=`expr 2 '*' $ac_mid + 1`
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23759 cat >conftest.$ac_ext <<_ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 $ac_includes_default
23767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23769 typedef struct { char x; long long int y; } ac__type_alignof_;
23773 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23780 rm -f conftest.$ac_objext
23781 if { (ac_try="$ac_compile"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_compile") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest.$ac_objext; then
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 $ac_includes_default
23807 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23809 typedef struct { char x; long long int y; } ac__type_alignof_;
23813 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_compile") 2>conftest.er1
23829 grep -v '^ *+' conftest.er1 >conftest.err
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } && {
23834 test -z "$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23836 } && test -s conftest.$ac_objext; then
23837 ac_lo=$ac_mid; break
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_hi=`expr '(' $ac_mid ')' - 1`
23843 if test $ac_mid -le $ac_hi; then
23847 ac_mid=`expr 2 '*' $ac_mid`
23850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 # Binary search between lo and hi bounds.
23864 while test "x$ac_lo" != "x$ac_hi"; do
23865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23866 cat >conftest.$ac_ext <<_ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23872 $ac_includes_default
23874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23876 typedef struct { char x; long long int y; } ac__type_alignof_;
23880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_lo=`expr '(' $ac_mid ')' + 1`
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23916 '') if test "$ac_cv_type_long_long_int" = yes; then
23917 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23918 See \`config.log' for more details." >&5
23919 echo "$as_me: error: cannot compute alignment of long long int
23920 See \`config.log' for more details." >&2;}
23921 { (exit 77); exit 77; }; }
23923 ac_cv_alignof_long_long_int=0
23927 cat >conftest.$ac_ext <<_ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 $ac_includes_default
23935 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23937 typedef struct { char x; long long int y; } ac__type_alignof_;
23938 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23939 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23941 #include <stdlib.h>
23946 FILE *f = fopen ("conftest.val", "w");
23949 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23951 long int i = longval ();
23952 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23954 fprintf (f, "%ld\n", i);
23958 unsigned long int i = ulongval ();
23959 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23961 fprintf (f, "%lu\n", i);
23963 return ferror (f) || fclose (f) != 0;
23969 rm -f conftest$ac_exeext
23970 if { (ac_try="$ac_link"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976 (eval "$ac_link") 2>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23980 { (case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_try") 2>&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); }; }; then
23989 ac_cv_alignof_long_long_int=`cat conftest.val`
23991 echo "$as_me: program exited with status $ac_status" >&5
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ( exit $ac_status )
23996 if test "$ac_cv_type_long_long_int" = yes; then
23997 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23998 See \`config.log' for more details." >&5
23999 echo "$as_me: error: cannot compute alignment of long long int
24000 See \`config.log' for more details." >&2;}
24001 { (exit 77); exit 77; }; }
24003 ac_cv_alignof_long_long_int=0
24006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24010 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
24011 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24015 cat >>confdefs.h <<_ACEOF
24016 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24021 { echo "$as_me:$LINENO: checking for double" >&5
24022 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24023 if test "${ac_cv_type_double+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 cat >conftest.$ac_ext <<_ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24033 typedef double ac__type_new_;
24037 if ((ac__type_new_ *) 0)
24039 if (sizeof (ac__type_new_))
24045 rm -f conftest.$ac_objext
24046 if { (ac_try="$ac_compile"
24047 case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_compile") 2>conftest.er1
24054 grep -v '^ *+' conftest.er1 >conftest.err
24056 cat conftest.err >&5
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && {
24059 test -z "$ac_c_werror_flag" ||
24060 test ! -s conftest.err
24061 } && test -s conftest.$ac_objext; then
24062 ac_cv_type_double=yes
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24067 ac_cv_type_double=no
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24073 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24075 # The cast to long int works around a bug in the HP C Compiler,
24076 # see AC_CHECK_SIZEOF for more information.
24077 { echo "$as_me:$LINENO: checking alignment of double" >&5
24078 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24079 if test "${ac_cv_alignof_double+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 if test "$cross_compiling" = yes; then
24083 # Depending upon the size, compute the lo and hi bounds.
24084 cat >conftest.$ac_ext <<_ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 $ac_includes_default
24092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24094 typedef struct { char x; double y; } ac__type_alignof_;
24098 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24114 grep -v '^ *+' conftest.er1 >conftest.err
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 $ac_includes_default
24132 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24134 typedef struct { char x; double y; } ac__type_alignof_;
24138 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_compile") 2>conftest.er1
24154 grep -v '^ *+' conftest.er1 >conftest.err
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } && {
24159 test -z "$ac_c_werror_flag" ||
24160 test ! -s conftest.err
24161 } && test -s conftest.$ac_objext; then
24162 ac_hi=$ac_mid; break
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24167 ac_lo=`expr $ac_mid + 1`
24168 if test $ac_lo -le $ac_mid; then
24172 ac_mid=`expr 2 '*' $ac_mid + 1`
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 cat >conftest.$ac_ext <<_ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24187 $ac_includes_default
24189 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24191 typedef struct { char x; double y; } ac__type_alignof_;
24195 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24202 rm -f conftest.$ac_objext
24203 if { (ac_try="$ac_compile"
24204 case "(($ac_try" in
24205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206 *) ac_try_echo=$ac_try;;
24208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24209 (eval "$ac_compile") 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } && {
24216 test -z "$ac_c_werror_flag" ||
24217 test ! -s conftest.err
24218 } && test -s conftest.$ac_objext; then
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24229 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24231 typedef struct { char x; double y; } ac__type_alignof_;
24235 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24259 ac_lo=$ac_mid; break
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ac_hi=`expr '(' $ac_mid ')' - 1`
24265 if test $ac_mid -le $ac_hi; then
24269 ac_mid=`expr 2 '*' $ac_mid`
24272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 # Binary search between lo and hi bounds.
24286 while test "x$ac_lo" != "x$ac_hi"; do
24287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24298 typedef struct { char x; double y; } ac__type_alignof_;
24302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_lo=`expr '(' $ac_mid ')' + 1`
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 ?*) ac_cv_alignof_double=$ac_lo;;
24338 '') if test "$ac_cv_type_double" = yes; then
24339 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24340 See \`config.log' for more details." >&5
24341 echo "$as_me: error: cannot compute alignment of double
24342 See \`config.log' for more details." >&2;}
24343 { (exit 77); exit 77; }; }
24345 ac_cv_alignof_double=0
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 $ac_includes_default
24357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24359 typedef struct { char x; double y; } ac__type_alignof_;
24360 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24361 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24363 #include <stdlib.h>
24368 FILE *f = fopen ("conftest.val", "w");
24371 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24373 long int i = longval ();
24374 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24376 fprintf (f, "%ld\n", i);
24380 unsigned long int i = ulongval ();
24381 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24383 fprintf (f, "%lu\n", i);
24385 return ferror (f) || fclose (f) != 0;
24391 rm -f conftest$ac_exeext
24392 if { (ac_try="$ac_link"
24393 case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24398 (eval "$ac_link") 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402 { (case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_try") 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24411 ac_cv_alignof_double=`cat conftest.val`
24413 echo "$as_me: program exited with status $ac_status" >&5
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ( exit $ac_status )
24418 if test "$ac_cv_type_double" = yes; then
24419 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24420 See \`config.log' for more details." >&5
24421 echo "$as_me: error: cannot compute alignment of double
24422 See \`config.log' for more details." >&2;}
24423 { (exit 77); exit 77; }; }
24425 ac_cv_alignof_double=0
24428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24432 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24433 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24437 cat >>confdefs.h <<_ACEOF
24438 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24443 # Compute maximum alignment of any basic type.
24444 # We assume long's alignment is at least as strong as char, short, or int;
24445 # but we must check long long (if it exists) and double.
24447 MAX_ALIGNOF=$ac_cv_alignof_long
24448 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24449 MAX_ALIGNOF=$ac_cv_alignof_double
24451 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24452 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24455 cat >>confdefs.h <<_ACEOF
24456 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24461 # Some platforms predefine the types int8, int16, etc. Only check
24462 # a (hopefully) representative subset.
24463 { echo "$as_me:$LINENO: checking for int8" >&5
24464 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24465 if test "${ac_cv_type_int8+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #ifdef HAVE_SUPPORTDEFS_H
24476 #include <SupportDefs.h>
24479 typedef int8 ac__type_new_;
24483 if ((ac__type_new_ *) 0)
24485 if (sizeof (ac__type_new_))
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24500 grep -v '^ *+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_cv_type_int8=yes
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24519 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24520 if test $ac_cv_type_int8 = yes; then
24522 cat >>confdefs.h <<_ACEOF
24523 #define HAVE_INT8 1
24528 { echo "$as_me:$LINENO: checking for uint8" >&5
24529 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24530 if test "${ac_cv_type_uint8+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 cat >conftest.$ac_ext <<_ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24540 #ifdef HAVE_SUPPORTDEFS_H
24541 #include <SupportDefs.h>
24544 typedef uint8 ac__type_new_;
24548 if ((ac__type_new_ *) 0)
24550 if (sizeof (ac__type_new_))
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_cv_type_uint8=yes
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_cv_type_uint8=no
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24584 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24585 if test $ac_cv_type_uint8 = yes; then
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_UINT8 1
24593 { echo "$as_me:$LINENO: checking for int64" >&5
24594 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24595 if test "${ac_cv_type_int64+set}" = set; then
24596 echo $ECHO_N "(cached) $ECHO_C" >&6
24598 cat >conftest.$ac_ext <<_ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24605 #ifdef HAVE_SUPPORTDEFS_H
24606 #include <SupportDefs.h>
24609 typedef int64 ac__type_new_;
24613 if ((ac__type_new_ *) 0)
24615 if (sizeof (ac__type_new_))
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24638 ac_cv_type_int64=yes
24640 echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24643 ac_cv_type_int64=no
24646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24649 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24650 if test $ac_cv_type_int64 = yes; then
24652 cat >>confdefs.h <<_ACEOF
24653 #define HAVE_INT64 1
24658 { echo "$as_me:$LINENO: checking for uint64" >&5
24659 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24660 if test "${ac_cv_type_uint64+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24670 #ifdef HAVE_SUPPORTDEFS_H
24671 #include <SupportDefs.h>
24674 typedef uint64 ac__type_new_;
24678 if ((ac__type_new_ *) 0)
24680 if (sizeof (ac__type_new_))
24686 rm -f conftest.$ac_objext
24687 if { (ac_try="$ac_compile"
24688 case "(($ac_try" in
24689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_compile") 2>conftest.er1
24695 grep -v '^ *+' conftest.er1 >conftest.err
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && {
24700 test -z "$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24702 } && test -s conftest.$ac_objext; then
24703 ac_cv_type_uint64=yes
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_cv_type_uint64=no
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24713 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24714 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24715 if test $ac_cv_type_uint64 = yes; then
24717 cat >>confdefs.h <<_ACEOF
24718 #define HAVE_UINT64 1
24725 # We also check for sig_atomic_t, which *should* be defined per ANSI
24726 # C, but is missing on some old platforms.
24727 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24728 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24729 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 #include <signal.h>
24740 typedef sig_atomic_t ac__type_new_;
24744 if ((ac__type_new_ *) 0)
24746 if (sizeof (ac__type_new_))
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_compile") 2>conftest.er1
24761 grep -v '^ *+' conftest.er1 >conftest.err
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } && {
24766 test -z "$ac_c_werror_flag" ||
24767 test ! -s conftest.err
24768 } && test -s conftest.$ac_objext; then
24769 ac_cv_type_sig_atomic_t=yes
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24774 ac_cv_type_sig_atomic_t=no
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24779 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24780 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24781 if test $ac_cv_type_sig_atomic_t = yes; then
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_SIG_ATOMIC_T 1
24792 # If the user did not disable integer datetimes, check that
24793 # there is a working 64-bit integral type to use.
24794 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24795 test x"$HAVE_LONG_INT_64" = x"no" &&
24796 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24797 test x"$HAVE_INT64" = x"no" ; then
24798 { { echo "$as_me:$LINENO: error:
24799 Integer-based datetime support requires a 64-bit integer type,
24800 but no such type could be found. The --disable-integer-datetimes
24801 configure option can be used to disable integer-based storage
24802 of datetime values." >&5
24803 echo "$as_me: error:
24804 Integer-based datetime support requires a 64-bit integer type,
24805 but no such type could be found. The --disable-integer-datetimes
24806 configure option can be used to disable integer-based storage
24807 of datetime values." >&2;}
24808 { (exit 1); exit 1; }; }
24812 if test "$PORTNAME" != "win32"
24814 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24815 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24816 if test "${pgac_cv_func_posix_signals+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 cat >conftest.$ac_ext <<_ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825 #include <signal.h>
24830 struct sigaction act, oact;
24831 sigemptyset(&act.sa_mask);
24832 act.sa_flags = SA_RESTART;
24833 sigaction(0, &act, &oact);
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (ac_try="$ac_link"
24840 case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_link") 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest$ac_exeext &&
24855 $as_test_x conftest$ac_exeext; then
24856 pgac_cv_func_posix_signals=yes
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 pgac_cv_func_posix_signals=no
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865 conftest$ac_exeext conftest.$ac_ext
24867 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24868 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24869 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24871 cat >>confdefs.h <<\_ACEOF
24872 #define HAVE_POSIX_SIGNALS
24876 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24878 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24879 { { echo "$as_me:$LINENO: error:
24880 Thread-safety requires POSIX signals, which are not supported by this
24881 operating system." >&5
24882 echo "$as_me: error:
24883 Thread-safety requires POSIX signals, which are not supported by this
24884 operating system." >&2;}
24885 { (exit 1); exit 1; }; }
24889 if test $ac_cv_func_fseeko = yes; then
24890 # Check whether --enable-largefile was given.
24891 if test "${enable_largefile+set}" = set; then
24892 enableval=$enable_largefile;
24895 if test "$enable_largefile" != no; then
24897 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24898 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24899 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 ac_cv_sys_largefile_CC=no
24903 if test "$GCC" != yes; then
24906 # IRIX 6.2 and later do not support large files by default,
24907 # so use the C compiler's -n32 option if that helps.
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 #include <sys/types.h>
24915 /* Check that off_t can represent 2**63 - 1 correctly.
24916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24917 since some C++ compilers masquerading as C compilers
24918 incorrectly reject 9223372036854775807. */
24919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24921 && LARGE_OFF_T % 2147483647 == 1)
24931 rm -f conftest.$ac_objext
24932 if { (ac_try="$ac_compile"
24933 case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_compile") 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && {
24945 test -z "$ac_c_werror_flag" ||
24946 test ! -s conftest.err
24947 } && test -s conftest.$ac_objext; then
24950 echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24956 rm -f core conftest.err conftest.$ac_objext
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24967 grep -v '^ *+' conftest.er1 >conftest.err
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24975 ac_cv_sys_largefile_CC=' -n32'; break
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24983 rm -f core conftest.err conftest.$ac_objext
24987 rm -f conftest.$ac_ext
24990 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24991 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24992 if test "$ac_cv_sys_largefile_CC" != no; then
24993 CC=$CC$ac_cv_sys_largefile_CC
24996 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24997 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24998 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25002 cat >conftest.$ac_ext <<_ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 #include <sys/types.h>
25009 /* Check that off_t can represent 2**63 - 1 correctly.
25010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25011 since some C++ compilers masquerading as C compilers
25012 incorrectly reject 9223372036854775807. */
25013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25015 && LARGE_OFF_T % 2147483647 == 1)
25025 rm -f conftest.$ac_objext
25026 if { (ac_try="$ac_compile"
25027 case "(($ac_try" in
25028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029 *) ac_try_echo=$ac_try;;
25031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25034 grep -v '^ *+' conftest.er1 >conftest.err
25036 cat conftest.err >&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 ac_cv_sys_file_offset_bits=no; break
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 #define _FILE_OFFSET_BITS 64
25058 #include <sys/types.h>
25059 /* Check that off_t can represent 2**63 - 1 correctly.
25060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25061 since some C++ compilers masquerading as C compilers
25062 incorrectly reject 9223372036854775807. */
25063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25065 && LARGE_OFF_T % 2147483647 == 1)
25075 rm -f conftest.$ac_objext
25076 if { (ac_try="$ac_compile"
25077 case "(($ac_try" in
25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079 *) ac_try_echo=$ac_try;;
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_cv_sys_file_offset_bits=64; break
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ac_cv_sys_file_offset_bits=unknown
25105 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25107 case $ac_cv_sys_file_offset_bits in #(
25110 cat >>confdefs.h <<_ACEOF
25111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25116 if test $ac_cv_sys_file_offset_bits = unknown; then
25117 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25118 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25119 if test "${ac_cv_sys_large_files+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25129 #include <sys/types.h>
25130 /* Check that off_t can represent 2**63 - 1 correctly.
25131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25132 since some C++ compilers masquerading as C compilers
25133 incorrectly reject 9223372036854775807. */
25134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25136 && LARGE_OFF_T % 2147483647 == 1)
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest.$ac_objext; then
25163 ac_cv_sys_large_files=no; break
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 cat >conftest.$ac_ext <<_ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 #define _LARGE_FILES 1
25179 #include <sys/types.h>
25180 /* Check that off_t can represent 2**63 - 1 correctly.
25181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25182 since some C++ compilers masquerading as C compilers
25183 incorrectly reject 9223372036854775807. */
25184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25186 && LARGE_OFF_T % 2147483647 == 1)
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_compile") 2>conftest.er1
25205 grep -v '^ *+' conftest.er1 >conftest.err
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest.$ac_objext; then
25213 ac_cv_sys_large_files=1; break
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 ac_cv_sys_large_files=unknown
25226 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25227 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25228 case $ac_cv_sys_large_files in #(
25231 cat >>confdefs.h <<_ACEOF
25232 #define _LARGE_FILES $ac_cv_sys_large_files
25242 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25243 { echo "$as_me:$LINENO: checking for off_t" >&5
25244 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25245 if test "${ac_cv_type_off_t+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25248 cat >conftest.$ac_ext <<_ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 $ac_includes_default
25255 typedef off_t ac__type_new_;
25259 if ((ac__type_new_ *) 0)
25261 if (sizeof (ac__type_new_))
25267 rm -f conftest.$ac_objext
25268 if { (ac_try="$ac_compile"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25274 (eval "$ac_compile") 2>conftest.er1
25276 grep -v '^ *+' conftest.er1 >conftest.err
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest.$ac_objext; then
25284 ac_cv_type_off_t=yes
25286 echo "$as_me: failed program was:" >&5
25287 sed 's/^/| /' conftest.$ac_ext >&5
25289 ac_cv_type_off_t=no
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25295 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25297 # The cast to long int works around a bug in the HP C Compiler
25298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25300 # This bug is HP SR number 8606223364.
25301 { echo "$as_me:$LINENO: checking size of off_t" >&5
25302 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25303 if test "${ac_cv_sizeof_off_t+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
25306 if test "$cross_compiling" = yes; then
25307 # Depending upon the size, compute the lo and hi bounds.
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 typedef off_t ac__type_sizeof_;
25319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25326 rm -f conftest.$ac_objext
25327 if { (ac_try="$ac_compile"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_compile") 2>conftest.er1
25335 grep -v '^ *+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest.$ac_objext; then
25345 cat >conftest.$ac_ext <<_ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h. */
25351 $ac_includes_default
25352 typedef off_t ac__type_sizeof_;
25356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_compile") 2>conftest.er1
25372 grep -v '^ *+' conftest.er1 >conftest.err
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && {
25377 test -z "$ac_c_werror_flag" ||
25378 test ! -s conftest.err
25379 } && test -s conftest.$ac_objext; then
25380 ac_hi=$ac_mid; break
25382 echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25385 ac_lo=`expr $ac_mid + 1`
25386 if test $ac_lo -le $ac_mid; then
25390 ac_mid=`expr 2 '*' $ac_mid + 1`
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 cat >conftest.$ac_ext <<_ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 $ac_includes_default
25406 typedef off_t ac__type_sizeof_;
25410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25417 rm -f conftest.$ac_objext
25418 if { (ac_try="$ac_compile"
25419 case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424 (eval "$ac_compile") 2>conftest.er1
25426 grep -v '^ *+' conftest.er1 >conftest.err
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && {
25431 test -z "$ac_c_werror_flag" ||
25432 test ! -s conftest.err
25433 } && test -s conftest.$ac_objext; then
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 typedef off_t ac__type_sizeof_;
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_compile") 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest.$ac_objext; then
25471 ac_lo=$ac_mid; break
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_hi=`expr '(' $ac_mid ')' - 1`
25477 if test $ac_mid -le $ac_hi; then
25481 ac_mid=`expr 2 '*' $ac_mid`
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 # Binary search between lo and hi bounds.
25498 while test "x$ac_lo" != "x$ac_hi"; do
25499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25500 cat >conftest.$ac_ext <<_ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h. */
25506 $ac_includes_default
25507 typedef off_t ac__type_sizeof_;
25511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_lo=`expr '(' $ac_mid ')' + 1`
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25547 '') if test "$ac_cv_type_off_t" = yes; then
25548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25549 See \`config.log' for more details." >&5
25550 echo "$as_me: error: cannot compute sizeof (off_t)
25551 See \`config.log' for more details." >&2;}
25552 { (exit 77); exit 77; }; }
25554 ac_cv_sizeof_off_t=0
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 typedef off_t ac__type_sizeof_;
25566 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25567 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25569 #include <stdlib.h>
25574 FILE *f = fopen ("conftest.val", "w");
25577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25579 long int i = longval ();
25580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25582 fprintf (f, "%ld\n", i);
25586 unsigned long int i = ulongval ();
25587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25589 fprintf (f, "%lu\n", i);
25591 return ferror (f) || fclose (f) != 0;
25597 rm -f conftest$ac_exeext
25598 if { (ac_try="$ac_link"
25599 case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604 (eval "$ac_link") 2>&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25608 { (case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_try") 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 ac_cv_sizeof_off_t=`cat conftest.val`
25619 echo "$as_me: program exited with status $ac_status" >&5
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ( exit $ac_status )
25624 if test "$ac_cv_type_off_t" = yes; then
25625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25626 See \`config.log' for more details." >&5
25627 echo "$as_me: error: cannot compute sizeof (off_t)
25628 See \`config.log' for more details." >&2;}
25629 { (exit 77); exit 77; }; }
25631 ac_cv_sizeof_off_t=0
25634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25638 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25639 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25643 cat >>confdefs.h <<_ACEOF
25644 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25649 # If we don't have largefile support, can't handle segsize >= 2GB.
25650 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25651 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25652 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25653 { (exit 1); exit 1; }; }
25656 # SunOS doesn't handle negative byte comparisons properly with +/- return
25657 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25658 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25659 if test "${ac_cv_func_memcmp_working+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25662 if test "$cross_compiling" = yes; then
25663 ac_cv_func_memcmp_working=no
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25676 /* Some versions of memcmp are not 8-bit clean. */
25677 char c0 = '\100', c1 = '\200', c2 = '\201';
25678 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25681 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25682 or more and with at least one buffer not starting on a 4-byte boundary.
25683 William Lewis provided this test program. */
25688 for (i = 0; i < 4; i++)
25692 strcpy (a, "--------01111111");
25693 strcpy (b, "--------10000000");
25694 if (memcmp (a, b, 16) >= 0)
25704 rm -f conftest$ac_exeext
25705 if { (ac_try="$ac_link"
25706 case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_link") 2>&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25715 { (case "(($ac_try" in
25716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717 *) ac_try_echo=$ac_try;;
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720 (eval "$ac_try") 2>&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; }; then
25724 ac_cv_func_memcmp_working=yes
25726 echo "$as_me: program exited with status $ac_status" >&5
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ( exit $ac_status )
25731 ac_cv_func_memcmp_working=no
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25739 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25740 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25741 *" memcmp.$ac_objext "* ) ;;
25742 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25749 # Select semaphore implementation type.
25750 if test "$PORTNAME" != "win32"; then
25751 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25753 cat >>confdefs.h <<\_ACEOF
25754 #define USE_NAMED_POSIX_SEMAPHORES 1
25757 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25759 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25761 cat >>confdefs.h <<\_ACEOF
25762 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25765 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25768 cat >>confdefs.h <<\_ACEOF
25769 #define USE_SYSV_SEMAPHORES 1
25772 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25777 cat >>confdefs.h <<\_ACEOF
25778 #define USE_WIN32_SEMAPHORES 1
25781 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25785 # Select shared-memory implementation type.
25786 if test "$PORTNAME" != "win32"; then
25788 cat >>confdefs.h <<\_ACEOF
25789 #define USE_SYSV_SHARED_MEMORY 1
25792 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25795 cat >>confdefs.h <<\_ACEOF
25796 #define USE_WIN32_SHARED_MEMORY 1
25799 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25802 # If not set in template file, set bytes to use libc memset()
25803 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25804 MEMSET_LOOP_LIMIT=1024
25807 cat >>confdefs.h <<_ACEOF
25808 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25813 if test "$enable_nls" = yes ; then
25815 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25816 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25817 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 ac_func_search_save_LIBS=$LIBS
25821 cat >conftest.$ac_ext <<_ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25828 /* Override any GCC internal prototype to avoid an error.
25829 Use char because int might match the return type of a GCC
25830 builtin and then its argument prototype would still apply. */
25834 char bind_textdomain_codeset ();
25838 return bind_textdomain_codeset ();
25843 for ac_lib in '' intl; do
25844 if test -z "$ac_lib"; then
25845 ac_res="none required"
25848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25850 rm -f conftest.$ac_objext conftest$ac_exeext
25851 if { (ac_try="$ac_link"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>conftest.er1
25859 grep -v '^ *+' conftest.er1 >conftest.err
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest$ac_exeext &&
25867 $as_test_x conftest$ac_exeext; then
25868 ac_cv_search_bind_textdomain_codeset=$ac_res
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25882 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25885 ac_cv_search_bind_textdomain_codeset=no
25887 rm conftest.$ac_ext
25888 LIBS=$ac_func_search_save_LIBS
25890 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25891 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25892 ac_res=$ac_cv_search_bind_textdomain_codeset
25893 if test "$ac_res" != no; then
25894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25897 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25898 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25899 { (exit 1); exit 1; }; }
25902 if test "${ac_cv_header_libintl_h+set}" = set; then
25903 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25904 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25905 if test "${ac_cv_header_libintl_h+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25908 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25909 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25911 # Is the header compilable?
25912 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25913 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25914 cat >conftest.$ac_ext <<_ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 $ac_includes_default
25921 #include <libintl.h>
25923 rm -f conftest.$ac_objext
25924 if { (ac_try="$ac_compile"
25925 case "(($ac_try" in
25926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 *) ac_try_echo=$ac_try;;
25929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930 (eval "$ac_compile") 2>conftest.er1
25932 grep -v '^ *+' conftest.er1 >conftest.err
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } && {
25937 test -z "$ac_c_werror_flag" ||
25938 test ! -s conftest.err
25939 } && test -s conftest.$ac_objext; then
25940 ac_header_compiler=yes
25942 echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25945 ac_header_compiler=no
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25950 echo "${ECHO_T}$ac_header_compiler" >&6; }
25952 # Is the header present?
25953 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25954 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25955 cat >conftest.$ac_ext <<_ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 #include <libintl.h>
25963 if { (ac_try="$ac_cpp conftest.$ac_ext"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25971 grep -v '^ *+' conftest.er1 >conftest.err
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } >/dev/null && {
25976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25979 ac_header_preproc=yes
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_header_preproc=no
25987 rm -f conftest.err conftest.$ac_ext
25988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25989 echo "${ECHO_T}$ac_header_preproc" >&6; }
25991 # So? What about this header?
25992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25994 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25995 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25997 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25998 ac_header_preproc=yes
26001 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26002 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26003 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26004 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26005 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26006 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26007 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26008 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26010 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26012 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26014 ## ---------------------------------------- ##
26015 ## Report this to pgsql-bugs@postgresql.org ##
26016 ## ---------------------------------------- ##
26018 ) | sed "s/^/$as_me: WARNING: /" >&2
26021 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26022 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26023 if test "${ac_cv_header_libintl_h+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26026 ac_cv_header_libintl_h=$ac_header_preproc
26028 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26029 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26032 if test $ac_cv_header_libintl_h = yes; then
26035 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26036 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26037 { (exit 1); exit 1; }; }
26041 for ac_prog in msgfmt
26043 # Extract the first word of "$ac_prog", so it can be a program name with args.
26044 set dummy $ac_prog; ac_word=$2
26045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26047 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26050 if test -n "$MSGFMT"; then
26051 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26054 for as_dir in $PATH
26057 test -z "$as_dir" && as_dir=.
26058 for ac_exec_ext in '' $ac_executable_extensions; do
26059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26060 ac_cv_prog_MSGFMT="$ac_prog"
26061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26070 MSGFMT=$ac_cv_prog_MSGFMT
26071 if test -n "$MSGFMT"; then
26072 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26073 echo "${ECHO_T}$MSGFMT" >&6; }
26075 { echo "$as_me:$LINENO: result: no" >&5
26076 echo "${ECHO_T}no" >&6; }
26080 test -n "$MSGFMT" && break
26083 if test -z "$MSGFMT"; then
26084 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26085 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26086 { (exit 1); exit 1; }; }
26088 for ac_prog in msgmerge
26090 # Extract the first word of "$ac_prog", so it can be a program name with args.
26091 set dummy $ac_prog; ac_word=$2
26092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26094 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 if test -n "$MSGMERGE"; then
26098 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26101 for as_dir in $PATH
26104 test -z "$as_dir" && as_dir=.
26105 for ac_exec_ext in '' $ac_executable_extensions; do
26106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26107 ac_cv_prog_MSGMERGE="$ac_prog"
26108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26117 MSGMERGE=$ac_cv_prog_MSGMERGE
26118 if test -n "$MSGMERGE"; then
26119 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26120 echo "${ECHO_T}$MSGMERGE" >&6; }
26122 { echo "$as_me:$LINENO: result: no" >&5
26123 echo "${ECHO_T}no" >&6; }
26127 test -n "$MSGMERGE" && break
26130 for ac_prog in xgettext
26132 # Extract the first word of "$ac_prog", so it can be a program name with args.
26133 set dummy $ac_prog; ac_word=$2
26134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26136 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 if test -n "$XGETTEXT"; then
26140 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26143 for as_dir in $PATH
26146 test -z "$as_dir" && as_dir=.
26147 for ac_exec_ext in '' $ac_executable_extensions; do
26148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26149 ac_cv_prog_XGETTEXT="$ac_prog"
26150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26159 XGETTEXT=$ac_cv_prog_XGETTEXT
26160 if test -n "$XGETTEXT"; then
26161 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26162 echo "${ECHO_T}$XGETTEXT" >&6; }
26164 { echo "$as_me:$LINENO: result: no" >&5
26165 echo "${ECHO_T}no" >&6; }
26169 test -n "$XGETTEXT" && break
26175 # Check for Tcl configuration script tclConfig.sh
26176 if test "$with_tcl" = yes; then
26177 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
26179 # Extract the first word of "$ac_prog", so it can be a program name with args.
26180 set dummy $ac_prog; ac_word=$2
26181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26183 if test "${ac_cv_path_TCLSH+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26192 for as_dir in $PATH
26195 test -z "$as_dir" && as_dir=.
26196 for ac_exec_ext in '' $ac_executable_extensions; do
26197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26198 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26209 TCLSH=$ac_cv_path_TCLSH
26210 if test -n "$TCLSH"; then
26211 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26212 echo "${ECHO_T}$TCLSH" >&6; }
26214 { echo "$as_me:$LINENO: result: no" >&5
26215 echo "${ECHO_T}no" >&6; }
26219 test -n "$TCLSH" && break
26222 if test x"$TCLSH" = x""; then
26223 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26224 echo "$as_me: error: Tcl shell not found" >&2;}
26225 { (exit 1); exit 1; }; }
26228 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26229 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26230 # Let user override test
26231 if test -z "$TCL_CONFIG_SH"; then
26232 pgac_test_dirs="$with_tclconfig"
26234 set X $pgac_test_dirs; shift
26235 if test $# -eq 0; then
26236 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26237 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26238 { (exit 1); exit 1; }; }
26239 set X `echo 'puts $auto_path' | $TCLSH`; shift
26243 if test -r "$pgac_dir/tclConfig.sh"; then
26244 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26250 if test -z "$TCL_CONFIG_SH"; then
26251 { echo "$as_me:$LINENO: result: no" >&5
26252 echo "${ECHO_T}no" >&6; }
26253 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26254 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26255 { (exit 1); exit 1; }; }
26257 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26258 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26264 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26265 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26266 eval TCL_LIBS=\"$TCL_LIBS\"
26267 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26268 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26270 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26271 ac_save_CPPFLAGS=$CPPFLAGS
26272 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26273 if test "${ac_cv_header_tcl_h+set}" = set; then
26274 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26275 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26276 if test "${ac_cv_header_tcl_h+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26280 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26282 # Is the header compilable?
26283 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26284 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26285 cat >conftest.$ac_ext <<_ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26291 $ac_includes_default
26294 rm -f conftest.$ac_objext
26295 if { (ac_try="$ac_compile"
26296 case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_compile") 2>conftest.er1
26303 grep -v '^ *+' conftest.er1 >conftest.err
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest.$ac_objext; then
26311 ac_header_compiler=yes
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ac_header_compiler=no
26319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26321 echo "${ECHO_T}$ac_header_compiler" >&6; }
26323 # Is the header present?
26324 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26325 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26326 cat >conftest.$ac_ext <<_ACEOF
26329 cat confdefs.h >>conftest.$ac_ext
26330 cat >>conftest.$ac_ext <<_ACEOF
26331 /* end confdefs.h. */
26334 if { (ac_try="$ac_cpp conftest.$ac_ext"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } >/dev/null && {
26347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26350 ac_header_preproc=yes
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_header_preproc=no
26358 rm -f conftest.err conftest.$ac_ext
26359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26360 echo "${ECHO_T}$ac_header_preproc" >&6; }
26362 # So? What about this header?
26363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26365 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26366 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26368 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26369 ac_header_preproc=yes
26372 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26373 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26375 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26377 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26379 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26381 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26383 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26385 ## ---------------------------------------- ##
26386 ## Report this to pgsql-bugs@postgresql.org ##
26387 ## ---------------------------------------- ##
26389 ) | sed "s/^/$as_me: WARNING: /" >&2
26392 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26393 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26394 if test "${ac_cv_header_tcl_h+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26397 ac_cv_header_tcl_h=$ac_header_preproc
26399 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26400 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26403 if test $ac_cv_header_tcl_h = yes; then
26406 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26407 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26408 { (exit 1); exit 1; }; }
26412 CPPFLAGS=$ac_save_CPPFLAGS
26416 # Check for DocBook and tools
26418 for ac_prog in onsgmls nsgmls
26420 # Extract the first word of "$ac_prog", so it can be a program name with args.
26421 set dummy $ac_prog; ac_word=$2
26422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26424 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26427 if test -n "$NSGMLS"; then
26428 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26431 for as_dir in $PATH
26434 test -z "$as_dir" && as_dir=.
26435 for ac_exec_ext in '' $ac_executable_extensions; do
26436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26437 ac_cv_prog_NSGMLS="$ac_prog"
26438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26447 NSGMLS=$ac_cv_prog_NSGMLS
26448 if test -n "$NSGMLS"; then
26449 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26450 echo "${ECHO_T}$NSGMLS" >&6; }
26452 { echo "$as_me:$LINENO: result: no" >&5
26453 echo "${ECHO_T}no" >&6; }
26457 test -n "$NSGMLS" && break
26460 for ac_prog in openjade jade
26462 # Extract the first word of "$ac_prog", so it can be a program name with args.
26463 set dummy $ac_prog; ac_word=$2
26464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26466 if test "${ac_cv_prog_JADE+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26469 if test -n "$JADE"; then
26470 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26473 for as_dir in $PATH
26476 test -z "$as_dir" && as_dir=.
26477 for ac_exec_ext in '' $ac_executable_extensions; do
26478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26479 ac_cv_prog_JADE="$ac_prog"
26480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26489 JADE=$ac_cv_prog_JADE
26490 if test -n "$JADE"; then
26491 { echo "$as_me:$LINENO: result: $JADE" >&5
26492 echo "${ECHO_T}$JADE" >&6; }
26494 { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26499 test -n "$JADE" && break
26503 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26504 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26505 if test "${pgac_cv_check_docbook+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26508 cat >conftest.sgml <<EOF
26509 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26511 <title>test</title>
26513 <title>random</title>
26515 <title>testsect</title>
26522 pgac_cv_check_docbook=no
26524 if test -n "$NSGMLS"; then
26525 $NSGMLS -s conftest.sgml 1>&5 2>&1
26526 if test $? -eq 0; then
26527 pgac_cv_check_docbook=yes
26530 rm -f conftest.sgml
26532 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26533 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26535 have_docbook=$pgac_cv_check_docbook
26538 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26539 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26540 if test "${pgac_cv_path_stylesheets+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26543 if test -n "$DOCBOOKSTYLE"; then
26544 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26546 for pgac_prefix in /usr /usr/local /opt /sw; do
26547 for pgac_infix in share lib; do
26548 for pgac_postfix in \
26549 sgml/stylesheets/nwalsh-modular \
26550 sgml/stylesheets/docbook \
26551 sgml/stylesheets/dsssl/docbook \
26552 sgml/docbook-dsssl \
26553 sgml/docbook/dsssl/modular \
26554 sgml/docbook/stylesheet/dsssl/modular \
26555 sgml/docbook/dsssl-stylesheets \
26556 sgml/dsssl/docbook-dsssl-nwalsh
26558 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26559 if test -r "$pgac_candidate/html/docbook.dsl" \
26560 && test -r "$pgac_candidate/print/docbook.dsl"
26562 pgac_cv_path_stylesheets=$pgac_candidate
26571 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26573 if test -n "$DOCBOOKSTYLE"; then
26574 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26575 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26577 { echo "$as_me:$LINENO: result: no" >&5
26578 echo "${ECHO_T}no" >&6; }
26580 if test -n "$DOCBOOKSTYLE"; then
26581 for ac_prog in collateindex.pl
26583 # Extract the first word of "$ac_prog", so it can be a program name with args.
26584 set dummy $ac_prog; ac_word=$2
26585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26587 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 case $COLLATEINDEX in
26592 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $DOCBOOKSTYLE/bin $PATH
26599 test -z "$as_dir" && as_dir=.
26600 for ac_exec_ext in '' $ac_executable_extensions; do
26601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26602 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26613 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26614 if test -n "$COLLATEINDEX"; then
26615 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26616 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26618 { echo "$as_me:$LINENO: result: no" >&5
26619 echo "${ECHO_T}no" >&6; }
26623 test -n "$COLLATEINDEX" && break
26627 for ac_prog in collateindex.pl
26629 # Extract the first word of "$ac_prog", so it can be a program name with args.
26630 set dummy $ac_prog; ac_word=$2
26631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26633 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 case $COLLATEINDEX in
26638 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26642 for as_dir in $PATH
26645 test -z "$as_dir" && as_dir=.
26646 for ac_exec_ext in '' $ac_executable_extensions; do
26647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26648 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26659 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26660 if test -n "$COLLATEINDEX"; then
26661 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26662 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26664 { echo "$as_me:$LINENO: result: no" >&5
26665 echo "${ECHO_T}no" >&6; }
26669 test -n "$COLLATEINDEX" && break
26673 for ac_prog in sgmlspl
26675 # Extract the first word of "$ac_prog", so it can be a program name with args.
26676 set dummy $ac_prog; ac_word=$2
26677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26679 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26682 if test -n "$SGMLSPL"; then
26683 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26686 for as_dir in $PATH
26689 test -z "$as_dir" && as_dir=.
26690 for ac_exec_ext in '' $ac_executable_extensions; do
26691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26692 ac_cv_prog_SGMLSPL="$ac_prog"
26693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26702 SGMLSPL=$ac_cv_prog_SGMLSPL
26703 if test -n "$SGMLSPL"; then
26704 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26705 echo "${ECHO_T}$SGMLSPL" >&6; }
26707 { echo "$as_me:$LINENO: result: no" >&5
26708 echo "${ECHO_T}no" >&6; }
26712 test -n "$SGMLSPL" && break
26715 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26716 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26717 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26720 if test -z "$DOCBOOK2MAN"; then
26721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26722 for as_dir in $PATH
26725 test -z "$as_dir" && as_dir=.
26726 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26727 ac_path="$as_dir/$ac_prog"
26728 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26729 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26730 ac_cv_path_DOCBOOK2MAN=$ac_path
26738 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26741 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26742 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26743 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26749 # We have to run the thread test near the end so we have all our symbols
26750 # defined. Cross compiling throws a warning.
26752 if test "$enable_thread_safety_force" = yes; then
26753 if test "$PORTNAME" != "win32"
26755 { echo "$as_me:$LINENO: WARNING:
26756 *** Skipping thread test program. --enable-thread-safety-force was used.
26757 *** Run the program in src/test/thread on the your machine and add proper
26758 *** locking function calls to your applications to guarantee thread safety.
26760 echo "$as_me: WARNING:
26761 *** Skipping thread test program. --enable-thread-safety-force was used.
26762 *** Run the program in src/test/thread on the your machine and add proper
26763 *** locking function calls to your applications to guarantee thread safety.
26766 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26767 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26769 elif test "$enable_thread_safety" = yes; then
26770 if test "$PORTNAME" != "win32"
26772 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26773 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26778 LIBS="$LIBS $PTHREAD_LIBS"
26779 if test "$cross_compiling" = yes; then
26780 { echo "$as_me:$LINENO: result: maybe" >&5
26781 echo "${ECHO_T}maybe" >&6; }
26782 { echo "$as_me:$LINENO: WARNING:
26783 *** Skipping thread test program because of cross-compile build.
26784 *** Run the program in src/test/thread on the target machine.
26786 echo "$as_me: WARNING:
26787 *** Skipping thread test program because of cross-compile build.
26788 *** Run the program in src/test/thread on the target machine.
26791 cat >conftest.$ac_ext <<_ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 #include "$srcdir/src/test/thread/thread_test.c"
26799 rm -f conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_link") 2>&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26810 { (case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815 (eval "$ac_try") 2>&5
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; }; then
26819 { echo "$as_me:$LINENO: result: yes" >&5
26820 echo "${ECHO_T}yes" >&6; }
26822 echo "$as_me: program exited with status $ac_status" >&5
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ( exit $ac_status )
26827 { echo "$as_me:$LINENO: result: no" >&5
26828 echo "${ECHO_T}no" >&6; }
26829 { { echo "$as_me:$LINENO: error: thread test program failed
26830 This platform is not thread-safe. Check the file 'config.log' for the
26833 You can use the configure option --enable-thread-safety-force to force
26834 threads to be enabled. But you must then run the program in
26835 src/test/thread and add locking function calls to your applications to
26836 guarantee thread safety." >&5
26837 echo "$as_me: error: thread test program failed
26838 This platform is not thread-safe. Check the file 'config.log' for the
26841 You can use the configure option --enable-thread-safety-force to force
26842 threads to be enabled. But you must then run the program in
26843 src/test/thread and add locking function calls to your applications to
26844 guarantee thread safety." >&2;}
26845 { (exit 1); exit 1; }; }
26847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26854 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26855 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26859 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26860 # This is much easier than trying to filter LIBS to the minimum for each
26861 # executable. (Note that shared library links won't use this switch, though.)
26862 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26863 # libreadline; therefore we postpone testing it until we know what library
26864 # dependencies readline has. The test code will try to link with $LIBS.
26865 if test "$with_readline" = yes; then
26866 link_test_func=readline
26868 link_test_func=exit
26870 if test "$PORTNAME" != "darwin"; then
26871 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26872 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26873 pgac_save_LDFLAGS=$LDFLAGS
26874 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26875 if test "$cross_compiling" = yes; then
26876 LDFLAGS="$pgac_save_LDFLAGS"
26877 { echo "$as_me:$LINENO: result: assuming no" >&5
26878 echo "${ECHO_T}assuming no" >&6; }
26880 cat >conftest.$ac_ext <<_ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26886 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26895 rm -f conftest$ac_exeext
26896 if { (ac_try="$ac_link"
26897 case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902 (eval "$ac_link") 2>&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26906 { (case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_try") 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 { echo "$as_me:$LINENO: result: yes" >&5
26916 echo "${ECHO_T}yes" >&6; }
26918 echo "$as_me: program exited with status $ac_status" >&5
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26922 ( exit $ac_status )
26923 LDFLAGS="$pgac_save_LDFLAGS"
26924 { echo "$as_me:$LINENO: result: no" >&5
26925 echo "${ECHO_T}no" >&6; }
26927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26933 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26934 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26935 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26936 pgac_save_LDFLAGS=$LDFLAGS
26937 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26938 if test "$cross_compiling" = yes; then
26939 LDFLAGS="$pgac_save_LDFLAGS"
26940 { echo "$as_me:$LINENO: result: assuming no" >&5
26941 echo "${ECHO_T}assuming no" >&6; }
26943 cat >conftest.$ac_ext <<_ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26958 rm -f conftest$ac_exeext
26959 if { (ac_try="$ac_link"
26960 case "(($ac_try" in
26961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962 *) ac_try_echo=$ac_try;;
26964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26965 (eval "$ac_link") 2>&5
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26969 { (case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_try") 2>&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; }; then
26978 { echo "$as_me:$LINENO: result: yes" >&5
26979 echo "${ECHO_T}yes" >&6; }
26981 echo "$as_me: program exited with status $ac_status" >&5
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ( exit $ac_status )
26986 LDFLAGS="$pgac_save_LDFLAGS"
26987 { echo "$as_me:$LINENO: result: no" >&5
26988 echo "${ECHO_T}no" >&6; }
26990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26998 # Begin output steps
27000 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27001 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27002 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27003 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27004 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27005 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27007 # Create compiler version string
27008 if test x"$GCC" = x"yes" ; then
27009 cc_string="GCC `${CC} --version | sed q`"
27010 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27011 cc_string=`${CC} -V 2>&1 | sed q`
27017 cat >>confdefs.h <<_ACEOF
27018 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
27022 # Supply a numeric version string for use by 3rd party add-ons
27023 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27024 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
27026 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27028 cat >>confdefs.h <<_ACEOF
27029 #define PG_VERSION_NUM $PG_VERSION_NUM
27034 # prepare build tree if outside source tree
27035 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27036 # Note 2: /bin/pwd might be better than shell's built-in at getting
27037 # a symlink-free name.
27038 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
27042 if test "$no_create" != yes; then
27043 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27044 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27045 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27046 || { { echo "$as_me:$LINENO: error: failed" >&5
27047 echo "$as_me: error: failed" >&2;}
27048 { (exit 1); exit 1; }; }
27049 { echo "$as_me:$LINENO: result: done" >&5
27050 echo "${ECHO_T}done" >&6; }
27056 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27059 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}"
27062 if test "$PORTNAME" = "win32"; then
27063 ac_config_commands="$ac_config_commands check_win32_symlinks"
27067 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27070 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27073 cat >confcache <<\_ACEOF
27074 # This file is a shell script that caches the results of configure
27075 # tests run on this system so they can be shared between configure
27076 # scripts and configure runs, see configure's option --config-cache.
27077 # It is not useful on other systems. If it contains results you don't
27078 # want to keep, you may remove or edit it.
27080 # config.status only pays attention to the cache file if you give it
27081 # the --recheck option to rerun configure.
27083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27085 # following values.
27089 # The following way of writing the cache mishandles newlines in values,
27090 # but we know of no workaround that is simple, portable, and efficient.
27091 # So, we kill variables containing newlines.
27092 # Ultrix sh set writes to stderr and can't be redirected directly,
27093 # and sets the high bit in the cache file unless we assign to the vars.
27095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27096 eval ac_val=\$$ac_var
27100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27104 _ | IFS | as_nl) ;; #(
27105 *) $as_unset $ac_var ;;
27111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27112 *${as_nl}ac_space=\ *)
27113 # `set' does not quote correctly, so add quotes (double-quote
27114 # substitution turns \\\\ into \\, and sed turns \\ into \).
27117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27120 # `set' quotes correctly as required by POSIX, so do not add quotes.
27121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27135 if test -w "$cache_file"; then
27136 test "x$cache_file" != "x/dev/null" &&
27137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27138 echo "$as_me: updating cache $cache_file" >&6;}
27139 cat confcache >$cache_file
27141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27148 # Let make expand exec_prefix.
27149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27151 DEFS=-DHAVE_CONFIG_H
27155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27156 # 1. Remove the extension, and $U if already installed.
27157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27158 ac_i=`echo "$ac_i" | sed "$ac_script"`
27159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27160 # will be set to the directory where LIBOBJS objects are built.
27161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27164 LIBOBJS=$ac_libobjs
27166 LTLIBOBJS=$ac_ltlibobjs
27170 : ${CONFIG_STATUS=./config.status}
27171 ac_clean_files_save=$ac_clean_files
27172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27175 cat >$CONFIG_STATUS <<_ACEOF
27177 # Generated by $as_me.
27178 # Run this file to recreate the current configuration.
27179 # Compiler output produced by configure, useful for debugging
27180 # configure, is in config.log if it exists.
27183 ac_cs_recheck=false
27185 SHELL=\${CONFIG_SHELL-$SHELL}
27188 cat >>$CONFIG_STATUS <<\_ACEOF
27189 ## --------------------- ##
27190 ## M4sh Initialization. ##
27191 ## --------------------- ##
27193 # Be more Bourne compatible
27194 DUALCASE=1; export DUALCASE # for MKS sh
27195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27198 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27199 # is contrary to our usage. Disable this feature.
27200 alias -g '${1+"$@"}'='"$@"'
27201 setopt NO_GLOB_SUBST
27203 case `(set -o) 2>/dev/null` in
27204 *posix*) set -o posix ;;
27213 # Avoid depending upon Character Ranges.
27214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27217 as_cr_digits='0123456789'
27218 as_cr_alnum=$as_cr_Letters$as_cr_digits
27220 # The user is always right.
27221 if test "${PATH_SEPARATOR+set}" != set; then
27222 echo "#! /bin/sh" >conf$$.sh
27223 echo "exit 0" >>conf$$.sh
27225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27233 # Support unset when possible.
27234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27242 # We need space, tab and new line, in precisely that order. Quoting is
27243 # there to prevent editors from complaining about space-tab.
27244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27245 # splitting by setting IFS to empty value.)
27250 # Find who we are. Look in the path if we contain no directory separator.
27252 *[\\/]* ) as_myself=$0 ;;
27253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27254 for as_dir in $PATH
27257 test -z "$as_dir" && as_dir=.
27258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27264 # We did not find ourselves, most probably we were run as `sh COMMAND'
27265 # in which case we are not to be found in the path.
27266 if test "x$as_myself" = x; then
27269 if test ! -f "$as_myself"; then
27270 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27271 { (exit 1); exit 1; }
27274 # Work around bugs in pre-3.0 UWIN ksh.
27275 for as_var in ENV MAIL MAILPATH
27276 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27284 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27285 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27286 LC_TELEPHONE LC_TIME
27288 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27289 eval $as_var=C; export $as_var
27291 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27295 # Required to use basename.
27296 if expr a : '\(a\)' >/dev/null 2>&1 &&
27297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27304 as_basename=basename
27310 # Name of the executable.
27311 as_me=`$as_basename -- "$0" ||
27312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27313 X"$0" : 'X\(//\)$' \| \
27314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27316 sed '/^.*\/\([^/][^/]*\)\/*$/{
27335 as_lineno_1=$LINENO
27336 as_lineno_2=$LINENO
27337 test "x$as_lineno_1" != "x$as_lineno_2" &&
27338 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27341 # uniformly replaced by the line number. The first 'sed' inserts a
27342 # line-number line after each line using $LINENO; the second 'sed'
27343 # does the real work. The second script uses 'N' to pair each
27344 # line-number line with the line containing $LINENO, and appends
27345 # trailing '-' during substitution so that $LINENO is not a special
27346 # case at line end.
27347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27348 # scripts with optimization help from Paolo Bonzini. Blame Lee
27349 # E. McMahon (1931-1989) for sed's syntax. :-)
27361 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27364 ' >$as_me.lineno &&
27365 chmod +x "$as_me.lineno" ||
27366 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27367 { (exit 1); exit 1; }; }
27369 # Don't try to exec as it changes $[0], causing all sort of problems
27370 # (the dirname of $[0] is not the place where we might find the
27371 # original and so on. Autoconf is especially sensitive to this).
27372 . "./$as_me.lineno"
27373 # Exit status is that of the last command.
27378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27384 ECHO_C= ECHO_N= ECHO_T=
27385 case `echo -n x` in
27387 case `echo 'x\c'` in
27388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27395 if expr a : '\(a\)' >/dev/null 2>&1 &&
27396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27402 rm -f conf$$ conf$$.exe conf$$.file
27403 if test -d conf$$.dir; then
27404 rm -f conf$$.dir/conf$$.file
27410 if ln -s conf$$.file conf$$ 2>/dev/null; then
27412 # ... but there are two gotchas:
27413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27415 # In both cases, we have to default to `cp -p'.
27416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27418 elif ln conf$$.file conf$$ 2>/dev/null; then
27423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27424 rmdir conf$$.dir 2>/dev/null
27426 if mkdir -p . 2>/dev/null; then
27429 test -d ./-p && rmdir ./-p
27433 if test -x / >/dev/null 2>&1; then
27434 as_test_x='test -x'
27436 if ls -dL / >/dev/null 2>&1; then
27443 if test -d "$1"; then
27449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27450 ???[sx]*):;;*)false;;esac;fi
27454 as_executable_p=$as_test_x
27456 # Sed expression to map a string onto a valid CPP name.
27457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27459 # Sed expression to map a string onto a valid variable name.
27460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27465 # Save the log message, to keep $[0] and so on meaningful, and to
27466 # report actual input values of CONFIG_FILES etc. instead of their
27467 # values after options handling.
27469 This file was extended by PostgreSQL $as_me 8.4devel, which was
27470 generated by GNU Autoconf 2.61. Invocation command line was
27472 CONFIG_FILES = $CONFIG_FILES
27473 CONFIG_HEADERS = $CONFIG_HEADERS
27474 CONFIG_LINKS = $CONFIG_LINKS
27475 CONFIG_COMMANDS = $CONFIG_COMMANDS
27478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27483 cat >>$CONFIG_STATUS <<_ACEOF
27484 # Files that config.status was made for.
27485 config_files="$ac_config_files"
27486 config_headers="$ac_config_headers"
27487 config_links="$ac_config_links"
27488 config_commands="$ac_config_commands"
27492 cat >>$CONFIG_STATUS <<\_ACEOF
27494 \`$as_me' instantiates files from templates according to the
27495 current configuration.
27497 Usage: $0 [OPTIONS] [FILE]...
27499 -h, --help print this help, then exit
27500 -V, --version print version number and configuration settings, then exit
27501 -q, --quiet do not print progress messages
27502 -d, --debug don't remove temporary files
27503 --recheck update $as_me by reconfiguring in the same conditions
27504 --file=FILE[:TEMPLATE]
27505 instantiate the configuration file FILE
27506 --header=FILE[:TEMPLATE]
27507 instantiate the configuration header FILE
27509 Configuration files:
27512 Configuration headers:
27515 Configuration links:
27518 Configuration commands:
27521 Report bugs to <bug-autoconf@gnu.org>."
27524 cat >>$CONFIG_STATUS <<_ACEOF
27526 PostgreSQL config.status 8.4devel
27527 configured by $0, generated by GNU Autoconf 2.61,
27528 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27530 Copyright (C) 2006 Free Software Foundation, Inc.
27531 This config.status script is free software; the Free Software Foundation
27532 gives unlimited permission to copy, distribute and modify it."
27538 cat >>$CONFIG_STATUS <<\_ACEOF
27539 # If no file are specified by the user, then we need to provide default
27540 # value. By we need to know if files were specified by the user.
27546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27558 # Handling of the options.
27559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27562 echo "$ac_cs_version"; exit ;;
27563 --debug | --debu | --deb | --de | --d | -d )
27565 --file | --fil | --fi | --f )
27567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27568 ac_need_defaults=false;;
27569 --header | --heade | --head | --hea )
27571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27572 ac_need_defaults=false;;
27574 # Conflict between --help and --header
27575 { echo "$as_me: error: ambiguous option: $1
27576 Try \`$0 --help' for more information." >&2
27577 { (exit 1); exit 1; }; };;
27578 --help | --hel | -h )
27579 echo "$ac_cs_usage"; exit ;;
27580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27584 # This is an error.
27585 -*) { echo "$as_me: error: unrecognized option: $1
27586 Try \`$0 --help' for more information." >&2
27587 { (exit 1); exit 1; }; } ;;
27589 *) ac_config_targets="$ac_config_targets $1"
27590 ac_need_defaults=false ;;
27596 ac_configure_extra_args=
27598 if $ac_cs_silent; then
27600 ac_configure_extra_args="$ac_configure_extra_args --silent"
27604 cat >>$CONFIG_STATUS <<_ACEOF
27605 if \$ac_cs_recheck; then
27606 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27607 CONFIG_SHELL=$SHELL
27608 export CONFIG_SHELL
27609 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27613 cat >>$CONFIG_STATUS <<\_ACEOF
27617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27618 ## Running $as_me. ##
27624 cat >>$CONFIG_STATUS <<_ACEOF
27627 cat >>$CONFIG_STATUS <<\_ACEOF
27629 # Handling of arguments.
27630 for ac_config_target in $ac_config_targets
27632 case $ac_config_target in
27633 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27634 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27635 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27636 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27637 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27638 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27639 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27640 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27641 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27642 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27643 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27644 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27647 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27648 { (exit 1); exit 1; }; };;
27653 # If the user did not use the arguments to specify the items to instantiate,
27654 # then the envvar interface is used. Set only those that are not.
27655 # We use the long form for the default assignment because of an extremely
27656 # bizarre bug on SunOS 4.1.3.
27657 if $ac_need_defaults; then
27658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27660 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27664 # Have a temporary directory for convenience. Make it in the build tree
27665 # simply because there is no reason against having it here, and in addition,
27666 # creating and moving files from /tmp can sometimes cause problems.
27667 # Hook for its removal unless debugging.
27668 # Note that there is a small window in which the directory will not be cleaned:
27669 # after its creation but before its name has been assigned to `$tmp'.
27673 trap 'exit_status=$?
27674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27676 trap '{ (exit 1); exit 1; }' 1 2 13 15
27678 # Create a (secure) tmp directory for tmp files.
27681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27682 test -n "$tmp" && test -d "$tmp"
27685 tmp=./conf$$-$RANDOM
27686 (umask 077 && mkdir "$tmp")
27689 echo "$me: cannot create a temporary directory in ." >&2
27690 { (exit 1); exit 1; }
27694 # Set up the sed scripts for CONFIG_FILES section.
27697 # No need to generate the scripts if there are no CONFIG_FILES.
27698 # This happens for instance when ./config.status config.h
27699 if test -n "$CONFIG_FILES"; then
27706 for ac_last_try in false false false false false :; do
27707 cat >conf$$subs.sed <<_ACEOF
27708 SHELL!$SHELL$ac_delim
27709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27715 exec_prefix!$exec_prefix$ac_delim
27716 prefix!$prefix$ac_delim
27717 program_transform_name!$program_transform_name$ac_delim
27718 bindir!$bindir$ac_delim
27719 sbindir!$sbindir$ac_delim
27720 libexecdir!$libexecdir$ac_delim
27721 datarootdir!$datarootdir$ac_delim
27722 datadir!$datadir$ac_delim
27723 sysconfdir!$sysconfdir$ac_delim
27724 sharedstatedir!$sharedstatedir$ac_delim
27725 localstatedir!$localstatedir$ac_delim
27726 includedir!$includedir$ac_delim
27727 oldincludedir!$oldincludedir$ac_delim
27728 docdir!$docdir$ac_delim
27729 infodir!$infodir$ac_delim
27730 htmldir!$htmldir$ac_delim
27731 dvidir!$dvidir$ac_delim
27732 pdfdir!$pdfdir$ac_delim
27733 psdir!$psdir$ac_delim
27734 libdir!$libdir$ac_delim
27735 localedir!$localedir$ac_delim
27736 mandir!$mandir$ac_delim
27737 DEFS!$DEFS$ac_delim
27738 ECHO_C!$ECHO_C$ac_delim
27739 ECHO_N!$ECHO_N$ac_delim
27740 ECHO_T!$ECHO_T$ac_delim
27741 LIBS!$LIBS$ac_delim
27742 build_alias!$build_alias$ac_delim
27743 host_alias!$host_alias$ac_delim
27744 target_alias!$target_alias$ac_delim
27745 configure_args!$configure_args$ac_delim
27746 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27747 build!$build$ac_delim
27748 build_cpu!$build_cpu$ac_delim
27749 build_vendor!$build_vendor$ac_delim
27750 build_os!$build_os$ac_delim
27751 host!$host$ac_delim
27752 host_cpu!$host_cpu$ac_delim
27753 host_vendor!$host_vendor$ac_delim
27754 host_os!$host_os$ac_delim
27755 PORTNAME!$PORTNAME$ac_delim
27756 enable_nls!$enable_nls$ac_delim
27757 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27758 default_port!$default_port$ac_delim
27759 enable_shared!$enable_shared$ac_delim
27760 enable_rpath!$enable_rpath$ac_delim
27761 enable_debug!$enable_debug$ac_delim
27762 enable_profiling!$enable_profiling$ac_delim
27763 GCOV!$GCOV$ac_delim
27764 LCOV!$LCOV$ac_delim
27765 GENHTML!$GENHTML$ac_delim
27766 enable_coverage!$enable_coverage$ac_delim
27767 DTRACE!$DTRACE$ac_delim
27768 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27769 enable_dtrace!$enable_dtrace$ac_delim
27771 CFLAGS!$CFLAGS$ac_delim
27772 LDFLAGS!$LDFLAGS$ac_delim
27773 CPPFLAGS!$CPPFLAGS$ac_delim
27774 ac_ct_CC!$ac_ct_CC$ac_delim
27775 EXEEXT!$EXEEXT$ac_delim
27776 OBJEXT!$OBJEXT$ac_delim
27777 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27781 autodepend!$autodepend$ac_delim
27782 INCLUDES!$INCLUDES$ac_delim
27783 enable_thread_safety!$enable_thread_safety$ac_delim
27784 with_tcl!$with_tcl$ac_delim
27785 with_perl!$with_perl$ac_delim
27786 with_python!$with_python$ac_delim
27787 with_gssapi!$with_gssapi$ac_delim
27788 with_krb5!$with_krb5$ac_delim
27789 krb_srvtab!$krb_srvtab$ac_delim
27790 with_pam!$with_pam$ac_delim
27791 with_ldap!$with_ldap$ac_delim
27792 with_bonjour!$with_bonjour$ac_delim
27793 with_openssl!$with_openssl$ac_delim
27794 with_ossp_uuid!$with_ossp_uuid$ac_delim
27795 XML2_CONFIG!$XML2_CONFIG$ac_delim
27796 with_libxml!$with_libxml$ac_delim
27797 with_libxslt!$with_libxslt$ac_delim
27798 with_system_tzdata!$with_system_tzdata$ac_delim
27799 with_zlib!$with_zlib$ac_delim
27800 GREP!$GREP$ac_delim
27801 EGREP!$EGREP$ac_delim
27802 ELF_SYS!$ELF_SYS$ac_delim
27803 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27809 elif $ac_last_try; then
27810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27812 { (exit 1); exit 1; }; }
27814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27818 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27819 if test -n "$ac_eof"; then
27820 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27821 ac_eof=`expr $ac_eof + 1`
27824 cat >>$CONFIG_STATUS <<_ACEOF
27825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27830 s/^/s,@/; s/!/@,|#_!!_#|/
27833 s/'"$ac_delim"'$/,g/; t
27835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27836 ' >>$CONFIG_STATUS <conf$$subs.sed
27837 rm -f conf$$subs.sed
27838 cat >>$CONFIG_STATUS <<_ACEOF
27844 for ac_last_try in false false false false false :; do
27845 cat >conf$$subs.sed <<_ACEOF
27846 with_gnu_ld!$with_gnu_ld$ac_delim
27847 ld_R_works!$ld_R_works$ac_delim
27848 RANLIB!$RANLIB$ac_delim
27849 STRIP!$STRIP$ac_delim
27850 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27851 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27853 DLLTOOL!$DLLTOOL$ac_delim
27854 DLLWRAP!$DLLWRAP$ac_delim
27855 WINDRES!$WINDRES$ac_delim
27857 LN_S!$LN_S$ac_delim
27859 BISON!$BISON$ac_delim
27860 BISONFLAGS!$BISONFLAGS$ac_delim
27861 FLEX!$FLEX$ac_delim
27862 FLEXFLAGS!$FLEXFLAGS$ac_delim
27863 PERL!$PERL$ac_delim
27864 perl_archlibexp!$perl_archlibexp$ac_delim
27865 perl_privlibexp!$perl_privlibexp$ac_delim
27866 perl_useshrplib!$perl_useshrplib$ac_delim
27867 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27868 PYTHON!$PYTHON$ac_delim
27869 python_version!$python_version$ac_delim
27870 python_configdir!$python_configdir$ac_delim
27871 python_includespec!$python_includespec$ac_delim
27872 python_libdir!$python_libdir$ac_delim
27873 python_libspec!$python_libspec$ac_delim
27874 python_additional_libs!$python_additional_libs$ac_delim
27876 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27877 HAVE_IPV6!$HAVE_IPV6$ac_delim
27878 LIBOBJS!$LIBOBJS$ac_delim
27879 acx_pthread_config!$acx_pthread_config$ac_delim
27880 PTHREAD_CC!$PTHREAD_CC$ac_delim
27881 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27882 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27883 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27884 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27885 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27886 MSGFMT!$MSGFMT$ac_delim
27887 MSGMERGE!$MSGMERGE$ac_delim
27888 XGETTEXT!$XGETTEXT$ac_delim
27889 TCLSH!$TCLSH$ac_delim
27890 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27891 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27892 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27893 TCL_LIBS!$TCL_LIBS$ac_delim
27894 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27895 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27896 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27897 NSGMLS!$NSGMLS$ac_delim
27898 JADE!$JADE$ac_delim
27899 have_docbook!$have_docbook$ac_delim
27900 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27901 COLLATEINDEX!$COLLATEINDEX$ac_delim
27902 SGMLSPL!$SGMLSPL$ac_delim
27903 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27904 vpath_build!$vpath_build$ac_delim
27905 LTLIBOBJS!$LTLIBOBJS$ac_delim
27908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27910 elif $ac_last_try; then
27911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27913 { (exit 1); exit 1; }; }
27915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27920 if test -n "$ac_eof"; then
27921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27922 ac_eof=`expr $ac_eof + 1`
27925 cat >>$CONFIG_STATUS <<_ACEOF
27926 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27931 s/^/s,@/; s/!/@,|#_!!_#|/
27934 s/'"$ac_delim"'$/,g/; t
27936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27937 ' >>$CONFIG_STATUS <conf$$subs.sed
27938 rm -f conf$$subs.sed
27939 cat >>$CONFIG_STATUS <<_ACEOF
27946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27948 # trailing colons and then remove the whole line if VPATH becomes empty
27949 # (actually we leave an empty line to preserve line numbers).
27950 if test "x$srcdir" = x.; then
27951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27952 s/:*\$(srcdir):*/:/
27953 s/:*\${srcdir}:*/:/
27955 s/^\([^=]*=[ ]*\):*/\1/
27961 cat >>$CONFIG_STATUS <<\_ACEOF
27962 fi # test -n "$CONFIG_FILES"
27965 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27968 :[FHLC]) ac_mode=$ac_tag; continue;;
27970 case $ac_mode$ac_tag in
27972 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27973 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27974 { (exit 1); exit 1; }; };;
27975 :[FH]-) ac_tag=-:-;;
27976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27993 -) ac_f="$tmp/stdin";;
27994 *) # Look for the file first in the build tree, then in the source tree
27995 # (if the path is not absolute). The absolute path cannot be DOS-style,
27996 # because $ac_f cannot contain `:'.
28000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28002 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28003 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28004 { (exit 1); exit 1; }; };;
28006 ac_file_inputs="$ac_file_inputs $ac_f"
28009 # Let's still pretend it is `configure' which instantiates (i.e., don't
28010 # use $as_me), people would be surprised to read:
28011 # /* config.h. Generated by config.status. */
28012 configure_input="Generated from "`IFS=:
28013 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28014 if test x"$ac_file" != x-; then
28015 configure_input="$ac_file. $configure_input"
28016 { echo "$as_me:$LINENO: creating $ac_file" >&5
28017 echo "$as_me: creating $ac_file" >&6;}
28021 *:-:* | *:-) cat >"$tmp/stdin";;
28026 ac_dir=`$as_dirname -- "$ac_file" ||
28027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28028 X"$ac_file" : 'X\(//\)[^/]' \| \
28029 X"$ac_file" : 'X\(//\)$' \| \
28030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28036 /^X\(\/\/\)[^/].*/{
28051 -*) as_dir=./$as_dir;;
28053 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28057 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28058 *) as_qdir=$as_dir;;
28060 as_dirs="'$as_qdir' $as_dirs"
28061 as_dir=`$as_dirname -- "$as_dir" ||
28062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28063 X"$as_dir" : 'X\(//\)[^/]' \| \
28064 X"$as_dir" : 'X\(//\)$' \| \
28065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28071 /^X\(\/\/\)[^/].*/{
28084 test -d "$as_dir" && break
28086 test -z "$as_dirs" || eval "mkdir $as_dirs"
28087 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28088 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28089 { (exit 1); exit 1; }; }; }
28093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28096 # A ".." for each directory in $ac_dir_suffix.
28097 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28098 case $ac_top_builddir_sub in
28099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28103 ac_abs_top_builddir=$ac_pwd
28104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28105 # for backward compatibility:
28106 ac_top_builddir=$ac_top_build_prefix
28109 .) # We are building in place.
28111 ac_top_srcdir=$ac_top_builddir_sub
28112 ac_abs_top_srcdir=$ac_pwd ;;
28113 [\\/]* | ?:[\\/]* ) # Absolute name.
28114 ac_srcdir=$srcdir$ac_dir_suffix;
28115 ac_top_srcdir=$srcdir
28116 ac_abs_top_srcdir=$srcdir ;;
28117 *) # Relative name.
28118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28119 ac_top_srcdir=$ac_top_build_prefix$srcdir
28120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28133 cat >>$CONFIG_STATUS <<\_ACEOF
28134 # If the template does not know about datarootdir, expand it.
28135 # FIXME: This hack should be removed a few years after 2.60.
28136 ac_datarootdir_hack=; ac_datarootdir_seen=
28138 case `sed -n '/datarootdir/ {
28147 ' $ac_file_inputs` in
28148 *datarootdir*) ac_datarootdir_seen=yes;;
28149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28150 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28151 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28153 cat >>$CONFIG_STATUS <<_ACEOF
28154 ac_datarootdir_hack='
28155 s&@datadir@&$datadir&g
28156 s&@docdir@&$docdir&g
28157 s&@infodir@&$infodir&g
28158 s&@localedir@&$localedir&g
28159 s&@mandir@&$mandir&g
28160 s&\\\${datarootdir}&$datarootdir&g' ;;
28164 # Neutralize VPATH when `$srcdir' = `.'.
28165 # Shell code in configure.ac might set extrasub.
28166 # FIXME: do we really want to maintain this feature?
28167 cat >>$CONFIG_STATUS <<_ACEOF
28171 cat >>$CONFIG_STATUS <<\_ACEOF
28173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28174 s&@configure_input@&$configure_input&;t t
28175 s&@top_builddir@&$ac_top_builddir_sub&;t t
28176 s&@srcdir@&$ac_srcdir&;t t
28177 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28178 s&@top_srcdir@&$ac_top_srcdir&;t t
28179 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28180 s&@builddir@&$ac_builddir&;t t
28181 s&@abs_builddir@&$ac_abs_builddir&;t t
28182 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28183 $ac_datarootdir_hack
28184 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28189 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28190 which seems to be undefined. Please make sure it is defined." >&5
28191 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28192 which seems to be undefined. Please make sure it is defined." >&2;}
28196 -) cat "$tmp/out"; rm -f "$tmp/out";;
28197 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28206 # Transform confdefs.h into a sed script `conftest.defines', that
28207 # substitutes the proper values into config.h.in to produce config.h.
28208 rm -f conftest.defines conftest.tail
28209 # First, append a space to every undef/define line, to ease matching.
28210 echo 's/$/ /' >conftest.defines
28211 # Then, protect against being on the right side of a sed subst, or in
28212 # an unquoted here document, in config.status. If some macros were
28213 # called several times there might be several #defines for the same
28214 # symbol, which is useless. But do not sort them, since the last
28215 # AC_DEFINE must be honored.
28216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28217 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28218 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28219 # PARAMS is the parameter list in the macro definition--in most cases, it's
28220 # just an empty string.
28221 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28222 ac_dB='\\)[ (].*,\\1define\\2'
28230 s/^[ ]*#[ ]*define[ ][ ]*//
28235 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28236 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28237 ' >>conftest.defines
28239 # Remove the space that was appended to ease matching.
28240 # Then replace #undef with comments. This is necessary, for
28241 # example, in the case of _POSIX_SOURCE, which is predefined and required
28242 # on some systems where configure will not decide to define it.
28243 # (The regexp can be short, since the line contains either #define or #undef.)
28245 s,^[ #]*u.*,/* & */,' >>conftest.defines
28247 # Break up conftest.defines:
28248 ac_max_sed_lines=50
28250 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28251 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28252 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28254 ac_in='$ac_file_inputs'
28255 ac_out='"$tmp/out1"'
28256 ac_nxt='"$tmp/out2"'
28260 # Write a here document:
28261 cat >>$CONFIG_STATUS <<_ACEOF
28262 # First, check the format of the line:
28263 cat >"\$tmp/defines.sed" <<\\CEOF
28264 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28265 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28269 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28271 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28272 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28273 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28274 grep . conftest.tail >/dev/null || break
28275 rm -f conftest.defines
28276 mv conftest.tail conftest.defines
28278 rm -f conftest.defines conftest.tail
28280 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28281 cat >>$CONFIG_STATUS <<\_ACEOF
28282 if test x"$ac_file" != x-; then
28283 echo "/* $configure_input */" >"$tmp/config.h"
28284 cat "$ac_result" >>"$tmp/config.h"
28285 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28286 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28287 echo "$as_me: $ac_file is unchanged" >&6;}
28290 mv "$tmp/config.h" $ac_file
28293 echo "/* $configure_input */"
28303 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28304 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28306 if test ! -r "$srcdir/$ac_source"; then
28307 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28308 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28309 { (exit 1); exit 1; }; }
28313 # Try a relative symlink, then a hard link, then a copy.
28315 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28316 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28318 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28319 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28320 cp -p "$srcdir/$ac_source" "$ac_file" ||
28321 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28322 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28323 { (exit 1); exit 1; }; }
28325 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28326 echo "$as_me: executing $ac_file commands" >&6;}
28331 case $ac_file$ac_mode in
28332 "check_win32_symlinks":C)
28333 # Links sometimes fail undetected on Mingw -
28334 # so here we detect it and warn the user
28335 for FILE in $CONFIG_LINKS
28337 # test -e works for symlinks in the MinGW console
28338 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28339 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28342 "src/include/pg_config.h":H)
28343 # Update timestamp for pg_config.h (see Makefile.global)
28344 echo >src/include/stamp-h
28351 { (exit 0); exit 0; }
28353 chmod +x $CONFIG_STATUS
28354 ac_clean_files=$ac_clean_files_save
28357 # configure is writing to config.log, and then calls config.status.
28358 # config.status does its own redirection, appending to config.log.
28359 # Unfortunately, on DOS this fails, as config.log is still kept open
28360 # by configure, so config.status won't be able to write to it; its
28361 # output is simply discarded. So we exec the FD to /dev/null,
28362 # effectively closing config.log, so it can be properly (re)opened and
28363 # appended to by config.status. When coming back to configure, we
28364 # need to make the FD available again.
28365 if test "$no_create" != yes; then
28367 ac_config_status_args=
28368 test "$silent" = yes &&
28369 ac_config_status_args="$ac_config_status_args --quiet"
28371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28374 # would make configure fail if this is the last instruction.
28375 $ac_cs_success || { (exit 1); exit 1; }
28379 # Warn about unknown options
28380 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28381 for pgac_arg in $pgac_args with_gnu_ld; do
28382 if test "$pgac_var" = "$pgac_arg"; then
28386 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28387 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28388 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}