2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix=/usr/local
568 ac_config_libobj_dir=.
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
741 python_additional_libs
772 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
926 -help | --help | --hel | --he | -h)
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 # Obsolete; use --without-fp.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1075 -site=* | --site=* | --sit=*)
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-integer-datetimes
1358 disable 64-bit integer date/time support
1359 --enable-nls[=LANGUAGES]
1360 enable Native Language Support
1361 --disable-shared do not build shared libraries
1362 --disable-rpath do not embed shared library search path in
1364 --disable-spinlocks do not use spinlocks
1365 --enable-debug build with debugging symbols (-g)
1366 --enable-profiling build with profiling enabled
1367 --enable-coverage build with coverage testing instrumentation
1368 --enable-dtrace build with DTrace support
1369 --enable-depend turn on automatic dependency tracking
1370 --enable-cassert enable assertion checks (for debugging)
1371 --enable-thread-safety make client libraries thread-safe
1372 --enable-thread-safety-force
1373 force thread-safety despite thread test failure
1374 --disable-float4-byval disable float4 passed by value
1375 --disable-float8-byval disable float8 passed by value
1376 --disable-largefile omit support for large files
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-template=NAME override operating system template
1382 --with-includes=DIRS look for additional header files in DIRS
1383 --with-libraries=DIRS look for additional libraries in DIRS
1384 --with-libs=DIRS alternative spelling of --with-libraries
1385 --with-pgport=PORTNUM set default port number [5432]
1386 --with-blocksize=BLOCKSIZE
1387 set table block size in kB [8]
1388 --with-segsize=SEGSIZE set table segment size in GB [1]
1389 --with-wal-blocksize=BLOCKSIZE
1390 set WAL block size in kB [8]
1391 --with-wal-segsize=SEGSIZE
1392 set WAL segment size in MB [16]
1393 --with-CC=CMD set compiler (deprecated)
1394 --with-tcl build Tcl modules (PL/Tcl)
1395 --with-tclconfig=DIR tclConfig.sh is in DIR
1396 --with-perl build Perl modules (PL/Perl)
1397 --with-python build Python modules (PL/Python)
1398 --with-gssapi build with GSSAPI support
1399 --with-krb5 build with Kerberos 5 support
1400 --with-krb-srvnam=NAME default service principal name in Kerberos
1402 --with-pam build with PAM support
1403 --with-ldap build with LDAP support
1404 --with-bonjour build with Bonjour support
1405 --with-openssl build with OpenSSL support
1406 --without-readline do not use GNU Readline nor BSD Libedit for editing
1407 --with-libedit-preferred
1408 prefer BSD Libedit over GNU Readline
1409 --with-ossp-uuid use OSSP UUID library when building
1411 --with-libxml build with XML support
1412 --with-libxslt use XSLT support when building contrib/xml2
1413 --with-system-tzdata=DIR
1414 use system time zone data in DIR
1415 --without-zlib do not use Zlib
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1429 location of DocBook stylesheets
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" || continue
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61. Invocation command line was
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1534 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1537 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1538 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1539 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 echo "PATH: $as_dir"
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1572 ac_must_keep_next=false
1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580 | -silent | --silent | --silen | --sile | --sil)
1583 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true; then
1590 ac_must_keep_next=false # Got value, back to normal.
1593 *=* | --config-cache | -C | -disable-* | --disable-* \
1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596 | -with-* | --with-* | -without-* | --without-* | --x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1601 -* ) ac_must_keep_next=true ;;
1604 ac_configure_args="$ac_configure_args '$ac_arg'"
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631 eval ac_val=\$$ac_var
1635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1639 _ | IFS | as_nl) ;; #(
1640 *) $as_unset $ac_var ;;
1645 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646 *${as_nl}ac_space=\ *)
1648 "s/'\''/'\''\\\\'\'''\''/g;
1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1665 for ac_var in $ac_subst_vars
1667 eval ac_val=\$$ac_var
1669 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 echo "$ac_var='\''$ac_val'\''"
1675 if test -n "$ac_subst_files"; then
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1682 for ac_var in $ac_subst_files
1684 eval ac_val=\$$ac_var
1686 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 echo "$ac_var='\''$ac_val'\''"
1693 if test -s confdefs.h; then
1703 test "$ac_signal" != 0 &&
1704 echo "$as_me: caught signal $ac_signal"
1705 echo "$as_me: exit $exit_status"
1707 rm -f core *.core core.conftest.* &&
1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1711 for ac_signal in 1 2 13 15; do
1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1719 # Predefined preprocessor variables.
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749 set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 set x "$ac_default_prefix/share/config.site" \
1754 "$ac_default_prefix/etc/config.site"
1759 if test -r "$ac_site_file"; then
1760 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762 sed 's/^/| /' "$ac_site_file" >&5
1767 if test -r "$cache_file"; then
1768 # Some versions of bash will fail to source /dev/null (special
1769 # files actually), so we avoid doing that.
1770 if test -f "$cache_file"; then
1771 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1774 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775 *) . "./$cache_file";;
1779 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1784 # Check that the precious variables saved in the cache have kept the same
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789 eval ac_new_set=\$ac_env_${ac_var}_set
1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791 eval ac_new_val=\$ac_env_${ac_var}_value
1792 case $ac_old_set,$ac_new_set in
1794 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1795 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796 ac_cache_corrupted=: ;;
1798 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1799 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1803 if test "x$ac_old_val" != "x$ac_new_val"; then
1804 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1806 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1807 echo "$as_me: former value: $ac_old_val" >&2;}
1808 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1809 echo "$as_me: current value: $ac_new_val" >&2;}
1810 ac_cache_corrupted=:
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1816 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825 if $ac_cache_corrupted; then
1826 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830 { (exit 1); exit 1; }; }
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 for ac_dir in config "$srcdir"/config; do
1870 if test -f "$ac_dir/install-sh"; then
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1874 elif test -f "$ac_dir/install.sh"; then
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 elif test -f "$ac_dir/shtool"; then
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900 configure_args=$ac_configure_args
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926 { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939 { (exit 1); exit 1; }; };;
1942 ac_save_IFS=$IFS; IFS='-'
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test "x$host_alias" = x; then
1961 ac_cv_host=$ac_cv_build
1963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976 { (exit 1); exit 1; }; };;
1979 ac_save_IFS=$IFS; IFS='-'
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1989 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1998 pgac_args="$pgac_args with_template"
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003 withval=$with_template;
2006 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008 { (exit 1); exit 1; }; }
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2018 list) echo; ls "$srcdir/src/template"; exit;;
2019 *) if test -f "$srcdir/src/template/$with_template" ; then
2022 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024 { (exit 1); exit 1; }; }
2033 # --with-template not given
2036 aix*) template=aix ;;
2037 bsdi*) template=bsdi ;;
2038 cygwin*) template=cygwin ;;
2039 darwin*) template=darwin ;;
2040 dgux*) template=dgux ;;
2041 freebsd*) template=freebsd ;;
2042 hpux*) template=hpux ;;
2043 irix*) template=irix ;;
2044 linux*|gnu*|k*bsd*-gnu)
2046 mingw*) template=win32 ;;
2047 netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049 openbsd*) template=openbsd ;;
2050 osf*) template=osf ;;
2051 sco*) template=sco ;;
2052 solaris*) template=solaris ;;
2053 sunos*) template=sunos4 ;;
2055 case $host_vendor in
2056 univel) template=univel ;;
2058 sysv4*) template=svr4 ;;
2059 sysv5*) template=unixware ;;
2060 ultrix*) template=ultrix4 ;;
2063 if test x"$template" = x"" ; then
2064 { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this. Include the above 'checking host system type...'
2073 *******************************************************************
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this. Include the above 'checking host system type...'
2084 *******************************************************************
2086 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set). This can be overridden by the template file
2102 # when it's executed.
2109 ## Command line options
2113 # Add non-standard directories to the include path
2116 pgac_args="$pgac_args with_includes"
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121 withval=$with_includes;
2124 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2144 # Add non-standard directories to the library search path
2147 pgac_args="$pgac_args with_libraries"
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152 withval=$with_libraries;
2155 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 LIBRARY_DIRS=$withval
2174 pgac_args="$pgac_args with_libs"
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2182 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184 { (exit 1); exit 1; }; }
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 LIBRARY_DIRS=$withval
2202 # 64-bit integer date/time storage: enabled by default.
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2207 pgac_args="$pgac_args enable_integer_datetimes"
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211 enableval=$enable_integer_datetimes;
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226 { (exit 1); exit 1; }; }
2231 enable_integer_datetimes=yes
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2250 pgac_args="$pgac_args enable_nls"
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254 enableval=$enable_nls;
2264 WANTED_LANGUAGES=$enableval
2274 if test "$enable_nls" = yes; then
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2288 # Default port number (--with-pgport), default 5432
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2293 pgac_args="$pgac_args with_pgport"
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298 withval=$with_pgport;
2301 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 default_port=$withval
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2336 # Option to disable shared libraries
2339 pgac_args="$pgac_args enable_shared"
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343 enableval=$enable_shared;
2352 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354 { (exit 1); exit 1; }; }
2367 # '-rpath'-like feature can be disabled
2370 pgac_args="$pgac_args enable_rpath"
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374 enableval=$enable_rpath;
2383 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385 { (exit 1); exit 1; }; }
2401 pgac_args="$pgac_args enable_spinlocks"
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405 enableval=$enable_spinlocks;
2414 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416 { (exit 1); exit 1; }; }
2421 enable_spinlocks=yes
2428 # --enable-debug adds -g to compiler flags
2431 pgac_args="$pgac_args enable_debug"
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435 enableval=$enable_debug;
2444 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446 { (exit 1); exit 1; }; }
2459 # --enable-profiling enables gcc profiling
2462 pgac_args="$pgac_args enable_profiling"
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466 enableval=$enable_profiling;
2475 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477 { (exit 1); exit 1; }; }
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2493 pgac_args="$pgac_args enable_coverage"
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497 enableval=$enable_coverage;
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$GCOV"; then
2510 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_GCOV="$ac_prog"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531 { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2539 test -n "$GCOV" && break
2542 if test -z "$GCOV"; then
2543 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545 { (exit 1); exit 1; }; }
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$LCOV"; then
2557 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_LCOV="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578 { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$LCOV" && break
2589 if test -z "$LCOV"; then
2590 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592 { (exit 1); exit 1; }; }
2594 for ac_prog in genhtml
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$GENHTML"; then
2604 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_GENHTML="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$GENHTML" && break
2636 if test -z "$GENHTML"; then
2637 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639 { (exit 1); exit 1; }; }
2646 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648 { (exit 1); exit 1; }; }
2664 pgac_args="$pgac_args enable_dtrace"
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668 enableval=$enable_dtrace;
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2676 for ac_prog in dtrace
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$DTRACE"; then
2686 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_DTRACE="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$DTRACE" && break
2718 if test -z "$DTRACE"; then
2719 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721 { (exit 1); exit 1; }; }
2729 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731 { (exit 1); exit 1; }; }
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2749 pgac_args="$pgac_args with_blocksize"
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754 withval=$with_blocksize;
2757 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759 { (exit 1); exit 1; }; }
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2776 case ${blocksize} in
2783 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785 { (exit 1); exit 1; }; }
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2797 # Relation segment size
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2802 pgac_args="$pgac_args with_segsize"
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807 withval=$with_segsize;
2810 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812 { (exit 1); exit 1; }; }
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2848 pgac_args="$pgac_args with_wal_blocksize"
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853 withval=$with_wal_blocksize;
2856 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858 { (exit 1); exit 1; }; }
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 wal_blocksize=$withval
2875 case ${wal_blocksize} in
2876 1) XLOG_BLCKSZ=1024;;
2877 2) XLOG_BLCKSZ=2048;;
2878 4) XLOG_BLCKSZ=4096;;
2879 8) XLOG_BLCKSZ=8192;;
2880 16) XLOG_BLCKSZ=16384;;
2881 32) XLOG_BLCKSZ=32768;;
2882 64) XLOG_BLCKSZ=65536;;
2883 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885 { (exit 1); exit 1; }; }
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2902 pgac_args="$pgac_args with_wal_segsize"
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907 withval=$with_wal_segsize;
2910 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912 { (exit 1); exit 1; }; }
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 wal_segsize=$withval
2929 case ${wal_segsize} in
2937 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939 { (exit 1); exit 1; }; }
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2958 pgac_args="$pgac_args with_CC"
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2966 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968 { (exit 1); exit 1; }; }
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2985 aix) pgac_cc_list="gcc xlc";;
2986 irix) pgac_cc_list="cc";; # no gcc
2987 *) pgac_cc_list="gcc cc";;
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in $pgac_cc_list
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3030 { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3035 test -n "$CC" && break
3038 if test -z "$CC"; then
3040 for ac_prog in $pgac_cc_list
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3079 test -n "$ac_ct_CC" && break
3082 if test "x$ac_ct_CC" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet. If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { (ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3197 for ac_file in $ac_files ''
3199 test -f "$ac_file" || continue
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 # We found the default executable, but exeext='' is most
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3228 { echo "$as_me:$LINENO: result: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log' for more details." >&2;}
3238 { (exit 77); exit 77; }; }
3241 ac_exeext=$ac_cv_exeext
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250 if { ac_try='./$ac_file'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 if test "$cross_compiling" = maybe; then
3265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }
3275 { echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_link") 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; then
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.$ac_objext; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578 CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3586 if test "$GCC" = yes; then
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_prog_cc_c89=no
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3623 s = g (p, va_arg (v,int));
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 ac_cv_prog_cc_c89=$ac_arg
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 rm -f conftest.$ac_ext
3693 case "x$ac_cv_prog_cc_c89" in
3695 { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3698 { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own. We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3718 cat >conftest.$ac_ext <<_ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3728 #ifndef __INTEL_COMPILER
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 . "$srcdir/src/template/$template" || exit
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else: If the template file set something, that is used.
3820 # else: If coverage was enabled, don't set anything.
3821 # else: If the compiler is GCC, then we use -O2.
3822 # else: If the compiler is something else, then we use -O.
3824 if test "$ac_env_CFLAGS_set" = set; then
3825 CFLAGS=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827 : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829 : # no optimization by default
3830 elif test "$GCC" = yes; then
3833 # if the user selected debug mode, don't use -O
3834 if test "$enable_debug" != yes; then
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3843 if test "$GCC" = yes -a "$ICC" = no; then
3844 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845 # These work in some but not all gcc versions
3846 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS=$CFLAGS
3849 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 CFLAGS="$pgac_save_CFLAGS"
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 CFLAGS="$pgac_save_CFLAGS"
3938 { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 # Disable strict-aliasing rules; needed for gcc 3.3+
3945 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS=$CFLAGS
3948 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3973 grep -v '^ *+' conftest.er1 >conftest.err
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 CFLAGS="$pgac_save_CFLAGS"
3988 { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 CFLAGS="$pgac_save_CFLAGS"
4038 { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 elif test "$ICC" = yes; then
4045 # Intel's compiler has a bug/misoptimization in checking for
4046 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS=$CFLAGS
4050 CFLAGS="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 CFLAGS="$pgac_save_CFLAGS"
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 # Make sure strict aliasing is off (though this is said to be the default)
4097 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4133 { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 CFLAGS="$pgac_save_CFLAGS"
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 elif test x"${CC}" = x"xlc"; then
4147 # AIX xlc has to have strict aliasing turned off too
4148 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS=$CFLAGS
4151 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 CFLAGS="$pgac_save_CFLAGS"
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206 if test "$GCC" = yes; then
4207 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4209 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211 { (exit 1); exit 1; }; }
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217 if test "$GCC" = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4223 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4225 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227 { (exit 1); exit 1; }; }
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_link") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest$ac_exeext &&
4271 $as_test_x conftest$ac_exeext; then
4272 { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282 { (exit 1); exit 1; }; }
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286 conftest$ac_exeext conftest.$ac_ext
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4300 #ifdef __FAST_MATH__
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest.$ac_objext; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331 { (exit 1); exit 1; }; }
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4348 if test -z "$CPP"; then
4349 if test "${ac_cv_prog_CPP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # Double quotes because CPP needs to be expanded
4353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356 for ac_c_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 # include <limits.h>
4373 # include <assert.h>
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null && {
4390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 # Broken: fails on valid input.
4402 rm -f conftest.err conftest.$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4414 if { (ac_try="$ac_cpp conftest.$ac_ext"
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null && {
4427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4430 # Broken: success on invalid input.
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 # Passes both tests.
4441 rm -f conftest.err conftest.$ac_ext
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4461 for ac_c_preproc_warn_flag in '' yes
4463 # Use a header file that comes with gcc, so configuring glibc
4464 # with a fresh cross-compiler works.
4465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466 # <limits.h> exists even on freestanding compilers.
4467 # On the NeXT, cc -E runs the code through the compiler's parser,
4468 # not just through cpp. "Syntax error" is here to catch this case.
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4476 # include <limits.h>
4478 # include <assert.h>
4482 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 # Broken: fails on valid input.
4507 rm -f conftest.err conftest.$ac_ext
4509 # OK, works on sane cases. Now check whether nonexistent headers
4510 # can be detected and how.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 grep -v '^ *+' conftest.er1 >conftest.err
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } >/dev/null && {
4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4535 # Broken: success on invalid input.
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 # Passes both tests.
4546 rm -f conftest.err conftest.$ac_ext
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.$ac_ext
4551 if $ac_preproc_ok; then
4554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558 { (exit 1); exit 1; }; }
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 # Create compiler version string
4570 if test x"$GCC" = x"yes" ; then
4571 cc_string="GCC `${CC} --version | sed q`"
4576 cat >>confdefs.h <<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4586 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4589 if test "$need_tas" = yes ; then
4598 # Automatic dependency tracking
4601 pgac_args="$pgac_args enable_depend"
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605 enableval=$enable_depend;
4614 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616 { (exit 1); exit 1; }; }
4630 # Enable assert checks
4633 pgac_args="$pgac_args enable_cassert"
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637 enableval=$enable_cassert;
4641 cat >>confdefs.h <<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4650 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652 { (exit 1); exit 1; }; }
4665 # Include directories
4668 IFS="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir in $with_includes $SRCH_INC; do
4671 if test -d "$dir"; then
4672 INCLUDES="$INCLUDES -I$dir"
4674 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4683 # Library directories
4686 IFS="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4689 if test -d "$dir"; then
4690 LIBDIRS="$LIBDIRS -L$dir"
4692 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4699 # Enable thread-safe client libraries
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4705 pgac_args="$pgac_args enable_thread_safety"
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709 enableval=$enable_thread_safety;
4718 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720 { (exit 1); exit 1; }; }
4725 enable_thread_safety=no
4731 # Win32 should always use threads
4733 pgac_args="$pgac_args enable_thread_safety"
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737 enableval=$enable_thread_safety;
4746 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748 { (exit 1); exit 1; }; }
4753 enable_thread_safety=yes
4761 pgac_args="$pgac_args enable_thread_safety_force"
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765 enableval=$enable_thread_safety_force;
4774 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776 { (exit 1); exit 1; }; }
4781 enable_thread_safety_force=no
4786 if test "$enable_thread_safety" = yes -o \
4787 "$enable_thread_safety_force" = yes; then
4788 enable_thread_safety="yes" # for 'force'
4790 cat >>confdefs.h <<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4800 # Optionally build Tcl modules (PL/Tcl)
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4805 pgac_args="$pgac_args with_tcl"
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821 { (exit 1); exit 1; }; }
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4839 pgac_args="$pgac_args with_tclconfig"
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844 withval=$with_tclconfig;
4847 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849 { (exit 1); exit 1; }; }
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4866 # Optionally build Perl modules (PL/Perl)
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4871 pgac_args="$pgac_args with_perl"
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4885 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887 { (exit 1); exit 1; }; }
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4902 # Optionally build Python modules (PL/Python)
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4907 pgac_args="$pgac_args with_python"
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912 withval=$with_python;
4921 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923 { (exit 1); exit 1; }; }
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4943 pgac_args="$pgac_args with_gssapi"
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948 withval=$with_gssapi;
4953 cat >>confdefs.h <<\_ACEOF
4954 #define ENABLE_GSS 1
4957 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4964 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966 { (exit 1); exit 1; }; }
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4986 pgac_args="$pgac_args with_krb5"
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4996 cat >>confdefs.h <<\_ACEOF
5000 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5007 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009 { (exit 1); exit 1; }; }
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5028 # Kerberos configuration parameters
5031 pgac_args="$pgac_args with_krb_srvnam"
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036 withval=$with_krb_srvnam;
5039 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041 { (exit 1); exit 1; }; }
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5054 with_krb_srvnam="postgres"
5059 cat >>confdefs.h <<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5071 pgac_args="$pgac_args with_pam"
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5080 cat >>confdefs.h <<\_ACEOF
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091 { (exit 1); exit 1; }; }
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5112 pgac_args="$pgac_args with_ldap"
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5121 cat >>confdefs.h <<\_ACEOF
5130 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132 { (exit 1); exit 1; }; }
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5153 pgac_args="$pgac_args with_bonjour"
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158 withval=$with_bonjour;
5162 cat >>confdefs.h <<\_ACEOF
5163 #define USE_BONJOUR 1
5171 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173 { (exit 1); exit 1; }; }
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5194 pgac_args="$pgac_args with_openssl"
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199 withval=$with_openssl;
5203 cat >>confdefs.h <<\_ACEOF
5212 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214 { (exit 1); exit 1; }; }
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5233 pgac_args="$pgac_args with_readline"
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238 withval=$with_readline;
5247 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249 { (exit 1); exit 1; }; }
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263 if test "$with_readline" = yes; then
5264 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5275 pgac_args="$pgac_args with_libedit_preferred"
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280 withval=$with_libedit_preferred;
5289 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291 { (exit 1); exit 1; }; }
5296 with_libedit_preferred=no
5307 pgac_args="$pgac_args with_ossp_uuid"
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312 withval=$with_ossp_uuid;
5321 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323 { (exit 1); exit 1; }; }
5340 pgac_args="$pgac_args with_libxml"
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345 withval=$with_libxml;
5349 cat >>confdefs.h <<\_ACEOF
5350 #define USE_LIBXML 1
5358 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360 { (exit 1); exit 1; }; }
5371 if test "$with_libxml" = yes ; then
5372 for ac_prog in xml2-config
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$XML2_CONFIG"; then
5382 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_XML2_CONFIG="$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$XML2_CONFIG" && break
5414 if test -n "$XML2_CONFIG"; then
5415 for pgac_option in `$XML2_CONFIG --cflags`; do
5416 case $pgac_option in
5417 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5420 for pgac_option in `$XML2_CONFIG --libs`; do
5421 case $pgac_option in
5422 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5434 pgac_args="$pgac_args with_libxslt"
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439 withval=$with_libxslt;
5443 cat >>confdefs.h <<\_ACEOF
5444 #define USE_LIBXSLT 1
5452 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454 { (exit 1); exit 1; }; }
5472 pgac_args="$pgac_args with_system_tzdata"
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477 withval=$with_system_tzdata;
5480 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482 { (exit 1); exit 1; }; }
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5503 pgac_args="$pgac_args with_zlib"
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5517 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519 { (exit 1); exit 1; }; }
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5538 freebsd1*|freebsd2*) elf=no;;
5539 freebsd3*|freebsd4*) elf=yes;;
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy grep ggrep; ac_prog_name=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_GREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in grep ggrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5565 # Check for GNU ac_path_GREP and select it if it is found.
5566 # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'GREP' >> "conftest.nl"
5579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 ac_count=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_GREP="$ac_path_GREP"
5585 ac_path_GREP_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 $ac_path_GREP_found && break 3
5604 GREP="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_GREP=$GREP
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619 GREP="$ac_cv_path_GREP"
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5628 then ac_cv_path_EGREP="$GREP -E"
5630 # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy egrep; ac_prog_name=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_path_EGREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in egrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5647 # Check for GNU ac_path_EGREP and select it if it is found.
5648 # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 echo 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 ac_count=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP="$ac_path_EGREP"
5667 ac_path_EGREP_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 $ac_path_EGREP_found && break 3
5686 EGREP="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690 { (exit 1); exit 1; }; }
5694 ac_cv_path_EGREP=$EGREP
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702 EGREP="$ac_cv_path_EGREP"
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "yes" >/dev/null 2>&1; then
5720 if test "X$elf" = "Xyes" ; then
5734 CPPFLAGS="$CPPFLAGS $INCLUDES"
5735 LDFLAGS="$LDFLAGS $LIBDIRS"
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5748 if test "$GCC" = yes; then
5749 # Check if gcc -print-prog-name=ld gives a path.
5750 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5754 # gcc leaves a trailing carriage return which upsets mingw
5755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5760 # Accept absolute paths.
5761 [\\/]* | [A-Za-z]:[\\/]*)
5762 re_direlt='/[^/][^/]*/\.\./'
5763 # Canonicalize the path of ld
5764 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5766 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5768 test -z "$LD" && LD="$ac_prog"
5771 # If it fails, then pretend we aren't using GCC.
5775 # If it is relative, then search for the first ld in PATH.
5779 elif test "$with_gnu_ld" = yes; then
5780 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5783 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_LD+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 if test -z "$LD"; then
5790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791 for ac_dir in $PATH; do
5792 test -z "$ac_dir" && ac_dir=.
5793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794 ac_cv_path_LD="$ac_dir/$ac_prog"
5795 # Check to see if the program is GNU ld. I'd rather use --version,
5796 # but apparently some GNU ld's only accept -v.
5797 # Break only if it was the GNU/non-GNU ld that we prefer.
5798 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5799 test "$with_gnu_ld" != no && break
5801 test "$with_gnu_ld" != yes && break
5807 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5812 if test -n "$LD"; then
5813 { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821 { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5829 ac_cv_prog_gnu_ld=yes
5831 ac_cv_prog_gnu_ld=no
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$ac_cv_prog_gnu_ld
5841 case $host_os in sysv5*)
5842 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_link") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest$ac_exeext &&
5881 $as_test_x conftest$ac_exeext; then
5882 pgac_cv_prog_ld_R=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 pgac_cv_prog_ld_R=no
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891 conftest$ac_exeext conftest.$ac_ext
5892 LDFLAGS=$pgac_save_LDFLAGS
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897 ld_R_works=$pgac_cv_prog_ld_R
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 if test "x$ac_ct_RANLIB" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5990 RANLIB=$ac_ct_RANLIB
5993 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_STRIP"; then
6038 # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_STRIP="strip"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_STRIP" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6090 STRIP="$ac_cv_prog_STRIP"
6094 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097 STRIP_STATIC_LIB="$STRIP -x"
6098 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099 { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$TAR"; then
6143 { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6154 if test "$LN_S" = "ln -s"; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6158 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6162 for ac_prog in gawk mawk nawk awk
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AWK+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$AWK"; then
6172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AWK="$ac_prog"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test -n "$AWK"; then
6193 { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6201 test -n "$AWK" && break
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207 for ac_prog in bison
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$BISON"; then
6217 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_BISON="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238 { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6246 test -n "$BISON" && break
6251 if test "$BISON"; then
6252 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6253 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6257 { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6267 if test -z "$BISON"; then
6268 { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files. You can obtain Bison from
6271 *** a GNU mirror site. (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files. You can obtain Bison from
6277 *** a GNU mirror site. (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this, because the Bison
6279 *** output is pre-generated.)" >&2;}
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # Let the user override the test
6290 if test -n "$FLEX"; then
6291 pgac_cv_path_flex=$FLEX
6295 for pgac_dir in $PATH; do
6297 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6300 for pgac_prog in flex lex; do
6301 pgac_candidate="$pgac_dir/$pgac_prog"
6302 if test -f "$pgac_candidate" \
6303 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6305 echo '%%' > conftest.l
6306 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308 pgac_broken_flex=$pgac_candidate
6312 pgac_cv_path_flex=$pgac_candidate
6318 rm -f conftest.l lex.yy.c
6319 : ${pgac_cv_path_flex=no}
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326 if test -n "$pgac_broken_flex"; then
6327 { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6335 { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files. You can obtain Flex from
6338 *** a GNU mirror site. (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files. You can obtain Flex from
6344 *** a GNU mirror site. (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6350 FLEX=$pgac_cv_path_flex
6351 pgac_flex_version=`$FLEX -V 2>/dev/null`
6352 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392 { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 if test "$with_perl" = yes; then
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6423 if test -z "$perl_embed_ldflags" ; then
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6427 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6429 echo "$as_me: error: could not determine flags for linking embedded Perl.
6430 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6432 { (exit 1); exit 1; }; }
6434 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6435 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6440 if test "$with_python" = yes; then
6441 # Extract the first word of "python", so it can be a program name with args.
6442 set dummy python; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_PYTHON+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 PYTHON=$ac_cv_path_PYTHON
6472 if test -n "$PYTHON"; then
6473 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6474 echo "${ECHO_T}$PYTHON" >&6; }
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6481 if test x"$PYTHON" = x""; then
6482 { { echo "$as_me:$LINENO: error: Python not found" >&5
6483 echo "$as_me: error: Python not found" >&2;}
6484 { (exit 1); exit 1; }; }
6488 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6489 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6490 if "${PYTHON}" 2>&- -c 'import distutils'
6492 { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6498 echo "$as_me: error: distutils module not found" >&2;}
6499 { (exit 1); exit 1; }; }
6501 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6502 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6503 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6504 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')"`
6505 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6507 # This should be enough of a message.
6508 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6509 echo "${ECHO_T}$python_configdir" >&6; }
6512 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6513 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6515 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6516 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6517 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6518 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6520 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6522 # New way: use the official shared library
6523 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6524 python_libspec="-L${python_libdir} -l${ldlibrary}"
6526 # Old way: use libpython from python_configdir
6527 python_libdir="${python_configdir}"
6528 python_libspec="-L${python_libdir} -lpython${python_version}"
6531 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6533 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6534 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6537 # threaded python is not supported on bsd's
6538 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6539 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6540 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6541 if test "$pythreads" = "1"; then
6542 { echo "$as_me:$LINENO: result: yes" >&5
6543 echo "${ECHO_T}yes" >&6; }
6546 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6547 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6548 { (exit 1); exit 1; }; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6559 # Supply a numeric version string for use by 3rd party add-ons
6560 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6561 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6563 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6565 cat >>confdefs.h <<_ACEOF
6566 #define PG_VERSION_NUM $PG_VERSION_NUM
6573 ## Most libraries are included only if they demonstrably provide a function
6574 ## we need, but libm is an exception: always include it, because there are
6575 ## too many compilers that play cute optimization games that will break
6576 ## probes for standard functions such as pow().
6580 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6581 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_m_main+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_check_lib_save_LIBS=$LIBS
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest$ac_exeext &&
6620 $as_test_x conftest$ac_exeext; then
6621 ac_cv_lib_m_main=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630 conftest$ac_exeext conftest.$ac_ext
6631 LIBS=$ac_check_lib_save_LIBS
6633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6634 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6635 if test $ac_cv_lib_m_main = yes; then
6636 cat >>confdefs.h <<_ACEOF
6644 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6645 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6646 if test "${ac_cv_search_setproctitle+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_func_search_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any GCC internal prototype to avoid an error.
6658 Use char because int might match the return type of a GCC
6659 builtin and then its argument prototype would still apply. */
6663 char setproctitle ();
6667 return setproctitle ();
6672 for ac_lib in '' util; do
6673 if test -z "$ac_lib"; then
6674 ac_res="none required"
6677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>conftest.er1
6688 grep -v '^ *+' conftest.er1 >conftest.err
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && {
6693 test -z "$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 } && test -s conftest$ac_exeext &&
6696 $as_test_x conftest$ac_exeext; then
6697 ac_cv_search_setproctitle=$ac_res
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6707 if test "${ac_cv_search_setproctitle+set}" = set; then
6711 if test "${ac_cv_search_setproctitle+set}" = set; then
6714 ac_cv_search_setproctitle=no
6717 LIBS=$ac_func_search_save_LIBS
6719 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6720 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6721 ac_res=$ac_cv_search_setproctitle
6722 if test "$ac_res" != no; then
6723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6727 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6728 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_dlopen+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any GCC internal prototype to avoid an error.
6741 Use char because int might match the return type of a GCC
6742 builtin and then its argument prototype would still apply. */
6755 for ac_lib in '' dl; do
6756 if test -z "$ac_lib"; then
6757 ac_res="none required"
6760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_link") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest$ac_exeext &&
6779 $as_test_x conftest$ac_exeext; then
6780 ac_cv_search_dlopen=$ac_res
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6790 if test "${ac_cv_search_dlopen+set}" = set; then
6794 if test "${ac_cv_search_dlopen+set}" = set; then
6797 ac_cv_search_dlopen=no
6800 LIBS=$ac_func_search_save_LIBS
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6804 ac_res=$ac_cv_search_dlopen
6805 if test "$ac_res" != no; then
6806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6810 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6811 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6812 if test "${ac_cv_search_socket+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_func_search_save_LIBS=$LIBS
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6838 for ac_lib in '' socket wsock32; do
6839 if test -z "$ac_lib"; then
6840 ac_res="none required"
6843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (ac_try="$ac_link"
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_link") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest$ac_exeext &&
6862 $as_test_x conftest$ac_exeext; then
6863 ac_cv_search_socket=$ac_res
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 if test "${ac_cv_search_socket+set}" = set; then
6877 if test "${ac_cv_search_socket+set}" = set; then
6880 ac_cv_search_socket=no
6883 LIBS=$ac_func_search_save_LIBS
6885 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6886 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6887 ac_res=$ac_cv_search_socket
6888 if test "$ac_res" != no; then
6889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6893 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6894 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6895 if test "${ac_cv_search_shl_load+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_func_search_save_LIBS=$LIBS
6899 cat >conftest.$ac_ext <<_ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6906 /* Override any GCC internal prototype to avoid an error.
6907 Use char because int might match the return type of a GCC
6908 builtin and then its argument prototype would still apply. */
6921 for ac_lib in '' dld; do
6922 if test -z "$ac_lib"; then
6923 ac_res="none required"
6926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext &&
6945 $as_test_x conftest$ac_exeext; then
6946 ac_cv_search_shl_load=$ac_res
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 if test "${ac_cv_search_shl_load+set}" = set; then
6960 if test "${ac_cv_search_shl_load+set}" = set; then
6963 ac_cv_search_shl_load=no
6966 LIBS=$ac_func_search_save_LIBS
6968 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6970 ac_res=$ac_cv_search_shl_load
6971 if test "$ac_res" != no; then
6972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6976 # We only use libld in port/dynloader/aix.c
6979 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6980 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_ldopen+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_func_search_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any GCC internal prototype to avoid an error.
6993 Use char because int might match the return type of a GCC
6994 builtin and then its argument prototype would still apply. */
7007 for ac_lib in '' ld; do
7008 if test -z "$ac_lib"; then
7009 ac_res="none required"
7012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_link") 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest$ac_exeext &&
7031 $as_test_x conftest$ac_exeext; then
7032 ac_cv_search_ldopen=$ac_res
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 if test "${ac_cv_search_ldopen+set}" = set; then
7046 if test "${ac_cv_search_ldopen+set}" = set; then
7049 ac_cv_search_ldopen=no
7052 LIBS=$ac_func_search_save_LIBS
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7055 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7056 ac_res=$ac_cv_search_ldopen
7057 if test "$ac_res" != no; then
7058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7064 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7065 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7066 if test "${ac_cv_search_getopt_long+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 ac_func_search_save_LIBS=$LIBS
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7083 char getopt_long ();
7087 return getopt_long ();
7092 for ac_lib in '' getopt gnugetopt; do
7093 if test -z "$ac_lib"; then
7094 ac_res="none required"
7097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_link") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest$ac_exeext &&
7116 $as_test_x conftest$ac_exeext; then
7117 ac_cv_search_getopt_long=$ac_res
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7127 if test "${ac_cv_search_getopt_long+set}" = set; then
7131 if test "${ac_cv_search_getopt_long+set}" = set; then
7134 ac_cv_search_getopt_long=no
7137 LIBS=$ac_func_search_save_LIBS
7139 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7140 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7141 ac_res=$ac_cv_search_getopt_long
7142 if test "$ac_res" != no; then
7143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7147 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7148 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7149 if test "${ac_cv_search_crypt+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_func_search_save_LIBS=$LIBS
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7175 for ac_lib in '' crypt; do
7176 if test -z "$ac_lib"; then
7177 ac_res="none required"
7180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_link") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest$ac_exeext &&
7199 $as_test_x conftest$ac_exeext; then
7200 ac_cv_search_crypt=$ac_res
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7210 if test "${ac_cv_search_crypt+set}" = set; then
7214 if test "${ac_cv_search_crypt+set}" = set; then
7217 ac_cv_search_crypt=no
7220 LIBS=$ac_func_search_save_LIBS
7222 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7223 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7224 ac_res=$ac_cv_search_crypt
7225 if test "$ac_res" != no; then
7226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7231 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7232 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7233 if test "${ac_cv_search_fdatasync+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_func_search_save_LIBS=$LIBS
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7244 /* Override any GCC internal prototype to avoid an error.
7245 Use char because int might match the return type of a GCC
7246 builtin and then its argument prototype would still apply. */
7254 return fdatasync ();
7259 for ac_lib in '' rt posix4; do
7260 if test -z "$ac_lib"; then
7261 ac_res="none required"
7264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest$ac_exeext &&
7283 $as_test_x conftest$ac_exeext; then
7284 ac_cv_search_fdatasync=$ac_res
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294 if test "${ac_cv_search_fdatasync+set}" = set; then
7298 if test "${ac_cv_search_fdatasync+set}" = set; then
7301 ac_cv_search_fdatasync=no
7304 LIBS=$ac_func_search_save_LIBS
7306 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7307 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7308 ac_res=$ac_cv_search_fdatasync
7309 if test "$ac_res" != no; then
7310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7315 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7316 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7317 if test "${ac_cv_search_shmget+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_func_search_save_LIBS=$LIBS
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7343 for ac_lib in '' cygipc; do
7344 if test -z "$ac_lib"; then
7345 ac_res="none required"
7348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_search_shmget=$ac_res
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378 if test "${ac_cv_search_shmget+set}" = set; then
7382 if test "${ac_cv_search_shmget+set}" = set; then
7385 ac_cv_search_shmget=no
7388 LIBS=$ac_func_search_save_LIBS
7390 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7391 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7392 ac_res=$ac_cv_search_shmget
7393 if test "$ac_res" != no; then
7394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7399 if test "$with_readline" = yes; then
7402 if test "${pgac_cv_check_readline+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 pgac_cv_check_readline=no
7406 pgac_save_LIBS=$LIBS
7407 if test x"$with_libedit_preferred" != x"yes"
7408 then READLINE_ORDER="-lreadline -ledit"
7409 else READLINE_ORDER="-ledit -lreadline"
7411 for pgac_rllib in $READLINE_ORDER ; do
7412 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7413 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7414 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7415 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_link") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext &&
7455 $as_test_x conftest$ac_exeext; then
7457 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7458 # recognize dependent libraries; assume curses is needed if we didn't
7459 # find any dependency.
7461 netbsd* | openbsd* | irix*)
7462 if test x"$pgac_lib" = x"" ; then
7463 pgac_lib=" -lcurses"
7467 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7478 conftest$ac_exeext conftest.$ac_ext
7480 if test "$pgac_cv_check_readline" != no ; then
7481 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7482 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7489 LIBS=$pgac_save_LIBS
7493 if test "$pgac_cv_check_readline" != no ; then
7494 LIBS="$pgac_cv_check_readline $LIBS"
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_LIBREADLINE 1
7503 if test x"$pgac_cv_check_readline" = x"no"; then
7504 { { echo "$as_me:$LINENO: error: readline library not found
7505 If you have readline already installed, see config.log for details on the
7506 failure. It is possible the compiler isn't looking in the proper directory.
7507 Use --without-readline to disable readline support." >&5
7508 echo "$as_me: error: readline library not found
7509 If you have readline already installed, see config.log for details on the
7510 failure. It is possible the compiler isn't looking in the proper directory.
7511 Use --without-readline to disable readline support." >&2;}
7512 { (exit 1); exit 1; }; }
7516 if test "$with_zlib" = yes; then
7518 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7519 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7520 if test "${ac_cv_lib_z_inflate+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 ac_check_lib_save_LIBS=$LIBS
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7532 /* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_link") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext &&
7564 $as_test_x conftest$ac_exeext; then
7565 ac_cv_lib_z_inflate=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_lib_z_inflate=no
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7578 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7579 if test $ac_cv_lib_z_inflate = yes; then
7580 cat >>confdefs.h <<_ACEOF
7587 { { echo "$as_me:$LINENO: error: zlib library not found
7588 If you have zlib already installed, see config.log for details on the
7589 failure. It is possible the compiler isn't looking in the proper directory.
7590 Use --without-zlib to disable zlib support." >&5
7591 echo "$as_me: error: zlib library not found
7592 If you have zlib already installed, see config.log for details on the
7593 failure. It is possible the compiler isn't looking in the proper directory.
7594 Use --without-zlib to disable zlib support." >&2;}
7595 { (exit 1); exit 1; }; }
7600 if test "$enable_spinlocks" = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_SPINLOCKS 1
7607 { echo "$as_me:$LINENO: WARNING:
7608 *** Not using spinlocks will cause poor performance." >&5
7609 echo "$as_me: WARNING:
7610 *** Not using spinlocks will cause poor performance." >&2;}
7613 if test "$with_gssapi" = yes ; then
7614 if test "$PORTNAME" != "win32"; then
7615 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7616 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7617 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_func_search_save_LIBS=$LIBS
7621 cat >conftest.$ac_ext <<_ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7628 /* Override any GCC internal prototype to avoid an error.
7629 Use char because int might match the return type of a GCC
7630 builtin and then its argument prototype would still apply. */
7634 char gss_init_sec_context ();
7638 return gss_init_sec_context ();
7643 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7644 if test -z "$ac_lib"; then
7645 ac_res="none required"
7648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (ac_try="$ac_link"
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_link") 2>conftest.er1
7659 grep -v '^ *+' conftest.er1 >conftest.err
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest$ac_exeext &&
7667 $as_test_x conftest$ac_exeext; then
7668 ac_cv_search_gss_init_sec_context=$ac_res
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7678 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7682 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7685 ac_cv_search_gss_init_sec_context=no
7688 LIBS=$ac_func_search_save_LIBS
7690 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7691 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7692 ac_res=$ac_cv_search_gss_init_sec_context
7693 if test "$ac_res" != no; then
7694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7697 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7698 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7699 { (exit 1); exit 1; }; }
7703 LIBS="$LIBS -lgssapi32"
7707 if test "$with_krb5" = yes ; then
7708 if test "$PORTNAME" != "win32"; then
7709 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7710 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7711 if test "${ac_cv_search_com_err+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_func_search_save_LIBS=$LIBS
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7737 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7738 if test -z "$ac_lib"; then
7739 ac_res="none required"
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7753 grep -v '^ *+' conftest.er1 >conftest.err
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest$ac_exeext &&
7761 $as_test_x conftest$ac_exeext; then
7762 ac_cv_search_com_err=$ac_res
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772 if test "${ac_cv_search_com_err+set}" = set; then
7776 if test "${ac_cv_search_com_err+set}" = set; then
7779 ac_cv_search_com_err=no
7782 LIBS=$ac_func_search_save_LIBS
7784 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7785 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7786 ac_res=$ac_cv_search_com_err
7787 if test "$ac_res" != no; then
7788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7791 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7792 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7793 { (exit 1); exit 1; }; }
7796 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7797 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7798 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_func_search_save_LIBS=$LIBS
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7815 char krb5_sendauth ();
7819 return krb5_sendauth ();
7824 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7825 if test -z "$ac_lib"; then
7826 ac_res="none required"
7829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest$ac_exeext &&
7848 $as_test_x conftest$ac_exeext; then
7849 ac_cv_search_krb5_sendauth=$ac_res
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7859 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7863 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7866 ac_cv_search_krb5_sendauth=no
7869 LIBS=$ac_func_search_save_LIBS
7871 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7872 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7873 ac_res=$ac_cv_search_krb5_sendauth
7874 if test "$ac_res" != no; then
7875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7878 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7879 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7880 { (exit 1); exit 1; }; }
7884 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7885 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7886 if test "${ac_cv_search_com_err+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_func_search_save_LIBS=$LIBS
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 /* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7912 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7913 if test -z "$ac_lib"; then
7914 ac_res="none required"
7917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7937 ac_cv_search_com_err=$ac_res
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7947 if test "${ac_cv_search_com_err+set}" = set; then
7951 if test "${ac_cv_search_com_err+set}" = set; then
7954 ac_cv_search_com_err=no
7957 LIBS=$ac_func_search_save_LIBS
7959 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7960 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7961 ac_res=$ac_cv_search_com_err
7962 if test "$ac_res" != no; then
7963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7966 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7967 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7968 { (exit 1); exit 1; }; }
7974 if test "$with_openssl" = yes ; then
7975 if test "$PORTNAME" != "win32"; then
7977 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7978 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7979 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lcrypto $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
7997 char CRYPTO_new_ex_data ();
8001 return CRYPTO_new_ex_data ();
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (ac_try="$ac_link"
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_link") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest$ac_exeext &&
8023 $as_test_x conftest$ac_exeext; then
8024 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8033 conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8037 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8038 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_LIBCRYPTO 1
8043 LIBS="-lcrypto $LIBS"
8046 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8047 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8048 { (exit 1); exit 1; }; }
8052 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8053 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8054 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_check_lib_save_LIBS=$LIBS
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 /* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
8072 char SSL_library_init ();
8076 return SSL_library_init ();
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 ac_cv_lib_ssl_SSL_library_init=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_lib_ssl_SSL_library_init=no
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_LIBSSL 1
8121 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8123 { (exit 1); exit 1; }; }
8128 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8129 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8130 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-leay32 $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8148 char CRYPTO_new_ex_data ();
8152 return CRYPTO_new_ex_data ();
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_link") 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest$ac_exeext &&
8174 $as_test_x conftest$ac_exeext; then
8175 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8184 conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8187 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8188 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8189 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8190 cat >>confdefs.h <<_ACEOF
8191 #define HAVE_LIBEAY32 1
8194 LIBS="-leay32 $LIBS"
8197 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8198 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8199 { (exit 1); exit 1; }; }
8203 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8204 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8205 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_check_lib_save_LIBS=$LIBS
8209 LIBS="-lssleay32 $LIBS"
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8223 char SSL_library_init ();
8227 return SSL_library_init ();
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest$ac_exeext &&
8249 $as_test_x conftest$ac_exeext; then
8250 ac_cv_lib_ssleay32_SSL_library_init=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_lib_ssleay32_SSL_library_init=no
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8262 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8263 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8264 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_LIBSSLEAY32 1
8269 LIBS="-lssleay32 $LIBS"
8272 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8273 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8274 { (exit 1); exit 1; }; }
8280 if test "$with_pam" = yes ; then
8282 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8283 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8284 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_check_lib_save_LIBS=$LIBS
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8306 return pam_start ();
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_link") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest$ac_exeext &&
8328 $as_test_x conftest$ac_exeext; then
8329 ac_cv_lib_pam_pam_start=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_lib_pam_pam_start=no
8337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8342 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8343 if test $ac_cv_lib_pam_pam_start = yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_LIBPAM 1
8351 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8352 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8353 { (exit 1); exit 1; }; }
8358 if test "$with_libxml" = yes ; then
8360 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8361 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8362 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 ac_check_lib_save_LIBS=$LIBS
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any GCC internal prototype to avoid an error.
8375 Use char because int might match the return type of a GCC
8376 builtin and then its argument prototype would still apply. */
8380 char xmlSaveToBuffer ();
8384 return xmlSaveToBuffer ();
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_xml2_xmlSaveToBuffer=no
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8420 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8421 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_LIBXML2 1
8429 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8430 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8431 { (exit 1); exit 1; }; }
8436 if test "$with_libxslt" = yes ; then
8438 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8439 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8440 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 ac_check_lib_save_LIBS=$LIBS
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 /* Override any GCC internal prototype to avoid an error.
8453 Use char because int might match the return type of a GCC
8454 builtin and then its argument prototype would still apply. */
8458 char xsltCleanupGlobals ();
8462 return xsltCleanupGlobals ();
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest$ac_exeext &&
8484 $as_test_x conftest$ac_exeext; then
8485 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_xslt_xsltCleanupGlobals=no
8493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8498 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8499 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_LIBXSLT 1
8507 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8508 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8509 { (exit 1); exit 1; }; }
8514 # for contrib/uuid-ossp
8515 if test "$with_ossp_uuid" = yes ; then
8516 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8517 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lossp-uuid $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8536 char uuid_export ();
8540 return uuid_export ();
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest$ac_exeext &&
8562 $as_test_x conftest$ac_exeext; then
8563 ac_cv_lib_ossp_uuid_uuid_export=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_ossp_uuid_uuid_export=no
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8576 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8577 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8578 OSSP_UUID_LIBS="-lossp-uuid"
8580 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8581 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8582 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_check_lib_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8600 char uuid_export ();
8604 return uuid_export ();
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (ac_try="$ac_link"
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_link") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest$ac_exeext &&
8626 $as_test_x conftest$ac_exeext; then
8627 ac_cv_lib_uuid_uuid_export=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_uuid_uuid_export=no
8635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8636 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8639 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8640 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8641 if test $ac_cv_lib_uuid_uuid_export = yes; then
8642 OSSP_UUID_LIBS="-luuid"
8644 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8645 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8646 { (exit 1); exit 1; }; }
8659 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8660 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_header_stdc=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_header_stdc=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 if test $ac_cv_header_stdc = yes; then
8711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "memchr" >/dev/null 2>&1; then
8725 ac_cv_header_stdc=no
8731 if test $ac_cv_header_stdc = yes; then
8732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "free" >/dev/null 2>&1; then
8746 ac_cv_header_stdc=no
8752 if test $ac_cv_header_stdc = yes; then
8753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8754 if test "$cross_compiling" = yes; then
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8765 #if ((' ' & 0x0FF) == 0x020)
8766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8769 # define ISLOWER(c) \
8770 (('a' <= (c) && (c) <= 'i') \
8771 || ('j' <= (c) && (c) <= 'r') \
8772 || ('s' <= (c) && (c) <= 'z'))
8773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8781 for (i = 0; i < 256; i++)
8782 if (XOR (islower (i), ISLOWER (i))
8783 || toupper (i) != TOUPPER (i))
8788 rm -f conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8810 echo "$as_me: program exited with status $ac_status" >&5
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_cv_header_stdc=no
8817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8825 if test $ac_cv_header_stdc = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8844 inttypes.h stdint.h unistd.h
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8860 #include <$ac_header>
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 eval "$as_ac_Header=yes"
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 eval "$as_ac_Header=no"
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 ac_res=`eval echo '${'$as_ac_Header'}'`
8890 { echo "$as_me:$LINENO: result: $ac_res" >&5
8891 echo "${ECHO_T}$ac_res" >&6; }
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8929 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
8931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 ac_res=`eval echo '${'$as_ac_Header'}'`
8939 { echo "$as_me:$LINENO: result: $ac_res" >&5
8940 echo "${ECHO_T}$ac_res" >&6; }
8942 # Is the header compilable?
8943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 $ac_includes_default
8952 #include <$ac_header>
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_header_compiler=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_header_compiler=no
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981 echo "${ECHO_T}$ac_header_compiler" >&6; }
8983 # Is the header present?
8984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <$ac_header>
8994 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } >/dev/null && {
9007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9008 test ! -s conftest.err
9010 ac_header_preproc=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_header_preproc=no
9018 rm -f conftest.err conftest.$ac_ext
9019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9020 echo "${ECHO_T}$ac_header_preproc" >&6; }
9022 # So? What about this header?
9023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9029 ac_header_preproc=yes
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9045 ## ---------------------------------------- ##
9046 ## Report this to pgsql-bugs@postgresql.org ##
9047 ## ---------------------------------------- ##
9049 ) | sed "s/^/$as_me: WARNING: /" >&2
9052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 eval "$as_ac_Header=\$ac_header_preproc"
9059 ac_res=`eval echo '${'$as_ac_Header'}'`
9060 { echo "$as_me:$LINENO: result: $ac_res" >&5
9061 echo "${ECHO_T}$ac_res" >&6; }
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9075 # netinet/in.h is included first.
9077 for ac_header in netinet/in.h
9079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_res=`eval echo '${'$as_ac_Header'}'`
9087 { echo "$as_me:$LINENO: result: $ac_res" >&5
9088 echo "${ECHO_T}$ac_res" >&6; }
9090 # Is the header compilable?
9091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #include <$ac_header>
9102 rm -f conftest.$ac_objext
9103 if { (ac_try="$ac_compile"
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_compile") 2>conftest.er1
9111 grep -v '^ *+' conftest.er1 >conftest.err
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } && {
9116 test -z "$ac_c_werror_flag" ||
9117 test ! -s conftest.err
9118 } && test -s conftest.$ac_objext; then
9119 ac_header_compiler=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_compiler=no
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6; }
9131 # Is the header present?
9132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <$ac_header>
9142 if { (ac_try="$ac_cpp conftest.$ac_ext"
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9150 grep -v '^ *+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev/null && {
9155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9158 ac_header_preproc=yes
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9163 ac_header_preproc=no
9166 rm -f conftest.err conftest.$ac_ext
9167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9168 echo "${ECHO_T}$ac_header_preproc" >&6; }
9170 # So? What about this header?
9171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9177 ac_header_preproc=yes
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193 ## ---------------------------------------- ##
9194 ## Report this to pgsql-bugs@postgresql.org ##
9195 ## ---------------------------------------- ##
9197 ) | sed "s/^/$as_me: WARNING: /" >&2
9200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 eval "$as_ac_Header=\$ac_header_preproc"
9207 ac_res=`eval echo '${'$as_ac_Header'}'`
9208 { echo "$as_me:$LINENO: result: $ac_res" >&5
9209 echo "${ECHO_T}$ac_res" >&6; }
9212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9213 cat >>confdefs.h <<_ACEOF
9214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 for ac_header in netinet/tcp.h
9224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 #ifdef HAVE_NETINET_IN_H
9238 #include <netinet/in.h>
9242 #include <$ac_header>
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_compile") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest.$ac_objext; then
9261 eval "$as_ac_Header=yes"
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 eval "$as_ac_Header=no"
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 ac_res=`eval echo '${'$as_ac_Header'}'`
9272 { echo "$as_me:$LINENO: result: $ac_res" >&5
9273 echo "${ECHO_T}$ac_res" >&6; }
9274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9275 cat >>confdefs.h <<_ACEOF
9276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9286 for ac_header in readline/readline.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 ac_res=`eval echo '${'$as_ac_Header'}'`
9296 { echo "$as_me:$LINENO: result: $ac_res" >&5
9297 echo "${ECHO_T}$ac_res" >&6; }
9299 # Is the header compilable?
9300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 #include <$ac_header>
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest.$ac_objext; then
9328 ac_header_compiler=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_header_compiler=no
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9338 echo "${ECHO_T}$ac_header_compiler" >&6; }
9340 # Is the header present?
9341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9343 cat >conftest.$ac_ext <<_ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 #include <$ac_header>
9351 if { (ac_try="$ac_cpp conftest.$ac_ext"
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } >/dev/null && {
9364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9365 test ! -s conftest.err
9367 ac_header_preproc=yes
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_header_preproc=no
9375 rm -f conftest.err conftest.$ac_ext
9376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9377 echo "${ECHO_T}$ac_header_preproc" >&6; }
9379 # So? What about this header?
9380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9386 ac_header_preproc=yes
9389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9402 ## ---------------------------------------- ##
9403 ## Report this to pgsql-bugs@postgresql.org ##
9404 ## ---------------------------------------- ##
9406 ) | sed "s/^/$as_me: WARNING: /" >&2
9409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 eval "$as_ac_Header=\$ac_header_preproc"
9416 ac_res=`eval echo '${'$as_ac_Header'}'`
9417 { echo "$as_me:$LINENO: result: $ac_res" >&5
9418 echo "${ECHO_T}$ac_res" >&6; }
9421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9422 cat >>confdefs.h <<_ACEOF
9423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 for ac_header in readline.h
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 ac_res=`eval echo '${'$as_ac_Header'}'`
9438 { echo "$as_me:$LINENO: result: $ac_res" >&5
9439 echo "${ECHO_T}$ac_res" >&6; }
9441 # Is the header compilable?
9442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9451 #include <$ac_header>
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_compile") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1 >conftest.err
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && {
9467 test -z "$ac_c_werror_flag" ||
9468 test ! -s conftest.err
9469 } && test -s conftest.$ac_objext; then
9470 ac_header_compiler=yes
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_header_compiler=no
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480 echo "${ECHO_T}$ac_header_compiler" >&6; }
9482 # Is the header present?
9483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 #include <$ac_header>
9493 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1 >conftest.err
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } >/dev/null && {
9506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9509 ac_header_preproc=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_header_preproc=no
9517 rm -f conftest.err conftest.$ac_ext
9518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519 echo "${ECHO_T}$ac_header_preproc" >&6; }
9521 # So? What about this header?
9522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9528 ac_header_preproc=yes
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9544 ## ---------------------------------------- ##
9545 ## Report this to pgsql-bugs@postgresql.org ##
9546 ## ---------------------------------------- ##
9548 ) | sed "s/^/$as_me: WARNING: /" >&2
9551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 eval "$as_ac_Header=\$ac_header_preproc"
9558 ac_res=`eval echo '${'$as_ac_Header'}'`
9559 { echo "$as_me:$LINENO: result: $ac_res" >&5
9560 echo "${ECHO_T}$ac_res" >&6; }
9563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9569 { { echo "$as_me:$LINENO: error: readline header not found
9570 If you have readline already installed, see config.log for details on the
9571 failure. It is possible the compiler isn't looking in the proper directory.
9572 Use --without-readline to disable readline support." >&5
9573 echo "$as_me: error: readline header not found
9574 If you have readline already installed, see config.log for details on the
9575 failure. It is possible the compiler isn't looking in the proper directory.
9576 Use --without-readline to disable readline support." >&2;}
9577 { (exit 1); exit 1; }; }
9587 for ac_header in readline/history.h
9589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 ac_res=`eval echo '${'$as_ac_Header'}'`
9597 { echo "$as_me:$LINENO: result: $ac_res" >&5
9598 echo "${ECHO_T}$ac_res" >&6; }
9600 # Is the header compilable?
9601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9610 #include <$ac_header>
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9629 ac_header_compiler=yes
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_header_compiler=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639 echo "${ECHO_T}$ac_header_compiler" >&6; }
9641 # Is the header present?
9642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #include <$ac_header>
9652 if { (ac_try="$ac_cpp conftest.$ac_ext"
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null && {
9665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9668 ac_header_preproc=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_header_preproc=no
9676 rm -f conftest.err conftest.$ac_ext
9677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6; }
9680 # So? What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9687 ac_header_preproc=yes
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9703 ## ---------------------------------------- ##
9704 ## Report this to pgsql-bugs@postgresql.org ##
9705 ## ---------------------------------------- ##
9707 ) | sed "s/^/$as_me: WARNING: /" >&2
9710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 eval "$as_ac_Header=\$ac_header_preproc"
9717 ac_res=`eval echo '${'$as_ac_Header'}'`
9718 { echo "$as_me:$LINENO: result: $ac_res" >&5
9719 echo "${ECHO_T}$ac_res" >&6; }
9722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9723 cat >>confdefs.h <<_ACEOF
9724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 for ac_header in history.h
9731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_res=`eval echo '${'$as_ac_Header'}'`
9739 { echo "$as_me:$LINENO: result: $ac_res" >&5
9740 echo "${ECHO_T}$ac_res" >&6; }
9742 # Is the header compilable?
9743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 #include <$ac_header>
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
9771 ac_header_compiler=yes
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_compiler=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 echo "${ECHO_T}$ac_header_compiler" >&6; }
9783 # Is the header present?
9784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } >/dev/null && {
9807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9810 ac_header_preproc=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_header_preproc=no
9818 rm -f conftest.err conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9820 echo "${ECHO_T}$ac_header_preproc" >&6; }
9822 # So? What about this header?
9823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9829 ac_header_preproc=yes
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845 ## ---------------------------------------- ##
9846 ## Report this to pgsql-bugs@postgresql.org ##
9847 ## ---------------------------------------- ##
9849 ) | sed "s/^/$as_me: WARNING: /" >&2
9852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 eval "$as_ac_Header=\$ac_header_preproc"
9859 ac_res=`eval echo '${'$as_ac_Header'}'`
9860 { echo "$as_me:$LINENO: result: $ac_res" >&5
9861 echo "${ECHO_T}$ac_res" >&6; }
9864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9865 cat >>confdefs.h <<_ACEOF
9866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 { { echo "$as_me:$LINENO: error: history header not found
9871 If you have readline already installed, see config.log for details on the
9872 failure. It is possible the compiler isn't looking in the proper directory.
9873 Use --without-readline to disable readline support." >&5
9874 echo "$as_me: error: history header not found
9875 If you have readline already installed, see config.log for details on the
9876 failure. It is possible the compiler isn't looking in the proper directory.
9877 Use --without-readline to disable readline support." >&2;}
9878 { (exit 1); exit 1; }; }
9889 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9890 # Some installations of libedit usurp /usr/include/readline/, which seems
9891 # bad practice, since in combined installations readline will have its headers
9892 # there. We might have to resort to AC_EGREP checks to make sure we found
9893 # the proper header...
9895 for ac_header in editline/readline.h
9897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 ac_res=`eval echo '${'$as_ac_Header'}'`
9905 { echo "$as_me:$LINENO: result: $ac_res" >&5
9906 echo "${ECHO_T}$ac_res" >&6; }
9908 # Is the header compilable?
9909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 $ac_includes_default
9918 #include <$ac_header>
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 ac_header_compiler=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_header_compiler=no
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9947 echo "${ECHO_T}$ac_header_compiler" >&6; }
9949 # Is the header present?
9950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <$ac_header>
9960 if { (ac_try="$ac_cpp conftest.$ac_ext"
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } >/dev/null && {
9973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9976 ac_header_preproc=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_header_preproc=no
9984 rm -f conftest.err conftest.$ac_ext
9985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9986 echo "${ECHO_T}$ac_header_preproc" >&6; }
9988 # So? What about this header?
9989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9995 ac_header_preproc=yes
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10011 ## ---------------------------------------- ##
10012 ## Report this to pgsql-bugs@postgresql.org ##
10013 ## ---------------------------------------- ##
10015 ) | sed "s/^/$as_me: WARNING: /" >&2
10018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 eval "$as_ac_Header=\$ac_header_preproc"
10025 ac_res=`eval echo '${'$as_ac_Header'}'`
10026 { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10037 for ac_header in readline.h
10039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 ac_res=`eval echo '${'$as_ac_Header'}'`
10047 { echo "$as_me:$LINENO: result: $ac_res" >&5
10048 echo "${ECHO_T}$ac_res" >&6; }
10050 # Is the header compilable?
10051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 $ac_includes_default
10060 #include <$ac_header>
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_compile") 2>conftest.er1
10071 grep -v '^ *+' conftest.er1 >conftest.err
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && {
10076 test -z "$ac_c_werror_flag" ||
10077 test ! -s conftest.err
10078 } && test -s conftest.$ac_objext; then
10079 ac_header_compiler=yes
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ac_header_compiler=no
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10089 echo "${ECHO_T}$ac_header_compiler" >&6; }
10091 # Is the header present?
10092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 #include <$ac_header>
10102 if { (ac_try="$ac_cpp conftest.$ac_ext"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } >/dev/null && {
10115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10118 ac_header_preproc=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_header_preproc=no
10126 rm -f conftest.err conftest.$ac_ext
10127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10128 echo "${ECHO_T}$ac_header_preproc" >&6; }
10130 # So? What about this header?
10131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10137 ac_header_preproc=yes
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10153 ## ---------------------------------------- ##
10154 ## Report this to pgsql-bugs@postgresql.org ##
10155 ## ---------------------------------------- ##
10157 ) | sed "s/^/$as_me: WARNING: /" >&2
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 eval "$as_ac_Header=\$ac_header_preproc"
10167 ac_res=`eval echo '${'$as_ac_Header'}'`
10168 { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10179 for ac_header in readline/readline.h
10181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 ac_res=`eval echo '${'$as_ac_Header'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10192 # Is the header compilable?
10193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 $ac_includes_default
10202 #include <$ac_header>
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_header_compiler=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_header_compiler=no
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 echo "${ECHO_T}$ac_header_compiler" >&6; }
10233 # Is the header present?
10234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <$ac_header>
10244 if { (ac_try="$ac_cpp conftest.$ac_ext"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } >/dev/null && {
10257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10260 ac_header_preproc=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_header_preproc=no
10268 rm -f conftest.err conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270 echo "${ECHO_T}$ac_header_preproc" >&6; }
10272 # So? What about this header?
10273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279 ac_header_preproc=yes
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295 ## ---------------------------------------- ##
10296 ## Report this to pgsql-bugs@postgresql.org ##
10297 ## ---------------------------------------- ##
10299 ) | sed "s/^/$as_me: WARNING: /" >&2
10302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 eval "$as_ac_Header=\$ac_header_preproc"
10309 ac_res=`eval echo '${'$as_ac_Header'}'`
10310 { echo "$as_me:$LINENO: result: $ac_res" >&5
10311 echo "${ECHO_T}$ac_res" >&6; }
10314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10320 { { echo "$as_me:$LINENO: error: readline header not found
10321 If you have libedit already installed, see config.log for details on the
10322 failure. It is possible the compiler isn't looking in the proper directory.
10323 Use --without-readline to disable libedit support." >&5
10324 echo "$as_me: error: readline header not found
10325 If you have libedit already installed, see config.log for details on the
10326 failure. It is possible the compiler isn't looking in the proper directory.
10327 Use --without-readline to disable libedit support." >&2;}
10328 { (exit 1); exit 1; }; }
10341 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10342 # not be there at all. Hence, don't complain if not found. We must check
10343 # though, since in yet other versions it is an independent header.
10345 for ac_header in editline/history.h
10347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_res=`eval echo '${'$as_ac_Header'}'`
10355 { echo "$as_me:$LINENO: result: $ac_res" >&5
10356 echo "${ECHO_T}$ac_res" >&6; }
10358 # Is the header compilable?
10359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 $ac_includes_default
10368 #include <$ac_header>
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_header_compiler=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 echo "${ECHO_T}$ac_header_compiler" >&6; }
10399 # Is the header present?
10400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <$ac_header>
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } >/dev/null && {
10423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10426 ac_header_preproc=yes
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_header_preproc=no
10434 rm -f conftest.err conftest.$ac_ext
10435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10436 echo "${ECHO_T}$ac_header_preproc" >&6; }
10438 # So? What about this header?
10439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10445 ac_header_preproc=yes
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461 ## ---------------------------------------- ##
10462 ## Report this to pgsql-bugs@postgresql.org ##
10463 ## ---------------------------------------- ##
10465 ) | sed "s/^/$as_me: WARNING: /" >&2
10468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 eval "$as_ac_Header=\$ac_header_preproc"
10475 ac_res=`eval echo '${'$as_ac_Header'}'`
10476 { echo "$as_me:$LINENO: result: $ac_res" >&5
10477 echo "${ECHO_T}$ac_res" >&6; }
10480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10481 cat >>confdefs.h <<_ACEOF
10482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487 for ac_header in history.h
10489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 ac_res=`eval echo '${'$as_ac_Header'}'`
10497 { echo "$as_me:$LINENO: result: $ac_res" >&5
10498 echo "${ECHO_T}$ac_res" >&6; }
10500 # Is the header compilable?
10501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 $ac_includes_default
10510 #include <$ac_header>
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_compile") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1 >conftest.err
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest.$ac_objext; then
10529 ac_header_compiler=yes
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 ac_header_compiler=no
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539 echo "${ECHO_T}$ac_header_compiler" >&6; }
10541 # Is the header present?
10542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #include <$ac_header>
10552 if { (ac_try="$ac_cpp conftest.$ac_ext"
10553 case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10560 grep -v '^ *+' conftest.er1 >conftest.err
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } >/dev/null && {
10565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10566 test ! -s conftest.err
10568 ac_header_preproc=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_header_preproc=no
10576 rm -f conftest.err conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578 echo "${ECHO_T}$ac_header_preproc" >&6; }
10580 # So? What about this header?
10581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 ## ---------------------------------------- ##
10604 ## Report this to pgsql-bugs@postgresql.org ##
10605 ## ---------------------------------------- ##
10607 ) | sed "s/^/$as_me: WARNING: /" >&2
10610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 eval "$as_ac_Header=\$ac_header_preproc"
10617 ac_res=`eval echo '${'$as_ac_Header'}'`
10618 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619 echo "${ECHO_T}$ac_res" >&6; }
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10629 for ac_header in readline/history.h
10631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_res=`eval echo '${'$as_ac_Header'}'`
10639 { echo "$as_me:$LINENO: result: $ac_res" >&5
10640 echo "${ECHO_T}$ac_res" >&6; }
10642 # Is the header compilable?
10643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 $ac_includes_default
10652 #include <$ac_header>
10654 rm -f conftest.$ac_objext
10655 if { (ac_try="$ac_compile"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_compile") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
10671 ac_header_compiler=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_header_compiler=no
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10681 echo "${ECHO_T}$ac_header_compiler" >&6; }
10683 # Is the header present?
10684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <$ac_header>
10694 if { (ac_try="$ac_cpp conftest.$ac_ext"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } >/dev/null && {
10707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10710 ac_header_preproc=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_header_preproc=no
10718 rm -f conftest.err conftest.$ac_ext
10719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10720 echo "${ECHO_T}$ac_header_preproc" >&6; }
10722 # So? What about this header?
10723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10729 ac_header_preproc=yes
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10745 ## ---------------------------------------- ##
10746 ## Report this to pgsql-bugs@postgresql.org ##
10747 ## ---------------------------------------- ##
10749 ) | sed "s/^/$as_me: WARNING: /" >&2
10752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 eval "$as_ac_Header=\$ac_header_preproc"
10759 ac_res=`eval echo '${'$as_ac_Header'}'`
10760 { echo "$as_me:$LINENO: result: $ac_res" >&5
10761 echo "${ECHO_T}$ac_res" >&6; }
10764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10765 cat >>confdefs.h <<_ACEOF
10766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10783 if test "$with_zlib" = yes; then
10784 if test "${ac_cv_header_zlib_h+set}" = set; then
10785 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10786 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10787 if test "${ac_cv_header_zlib_h+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10791 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10795 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_header_compiler=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_compiler=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10836 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10861 ac_header_preproc=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10883 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10896 ## ---------------------------------------- ##
10897 ## Report this to pgsql-bugs@postgresql.org ##
10898 ## ---------------------------------------- ##
10900 ) | sed "s/^/$as_me: WARNING: /" >&2
10903 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10904 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10905 if test "${ac_cv_header_zlib_h+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 ac_cv_header_zlib_h=$ac_header_preproc
10910 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10911 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10914 if test $ac_cv_header_zlib_h = yes; then
10917 { { echo "$as_me:$LINENO: error: zlib header not found
10918 If you have zlib already installed, see config.log for details on the
10919 failure. It is possible the compiler isn't looking in the proper directory.
10920 Use --without-zlib to disable zlib support." >&5
10921 echo "$as_me: error: zlib header not found
10922 If you have zlib already installed, see config.log for details on the
10923 failure. It is possible the compiler isn't looking in the proper directory.
10924 Use --without-zlib to disable zlib support." >&2;}
10925 { (exit 1); exit 1; }; }
10931 if test "$with_gssapi" = yes ; then
10933 for ac_header in gssapi/gssapi.h
10935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 ac_res=`eval echo '${'$as_ac_Header'}'`
10943 { echo "$as_me:$LINENO: result: $ac_res" >&5
10944 echo "${ECHO_T}$ac_res" >&6; }
10946 # Is the header compilable?
10947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 $ac_includes_default
10956 #include <$ac_header>
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest.$ac_objext; then
10975 ac_header_compiler=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_header_compiler=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6; }
10987 # Is the header present?
10988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <$ac_header>
10998 if { (ac_try="$ac_cpp conftest.$ac_ext"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null && {
11011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11012 test ! -s conftest.err
11014 ac_header_preproc=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_header_preproc=no
11022 rm -f conftest.err conftest.$ac_ext
11023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024 echo "${ECHO_T}$ac_header_preproc" >&6; }
11026 # So? What about this header?
11027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11033 ac_header_preproc=yes
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049 ## ---------------------------------------- ##
11050 ## Report this to pgsql-bugs@postgresql.org ##
11051 ## ---------------------------------------- ##
11053 ) | sed "s/^/$as_me: WARNING: /" >&2
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 eval "$as_ac_Header=\$ac_header_preproc"
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11075 for ac_header in gssapi.h
11077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 ac_res=`eval echo '${'$as_ac_Header'}'`
11085 { echo "$as_me:$LINENO: result: $ac_res" >&5
11086 echo "${ECHO_T}$ac_res" >&6; }
11088 # Is the header compilable?
11089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098 #include <$ac_header>
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11109 grep -v '^ *+' conftest.er1 >conftest.err
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest.$ac_objext; then
11117 ac_header_compiler=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_header_compiler=no
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <$ac_header>
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null && {
11153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11156 ac_header_preproc=yes
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ac_header_preproc=no
11164 rm -f conftest.err conftest.$ac_ext
11165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11166 echo "${ECHO_T}$ac_header_preproc" >&6; }
11168 # So? What about this header?
11169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11175 ac_header_preproc=yes
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191 ## ---------------------------------------- ##
11192 ## Report this to pgsql-bugs@postgresql.org ##
11193 ## ---------------------------------------- ##
11195 ) | sed "s/^/$as_me: WARNING: /" >&2
11198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 eval "$as_ac_Header=\$ac_header_preproc"
11205 ac_res=`eval echo '${'$as_ac_Header'}'`
11206 { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11216 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11217 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11218 { (exit 1); exit 1; }; }
11229 if test "$with_krb5" = yes ; then
11230 if test "${ac_cv_header_krb5_h+set}" = set; then
11231 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11233 if test "${ac_cv_header_krb5_h+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11239 # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 ac_header_compiler=yes
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_header_compiler=no
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11278 echo "${ECHO_T}$ac_header_compiler" >&6; }
11280 # Is the header present?
11281 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11282 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11291 if { (ac_try="$ac_cpp conftest.$ac_ext"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev/null && {
11304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11307 ac_header_preproc=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_preproc=no
11315 rm -f conftest.err conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317 echo "${ECHO_T}$ac_header_preproc" >&6; }
11319 # So? What about this header?
11320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11323 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11325 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11326 ac_header_preproc=yes
11329 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11330 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11332 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11334 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11336 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11338 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11340 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11342 ## ---------------------------------------- ##
11343 ## Report this to pgsql-bugs@postgresql.org ##
11344 ## ---------------------------------------- ##
11346 ) | sed "s/^/$as_me: WARNING: /" >&2
11349 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11350 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11351 if test "${ac_cv_header_krb5_h+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 ac_cv_header_krb5_h=$ac_header_preproc
11356 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11357 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11360 if test $ac_cv_header_krb5_h = yes; then
11363 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11364 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11365 { (exit 1); exit 1; }; }
11371 if test "$with_openssl" = yes ; then
11372 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11373 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11374 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11375 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11379 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11381 # Is the header compilable?
11382 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11383 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 #include <openssl/ssl.h>
11393 rm -f conftest.$ac_objext
11394 if { (ac_try="$ac_compile"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_compile") 2>conftest.er1
11402 grep -v '^ *+' conftest.er1 >conftest.err
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } && {
11407 test -z "$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 } && test -s conftest.$ac_objext; then
11410 ac_header_compiler=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_compiler=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11424 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <openssl/ssl.h>
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null && {
11446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11449 ac_header_preproc=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_header_preproc=no
11457 rm -f conftest.err conftest.$ac_ext
11458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 echo "${ECHO_T}$ac_header_preproc" >&6; }
11461 # So? What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11465 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11467 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11471 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11476 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11478 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11482 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11484 ## ---------------------------------------- ##
11485 ## Report this to pgsql-bugs@postgresql.org ##
11486 ## ---------------------------------------- ##
11488 ) | sed "s/^/$as_me: WARNING: /" >&2
11491 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11492 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11493 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11498 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11499 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11502 if test $ac_cv_header_openssl_ssl_h = yes; then
11505 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11506 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11507 { (exit 1); exit 1; }; }
11511 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11512 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11513 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11514 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11518 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11520 # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11522 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <openssl/err.h>
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11541 grep -v '^ *+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11549 ac_header_compiler=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_header_compiler=no
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11559 echo "${ECHO_T}$ac_header_compiler" >&6; }
11561 # Is the header present?
11562 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11563 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 #include <openssl/err.h>
11572 if { (ac_try="$ac_cpp conftest.$ac_ext"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580 grep -v '^ *+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11588 ac_header_preproc=yes
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_header_preproc=no
11596 rm -f conftest.err conftest.$ac_ext
11597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 echo "${ECHO_T}$ac_header_preproc" >&6; }
11600 # So? What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11604 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11606 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11607 ac_header_preproc=yes
11610 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11611 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11613 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11615 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11617 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11619 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11621 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11623 ## ---------------------------------------- ##
11624 ## Report this to pgsql-bugs@postgresql.org ##
11625 ## ---------------------------------------- ##
11627 ) | sed "s/^/$as_me: WARNING: /" >&2
11630 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11631 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11632 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_cv_header_openssl_err_h=$ac_header_preproc
11637 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11638 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11641 if test $ac_cv_header_openssl_err_h = yes; then
11644 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11645 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11646 { (exit 1); exit 1; }; }
11651 for ac_func in ERR_set_mark
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11675 # include <limits.h>
11677 # include <assert.h>
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 return $ac_func ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest$ac_exeext &&
11721 $as_test_x conftest$ac_exeext; then
11722 eval "$as_ac_var=yes"
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 eval "$as_ac_var=no"
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731 conftest$ac_exeext conftest.$ac_ext
11733 ac_res=`eval echo '${'$as_ac_var'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 if test "$with_pam" = yes ; then
11748 for ac_header in security/pam_appl.h
11750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11761 # Is the header compilable?
11762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 $ac_includes_default
11771 #include <$ac_header>
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_header_compiler=yes
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_header_compiler=no
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 echo "${ECHO_T}$ac_header_compiler" >&6; }
11802 # Is the header present?
11803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <$ac_header>
11813 if { (ac_try="$ac_cpp conftest.$ac_ext"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } >/dev/null && {
11826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11829 ac_header_preproc=yes
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ac_header_preproc=no
11837 rm -f conftest.err conftest.$ac_ext
11838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11839 echo "${ECHO_T}$ac_header_preproc" >&6; }
11841 # So? What about this header?
11842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11848 ac_header_preproc=yes
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864 ## ---------------------------------------- ##
11865 ## Report this to pgsql-bugs@postgresql.org ##
11866 ## ---------------------------------------- ##
11868 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 eval "$as_ac_Header=\$ac_header_preproc"
11878 ac_res=`eval echo '${'$as_ac_Header'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11890 for ac_header in pam/pam_appl.h
11892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11903 # Is the header compilable?
11904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 $ac_includes_default
11913 #include <$ac_header>
11915 rm -f conftest.$ac_objext
11916 if { (ac_try="$ac_compile"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 ac_header_compiler=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_header_compiler=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942 echo "${ECHO_T}$ac_header_compiler" >&6; }
11944 # Is the header present?
11945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 #include <$ac_header>
11955 if { (ac_try="$ac_cpp conftest.$ac_ext"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } >/dev/null && {
11968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11971 ac_header_preproc=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_header_preproc=no
11979 rm -f conftest.err conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6; }
11983 # So? What about this header?
11984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11990 ac_header_preproc=yes
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006 ## ---------------------------------------- ##
12007 ## Report this to pgsql-bugs@postgresql.org ##
12008 ## ---------------------------------------- ##
12010 ) | sed "s/^/$as_me: WARNING: /" >&2
12013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 eval "$as_ac_Header=\$ac_header_preproc"
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021 { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12031 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12032 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12033 { (exit 1); exit 1; }; }
12044 if test "$with_libxml" = yes ; then
12045 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12046 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12047 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12048 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12052 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12054 # Is the header compilable?
12055 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12056 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <libxml/parser.h>
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } && {
12080 test -z "$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 } && test -s conftest.$ac_objext; then
12083 ac_header_compiler=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_header_compiler=no
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12093 echo "${ECHO_T}$ac_header_compiler" >&6; }
12095 # Is the header present?
12096 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12097 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <libxml/parser.h>
12106 if { (ac_try="$ac_cpp conftest.$ac_ext"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } >/dev/null && {
12119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12122 ac_header_preproc=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_preproc=no
12130 rm -f conftest.err conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6; }
12134 # So? What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12141 ac_header_preproc=yes
12144 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12157 ## ---------------------------------------- ##
12158 ## Report this to pgsql-bugs@postgresql.org ##
12159 ## ---------------------------------------- ##
12161 ) | sed "s/^/$as_me: WARNING: /" >&2
12164 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12165 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12166 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_cv_header_libxml_parser_h=$ac_header_preproc
12171 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12172 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12175 if test $ac_cv_header_libxml_parser_h = yes; then
12178 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12179 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12180 { (exit 1); exit 1; }; }
12186 if test "$with_libxslt" = yes ; then
12187 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12188 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12189 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12190 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12194 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12196 # Is the header compilable?
12197 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12198 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 #include <libxslt/xslt.h>
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_compile") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest.$ac_objext; then
12225 ac_header_compiler=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_header_compiler=no
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235 echo "${ECHO_T}$ac_header_compiler" >&6; }
12237 # Is the header present?
12238 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12239 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <libxslt/xslt.h>
12248 if { (ac_try="$ac_cpp conftest.$ac_ext"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } >/dev/null && {
12261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12264 ac_header_preproc=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_header_preproc=no
12272 rm -f conftest.err conftest.$ac_ext
12273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6; }
12276 # So? What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12283 ac_header_preproc=yes
12286 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12299 ## ---------------------------------------- ##
12300 ## Report this to pgsql-bugs@postgresql.org ##
12301 ## ---------------------------------------- ##
12303 ) | sed "s/^/$as_me: WARNING: /" >&2
12306 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12307 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12308 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12313 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12314 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12317 if test $ac_cv_header_libxslt_xslt_h = yes; then
12320 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12321 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12322 { (exit 1); exit 1; }; }
12328 if test "$with_ldap" = yes ; then
12329 if test "$PORTNAME" != "win32"; then
12331 for ac_header in ldap.h
12333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12344 # Is the header compilable?
12345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 #include <$ac_header>
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && {
12370 test -z "$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest.$ac_objext; then
12373 ac_header_compiler=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_header_compiler=no
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6; }
12385 # Is the header present?
12386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12396 if { (ac_try="$ac_cpp conftest.$ac_ext"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null && {
12409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12410 test ! -s conftest.err
12412 ac_header_preproc=yes
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_header_preproc=no
12420 rm -f conftest.err conftest.$ac_ext
12421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12422 echo "${ECHO_T}$ac_header_preproc" >&6; }
12424 # So? What about this header?
12425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12431 ac_header_preproc=yes
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 ## ---------------------------------------- ##
12448 ## Report this to pgsql-bugs@postgresql.org ##
12449 ## ---------------------------------------- ##
12451 ) | sed "s/^/$as_me: WARNING: /" >&2
12454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 eval "$as_ac_Header=\$ac_header_preproc"
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12472 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12473 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12474 { (exit 1); exit 1; }; }
12481 for ac_header in winldap.h
12483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 $ac_includes_default
12496 #include <windows.h>
12499 #include <$ac_header>
12501 rm -f conftest.$ac_objext
12502 if { (ac_try="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 eval "$as_ac_Header=yes"
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 eval "$as_ac_Header=no"
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 ac_res=`eval echo '${'$as_ac_Header'}'`
12529 { echo "$as_me:$LINENO: result: $ac_res" >&5
12530 echo "${ECHO_T}$ac_res" >&6; }
12531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12537 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12538 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12539 { (exit 1); exit 1; }; }
12547 if test "$with_bonjour" = yes ; then
12548 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12549 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12550 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12551 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12555 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12557 # Is the header compilable?
12558 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12559 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12567 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest.$ac_objext; then
12586 ac_header_compiler=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_header_compiler=no
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12596 echo "${ECHO_T}$ac_header_compiler" >&6; }
12598 # Is the header present?
12599 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12600 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12617 grep -v '^ *+' conftest.er1 >conftest.err
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } >/dev/null && {
12622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12625 ac_header_preproc=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_header_preproc=no
12633 rm -f conftest.err conftest.$ac_ext
12634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12635 echo "${ECHO_T}$ac_header_preproc" >&6; }
12637 # So? What about this header?
12638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12640 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12641 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12643 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12644 ac_header_preproc=yes
12647 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12648 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12650 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12652 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12654 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12656 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12658 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12660 ## ---------------------------------------- ##
12661 ## Report this to pgsql-bugs@postgresql.org ##
12662 ## ---------------------------------------- ##
12664 ) | sed "s/^/$as_me: WARNING: /" >&2
12667 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12668 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12669 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12674 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12675 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12678 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12681 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12682 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12683 { (exit 1); exit 1; }; }
12689 # for contrib/uuid-ossp
12690 if test "$with_ossp_uuid" = yes ; then
12692 for ac_header in ossp/uuid.h
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 ac_res=`eval echo '${'$as_ac_Header'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12705 # Is the header compilable?
12706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 $ac_includes_default
12715 #include <$ac_header>
12717 rm -f conftest.$ac_objext
12718 if { (ac_try="$ac_compile"
12719 case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_compile") 2>conftest.er1
12726 grep -v '^ *+' conftest.er1 >conftest.err
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } && {
12731 test -z "$ac_c_werror_flag" ||
12732 test ! -s conftest.err
12733 } && test -s conftest.$ac_objext; then
12734 ac_header_compiler=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_header_compiler=no
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12744 echo "${ECHO_T}$ac_header_compiler" >&6; }
12746 # Is the header present?
12747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 #include <$ac_header>
12757 if { (ac_try="$ac_cpp conftest.$ac_ext"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } >/dev/null && {
12770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12773 ac_header_preproc=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 ac_header_preproc=no
12781 rm -f conftest.err conftest.$ac_ext
12782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12783 echo "${ECHO_T}$ac_header_preproc" >&6; }
12785 # So? What about this header?
12786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12792 ac_header_preproc=yes
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12808 ## ---------------------------------------- ##
12809 ## Report this to pgsql-bugs@postgresql.org ##
12810 ## ---------------------------------------- ##
12812 ) | sed "s/^/$as_me: WARNING: /" >&2
12815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 eval "$as_ac_Header=\$ac_header_preproc"
12822 ac_res=`eval echo '${'$as_ac_Header'}'`
12823 { echo "$as_me:$LINENO: result: $ac_res" >&5
12824 echo "${ECHO_T}$ac_res" >&6; }
12827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12828 cat >>confdefs.h <<_ACEOF
12829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12835 for ac_header in uuid.h
12837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 ac_res=`eval echo '${'$as_ac_Header'}'`
12845 { echo "$as_me:$LINENO: result: $ac_res" >&5
12846 echo "${ECHO_T}$ac_res" >&6; }
12848 # Is the header compilable?
12849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12858 #include <$ac_header>
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_compile") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest.$ac_objext; then
12877 ac_header_compiler=yes
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ac_header_compiler=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
12889 # Is the header present?
12890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <$ac_header>
12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null && {
12913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12916 ac_header_preproc=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_preproc=no
12924 rm -f conftest.err conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12926 echo "${ECHO_T}$ac_header_preproc" >&6; }
12928 # So? What about this header?
12929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12935 ac_header_preproc=yes
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12951 ## ---------------------------------------- ##
12952 ## Report this to pgsql-bugs@postgresql.org ##
12953 ## ---------------------------------------- ##
12955 ) | sed "s/^/$as_me: WARNING: /" >&2
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 eval "$as_ac_Header=\$ac_header_preproc"
12965 ac_res=`eval echo '${'$as_ac_Header'}'`
12966 { echo "$as_me:$LINENO: result: $ac_res" >&5
12967 echo "${ECHO_T}$ac_res" >&6; }
12970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12971 cat >>confdefs.h <<_ACEOF
12972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12976 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12977 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12978 { (exit 1); exit 1; }; }
12991 ## Types, structures, compiler characteristics
12994 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12995 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12996 if test "${ac_cv_c_bigendian+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 # See if sys/param.h defines the BYTE_ORDER macro.
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <sys/types.h>
13007 #include <sys/param.h>
13012 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13013 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13014 bogus endian macros
13021 rm -f conftest.$ac_objext
13022 if { (ac_try="$ac_compile"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_compile") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } && {
13035 test -z "$ac_c_werror_flag" ||
13036 test ! -s conftest.err
13037 } && test -s conftest.$ac_objext; then
13038 # It does; now see whether it defined to BIG_ENDIAN or not.
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <sys/types.h>
13046 #include <sys/param.h>
13051 #if BYTE_ORDER != BIG_ENDIAN
13059 rm -f conftest.$ac_objext
13060 if { (ac_try="$ac_compile"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_compile") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } && {
13073 test -z "$ac_c_werror_flag" ||
13074 test ! -s conftest.err
13075 } && test -s conftest.$ac_objext; then
13076 ac_cv_c_bigendian=yes
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 ac_cv_c_bigendian=no
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 # It does not; compile a test program.
13090 if test "$cross_compiling" = yes; then
13091 # try to guess the endianness by grepping values into an object file
13092 ac_cv_c_bigendian=unknown
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13099 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13100 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13101 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13102 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13103 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13104 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13108 _ascii (); _ebcdic ();
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest.$ac_objext; then
13130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13131 ac_cv_c_bigendian=yes
13133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13134 if test "$ac_cv_c_bigendian" = unknown; then
13135 ac_cv_c_bigendian=no
13137 # finding both strings is unlikely to happen, but who knows?
13138 ac_cv_c_bigendian=unknown
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13161 /* Are we little or big endian? From Harbison&Steele. */
13165 char c[sizeof (long int)];
13168 return u.c[sizeof (long int) - 1] == 1;
13174 rm -f conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_cv_c_bigendian=no
13196 echo "$as_me: program exited with status $ac_status" >&5
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ( exit $ac_status )
13201 ac_cv_c_bigendian=yes
13203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13213 case $ac_cv_c_bigendian in
13216 cat >>confdefs.h <<\_ACEOF
13217 #define WORDS_BIGENDIAN 1
13223 { { echo "$as_me:$LINENO: error: unknown endianness
13224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13225 echo "$as_me: error: unknown endianness
13226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13227 { (exit 1); exit 1; }; } ;;
13230 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13232 if test "${ac_cv_c_const+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13245 /* FIXME: Include the comments suggested by Paul. */
13246 #ifndef __cplusplus
13247 /* Ultrix mips cc rejects this. */
13248 typedef int charset[2];
13250 /* SunOS 4.1.1 cc rejects this. */
13251 char const *const *pcpcc;
13253 /* NEC SVR4.0.2 mips cc rejects this. */
13254 struct point {int x, y;};
13255 static struct point const zero = {0,0};
13256 /* AIX XL C 1.02.0.0 rejects this.
13257 It does not let you subtract one const X* pointer from another in
13258 an arm of an if-expression whose if-part is not a constant
13260 const char *g = "string";
13261 pcpcc = &g + (g ? g-g : 0);
13262 /* HPUX 7.0 cc rejects these. */
13264 ppc = (char**) pcpcc;
13265 pcpcc = (char const *const *) ppc;
13266 { /* SCO 3.2v4 cc rejects this. */
13268 char const *s = 0 ? (char *) 0 : (char const *) 0;
13273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13274 int x[] = {25, 17};
13275 const int *foo = &x[0];
13278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13279 typedef const int *iptr;
13283 { /* AIX XL C 1.02.0.0 rejects this saying
13284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13285 struct s { int j; const int *ap[3]; };
13286 struct s *b; b->j = 5;
13288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13289 const int foo = 10;
13290 if (!foo) return 0;
13292 return !cs[0] && !zero.x;
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest.$ac_objext; then
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13326 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13327 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13328 if test $ac_cv_c_const = no; then
13330 cat >>confdefs.h <<\_ACEOF
13336 { echo "$as_me:$LINENO: checking for inline" >&5
13337 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13338 if test "${ac_cv_c_inline+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 for ac_kw in inline __inline__ __inline; do
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #ifndef __cplusplus
13351 static $ac_kw foo_t static_foo () {return 0; }
13352 $ac_kw foo_t foo () {return 0; }
13356 rm -f conftest.$ac_objext
13357 if { (ac_try="$ac_compile"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compile") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } && {
13370 test -z "$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13372 } && test -s conftest.$ac_objext; then
13373 ac_cv_c_inline=$ac_kw
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 test "$ac_cv_c_inline" != no && break
13386 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13387 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13390 case $ac_cv_c_inline in
13393 case $ac_cv_c_inline in
13395 *) ac_val=$ac_cv_c_inline;;
13397 cat >>confdefs.h <<_ACEOF
13398 #ifndef __cplusplus
13399 #define inline $ac_val
13405 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13406 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13407 if test "${ac_cv_c_stringize+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13418 char *s = x(teststring);
13420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 $EGREP "#teststring" >/dev/null 2>&1; then
13422 ac_cv_c_stringize=no
13424 ac_cv_c_stringize=yes
13429 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13430 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13431 if test $ac_cv_c_stringize = yes; then
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_STRINGIZE 1
13439 { echo "$as_me:$LINENO: checking for signed types" >&5
13440 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13441 if test "${pgac_cv_c_signed+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13454 signed char c; signed short s; signed int i;
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest.$ac_objext; then
13476 pgac_cv_c_signed=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 pgac_cv_c_signed=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13487 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13488 if test x"$pgac_cv_c_signed" = xno ; then
13490 cat >>confdefs.h <<\_ACEOF
13495 { echo "$as_me:$LINENO: checking for working volatile" >&5
13496 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13497 if test "${ac_cv_c_volatile+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13512 int * volatile y = (int *) 0;
13518 rm -f conftest.$ac_objext
13519 if { (ac_try="$ac_compile"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 ac_cv_c_volatile=yes
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_cv_c_volatile=no
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13546 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13547 if test $ac_cv_c_volatile = no; then
13549 cat >>confdefs.h <<\_ACEOF
13555 { echo "$as_me:$LINENO: checking for __func__" >&5
13556 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13557 if test "${pgac_cv_funcname_func_support+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13570 printf("%s\n", __func__);
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_compile") 2>conftest.er1
13584 grep -v '^ *+' conftest.er1 >conftest.err
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } && {
13589 test -z "$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 } && test -s conftest.$ac_objext; then
13592 pgac_cv_funcname_func_support=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 pgac_cv_funcname_func_support=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13603 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13604 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13606 cat >>confdefs.h <<\_ACEOF
13607 #define HAVE_FUNCNAME__FUNC 1
13611 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13612 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13613 if test "${pgac_cv_funcname_function_support+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13626 printf("%s\n", __FUNCTION__);
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && {
13645 test -z "$ac_c_werror_flag" ||
13646 test ! -s conftest.err
13647 } && test -s conftest.$ac_objext; then
13648 pgac_cv_funcname_function_support=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 pgac_cv_funcname_function_support=no
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13659 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13660 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_FUNCNAME__FUNCTION 1
13668 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13670 if test "${ac_cv_struct_tm+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 #include <sys/types.h>
13686 int *p = &tm.tm_sec;
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } && {
13706 test -z "$ac_c_werror_flag" ||
13707 test ! -s conftest.err
13708 } && test -s conftest.$ac_objext; then
13709 ac_cv_struct_tm=time.h
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_struct_tm=sys/time.h
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13720 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13721 if test $ac_cv_struct_tm = sys/time.h; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define TM_IN_SYS_TIME 1
13729 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #include <sys/types.h>
13741 #include <$ac_cv_struct_tm>
13747 static struct tm ac_aggr;
13748 if (ac_aggr.tm_zone)
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_cv_member_struct_tm_tm_zone=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 #include <sys/types.h>
13783 #include <$ac_cv_struct_tm>
13789 static struct tm ac_aggr;
13790 if (sizeof ac_aggr.tm_zone)
13796 rm -f conftest.$ac_objext
13797 if { (ac_try="$ac_compile"
13798 case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_compile") 2>conftest.er1
13805 grep -v '^ *+' conftest.er1 >conftest.err
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } && {
13810 test -z "$ac_c_werror_flag" ||
13811 test ! -s conftest.err
13812 } && test -s conftest.$ac_objext; then
13813 ac_cv_member_struct_tm_tm_zone=yes
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ac_cv_member_struct_tm_tm_zone=no
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13827 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13828 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_STRUCT_TM_TM_ZONE 1
13837 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13839 cat >>confdefs.h <<\_ACEOF
13840 #define HAVE_TM_ZONE 1
13844 { echo "$as_me:$LINENO: checking for tzname" >&5
13845 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13846 if test "${ac_cv_var_tzname+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13856 #ifndef tzname /* For SGI. */
13857 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest$ac_exeext &&
13885 $as_test_x conftest$ac_exeext; then
13886 ac_cv_var_tzname=yes
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_cv_var_tzname=no
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13897 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13898 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13899 if test $ac_cv_var_tzname = yes; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_TZNAME 1
13907 { echo "$as_me:$LINENO: checking for union semun" >&5
13908 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13909 if test "${ac_cv_type_union_semun+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <sys/types.h>
13919 #include <sys/ipc.h>
13920 #include <sys/sem.h>
13922 typedef union semun ac__type_new_;
13926 if ((ac__type_new_ *) 0)
13928 if (sizeof (ac__type_new_))
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13943 grep -v '^ *+' conftest.er1 >conftest.err
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && {
13948 test -z "$ac_c_werror_flag" ||
13949 test ! -s conftest.err
13950 } && test -s conftest.$ac_objext; then
13951 ac_cv_type_union_semun=yes
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ac_cv_type_union_semun=no
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13962 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13963 if test $ac_cv_type_union_semun = yes; then
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_UNION_SEMUN 1
13972 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13973 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13974 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 #include <sys/types.h>
13984 #ifdef HAVE_SYS_UN_H
13985 #include <sys/un.h>
13989 typedef struct sockaddr_un ac__type_new_;
13993 if ((ac__type_new_ *) 0)
13995 if (sizeof (ac__type_new_))
14001 rm -f conftest.$ac_objext
14002 if { (ac_try="$ac_compile"
14003 case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_compile") 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && {
14015 test -z "$ac_c_werror_flag" ||
14016 test ! -s conftest.err
14017 } && test -s conftest.$ac_objext; then
14018 ac_cv_type_struct_sockaddr_un=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_cv_type_struct_sockaddr_un=no
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14029 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14030 if test $ac_cv_type_struct_sockaddr_un = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE_STRUCT_SOCKADDR_UN 1
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_UNIX_SOCKETS 1
14043 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14044 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14045 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <sys/types.h>
14055 #ifdef HAVE_SYS_SOCKET_H
14056 #include <sys/socket.h>
14060 typedef struct sockaddr_storage ac__type_new_;
14064 if ((ac__type_new_ *) 0)
14066 if (sizeof (ac__type_new_))
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_compile") 2>conftest.er1
14081 grep -v '^ *+' conftest.er1 >conftest.err
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest.$ac_objext; then
14089 ac_cv_type_struct_sockaddr_storage=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_type_struct_sockaddr_storage=no
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14100 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14101 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14110 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14111 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14112 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 #include <sys/types.h>
14122 #ifdef HAVE_SYS_SOCKET_H
14123 #include <sys/socket.h>
14130 static struct sockaddr_storage ac_aggr;
14131 if (ac_aggr.ss_family)
14137 rm -f conftest.$ac_objext
14138 if { (ac_try="$ac_compile"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_compile") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest.$ac_objext; then
14154 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14166 #ifdef HAVE_SYS_SOCKET_H
14167 #include <sys/socket.h>
14174 static struct sockaddr_storage ac_aggr;
14175 if (sizeof ac_aggr.ss_family)
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest.$ac_objext; then
14198 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 ac_cv_member_struct_sockaddr_storage_ss_family=no
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14212 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14213 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14221 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14222 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14223 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <sys/types.h>
14233 #ifdef HAVE_SYS_SOCKET_H
14234 #include <sys/socket.h>
14241 static struct sockaddr_storage ac_aggr;
14242 if (ac_aggr.__ss_family)
14248 rm -f conftest.$ac_objext
14249 if { (ac_try="$ac_compile"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_compile") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest.$ac_objext; then
14265 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <sys/types.h>
14277 #ifdef HAVE_SYS_SOCKET_H
14278 #include <sys/socket.h>
14285 static struct sockaddr_storage ac_aggr;
14286 if (sizeof ac_aggr.__ss_family)
14292 rm -f conftest.$ac_objext
14293 if { (ac_try="$ac_compile"
14294 case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_compile") 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } && {
14306 test -z "$ac_c_werror_flag" ||
14307 test ! -s conftest.err
14308 } && test -s conftest.$ac_objext; then
14309 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_member_struct_sockaddr_storage___ss_family=no
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14323 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14324 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14332 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14333 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14334 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14344 #ifdef HAVE_SYS_SOCKET_H
14345 #include <sys/socket.h>
14352 static struct sockaddr_storage ac_aggr;
14353 if (ac_aggr.ss_len)
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_compile") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && {
14373 test -z "$ac_c_werror_flag" ||
14374 test ! -s conftest.err
14375 } && test -s conftest.$ac_objext; then
14376 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 #include <sys/types.h>
14388 #ifdef HAVE_SYS_SOCKET_H
14389 #include <sys/socket.h>
14396 static struct sockaddr_storage ac_aggr;
14397 if (sizeof ac_aggr.ss_len)
14403 rm -f conftest.$ac_objext
14404 if { (ac_try="$ac_compile"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_compile") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest.$ac_objext; then
14420 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_member_struct_sockaddr_storage_ss_len=no
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14434 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14435 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14443 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14444 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14445 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <sys/types.h>
14455 #ifdef HAVE_SYS_SOCKET_H
14456 #include <sys/socket.h>
14463 static struct sockaddr_storage ac_aggr;
14464 if (ac_aggr.__ss_len)
14470 rm -f conftest.$ac_objext
14471 if { (ac_try="$ac_compile"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_compile") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest.$ac_objext; then
14487 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #ifdef HAVE_SYS_SOCKET_H
14500 #include <sys/socket.h>
14507 static struct sockaddr_storage ac_aggr;
14508 if (sizeof ac_aggr.__ss_len)
14514 rm -f conftest.$ac_objext
14515 if { (ac_try="$ac_compile"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_compile") 2>conftest.er1
14523 grep -v '^ *+' conftest.er1 >conftest.err
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest.$ac_objext; then
14531 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_member_struct_sockaddr_storage___ss_len=no
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14545 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14546 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14554 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14555 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14556 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <sys/types.h>
14566 #ifdef HAVE_SYS_SOCKET_H
14567 #include <sys/socket.h>
14574 static struct sockaddr ac_aggr;
14575 if (ac_aggr.sa_len)
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_compile") 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } && {
14595 test -z "$ac_c_werror_flag" ||
14596 test ! -s conftest.err
14597 } && test -s conftest.$ac_objext; then
14598 ac_cv_member_struct_sockaddr_sa_len=yes
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <sys/types.h>
14610 #ifdef HAVE_SYS_SOCKET_H
14611 #include <sys/socket.h>
14618 static struct sockaddr ac_aggr;
14619 if (sizeof ac_aggr.sa_len)
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_cv_member_struct_sockaddr_sa_len=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_member_struct_sockaddr_sa_len=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14656 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14657 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14666 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14667 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14668 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <sys/types.h>
14678 #include <sys/socket.h>
14682 typedef struct addrinfo ac__type_new_;
14686 if ((ac__type_new_ *) 0)
14688 if (sizeof (ac__type_new_))
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest.$ac_objext; then
14711 ac_cv_type_struct_addrinfo=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_type_struct_addrinfo=no
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14722 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14723 if test $ac_cv_type_struct_addrinfo = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_STRUCT_ADDRINFO 1
14733 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14734 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14735 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <sys/param.h>
14745 #include <sys/types.h>
14746 #include <sys/socket.h>
14747 #include <sys/ucred.h>
14749 typedef struct cmsgcred ac__type_new_;
14753 if ((ac__type_new_ *) 0)
14755 if (sizeof (ac__type_new_))
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
14778 ac_cv_type_struct_cmsgcred=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_type_struct_cmsgcred=no
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14789 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14790 if test $ac_cv_type_struct_cmsgcred = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_STRUCT_CMSGCRED 1
14798 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14799 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14800 if test "${ac_cv_type_struct_fcred+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <sys/param.h>
14810 #include <sys/types.h>
14811 #include <sys/socket.h>
14812 #include <sys/ucred.h>
14814 typedef struct fcred ac__type_new_;
14818 if ((ac__type_new_ *) 0)
14820 if (sizeof (ac__type_new_))
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest.$ac_objext; then
14843 ac_cv_type_struct_fcred=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_type_struct_fcred=no
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14854 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14855 if test $ac_cv_type_struct_fcred = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_STRUCT_FCRED 1
14863 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14864 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14865 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 cat >conftest.$ac_ext <<_ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 #include <sys/param.h>
14875 #include <sys/types.h>
14876 #include <sys/socket.h>
14877 #include <sys/ucred.h>
14879 typedef struct sockcred ac__type_new_;
14883 if ((ac__type_new_ *) 0)
14885 if (sizeof (ac__type_new_))
14891 rm -f conftest.$ac_objext
14892 if { (ac_try="$ac_compile"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_compile") 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest.$ac_objext; then
14908 ac_cv_type_struct_sockcred=yes
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_cv_type_struct_sockcred=no
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14919 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14920 if test $ac_cv_type_struct_sockcred = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_STRUCT_SOCKCRED 1
14930 { echo "$as_me:$LINENO: checking for struct option" >&5
14931 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14932 if test "${ac_cv_type_struct_option+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #ifdef HAVE_GETOPT_H
14942 #include <getopt.h>
14945 typedef struct option ac__type_new_;
14949 if ((ac__type_new_ *) 0)
14951 if (sizeof (ac__type_new_))
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && {
14971 test -z "$ac_c_werror_flag" ||
14972 test ! -s conftest.err
14973 } && test -s conftest.$ac_objext; then
14974 ac_cv_type_struct_option=yes
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_cv_type_struct_option=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14985 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14986 if test $ac_cv_type_struct_option = yes; then
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_STRUCT_OPTION 1
14996 if test "$with_zlib" = yes; then
14997 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14998 # did not). While we could work around the lack of z_streamp, it
14999 # seems unwise to encourage people to use such old zlib versions...
15000 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15001 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15002 if test "${ac_cv_type_z_streamp+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15013 typedef z_streamp ac__type_new_;
15017 if ((ac__type_new_ *) 0)
15019 if (sizeof (ac__type_new_))
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15042 ac_cv_type_z_streamp=yes
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_type_z_streamp=no
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15053 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15054 if test $ac_cv_type_z_streamp = yes; then
15057 { { echo "$as_me:$LINENO: error: zlib version is too old
15058 Use --without-zlib to disable zlib support." >&5
15059 echo "$as_me: error: zlib version is too old
15060 Use --without-zlib to disable zlib support." >&2;}
15061 { (exit 1); exit 1; }; }
15066 if test "$with_krb5" = yes; then
15067 # Check for differences between MIT and Heimdal (KTH) releases
15068 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15069 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15070 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15084 static krb5_ticket ac_aggr;
15085 if (ac_aggr.enc_part2)
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_compile") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest.$ac_objext; then
15108 ac_cv_member_krb5_ticket_enc_part2=yes
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 cat >conftest.$ac_ext <<_ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15124 static krb5_ticket ac_aggr;
15125 if (sizeof ac_aggr.enc_part2)
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest.$ac_objext; then
15148 ac_cv_member_krb5_ticket_enc_part2=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_cv_member_krb5_ticket_enc_part2=no
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15162 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15163 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_KRB5_TICKET_ENC_PART2 1
15171 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15172 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15173 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15187 static krb5_ticket ac_aggr;
15188 if (ac_aggr.client)
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest.$ac_objext; then
15211 ac_cv_member_krb5_ticket_client=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15227 static krb5_ticket ac_aggr;
15228 if (sizeof ac_aggr.client)
15234 rm -f conftest.$ac_objext
15235 if { (ac_try="$ac_compile"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_compile") 2>conftest.er1
15243 grep -v '^ *+' conftest.er1 >conftest.err
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } && {
15248 test -z "$ac_c_werror_flag" ||
15249 test ! -s conftest.err
15250 } && test -s conftest.$ac_objext; then
15251 ac_cv_member_krb5_ticket_client=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_cv_member_krb5_ticket_client=no
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15265 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15266 if test $ac_cv_member_krb5_ticket_client = yes; then
15268 cat >>confdefs.h <<_ACEOF
15269 #define HAVE_KRB5_TICKET_CLIENT 1
15274 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15275 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15276 { (exit 1); exit 1; }; }
15281 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15282 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15283 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15297 static krb5_error ac_aggr;
15298 if (ac_aggr.text.data)
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_compile") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && {
15318 test -z "$ac_c_werror_flag" ||
15319 test ! -s conftest.err
15320 } && test -s conftest.$ac_objext; then
15321 ac_cv_member_krb5_error_text_data=yes
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15337 static krb5_error ac_aggr;
15338 if (sizeof ac_aggr.text.data)
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_compile") 2>conftest.er1
15353 grep -v '^ *+' conftest.er1 >conftest.err
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } && {
15358 test -z "$ac_c_werror_flag" ||
15359 test ! -s conftest.err
15360 } && test -s conftest.$ac_objext; then
15361 ac_cv_member_krb5_error_text_data=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_member_krb5_error_text_data=no
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15375 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15376 if test $ac_cv_member_krb5_error_text_data = yes; then
15378 cat >>confdefs.h <<_ACEOF
15379 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15384 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15385 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15386 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15400 static krb5_error ac_aggr;
15401 if (ac_aggr.e_data)
15407 rm -f conftest.$ac_objext
15408 if { (ac_try="$ac_compile"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_compile") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && {
15421 test -z "$ac_c_werror_flag" ||
15422 test ! -s conftest.err
15423 } && test -s conftest.$ac_objext; then
15424 ac_cv_member_krb5_error_e_data=yes
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15440 static krb5_error ac_aggr;
15441 if (sizeof ac_aggr.e_data)
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_compile") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } && {
15461 test -z "$ac_c_werror_flag" ||
15462 test ! -s conftest.err
15463 } && test -s conftest.$ac_objext; then
15464 ac_cv_member_krb5_error_e_data=yes
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_cv_member_krb5_error_e_data=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15478 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15479 if test $ac_cv_member_krb5_error_e_data = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_KRB5_ERROR_E_DATA 1
15487 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15488 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15489 { (exit 1); exit 1; }; }
15495 # Win32 requires headers to be loaded for __stdcall, so can't use
15496 # AC_CHECK_FUNCS here.
15497 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15498 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15509 krb5_free_unparsed_name(NULL,NULL);
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_link") 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } && {
15528 test -z "$ac_c_werror_flag" ||
15529 test ! -s conftest.err
15530 } && test -s conftest$ac_exeext &&
15531 $as_test_x conftest$ac_exeext; then
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15537 { echo "$as_me:$LINENO: result: yes" >&5
15538 echo "${ECHO_T}yes" >&6; }
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 { echo "$as_me:$LINENO: result: no" >&5
15544 echo "${ECHO_T}no" >&6; }
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548 conftest$ac_exeext conftest.$ac_ext
15553 ## Functions, global variables
15556 { echo "$as_me:$LINENO: checking for int timezone" >&5
15557 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15558 if test "${pgac_cv_var_int_timezone+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15573 res = timezone / 60;
15575 res = _timezone / 60;
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15599 pgac_cv_var_int_timezone=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 pgac_cv_var_int_timezone=no
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608 conftest$ac_exeext conftest.$ac_ext
15610 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15611 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15612 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_INT_TIMEZONE
15619 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15620 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15621 if test "${ac_cv_func_accept_return+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 if test "${ac_cv_func_accept_arg1+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 if test "${ac_cv_func_accept_arg2+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 if test "${ac_cv_func_accept_arg3+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15634 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15635 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15636 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 #ifdef HAVE_SYS_TYPES_H
15644 #include <sys/types.h>
15646 #ifdef HAVE_SYS_SOCKET_H
15647 #include <sys/socket.h>
15649 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_compile") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest.$ac_objext; then
15675 ac_not_found=no; break 4
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 if test "$ac_not_found" = yes; then
15689 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15690 echo "$as_me: error: could not determine argument types" >&2;}
15691 { (exit 1); exit 1; }; }
15693 if test "$ac_cv_func_accept_arg3" = "void"; then
15694 ac_cv_func_accept_arg3=int
15704 { 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
15705 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15707 cat >>confdefs.h <<_ACEOF
15708 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15712 cat >>confdefs.h <<_ACEOF
15713 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15717 cat >>confdefs.h <<_ACEOF
15718 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15722 cat >>confdefs.h <<_ACEOF
15723 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15727 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15728 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15729 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <sys/time.h>
15742 struct timeval *tp;
15743 struct timezone *tzp;
15744 gettimeofday(tp,tzp);
15749 rm -f conftest.$ac_objext
15750 if { (ac_try="$ac_compile"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_compile") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest.$ac_objext; then
15766 pgac_cv_func_gettimeofday_1arg=no
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 pgac_cv_func_gettimeofday_1arg=yes
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15777 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15778 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15780 cat >>confdefs.h <<\_ACEOF
15781 #define GETTIMEOFDAY_1ARG
15809 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15825 #define $ac_func innocuous_$ac_func
15827 /* System header to define __stub macros and hopefully few prototypes,
15828 which can conflict with char $ac_func (); below.
15829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15830 <limits.h> exists even on freestanding compilers. */
15833 # include <limits.h>
15835 # include <assert.h>
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15847 /* The GNU C library defines this for functions which it implements
15848 to always fail with ENOSYS. Some functions are actually named
15849 something starting with __ and the normal name is an alias. */
15850 #if defined __stub_$ac_func || defined __stub___$ac_func
15857 return $ac_func ();
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext &&
15879 $as_test_x conftest$ac_exeext; then
15880 eval "$as_ac_var=yes"
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 eval "$as_ac_var=no"
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15891 ac_res=`eval echo '${'$as_ac_var'}'`
15892 { echo "$as_me:$LINENO: result: $ac_res" >&5
15893 echo "${ECHO_T}$ac_res" >&6; }
15894 if test `eval echo '${'$as_ac_var'}'` = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15903 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15904 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15905 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <unistd.h>
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_cv_have_decl_fdatasync=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_have_decl_fdatasync=no
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15955 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15956 if test $ac_cv_have_decl_fdatasync = yes; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_DECL_FDATASYNC 1
15964 cat >>confdefs.h <<_ACEOF
15965 #define HAVE_DECL_FDATASYNC 0
15972 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15973 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15974 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15988 #ifndef posix_fadvise
15989 (void) posix_fadvise;
15996 rm -f conftest.$ac_objext
15997 if { (ac_try="$ac_compile"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 ac_cv_have_decl_posix_fadvise=yes
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_cv_have_decl_posix_fadvise=no
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16024 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16025 if test $ac_cv_have_decl_posix_fadvise = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define HAVE_DECL_POSIX_FADVISE 1
16033 cat >>confdefs.h <<_ACEOF
16034 #define HAVE_DECL_POSIX_FADVISE 0
16041 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16042 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16043 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 $ac_includes_default
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } && {
16078 test -z "$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16080 } && test -s conftest.$ac_objext; then
16081 ac_cv_have_decl_strlcat=yes
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_cv_have_decl_strlcat=no
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16092 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16093 if test $ac_cv_have_decl_strlcat = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_DECL_STRLCAT 1
16101 cat >>confdefs.h <<_ACEOF
16102 #define HAVE_DECL_STRLCAT 0
16107 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16108 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16109 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16118 $ac_includes_default
16130 rm -f conftest.$ac_objext
16131 if { (ac_try="$ac_compile"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_compile") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } && {
16144 test -z "$ac_c_werror_flag" ||
16145 test ! -s conftest.err
16146 } && test -s conftest.$ac_objext; then
16147 ac_cv_have_decl_strlcpy=yes
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_cv_have_decl_strlcpy=no
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16158 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16159 if test $ac_cv_have_decl_strlcpy = yes; then
16161 cat >>confdefs.h <<_ACEOF
16162 #define HAVE_DECL_STRLCPY 1
16167 cat >>confdefs.h <<_ACEOF
16168 #define HAVE_DECL_STRLCPY 0
16175 # This is probably only present on Darwin, but may as well check always
16176 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16177 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16178 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16192 #ifndef F_FULLFSYNC
16193 (void) F_FULLFSYNC;
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_compile") 2>conftest.er1
16209 grep -v '^ *+' conftest.er1 >conftest.err
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } && {
16214 test -z "$ac_c_werror_flag" ||
16215 test ! -s conftest.err
16216 } && test -s conftest.$ac_objext; then
16217 ac_cv_have_decl_F_FULLFSYNC=yes
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16222 ac_cv_have_decl_F_FULLFSYNC=no
16225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16228 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16229 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16231 cat >>confdefs.h <<_ACEOF
16232 #define HAVE_DECL_F_FULLFSYNC 1
16237 cat >>confdefs.h <<_ACEOF
16238 #define HAVE_DECL_F_FULLFSYNC 0
16247 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16248 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16249 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 $ac_includes_default
16259 #include <netinet/in.h>
16261 typedef struct sockaddr_in6 ac__type_new_;
16265 if ((ac__type_new_ *) 0)
16267 if (sizeof (ac__type_new_))
16273 rm -f conftest.$ac_objext
16274 if { (ac_try="$ac_compile"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_compile") 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && {
16287 test -z "$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16289 } && test -s conftest.$ac_objext; then
16290 ac_cv_type_struct_sockaddr_in6=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_type_struct_sockaddr_in6=no
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16301 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16302 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IPV6 1
16313 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16314 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16315 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 #include <machine/vmparam.h>
16325 #include <sys/exec.h>
16330 PS_STRINGS->ps_nargvstr = 1;
16331 PS_STRINGS->ps_argvstr = "foo";
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext &&
16353 $as_test_x conftest$ac_exeext; then
16354 pgac_cv_var_PS_STRINGS=yes
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 pgac_cv_var_PS_STRINGS=no
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363 conftest$ac_exeext conftest.$ac_ext
16365 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16366 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16367 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define HAVE_PS_STRINGS
16376 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16377 # is missing. Yes, there are machines that have only one. We may
16378 # also decide to use snprintf.c if snprintf() is present but does not
16379 # have all the features we need --- see below.
16381 if test "$PORTNAME" = "win32"; then
16382 # Win32 gets snprintf.c built unconditionally.
16384 # To properly translate all NLS languages strings, we must support the
16385 # *printf() %$ format, which allows *printf() arguments to be selected
16386 # by position in the translated string.
16388 # libintl versions < 0.13 use the native *printf() functions, and Win32
16389 # *printf() doesn't understand %$, so we must use our /port versions,
16390 # which do understand %$. libintl versions >= 0.13 include their own
16391 # *printf versions on Win32. The libintl 0.13 release note text is:
16393 # C format strings with positions, as they arise when a translator
16394 # needs to reorder a sentence, are now supported on all platforms.
16395 # On those few platforms (NetBSD and Woe32) for which the native
16396 # printf()/fprintf()/... functions don't support such format
16397 # strings, replacements are provided through <libintl.h>.
16399 # We could use libintl >= 0.13's *printf() if we were sure that we had
16400 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16401 # to guarantee that, it is best to just use our own, so we are sure to
16402 # get %$ support. In include/port.h we disable the *printf() macros
16403 # that might have been defined by libintl.
16405 # We do this unconditionally whether NLS is used or not so we are sure
16406 # that all Win32 libraries and binaries behave the same.
16407 pgac_need_repl_snprintf=yes
16409 pgac_need_repl_snprintf=no
16411 for ac_func in snprintf
16413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16427 #define $ac_func innocuous_$ac_func
16429 /* System header to define __stub macros and hopefully few prototypes,
16430 which can conflict with char $ac_func (); below.
16431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432 <limits.h> exists even on freestanding compilers. */
16435 # include <limits.h>
16437 # include <assert.h>
16442 /* Override any GCC internal prototype to avoid an error.
16443 Use char because int might match the return type of a GCC
16444 builtin and then its argument prototype would still apply. */
16449 /* The GNU C library defines this for functions which it implements
16450 to always fail with ENOSYS. Some functions are actually named
16451 something starting with __ and the normal name is an alias. */
16452 #if defined __stub_$ac_func || defined __stub___$ac_func
16459 return $ac_func ();
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_link") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext &&
16481 $as_test_x conftest$ac_exeext; then
16482 eval "$as_ac_var=yes"
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 eval "$as_ac_var=no"
16490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16491 conftest$ac_exeext conftest.$ac_ext
16493 ac_res=`eval echo '${'$as_ac_var'}'`
16494 { echo "$as_me:$LINENO: result: $ac_res" >&5
16495 echo "${ECHO_T}$ac_res" >&6; }
16496 if test `eval echo '${'$as_ac_var'}'` = yes; then
16497 cat >>confdefs.h <<_ACEOF
16498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16502 pgac_need_repl_snprintf=yes
16507 for ac_func in vsnprintf
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16523 #define $ac_func innocuous_$ac_func
16525 /* System header to define __stub macros and hopefully few prototypes,
16526 which can conflict with char $ac_func (); below.
16527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16528 <limits.h> exists even on freestanding compilers. */
16531 # include <limits.h>
16533 # include <assert.h>
16538 /* Override any GCC internal prototype to avoid an error.
16539 Use char because int might match the return type of a GCC
16540 builtin and then its argument prototype would still apply. */
16545 /* The GNU C library defines this for functions which it implements
16546 to always fail with ENOSYS. Some functions are actually named
16547 something starting with __ and the normal name is an alias. */
16548 #if defined __stub_$ac_func || defined __stub___$ac_func
16555 return $ac_func ();
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext &&
16577 $as_test_x conftest$ac_exeext; then
16578 eval "$as_ac_var=yes"
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 eval "$as_ac_var=no"
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16589 ac_res=`eval echo '${'$as_ac_var'}'`
16590 { echo "$as_me:$LINENO: result: $ac_res" >&5
16591 echo "${ECHO_T}$ac_res" >&6; }
16592 if test `eval echo '${'$as_ac_var'}'` = yes; then
16593 cat >>confdefs.h <<_ACEOF
16594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16598 pgac_need_repl_snprintf=yes
16605 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16606 # include/c.h will provide declarations. Note this is a separate test
16607 # from whether the functions exist in the C library --- there are
16608 # systems that have the functions but don't bother to declare them :-(
16610 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16611 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16612 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest.$ac_objext; then
16650 ac_cv_have_decl_snprintf=yes
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 ac_cv_have_decl_snprintf=no
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16661 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16662 if test $ac_cv_have_decl_snprintf = yes; then
16664 cat >>confdefs.h <<_ACEOF
16665 #define HAVE_DECL_SNPRINTF 1
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_DECL_SNPRINTF 0
16676 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16677 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16678 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.$ac_objext; then
16716 ac_cv_have_decl_vsnprintf=yes
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_cv_have_decl_vsnprintf=no
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16727 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16728 if test $ac_cv_have_decl_vsnprintf = yes; then
16730 cat >>confdefs.h <<_ACEOF
16731 #define HAVE_DECL_VSNPRINTF 1
16736 cat >>confdefs.h <<_ACEOF
16737 #define HAVE_DECL_VSNPRINTF 0
16746 { echo "$as_me:$LINENO: checking for isinf" >&5
16747 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16748 if test "${ac_cv_func_isinf+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16759 double glob_double;
16764 return isinf(glob_double) ? 0 : 1;
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_link") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest$ac_exeext &&
16786 $as_test_x conftest$ac_exeext; then
16787 ac_cv_func_isinf=yes
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_func_isinf=no
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16799 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16801 if test $ac_cv_func_isinf = yes ; then
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_ISINF 1
16808 case " $LIBOBJS " in
16809 *" isinf.$ac_objext "* ) ;;
16810 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16814 # Look for a way to implement a substitute for isinf()
16819 for ac_func in fpclass fp_class fp_class_d class
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16835 #define $ac_func innocuous_$ac_func
16837 /* System header to define __stub macros and hopefully few prototypes,
16838 which can conflict with char $ac_func (); below.
16839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840 <limits.h> exists even on freestanding compilers. */
16843 # include <limits.h>
16845 # include <assert.h>
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16857 /* The GNU C library defines this for functions which it implements
16858 to always fail with ENOSYS. Some functions are actually named
16859 something starting with __ and the normal name is an alias. */
16860 #if defined __stub_$ac_func || defined __stub___$ac_func
16867 return $ac_func ();
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && {
16886 test -z "$ac_c_werror_flag" ||
16887 test ! -s conftest.err
16888 } && test -s conftest$ac_exeext &&
16889 $as_test_x conftest$ac_exeext; then
16890 eval "$as_ac_var=yes"
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 eval "$as_ac_var=no"
16898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16899 conftest$ac_exeext conftest.$ac_ext
16901 ac_res=`eval echo '${'$as_ac_var'}'`
16902 { echo "$as_me:$LINENO: result: $ac_res" >&5
16903 echo "${ECHO_T}$ac_res" >&6; }
16904 if test `eval echo '${'$as_ac_var'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 # Some versions of libedit contain strlcpy(); so disregard that library while
16915 # checking for these standard libc functions.
16916 pgac_save_LIBS="$LIBS"
16917 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16933 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16949 #define $ac_func innocuous_$ac_func
16951 /* System header to define __stub macros and hopefully few prototypes,
16952 which can conflict with char $ac_func (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16957 # include <limits.h>
16959 # include <assert.h>
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16971 /* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16981 return $ac_func ();
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_link") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest$ac_exeext &&
17003 $as_test_x conftest$ac_exeext; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no"
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17024 case " $LIBOBJS " in
17025 *" $ac_func.$ac_objext "* ) ;;
17026 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17035 LIBS="$pgac_save_LIBS"
17037 # System's version of getaddrinfo(), if any, may be used only if we found
17038 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17039 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17040 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17041 # because we want to use our own getaddrinfo.c on Windows anyway.)
17042 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17044 for ac_func in getaddrinfo
17046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 cat >conftest.$ac_ext <<_ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17060 #define $ac_func innocuous_$ac_func
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17068 # include <limits.h>
17070 # include <assert.h>
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined __stub_$ac_func || defined __stub___$ac_func
17092 return $ac_func ();
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext &&
17114 $as_test_x conftest$ac_exeext; then
17115 eval "$as_ac_var=yes"
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 eval "$as_ac_var=no"
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124 conftest$ac_exeext conftest.$ac_ext
17126 ac_res=`eval echo '${'$as_ac_var'}'`
17127 { echo "$as_me:$LINENO: result: $ac_res" >&5
17128 echo "${ECHO_T}$ac_res" >&6; }
17129 if test `eval echo '${'$as_ac_var'}'` = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17135 case " $LIBOBJS " in
17136 *" $ac_func.$ac_objext "* ) ;;
17137 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17146 case " $LIBOBJS " in
17147 *" getaddrinfo.$ac_objext "* ) ;;
17148 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17154 # Similarly, use system's getopt_long() only if system provides struct option.
17155 # Solaris' getopt() doesn't do what we want for long options, so always use
17156 # our versions on that platform.
17157 if test "$PORTNAME" = "solaris"; then
17158 case " $LIBOBJS " in
17159 *" getopt.$ac_objext "* ) ;;
17160 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17164 case " $LIBOBJS " in
17165 *" getopt_long.$ac_objext "* ) ;;
17166 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17170 elif test x"$ac_cv_type_struct_option" = xyes ; then
17172 for ac_func in getopt_long
17174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17188 #define $ac_func innocuous_$ac_func
17190 /* System header to define __stub macros and hopefully few prototypes,
17191 which can conflict with char $ac_func (); below.
17192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17193 <limits.h> exists even on freestanding compilers. */
17196 # include <limits.h>
17198 # include <assert.h>
17203 /* Override any GCC internal prototype to avoid an error.
17204 Use char because int might match the return type of a GCC
17205 builtin and then its argument prototype would still apply. */
17210 /* The GNU C library defines this for functions which it implements
17211 to always fail with ENOSYS. Some functions are actually named
17212 something starting with __ and the normal name is an alias. */
17213 #if defined __stub_$ac_func || defined __stub___$ac_func
17220 return $ac_func ();
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 eval "$as_ac_var=yes"
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 eval "$as_ac_var=no"
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17254 ac_res=`eval echo '${'$as_ac_var'}'`
17255 { echo "$as_me:$LINENO: result: $ac_res" >&5
17256 echo "${ECHO_T}$ac_res" >&6; }
17257 if test `eval echo '${'$as_ac_var'}'` = yes; then
17258 cat >>confdefs.h <<_ACEOF
17259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17263 case " $LIBOBJS " in
17264 *" $ac_func.$ac_objext "* ) ;;
17265 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17274 case " $LIBOBJS " in
17275 *" getopt_long.$ac_objext "* ) ;;
17276 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17283 if test "$PORTNAME" = "win32"; then
17285 for ac_func in gettimeofday
17287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 cat >conftest.$ac_ext <<_ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17301 #define $ac_func innocuous_$ac_func
17303 /* System header to define __stub macros and hopefully few prototypes,
17304 which can conflict with char $ac_func (); below.
17305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17306 <limits.h> exists even on freestanding compilers. */
17309 # include <limits.h>
17311 # include <assert.h>
17316 /* Override any GCC internal prototype to avoid an error.
17317 Use char because int might match the return type of a GCC
17318 builtin and then its argument prototype would still apply. */
17323 /* The GNU C library defines this for functions which it implements
17324 to always fail with ENOSYS. Some functions are actually named
17325 something starting with __ and the normal name is an alias. */
17326 #if defined __stub_$ac_func || defined __stub___$ac_func
17333 return $ac_func ();
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
17356 eval "$as_ac_var=yes"
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 eval "$as_ac_var=no"
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 conftest$ac_exeext conftest.$ac_ext
17367 ac_res=`eval echo '${'$as_ac_var'}'`
17368 { echo "$as_me:$LINENO: result: $ac_res" >&5
17369 echo "${ECHO_T}$ac_res" >&6; }
17370 if test `eval echo '${'$as_ac_var'}'` = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17376 case " $LIBOBJS " in
17377 *" $ac_func.$ac_objext "* ) ;;
17378 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17386 case " $LIBOBJS " in
17387 *" kill.$ac_objext "* ) ;;
17388 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17392 case " $LIBOBJS " in
17393 *" open.$ac_objext "* ) ;;
17394 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17398 case " $LIBOBJS " in
17399 *" rand.$ac_objext "* ) ;;
17400 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17404 case " $LIBOBJS " in
17405 *" win32error.$ac_objext "* ) ;;
17406 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17411 cat >>confdefs.h <<\_ACEOF
17412 #define HAVE_SYMLINK 1
17417 if test "$with_readline" = yes; then
17418 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17419 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 #ifdef HAVE_READLINE_READLINE_H
17428 # include <readline/readline.h>
17429 #elif defined(HAVE_READLINE_H)
17430 # include <readline.h>
17436 rl_completion_append_character = 'x';
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17459 { echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6; }
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 { echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6; }
17474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17475 conftest$ac_exeext conftest.$ac_ext
17478 for ac_func in rl_completion_matches rl_filename_completion_function
17480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17486 cat >conftest.$ac_ext <<_ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17494 #define $ac_func innocuous_$ac_func
17496 /* System header to define __stub macros and hopefully few prototypes,
17497 which can conflict with char $ac_func (); below.
17498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 <limits.h> exists even on freestanding compilers. */
17502 # include <limits.h>
17504 # include <assert.h>
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17526 return $ac_func ();
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_link") 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && {
17545 test -z "$ac_c_werror_flag" ||
17546 test ! -s conftest.err
17547 } && test -s conftest$ac_exeext &&
17548 $as_test_x conftest$ac_exeext; then
17549 eval "$as_ac_var=yes"
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 eval "$as_ac_var=no"
17557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17558 conftest$ac_exeext conftest.$ac_ext
17560 ac_res=`eval echo '${'$as_ac_var'}'`
17561 { echo "$as_me:$LINENO: result: $ac_res" >&5
17562 echo "${ECHO_T}$ac_res" >&6; }
17563 if test `eval echo '${'$as_ac_var'}'` = yes; then
17564 cat >>confdefs.h <<_ACEOF
17565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17572 for ac_func in replace_history_entry
17574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17588 #define $ac_func innocuous_$ac_func
17590 /* System header to define __stub macros and hopefully few prototypes,
17591 which can conflict with char $ac_func (); below.
17592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17593 <limits.h> exists even on freestanding compilers. */
17596 # include <limits.h>
17598 # include <assert.h>
17603 /* Override any GCC internal prototype to avoid an error.
17604 Use char because int might match the return type of a GCC
17605 builtin and then its argument prototype would still apply. */
17610 /* The GNU C library defines this for functions which it implements
17611 to always fail with ENOSYS. Some functions are actually named
17612 something starting with __ and the normal name is an alias. */
17613 #if defined __stub_$ac_func || defined __stub___$ac_func
17620 return $ac_func ();
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>conftest.er1
17634 grep -v '^ *+' conftest.er1 >conftest.err
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } && {
17639 test -z "$ac_c_werror_flag" ||
17640 test ! -s conftest.err
17641 } && test -s conftest$ac_exeext &&
17642 $as_test_x conftest$ac_exeext; then
17643 eval "$as_ac_var=yes"
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17648 eval "$as_ac_var=no"
17651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17652 conftest$ac_exeext conftest.$ac_ext
17654 ac_res=`eval echo '${'$as_ac_var'}'`
17655 { echo "$as_me:$LINENO: result: $ac_res" >&5
17656 echo "${ECHO_T}$ac_res" >&6; }
17657 if test `eval echo '${'$as_ac_var'}'` = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17668 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17669 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 #include <setjmp.h>
17680 sigjmp_buf x; sigsetjmp(x, 1);
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (ac_try="$ac_link"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_link") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } && {
17699 test -z "$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17701 } && test -s conftest$ac_exeext &&
17702 $as_test_x conftest$ac_exeext; then
17704 cat >>confdefs.h <<\_ACEOF
17705 #define HAVE_SIGSETJMP 1
17708 { echo "$as_me:$LINENO: result: yes" >&5
17709 echo "${ECHO_T}yes" >&6; }
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 { echo "$as_me:$LINENO: result: no" >&5
17715 echo "${ECHO_T}no" >&6; }
17718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17719 conftest$ac_exeext conftest.$ac_ext
17721 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17722 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17723 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #include <signal.h>
17733 /* NetBSD declares sys_siglist in unistd.h. */
17734 #ifdef HAVE_UNISTD_H
17735 # include <unistd.h>
17742 #ifndef sys_siglist
17743 (void) sys_siglist;
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_compile") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest.$ac_objext; then
17767 ac_cv_have_decl_sys_siglist=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_cv_have_decl_sys_siglist=no
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17778 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17779 if test $ac_cv_have_decl_sys_siglist = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_DECL_SYS_SIGLIST 1
17787 cat >>confdefs.h <<_ACEOF
17788 #define HAVE_DECL_SYS_SIGLIST 0
17797 { echo "$as_me:$LINENO: checking for syslog" >&5
17798 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17799 if test "${ac_cv_func_syslog+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17810 #define syslog innocuous_syslog
17812 /* System header to define __stub macros and hopefully few prototypes,
17813 which can conflict with char syslog (); below.
17814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815 <limits.h> exists even on freestanding compilers. */
17818 # include <limits.h>
17820 # include <assert.h>
17825 /* Override any GCC internal prototype to avoid an error.
17826 Use char because int might match the return type of a GCC
17827 builtin and then its argument prototype would still apply. */
17832 /* The GNU C library defines this for functions which it implements
17833 to always fail with ENOSYS. Some functions are actually named
17834 something starting with __ and the normal name is an alias. */
17835 #if defined __stub_syslog || defined __stub___syslog
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_link") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext &&
17864 $as_test_x conftest$ac_exeext; then
17865 ac_cv_func_syslog=yes
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_cv_func_syslog=no
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874 conftest$ac_exeext conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17877 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17878 if test $ac_cv_func_syslog = yes; then
17879 if test "${ac_cv_header_syslog_h+set}" = set; then
17880 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17881 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_syslog_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17888 # Is the header compilable?
17889 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17890 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 $ac_includes_default
17898 #include <syslog.h>
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_compile") 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest.$ac_objext; then
17917 ac_header_compiler=yes
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 ac_header_compiler=no
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6; }
17929 # Is the header present?
17930 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17931 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <syslog.h>
17940 if { (ac_try="$ac_cpp conftest.$ac_ext"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } >/dev/null && {
17953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17954 test ! -s conftest.err
17956 ac_header_preproc=yes
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_header_preproc=no
17964 rm -f conftest.err conftest.$ac_ext
17965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17966 echo "${ECHO_T}$ac_header_preproc" >&6; }
17968 # So? What about this header?
17969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17971 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17972 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17974 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17975 ac_header_preproc=yes
17978 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17979 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17981 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17983 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17985 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17987 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17988 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17989 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17991 ## ---------------------------------------- ##
17992 ## Report this to pgsql-bugs@postgresql.org ##
17993 ## ---------------------------------------- ##
17995 ) | sed "s/^/$as_me: WARNING: /" >&2
17998 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17999 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18000 if test "${ac_cv_header_syslog_h+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 ac_cv_header_syslog_h=$ac_header_preproc
18005 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18006 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18009 if test $ac_cv_header_syslog_h = yes; then
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_SYSLOG 1
18021 { echo "$as_me:$LINENO: checking for optreset" >&5
18022 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18023 if test "${pgac_cv_var_int_optreset+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <unistd.h>
18036 extern int optreset; optreset = 1;
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (ac_try="$ac_link"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_link") 2>conftest.er1
18050 grep -v '^ *+' conftest.er1 >conftest.err
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && {
18055 test -z "$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18057 } && test -s conftest$ac_exeext &&
18058 $as_test_x conftest$ac_exeext; then
18059 pgac_cv_var_int_optreset=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 pgac_cv_var_int_optreset=no
18067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18068 conftest$ac_exeext conftest.$ac_ext
18070 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18071 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18072 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18074 cat >>confdefs.h <<\_ACEOF
18075 #define HAVE_INT_OPTRESET 1
18082 for ac_func in strtoll strtoq
18084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18098 #define $ac_func innocuous_$ac_func
18100 /* System header to define __stub macros and hopefully few prototypes,
18101 which can conflict with char $ac_func (); below.
18102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103 <limits.h> exists even on freestanding compilers. */
18106 # include <limits.h>
18108 # include <assert.h>
18113 /* Override any GCC internal prototype to avoid an error.
18114 Use char because int might match the return type of a GCC
18115 builtin and then its argument prototype would still apply. */
18120 /* The GNU C library defines this for functions which it implements
18121 to always fail with ENOSYS. Some functions are actually named
18122 something starting with __ and the normal name is an alias. */
18123 #if defined __stub_$ac_func || defined __stub___$ac_func
18130 return $ac_func ();
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_c_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest$ac_exeext &&
18152 $as_test_x conftest$ac_exeext; then
18153 eval "$as_ac_var=yes"
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 eval "$as_ac_var=no"
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162 conftest$ac_exeext conftest.$ac_ext
18164 ac_res=`eval echo '${'$as_ac_var'}'`
18165 { echo "$as_me:$LINENO: result: $ac_res" >&5
18166 echo "${ECHO_T}$ac_res" >&6; }
18167 if test `eval echo '${'$as_ac_var'}'` = yes; then
18168 cat >>confdefs.h <<_ACEOF
18169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18177 for ac_func in strtoull strtouq
18179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18193 #define $ac_func innocuous_$ac_func
18195 /* System header to define __stub macros and hopefully few prototypes,
18196 which can conflict with char $ac_func (); below.
18197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18198 <limits.h> exists even on freestanding compilers. */
18201 # include <limits.h>
18203 # include <assert.h>
18208 /* Override any GCC internal prototype to avoid an error.
18209 Use char because int might match the return type of a GCC
18210 builtin and then its argument prototype would still apply. */
18215 /* The GNU C library defines this for functions which it implements
18216 to always fail with ENOSYS. Some functions are actually named
18217 something starting with __ and the normal name is an alias. */
18218 #if defined __stub_$ac_func || defined __stub___$ac_func
18225 return $ac_func ();
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (ac_try="$ac_link"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_link") 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } && {
18244 test -z "$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 } && test -s conftest$ac_exeext &&
18247 $as_test_x conftest$ac_exeext; then
18248 eval "$as_ac_var=yes"
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 eval "$as_ac_var=no"
18256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18257 conftest$ac_exeext conftest.$ac_ext
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263 cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 # Check for one of atexit() or on_exit()
18273 for ac_func in atexit
18275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18289 #define $ac_func innocuous_$ac_func
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char $ac_func (); below.
18293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294 <limits.h> exists even on freestanding compilers. */
18297 # include <limits.h>
18299 # include <assert.h>
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined __stub_$ac_func || defined __stub___$ac_func
18321 return $ac_func ();
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18344 eval "$as_ac_var=yes"
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 eval "$as_ac_var=no"
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18365 for ac_func in on_exit
18367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18381 #define $ac_func innocuous_$ac_func
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func (); below.
18385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386 <limits.h> exists even on freestanding compilers. */
18389 # include <limits.h>
18391 # include <assert.h>
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18403 /* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406 #if defined __stub_$ac_func || defined __stub___$ac_func
18413 return $ac_func ();
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18436 eval "$as_ac_var=yes"
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 eval "$as_ac_var=no"
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445 conftest$ac_exeext conftest.$ac_ext
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18456 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18457 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18458 { (exit 1); exit 1; }; }
18467 for ac_func in fseeko
18469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18483 #define $ac_func innocuous_$ac_func
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char $ac_func (); below.
18487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488 <limits.h> exists even on freestanding compilers. */
18491 # include <limits.h>
18493 # include <assert.h>
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18505 /* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
18508 #if defined __stub_$ac_func || defined __stub___$ac_func
18515 return $ac_func ();
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest$ac_exeext &&
18537 $as_test_x conftest$ac_exeext; then
18538 eval "$as_ac_var=yes"
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 eval "$as_ac_var=no"
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18549 ac_res=`eval echo '${'$as_ac_var'}'`
18550 { echo "$as_me:$LINENO: result: $ac_res" >&5
18551 echo "${ECHO_T}$ac_res" >&6; }
18552 if test `eval echo '${'$as_ac_var'}'` = yes; then
18553 cat >>confdefs.h <<_ACEOF
18554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18558 case " $LIBOBJS " in
18559 *" $ac_func.$ac_objext "* ) ;;
18560 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18569 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE_FSEEKO 1
18576 ac_cv_func_fseeko=yes;;
18578 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18579 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18580 if test "${ac_cv_sys_largefile_source+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 #include <sys/types.h> /* for off_t */
18595 int (*fp) (FILE *, off_t, int) = fseeko;
18596 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (ac_try="$ac_link"
18603 case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_link") 2>conftest.er1
18610 grep -v '^ *+' conftest.er1 >conftest.err
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } && {
18615 test -z "$ac_c_werror_flag" ||
18616 test ! -s conftest.err
18617 } && test -s conftest$ac_exeext &&
18618 $as_test_x conftest$ac_exeext; then
18619 ac_cv_sys_largefile_source=no; break
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18628 conftest$ac_exeext conftest.$ac_ext
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #define _LARGEFILE_SOURCE 1
18636 #include <sys/types.h> /* for off_t */
18641 int (*fp) (FILE *, off_t, int) = fseeko;
18642 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } && {
18661 test -z "$ac_c_werror_flag" ||
18662 test ! -s conftest.err
18663 } && test -s conftest$ac_exeext &&
18664 $as_test_x conftest$ac_exeext; then
18665 ac_cv_sys_largefile_source=1; break
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674 conftest$ac_exeext conftest.$ac_ext
18675 ac_cv_sys_largefile_source=unknown
18679 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18680 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18681 case $ac_cv_sys_largefile_source in #(
18684 cat >>confdefs.h <<_ACEOF
18685 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18691 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18692 # in glibc 2.1.3, but that breaks too many other things.
18693 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18694 if test $ac_cv_sys_largefile_source != unknown; then
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_FSEEKO 1
18708 # For each platform, we need to know about any special compile and link
18709 # libraries, and whether the normal C function names are thread-safe.
18710 # See the comment at the top of src/port/thread.c for more information.
18711 # WIN32 doesn't need the pthread tests; it always uses threads
18712 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18724 # We used to check for pthread.h first, but this fails if pthread.h
18725 # requires special compiler flags (e.g. on True64 or Sequent).
18726 # It gets checked for in the link test anyway.
18728 # First of all, check if the user has set any of the PTHREAD_LIBS,
18729 # etcetera environment variables, and if threads linking works using
18731 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18732 save_CFLAGS="$CFLAGS"
18733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18735 LIBS="$PTHREAD_LIBS $LIBS"
18736 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18737 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18738 cat >conftest.$ac_ext <<_ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18745 /* Override any GCC internal prototype to avoid an error.
18746 Use char because int might match the return type of a GCC
18747 builtin and then its argument prototype would still apply. */
18751 char pthread_join ();
18755 return pthread_join ();
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_link") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest$ac_exeext &&
18777 $as_test_x conftest$ac_exeext; then
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18788 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18789 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18790 if test x"$acx_pthread_ok" = xno; then
18795 CFLAGS="$save_CFLAGS"
18798 # We must check for the threads library under a number of different
18799 # names; the ordering is very important because some systems
18800 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18801 # libraries is broken (non-POSIX).
18803 # Create a list of thread flags to try. Items starting with a "-" are
18804 # C compiler flags, and other items are library names, except for "none"
18805 # which indicates that we try without any flags at all, and "pthread-config"
18806 # which is a program returning the flags for the Pth emulation library.
18808 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18810 # The ordering *is* (sometimes) important. Some notes on the
18811 # individual items follow:
18813 # pthreads: AIX (must check this before -lpthread)
18814 # none: in case threads are in libc; should be tried before -Kthread and
18815 # other compiler flags to prevent continual compiler warnings
18816 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18817 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18818 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18819 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18820 # -pthreads: Solaris/gcc
18821 # -mthreads: Mingw32/gcc, Lynx/gcc
18822 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18823 # doesn't hurt to check since this sometimes defines pthreads too;
18824 # also defines -D_REENTRANT)
18825 # pthread: Linux, etcetera
18826 # --thread-safe: KAI C++
18827 # pthread-config: use pthread-config program (for GNU Pth library)
18829 case "${host_cpu}-${host_os}" in
18832 # On Solaris (at least, for some versions), libc contains stubbed
18833 # (non-functional) versions of the pthreads routines, so link-based
18834 # tests will erroneously succeed. (We need to link with -pthread or
18835 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18836 # a function called by this macro, so we could check for that, but
18837 # who knows whether they'll stub that too in a future libc.) So,
18838 # we'll just look for -pthreads and -lpthread first:
18840 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18844 if test x"$acx_pthread_ok" = xno; then
18845 for flag in $acx_pthread_flags; do
18847 tryPTHREAD_CFLAGS=""
18851 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18852 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18856 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18857 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18858 tryPTHREAD_CFLAGS="$flag"
18862 # skip this if we already have flags defined, for PostgreSQL
18863 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18864 # Extract the first word of "pthread-config", so it can be a program name with args.
18865 set dummy pthread-config; ac_word=$2
18866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18868 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 if test -n "$acx_pthread_config"; then
18872 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875 for as_dir in $PATH
18878 test -z "$as_dir" && as_dir=.
18879 for ac_exec_ext in '' $ac_executable_extensions; do
18880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18881 ac_cv_prog_acx_pthread_config="yes"
18882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18889 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18892 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18893 if test -n "$acx_pthread_config"; then
18894 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18895 echo "${ECHO_T}$acx_pthread_config" >&6; }
18897 { echo "$as_me:$LINENO: result: no" >&5
18898 echo "${ECHO_T}no" >&6; }
18902 if test x"$acx_pthread_config" = xno; then continue; fi
18903 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18904 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18908 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18909 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18910 tryPTHREAD_LIBS="-l$flag"
18915 save_CFLAGS="$CFLAGS"
18916 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18917 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18919 # Check for various functions. We must include pthread.h,
18920 # since some functions may be macros. (On the Sequent, we
18921 # need a special flag -Kthread to make this header compile.)
18922 # We check for pthread_join because it is in -lpthread on IRIX
18923 # while pthread_create is in libc. We check for pthread_attr_init
18924 # due to DEC craziness with -lpthreads. We check for
18925 # pthread_cleanup_push because it is one of the few pthread
18926 # functions on Solaris that doesn't have a non-functional libc stub.
18927 # We try pthread_create on general principles.
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 #include <pthread.h>
18938 pthread_t th; pthread_join(th, 0);
18939 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18940 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18974 if test "x$acx_pthread_ok" = xyes; then
18975 # Don't use options that are ignored by the compiler.
18976 # We find them by checking stderror.
18977 cat >conftest.$ac_ext <<_ACEOF
18979 main (int argc, char **argv)
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18988 # we continue with more flags because Linux needs -lpthread
18989 # for libpq builds on PostgreSQL. The test above only
18990 # tests for building binaries, not shared libraries.
18991 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18992 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18993 else acx_pthread_ok=no
18998 CFLAGS="$save_CFLAGS"
19000 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19001 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19005 # Various other checks:
19006 if test "x$acx_pthread_ok" = xyes; then
19008 LIBS="$PTHREAD_LIBS $LIBS"
19009 save_CFLAGS="$CFLAGS"
19010 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19012 # Detect AIX lossage: threads are created detached by default
19013 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19014 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19015 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <pthread.h>
19026 int attr=PTHREAD_CREATE_JOINABLE;
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 ok=PTHREAD_CREATE_JOINABLE
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059 if test x"$ok" = xunknown; then
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19066 #include <pthread.h>
19070 int attr=PTHREAD_CREATE_UNDETACHED;
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19093 ok=PTHREAD_CREATE_UNDETACHED
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102 conftest$ac_exeext conftest.$ac_ext
19104 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define PTHREAD_CREATE_JOINABLE $ok
19111 { echo "$as_me:$LINENO: result: ${ok}" >&5
19112 echo "${ECHO_T}${ok}" >&6; }
19113 if test x"$ok" = xunknown; then
19114 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19115 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19118 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19119 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19121 # We always add these in PostgreSQL
19122 # case "${host_cpu}-${host_os}" in
19123 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19124 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19126 { echo "$as_me:$LINENO: result: ${flag}" >&5
19127 echo "${ECHO_T}${flag}" >&6; }
19128 if test "x$flag" != xno; then
19129 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19133 CFLAGS="$save_CFLAGS"
19135 # Supporting cc_r would require a special CC in all places that
19136 # use libpq, and that is ugly, so we don't do it. Users can still
19137 # define their compiler as cc_r to do thread builds of everything.
19138 # More AIX lossage: must compile with cc_r
19139 # Extract the first word of "cc_r", so it can be a program name with args.
19140 set dummy cc_r; ac_word=$2
19141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19143 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 if test -n "$PTHREAD_CC"; then
19147 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19150 for as_dir in $PATH
19153 test -z "$as_dir" && as_dir=.
19154 for ac_exec_ext in '' $ac_executable_extensions; do
19155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19156 ac_cv_prog_PTHREAD_CC="cc_r"
19157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19164 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19167 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19168 if test -n "$PTHREAD_CC"; then
19169 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19170 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19172 { echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6; }
19185 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19186 if test x"$acx_pthread_ok" = xyes; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_PTHREAD 1
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19205 # Some platforms use these, so just define them. They can't hurt if they
19206 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19207 # enables 5-arg getpwuid_r, among other things.
19208 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19211 # At this point, we don't want to muck with the compiler name for threading.
19212 # Let's see who fails, perhaps AIX. 2004-04-23
19213 if test "$PTHREAD_CC" != "$CC"; then
19214 { { echo "$as_me:$LINENO: error:
19215 PostgreSQL does not support platforms that require a special compiler
19216 for thread safety." >&5
19217 echo "$as_me: error:
19218 PostgreSQL does not support platforms that require a special compiler
19219 for thread safety." >&2;}
19220 { (exit 1); exit 1; }; }
19223 if test "$THREAD_SUPPORT" = no; then
19224 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19225 This platform is known to not support thread-safe programs. For details,
19226 compile and run src/bin/pg_thread_test." >&5
19227 echo "$as_me: error: cannot enable threads on this platform
19228 This platform is known to not support thread-safe programs. For details,
19229 compile and run src/bin/pg_thread_test." >&2;}
19230 { (exit 1); exit 1; }; }
19233 # Check for *_r functions
19236 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19237 LIBS="$LIBS $PTHREAD_LIBS"
19239 if test "$PORTNAME" != "win32"; then
19240 if test "${ac_cv_header_pthread_h+set}" = set; then
19241 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19242 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19243 if test "${ac_cv_header_pthread_h+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19247 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19249 # Is the header compilable?
19250 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19251 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 $ac_includes_default
19259 #include <pthread.h>
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
19278 ac_header_compiler=yes
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_header_compiler=no
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6; }
19290 # Is the header present?
19291 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19292 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <pthread.h>
19301 if { (ac_try="$ac_cpp conftest.$ac_ext"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } >/dev/null && {
19314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19317 ac_header_preproc=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_header_preproc=no
19325 rm -f conftest.err conftest.$ac_ext
19326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19327 echo "${ECHO_T}$ac_header_preproc" >&6; }
19329 # So? What about this header?
19330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19333 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19335 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19336 ac_header_preproc=yes
19339 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19340 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19342 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19344 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19346 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19348 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19349 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19350 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19352 ## ---------------------------------------- ##
19353 ## Report this to pgsql-bugs@postgresql.org ##
19354 ## ---------------------------------------- ##
19356 ) | sed "s/^/$as_me: WARNING: /" >&2
19359 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19360 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19361 if test "${ac_cv_header_pthread_h+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 ac_cv_header_pthread_h=$ac_header_preproc
19366 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19367 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19370 if test $ac_cv_header_pthread_h = yes; then
19373 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19374 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19375 { (exit 1); exit 1; }; }
19384 for ac_func in strerror_r getpwuid_r gethostbyname_r
19386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19400 #define $ac_func innocuous_$ac_func
19402 /* System header to define __stub macros and hopefully few prototypes,
19403 which can conflict with char $ac_func (); below.
19404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19405 <limits.h> exists even on freestanding compilers. */
19408 # include <limits.h>
19410 # include <assert.h>
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19422 /* The GNU C library defines this for functions which it implements
19423 to always fail with ENOSYS. Some functions are actually named
19424 something starting with __ and the normal name is an alias. */
19425 #if defined __stub_$ac_func || defined __stub___$ac_func
19432 return $ac_func ();
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_link") 2>conftest.er1
19446 grep -v '^ *+' conftest.er1 >conftest.err
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } && {
19451 test -z "$ac_c_werror_flag" ||
19452 test ! -s conftest.err
19453 } && test -s conftest$ac_exeext &&
19454 $as_test_x conftest$ac_exeext; then
19455 eval "$as_ac_var=yes"
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 eval "$as_ac_var=no"
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464 conftest$ac_exeext conftest.$ac_ext
19466 ac_res=`eval echo '${'$as_ac_var'}'`
19467 { echo "$as_me:$LINENO: result: $ac_res" >&5
19468 echo "${ECHO_T}$ac_res" >&6; }
19469 if test `eval echo '${'$as_ac_var'}'` = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19478 # Do test here with the proper thread flags
19479 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19480 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19481 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <sys/types.h>
19496 struct passwd *space;
19499 struct passwd **result;
19500 getpwuid_r(uid, space, buf, bufsize, result);
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && {
19519 test -z "$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 } && test -s conftest.$ac_objext; then
19522 pgac_cv_func_getpwuid_r_5arg=yes
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 pgac_cv_func_getpwuid_r_5arg=no
19530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19533 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19534 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19536 cat >>confdefs.h <<\_ACEOF
19537 #define GETPWUID_R_5ARG
19542 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19543 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19544 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <string.h>
19558 int strerror_r(int, char *, size_t);
19560 /* Older AIX has 'int' for the third argument so we don't test the args. */
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_compile") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest.$ac_objext; then
19584 pgac_cv_func_strerror_r_int=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 pgac_cv_func_strerror_r_int=no
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19595 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19596 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define STRERROR_R_INT
19609 # do not use values from template file
19618 # We can test for libldap_r only after we know PTHREAD_LIBS
19619 if test "$with_ldap" = yes ; then
19621 if test "$PORTNAME" != "win32"; then
19623 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19624 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19625 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19647 return ldap_bind ();
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_link") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext &&
19669 $as_test_x conftest$ac_exeext; then
19670 ac_cv_lib_ldap_ldap_bind=yes
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_lib_ldap_ldap_bind=no
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19682 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19683 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19684 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBLDAP 1
19689 LIBS="-lldap $LIBS"
19692 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19693 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19694 { (exit 1); exit 1; }; }
19697 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19698 if test "$enable_thread_safety" = yes; then
19699 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19701 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19702 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19703 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19715 /* Override any GCC internal prototype to avoid an error.
19716 Use char because int might match the return type of a GCC
19717 builtin and then its argument prototype would still apply. */
19721 char ldap_simple_bind ();
19725 return ldap_simple_bind ();
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest$ac_exeext &&
19747 $as_test_x conftest$ac_exeext; then
19748 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_cv_lib_ldap_r_ldap_simple_bind=no
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757 conftest$ac_exeext conftest.$ac_ext
19758 LIBS=$ac_check_lib_save_LIBS
19760 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19761 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19762 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19763 cat >>confdefs.h <<_ACEOF
19764 #define HAVE_LIBLDAP_R 1
19767 LIBS="-lldap_r $LIBS"
19770 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19771 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19772 { (exit 1); exit 1; }; }
19775 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19777 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19781 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19782 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19783 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lwldap32 $LIBS"
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19805 return ldap_bind ();
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 ac_cv_lib_wldap32_ldap_bind=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_lib_wldap32_ldap_bind=no
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837 conftest$ac_exeext conftest.$ac_ext
19838 LIBS=$ac_check_lib_save_LIBS
19840 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19841 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19842 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_LIBWLDAP32 1
19847 LIBS="-lwldap32 $LIBS"
19850 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19851 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19852 { (exit 1); exit 1; }; }
19855 LDAP_LIBS_FE="-lwldap32"
19856 LDAP_LIBS_BE="-lwldap32"
19864 # This test makes sure that run tests work at all. Sometimes a shared
19865 # library is found by the linker, but the runtime linker can't find it.
19866 # This check should come after all modifications of compiler or linker
19867 # variables, and before any other run tests.
19868 { echo "$as_me:$LINENO: checking test program" >&5
19869 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19870 if test "$cross_compiling" = yes; then
19871 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19872 echo "${ECHO_T}cross-compiling" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 int main() { return 0; }
19882 rm -f conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 { echo "$as_me:$LINENO: result: ok" >&5
19903 echo "${ECHO_T}ok" >&6; }
19905 echo "$as_me: program exited with status $ac_status" >&5
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ( exit $ac_status )
19910 { echo "$as_me:$LINENO: result: failed" >&5
19911 echo "${ECHO_T}failed" >&6; }
19912 { { echo "$as_me:$LINENO: error:
19913 Could not execute a simple test program. This may be a problem
19914 related to locating shared libraries. Check the file 'config.log'
19915 for the exact reason." >&5
19916 echo "$as_me: error:
19917 Could not execute a simple test program. This may be a problem
19918 related to locating shared libraries. Check the file 'config.log'
19919 for the exact reason." >&2;}
19920 { (exit 1); exit 1; }; }
19922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19927 # --------------------
19928 # Run tests below here
19929 # --------------------
19931 # Force use of our snprintf if system's doesn't do arg control
19932 # See comment above at snprintf test for details.
19933 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19934 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19935 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19936 if test "${pgac_cv_printf_arg_control+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 if test "$cross_compiling" = yes; then
19940 pgac_cv_printf_arg_control=cross
19942 cat >conftest.$ac_ext <<_ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19949 #include <string.h>
19955 /* can it swap arguments? */
19956 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19957 if (strcmp(buf, "4 3") != 0)
19962 rm -f conftest$ac_exeext
19963 if { (ac_try="$ac_link"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_link") 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973 { (case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 pgac_cv_printf_arg_control=yes
19984 echo "$as_me: program exited with status $ac_status" >&5
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ( exit $ac_status )
19989 pgac_cv_printf_arg_control=no
19991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19998 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20000 if test $pgac_cv_printf_arg_control != yes ; then
20001 pgac_need_repl_snprintf=yes
20007 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20008 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20009 if test "${pgac_cv_type_long_int_64+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 if test "$cross_compiling" = yes; then
20013 # If cross-compiling, check the size reported by the compiler and
20014 # trust that the arithmetic works.
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20025 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest.$ac_objext; then
20049 pgac_cv_type_long_int_64=yes
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 pgac_cv_type_long_int_64=no
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 typedef long int ac_int64;
20068 * These are globals to discourage the compiler from folding all the
20069 * arithmetic tests down to compile-time constants.
20071 ac_int64 a = 20000001;
20072 ac_int64 b = 40000005;
20074 int does_int64_work()
20078 if (sizeof(ac_int64) != 8)
20079 return 0; /* definitely not the right size */
20081 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20089 exit(! does_int64_work());
20092 rm -f conftest$ac_exeext
20093 if { (ac_try="$ac_link"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_link") 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 pgac_cv_type_long_int_64=yes
20114 echo "$as_me: program exited with status $ac_status" >&5
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ( exit $ac_status )
20119 pgac_cv_type_long_int_64=no
20121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20126 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20127 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20129 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20130 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_LONG_INT_64 1
20139 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20140 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20141 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20142 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 if test "$cross_compiling" = yes; then
20146 # If cross-compiling, check the size reported by the compiler and
20147 # trust that the arithmetic works.
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20158 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_compile") 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest.$ac_objext; then
20182 pgac_cv_type_long_long_int_64=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 pgac_cv_type_long_long_int_64=no
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 typedef long long int ac_int64;
20201 * These are globals to discourage the compiler from folding all the
20202 * arithmetic tests down to compile-time constants.
20204 ac_int64 a = 20000001;
20205 ac_int64 b = 40000005;
20207 int does_int64_work()
20211 if (sizeof(ac_int64) != 8)
20212 return 0; /* definitely not the right size */
20214 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20222 exit(! does_int64_work());
20225 rm -f conftest$ac_exeext
20226 if { (ac_try="$ac_link"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_link") 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20236 { (case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_try") 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 pgac_cv_type_long_long_int_64=yes
20247 echo "$as_me: program exited with status $ac_status" >&5
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ( exit $ac_status )
20252 pgac_cv_type_long_long_int_64=no
20254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20260 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20262 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20263 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20265 cat >>confdefs.h <<\_ACEOF
20266 #define HAVE_LONG_LONG_INT_64 1
20275 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 #define INT64CONST(x) x##LL
20284 long long int foo = INT64CONST(0x1234567890123456);
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest.$ac_objext; then
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_LL_CONSTANTS 1
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327 # If we found "long int" is 64 bits, assume snprintf handles it. If
20328 # we found we need to use "long long int", better check. We cope with
20329 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20330 # work, fall back to our own snprintf emulation (which we know uses %lld).
20332 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20333 if test $pgac_need_repl_snprintf = no; then
20334 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20335 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20336 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 for pgac_format in '%lld' '%qd' '%I64d'; do
20340 if test "$cross_compiling" = yes; then
20341 pgac_cv_snprintf_long_long_int_format=cross; break
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20350 typedef long long int ac_int64;
20351 #define INT64_FORMAT "$pgac_format"
20353 ac_int64 a = 20000001;
20354 ac_int64 b = 40000005;
20356 int does_int64_snprintf_work()
20361 if (sizeof(ac_int64) != 8)
20362 return 0; /* doesn't look like the right size */
20365 snprintf(buf, 100, INT64_FORMAT, c);
20366 if (strcmp(buf, "800000140000005") != 0)
20367 return 0; /* either multiply or snprintf is busted */
20371 exit(! does_int64_snprintf_work());
20374 rm -f conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20385 { (case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_try") 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20396 echo "$as_me: program exited with status $ac_status" >&5
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20408 LONG_LONG_INT_FORMAT=''
20410 case $pgac_cv_snprintf_long_long_int_format in
20411 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20412 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20413 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20414 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20415 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20416 *) { echo "$as_me:$LINENO: result: none" >&5
20417 echo "${ECHO_T}none" >&6; };;
20419 if test "$LONG_LONG_INT_FORMAT" = ""; then
20420 # Force usage of our own snprintf, since system snprintf is broken
20421 pgac_need_repl_snprintf=yes
20422 LONG_LONG_INT_FORMAT='%lld'
20425 # Here if we previously decided we needed to use our own snprintf
20426 LONG_LONG_INT_FORMAT='%lld'
20428 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20429 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20430 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20432 # Here if we are not using 'long long int' at all
20433 INT64_FORMAT='"%ld"'
20434 UINT64_FORMAT='"%lu"'
20438 cat >>confdefs.h <<_ACEOF
20439 #define INT64_FORMAT $INT64_FORMAT
20444 cat >>confdefs.h <<_ACEOF
20445 #define UINT64_FORMAT $UINT64_FORMAT
20449 # Now we have checked all the reasons to replace snprintf
20450 if test $pgac_need_repl_snprintf = yes; then
20452 cat >>confdefs.h <<\_ACEOF
20453 #define USE_REPL_SNPRINTF 1
20456 case " $LIBOBJS " in
20457 *" snprintf.$ac_objext "* ) ;;
20458 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20464 # Need a #define for the size of Datum (unsigned long)
20465 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20466 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20467 if test "${ac_cv_type_unsigned_long+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 $ac_includes_default
20477 typedef unsigned long ac__type_new_;
20481 if ((ac__type_new_ *) 0)
20483 if (sizeof (ac__type_new_))
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 ac_cv_type_unsigned_long=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_type_unsigned_long=no
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20517 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20519 # The cast to long int works around a bug in the HP C Compiler
20520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20522 # This bug is HP SR number 8606223364.
20523 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20524 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20525 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 if test "$cross_compiling" = yes; then
20529 # Depending upon the size, compute the lo and hi bounds.
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20537 typedef unsigned long ac__type_sizeof_;
20541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20548 rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_compile") 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } && {
20562 test -z "$ac_c_werror_flag" ||
20563 test ! -s conftest.err
20564 } && test -s conftest.$ac_objext; then
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20574 typedef unsigned long ac__type_sizeof_;
20578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_hi=$ac_mid; break
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_lo=`expr $ac_mid + 1`
20608 if test $ac_lo -le $ac_mid; then
20612 ac_mid=`expr 2 '*' $ac_mid + 1`
20615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 $ac_includes_default
20628 typedef unsigned long ac__type_sizeof_;
20632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest.$ac_objext; then
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 typedef unsigned long ac__type_sizeof_;
20669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_compile") 2>conftest.er1
20685 grep -v '^ *+' conftest.er1 >conftest.err
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest.$ac_objext; then
20693 ac_lo=$ac_mid; break
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_hi=`expr '(' $ac_mid ')' - 1`
20699 if test $ac_mid -le $ac_hi; then
20703 ac_mid=`expr 2 '*' $ac_mid`
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 # Binary search between lo and hi bounds.
20720 while test "x$ac_lo" != "x$ac_hi"; do
20721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 $ac_includes_default
20729 typedef unsigned long ac__type_sizeof_;
20733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_compile") 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } && {
20754 test -z "$ac_c_werror_flag" ||
20755 test ! -s conftest.err
20756 } && test -s conftest.$ac_objext; then
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_lo=`expr '(' $ac_mid ')' + 1`
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20769 '') if test "$ac_cv_type_unsigned_long" = yes; then
20770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20771 See \`config.log' for more details." >&5
20772 echo "$as_me: error: cannot compute sizeof (unsigned long)
20773 See \`config.log' for more details." >&2;}
20774 { (exit 77); exit 77; }; }
20776 ac_cv_sizeof_unsigned_long=0
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 $ac_includes_default
20787 typedef unsigned long ac__type_sizeof_;
20788 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20789 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20791 #include <stdlib.h>
20796 FILE *f = fopen ("conftest.val", "w");
20799 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20801 long int i = longval ();
20802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20804 fprintf (f, "%ld\n", i);
20808 unsigned long int i = ulongval ();
20809 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20811 fprintf (f, "%lu\n", i);
20813 return ferror (f) || fclose (f) != 0;
20819 rm -f conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_link") 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20830 { (case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_try") 2>&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20841 echo "$as_me: program exited with status $ac_status" >&5
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ( exit $ac_status )
20846 if test "$ac_cv_type_unsigned_long" = yes; then
20847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20848 See \`config.log' for more details." >&5
20849 echo "$as_me: error: cannot compute sizeof (unsigned long)
20850 See \`config.log' for more details." >&2;}
20851 { (exit 77); exit 77; }; }
20853 ac_cv_sizeof_unsigned_long=0
20856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20860 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20861 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20865 cat >>confdefs.h <<_ACEOF
20866 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20871 # And one for the size of size_t (enables tweaks for > 32bit address space)
20872 { echo "$as_me:$LINENO: checking for size_t" >&5
20873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20874 if test "${ac_cv_type_size_t+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 typedef size_t ac__type_new_;
20888 if ((ac__type_new_ *) 0)
20890 if (sizeof (ac__type_new_))
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
20913 ac_cv_type_size_t=yes
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_type_size_t=no
20921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20924 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20926 # The cast to long int works around a bug in the HP C Compiler
20927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20929 # This bug is HP SR number 8606223364.
20930 { echo "$as_me:$LINENO: checking size of size_t" >&5
20931 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20932 if test "${ac_cv_sizeof_size_t+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 if test "$cross_compiling" = yes; then
20936 # Depending upon the size, compute the lo and hi bounds.
20937 cat >conftest.$ac_ext <<_ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 $ac_includes_default
20944 typedef size_t ac__type_sizeof_;
20948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_compile") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest.$ac_objext; then
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 typedef size_t ac__type_sizeof_;
20985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21001 grep -v '^ *+' conftest.er1 >conftest.err
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
21009 ac_hi=$ac_mid; break
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_lo=`expr $ac_mid + 1`
21015 if test $ac_lo -le $ac_mid; then
21019 ac_mid=`expr 2 '*' $ac_mid + 1`
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 $ac_includes_default
21035 typedef size_t ac__type_sizeof_;
21039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21065 cat >conftest.$ac_ext <<_ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 $ac_includes_default
21072 typedef size_t ac__type_sizeof_;
21076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_compile") 2>conftest.er1
21092 grep -v '^ *+' conftest.er1 >conftest.err
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest.$ac_objext; then
21100 ac_lo=$ac_mid; break
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21105 ac_hi=`expr '(' $ac_mid ')' - 1`
21106 if test $ac_mid -le $ac_hi; then
21110 ac_mid=`expr 2 '*' $ac_mid`
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 # Binary search between lo and hi bounds.
21127 while test "x$ac_lo" != "x$ac_hi"; do
21128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 $ac_includes_default
21136 typedef size_t ac__type_sizeof_;
21140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_lo=`expr '(' $ac_mid ')' + 1`
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21176 '') if test "$ac_cv_type_size_t" = yes; then
21177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21178 See \`config.log' for more details." >&5
21179 echo "$as_me: error: cannot compute sizeof (size_t)
21180 See \`config.log' for more details." >&2;}
21181 { (exit 77); exit 77; }; }
21183 ac_cv_sizeof_size_t=0
21187 cat >conftest.$ac_ext <<_ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 $ac_includes_default
21194 typedef size_t ac__type_sizeof_;
21195 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21196 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21198 #include <stdlib.h>
21203 FILE *f = fopen ("conftest.val", "w");
21206 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21208 long int i = longval ();
21209 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21211 fprintf (f, "%ld\n", i);
21215 unsigned long int i = ulongval ();
21216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21218 fprintf (f, "%lu\n", i);
21220 return ferror (f) || fclose (f) != 0;
21226 rm -f conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_link") 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21237 { (case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_try") 2>&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_sizeof_size_t=`cat conftest.val`
21248 echo "$as_me: program exited with status $ac_status" >&5
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ( exit $ac_status )
21253 if test "$ac_cv_type_size_t" = yes; then
21254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21255 See \`config.log' for more details." >&5
21256 echo "$as_me: error: cannot compute sizeof (size_t)
21257 See \`config.log' for more details." >&2;}
21258 { (exit 77); exit 77; }; }
21260 ac_cv_sizeof_size_t=0
21263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21268 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21272 cat >>confdefs.h <<_ACEOF
21273 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21278 # Decide whether float4 is passed by value: user-selectable, enabled by default
21279 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21280 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21282 pgac_args="$pgac_args enable_float4_byval"
21284 # Check whether --enable-float4-byval was given.
21285 if test "${enable_float4_byval+set}" = set; then
21286 enableval=$enable_float4_byval;
21290 cat >>confdefs.h <<\_ACEOF
21291 #define USE_FLOAT4_BYVAL 1
21294 float4passbyval=true
21297 float4passbyval=false
21300 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21301 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21302 { (exit 1); exit 1; }; }
21307 enable_float4_byval=yes
21309 cat >>confdefs.h <<\_ACEOF
21310 #define USE_FLOAT4_BYVAL 1
21313 float4passbyval=true
21317 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21318 echo "${ECHO_T}$enable_float4_byval" >&6; }
21320 cat >>confdefs.h <<_ACEOF
21321 #define FLOAT4PASSBYVAL $float4passbyval
21325 # Decide whether float8 is passed by value.
21326 # Note: this setting also controls int8 and related types such as timestamp.
21327 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21328 # If not, trying to select it is an error.
21329 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21330 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21331 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21333 pgac_args="$pgac_args enable_float8_byval"
21335 # Check whether --enable-float8-byval was given.
21336 if test "${enable_float8_byval+set}" = set; then
21337 enableval=$enable_float8_byval;
21346 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21347 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21348 { (exit 1); exit 1; }; }
21353 enable_float8_byval=yes
21360 pgac_args="$pgac_args enable_float8_byval"
21362 # Check whether --enable-float8-byval was given.
21363 if test "${enable_float8_byval+set}" = set; then
21364 enableval=$enable_float8_byval;
21373 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21374 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21375 { (exit 1); exit 1; }; }
21380 enable_float8_byval=no
21385 if test "$enable_float8_byval" = yes ; then
21386 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21387 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21388 { (exit 1); exit 1; }; }
21391 if test "$enable_float8_byval" = yes ; then
21393 cat >>confdefs.h <<\_ACEOF
21394 #define USE_FLOAT8_BYVAL 1
21397 float8passbyval=true
21399 float8passbyval=false
21401 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21402 echo "${ECHO_T}$enable_float8_byval" >&6; }
21404 cat >>confdefs.h <<_ACEOF
21405 #define FLOAT8PASSBYVAL $float8passbyval
21409 # Determine memory alignment requirements for the basic C data types.
21411 { echo "$as_me:$LINENO: checking for short" >&5
21412 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21413 if test "${ac_cv_type_short+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21423 typedef short ac__type_new_;
21427 if ((ac__type_new_ *) 0)
21429 if (sizeof (ac__type_new_))
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest.$ac_objext; then
21452 ac_cv_type_short=yes
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_cv_type_short=no
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21463 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21465 # The cast to long int works around a bug in the HP C Compiler,
21466 # see AC_CHECK_SIZEOF for more information.
21467 { echo "$as_me:$LINENO: checking alignment of short" >&5
21468 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21469 if test "${ac_cv_alignof_short+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 if test "$cross_compiling" = yes; then
21473 # Depending upon the size, compute the lo and hi bounds.
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 $ac_includes_default
21482 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21484 typedef struct { char x; short y; } ac__type_alignof_;
21488 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21495 rm -f conftest.$ac_objext
21496 if { (ac_try="$ac_compile"
21497 case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_compile") 2>conftest.er1
21504 grep -v '^ *+' conftest.er1 >conftest.err
21506 cat conftest.err >&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest.$ac_objext; then
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21522 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21524 typedef struct { char x; short y; } ac__type_alignof_;
21528 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21544 grep -v '^ *+' conftest.er1 >conftest.err
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_hi=$ac_mid; break
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ac_lo=`expr $ac_mid + 1`
21558 if test $ac_lo -le $ac_mid; then
21562 ac_mid=`expr 2 '*' $ac_mid + 1`
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21581 typedef struct { char x; short y; } ac__type_alignof_;
21585 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21592 rm -f conftest.$ac_objext
21593 if { (ac_try="$ac_compile"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_compile") 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest.$ac_objext; then
21611 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21617 $ac_includes_default
21619 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21621 typedef struct { char x; short y; } ac__type_alignof_;
21625 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest.$ac_objext; then
21649 ac_lo=$ac_mid; break
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_hi=`expr '(' $ac_mid ')' - 1`
21655 if test $ac_mid -le $ac_hi; then
21659 ac_mid=`expr 2 '*' $ac_mid`
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 # Binary search between lo and hi bounds.
21676 while test "x$ac_lo" != "x$ac_hi"; do
21677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21686 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21688 typedef struct { char x; short y; } ac__type_alignof_;
21692 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_lo=`expr '(' $ac_mid ')' + 1`
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 ?*) ac_cv_alignof_short=$ac_lo;;
21728 '') if test "$ac_cv_type_short" = yes; then
21729 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21730 See \`config.log' for more details." >&5
21731 echo "$as_me: error: cannot compute alignment of short
21732 See \`config.log' for more details." >&2;}
21733 { (exit 77); exit 77; }; }
21735 ac_cv_alignof_short=0
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 $ac_includes_default
21747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21749 typedef struct { char x; short y; } ac__type_alignof_;
21750 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21751 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21753 #include <stdlib.h>
21758 FILE *f = fopen ("conftest.val", "w");
21761 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21763 long int i = longval ();
21764 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21766 fprintf (f, "%ld\n", i);
21770 unsigned long int i = ulongval ();
21771 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21773 fprintf (f, "%lu\n", i);
21775 return ferror (f) || fclose (f) != 0;
21781 rm -f conftest$ac_exeext
21782 if { (ac_try="$ac_link"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_link") 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21792 { (case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_try") 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 ac_cv_alignof_short=`cat conftest.val`
21803 echo "$as_me: program exited with status $ac_status" >&5
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 ( exit $ac_status )
21808 if test "$ac_cv_type_short" = yes; then
21809 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21810 See \`config.log' for more details." >&5
21811 echo "$as_me: error: cannot compute alignment of short
21812 See \`config.log' for more details." >&2;}
21813 { (exit 77); exit 77; }; }
21815 ac_cv_alignof_short=0
21818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21822 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21823 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21827 cat >>confdefs.h <<_ACEOF
21828 #define ALIGNOF_SHORT $ac_cv_alignof_short
21832 { echo "$as_me:$LINENO: checking for int" >&5
21833 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21834 if test "${ac_cv_type_int+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 cat >conftest.$ac_ext <<_ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 $ac_includes_default
21844 typedef int ac__type_new_;
21848 if ((ac__type_new_ *) 0)
21850 if (sizeof (ac__type_new_))
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21884 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21886 # The cast to long int works around a bug in the HP C Compiler,
21887 # see AC_CHECK_SIZEOF for more information.
21888 { echo "$as_me:$LINENO: checking alignment of int" >&5
21889 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21890 if test "${ac_cv_alignof_int+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 if test "$cross_compiling" = yes; then
21894 # Depending upon the size, compute the lo and hi bounds.
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21901 $ac_includes_default
21903 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21905 typedef struct { char x; int y; } ac__type_alignof_;
21909 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
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
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21943 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21945 typedef struct { char x; int y; } ac__type_alignof_;
21949 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21956 rm -f conftest.$ac_objext
21957 if { (ac_try="$ac_compile"
21958 case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_compile") 2>conftest.er1
21965 grep -v '^ *+' conftest.er1 >conftest.err
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } && {
21970 test -z "$ac_c_werror_flag" ||
21971 test ! -s conftest.err
21972 } && test -s conftest.$ac_objext; then
21973 ac_hi=$ac_mid; break
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 ac_lo=`expr $ac_mid + 1`
21979 if test $ac_lo -le $ac_mid; then
21983 ac_mid=`expr 2 '*' $ac_mid + 1`
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 cat >conftest.$ac_ext <<_ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21998 $ac_includes_default
22000 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22002 typedef struct { char x; int y; } ac__type_alignof_;
22006 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 $ac_includes_default
22040 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22042 typedef struct { char x; int y; } ac__type_alignof_;
22046 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22070 ac_lo=$ac_mid; break
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_hi=`expr '(' $ac_mid ')' - 1`
22076 if test $ac_mid -le $ac_hi; then
22080 ac_mid=`expr 2 '*' $ac_mid`
22083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 # Binary search between lo and hi bounds.
22097 while test "x$ac_lo" != "x$ac_hi"; do
22098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 $ac_includes_default
22107 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22109 typedef struct { char x; int y; } ac__type_alignof_;
22113 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22120 rm -f conftest.$ac_objext
22121 if { (ac_try="$ac_compile"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_compile") 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest.$ac_objext; then
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 ac_lo=`expr '(' $ac_mid ')' + 1`
22145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 ?*) ac_cv_alignof_int=$ac_lo;;
22149 '') if test "$ac_cv_type_int" = yes; then
22150 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22151 See \`config.log' for more details." >&5
22152 echo "$as_me: error: cannot compute alignment of int
22153 See \`config.log' for more details." >&2;}
22154 { (exit 77); exit 77; }; }
22156 ac_cv_alignof_int=0
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 $ac_includes_default
22168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22170 typedef struct { char x; int y; } ac__type_alignof_;
22171 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22172 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22174 #include <stdlib.h>
22179 FILE *f = fopen ("conftest.val", "w");
22182 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22184 long int i = longval ();
22185 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22187 fprintf (f, "%ld\n", i);
22191 unsigned long int i = ulongval ();
22192 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22194 fprintf (f, "%lu\n", i);
22196 return ferror (f) || fclose (f) != 0;
22202 rm -f conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206 *) ac_try_echo=$ac_try;;
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209 (eval "$ac_link") 2>&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22213 { (case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_try") 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_alignof_int=`cat conftest.val`
22224 echo "$as_me: program exited with status $ac_status" >&5
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ( exit $ac_status )
22229 if test "$ac_cv_type_int" = yes; then
22230 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22231 See \`config.log' for more details." >&5
22232 echo "$as_me: error: cannot compute alignment of int
22233 See \`config.log' for more details." >&2;}
22234 { (exit 77); exit 77; }; }
22236 ac_cv_alignof_int=0
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22244 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22248 cat >>confdefs.h <<_ACEOF
22249 #define ALIGNOF_INT $ac_cv_alignof_int
22253 { echo "$as_me:$LINENO: checking for long" >&5
22254 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22255 if test "${ac_cv_type_long+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 $ac_includes_default
22265 typedef long ac__type_new_;
22269 if ((ac__type_new_ *) 0)
22271 if (sizeof (ac__type_new_))
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_cv_type_long=yes
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22305 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22307 # The cast to long int works around a bug in the HP C Compiler,
22308 # see AC_CHECK_SIZEOF for more information.
22309 { echo "$as_me:$LINENO: checking alignment of long" >&5
22310 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22311 if test "${ac_cv_alignof_long+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 if test "$cross_compiling" = yes; then
22315 # Depending upon the size, compute the lo and hi bounds.
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 $ac_includes_default
22324 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22326 typedef struct { char x; long y; } ac__type_alignof_;
22330 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_compile") 2>conftest.er1
22346 grep -v '^ *+' conftest.er1 >conftest.err
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } && {
22351 test -z "$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 } && test -s conftest.$ac_objext; then
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 $ac_includes_default
22364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22366 typedef struct { char x; long y; } ac__type_alignof_;
22370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_compile") 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest.$ac_objext; then
22394 ac_hi=$ac_mid; break
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_lo=`expr $ac_mid + 1`
22400 if test $ac_lo -le $ac_mid; then
22404 ac_mid=`expr 2 '*' $ac_mid + 1`
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 $ac_includes_default
22421 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22423 typedef struct { char x; long y; } ac__type_alignof_;
22427 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22453 cat >conftest.$ac_ext <<_ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22459 $ac_includes_default
22461 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22463 typedef struct { char x; long y; } ac__type_alignof_;
22467 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22474 rm -f conftest.$ac_objext
22475 if { (ac_try="$ac_compile"
22476 case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_compile") 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest.$ac_objext; then
22491 ac_lo=$ac_mid; break
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_hi=`expr '(' $ac_mid ')' - 1`
22497 if test $ac_mid -le $ac_hi; then
22501 ac_mid=`expr 2 '*' $ac_mid`
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 # Binary search between lo and hi bounds.
22518 while test "x$ac_lo" != "x$ac_hi"; do
22519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22520 cat >conftest.$ac_ext <<_ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22528 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22530 typedef struct { char x; long y; } ac__type_alignof_;
22534 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22541 rm -f conftest.$ac_objext
22542 if { (ac_try="$ac_compile"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_compile") 2>conftest.er1
22550 grep -v '^ *+' conftest.er1 >conftest.err
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } && {
22555 test -z "$ac_c_werror_flag" ||
22556 test ! -s conftest.err
22557 } && test -s conftest.$ac_objext; then
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_lo=`expr '(' $ac_mid ')' + 1`
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 ?*) ac_cv_alignof_long=$ac_lo;;
22570 '') if test "$ac_cv_type_long" = yes; then
22571 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22572 See \`config.log' for more details." >&5
22573 echo "$as_me: error: cannot compute alignment of long
22574 See \`config.log' for more details." >&2;}
22575 { (exit 77); exit 77; }; }
22577 ac_cv_alignof_long=0
22581 cat >conftest.$ac_ext <<_ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22587 $ac_includes_default
22589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22591 typedef struct { char x; long y; } ac__type_alignof_;
22592 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22593 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22595 #include <stdlib.h>
22600 FILE *f = fopen ("conftest.val", "w");
22603 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22605 long int i = longval ();
22606 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22608 fprintf (f, "%ld\n", i);
22612 unsigned long int i = ulongval ();
22613 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22615 fprintf (f, "%lu\n", i);
22617 return ferror (f) || fclose (f) != 0;
22623 rm -f conftest$ac_exeext
22624 if { (ac_try="$ac_link"
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_link") 2>&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22634 { (case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_try") 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_alignof_long=`cat conftest.val`
22645 echo "$as_me: program exited with status $ac_status" >&5
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ( exit $ac_status )
22650 if test "$ac_cv_type_long" = yes; then
22651 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22652 See \`config.log' for more details." >&5
22653 echo "$as_me: error: cannot compute alignment of long
22654 See \`config.log' for more details." >&2;}
22655 { (exit 77); exit 77; }; }
22657 ac_cv_alignof_long=0
22660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22664 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22665 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22669 cat >>confdefs.h <<_ACEOF
22670 #define ALIGNOF_LONG $ac_cv_alignof_long
22674 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22675 { echo "$as_me:$LINENO: checking for long long int" >&5
22676 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22677 if test "${ac_cv_type_long_long_int+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22687 typedef long long int ac__type_new_;
22691 if ((ac__type_new_ *) 0)
22693 if (sizeof (ac__type_new_))
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706 (eval "$ac_compile") 2>conftest.er1
22708 grep -v '^ *+' conftest.er1 >conftest.err
22710 cat conftest.err >&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); } && {
22713 test -z "$ac_c_werror_flag" ||
22714 test ! -s conftest.err
22715 } && test -s conftest.$ac_objext; then
22716 ac_cv_type_long_long_int=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 ac_cv_type_long_long_int=no
22724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22727 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22729 # The cast to long int works around a bug in the HP C Compiler,
22730 # see AC_CHECK_SIZEOF for more information.
22731 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22732 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22733 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 if test "$cross_compiling" = yes; then
22737 # Depending upon the size, compute the lo and hi bounds.
22738 cat >conftest.$ac_ext <<_ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 $ac_includes_default
22746 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22748 typedef struct { char x; long long int y; } ac__type_alignof_;
22752 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22786 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22788 typedef struct { char x; long long int y; } ac__type_alignof_;
22792 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
22816 ac_hi=$ac_mid; break
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 ac_lo=`expr $ac_mid + 1`
22822 if test $ac_lo -le $ac_mid; then
22826 ac_mid=`expr 2 '*' $ac_mid + 1`
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 $ac_includes_default
22843 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22845 typedef struct { char x; long long int y; } ac__type_alignof_;
22849 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22875 cat >conftest.$ac_ext <<_ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 $ac_includes_default
22883 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22885 typedef struct { char x; long long int y; } ac__type_alignof_;
22889 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 ac_lo=$ac_mid; break
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_hi=`expr '(' $ac_mid ')' - 1`
22919 if test $ac_mid -le $ac_hi; then
22923 ac_mid=`expr 2 '*' $ac_mid`
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 # Binary search between lo and hi bounds.
22940 while test "x$ac_lo" != "x$ac_hi"; do
22941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 $ac_includes_default
22950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22952 typedef struct { char x; long long int y; } ac__type_alignof_;
22956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_compile") 2>conftest.er1
22972 grep -v '^ *+' conftest.er1 >conftest.err
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest.$ac_objext; then
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ac_lo=`expr '(' $ac_mid ')' + 1`
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22992 '') if test "$ac_cv_type_long_long_int" = yes; then
22993 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22994 See \`config.log' for more details." >&5
22995 echo "$as_me: error: cannot compute alignment of long long int
22996 See \`config.log' for more details." >&2;}
22997 { (exit 77); exit 77; }; }
22999 ac_cv_alignof_long_long_int=0
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 $ac_includes_default
23011 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23013 typedef struct { char x; long long int y; } ac__type_alignof_;
23014 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23015 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23017 #include <stdlib.h>
23022 FILE *f = fopen ("conftest.val", "w");
23025 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23027 long int i = longval ();
23028 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23030 fprintf (f, "%ld\n", i);
23034 unsigned long int i = ulongval ();
23035 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23037 fprintf (f, "%lu\n", i);
23039 return ferror (f) || fclose (f) != 0;
23045 rm -f conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_link") 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056 { (case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_try") 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_alignof_long_long_int=`cat conftest.val`
23067 echo "$as_me: program exited with status $ac_status" >&5
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23071 ( exit $ac_status )
23072 if test "$ac_cv_type_long_long_int" = yes; then
23073 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23074 See \`config.log' for more details." >&5
23075 echo "$as_me: error: cannot compute alignment of long long int
23076 See \`config.log' for more details." >&2;}
23077 { (exit 77); exit 77; }; }
23079 ac_cv_alignof_long_long_int=0
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23086 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23087 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23091 cat >>confdefs.h <<_ACEOF
23092 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23097 { echo "$as_me:$LINENO: checking for double" >&5
23098 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23099 if test "${ac_cv_type_double+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23108 $ac_includes_default
23109 typedef double ac__type_new_;
23113 if ((ac__type_new_ *) 0)
23115 if (sizeof (ac__type_new_))
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 ac_cv_type_double=yes
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_cv_type_double=no
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23149 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23151 # The cast to long int works around a bug in the HP C Compiler,
23152 # see AC_CHECK_SIZEOF for more information.
23153 { echo "$as_me:$LINENO: checking alignment of double" >&5
23154 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23155 if test "${ac_cv_alignof_double+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 if test "$cross_compiling" = yes; then
23159 # Depending upon the size, compute the lo and hi bounds.
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 $ac_includes_default
23168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23170 typedef struct { char x; double y; } ac__type_alignof_;
23174 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 $ac_includes_default
23208 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23210 typedef struct { char x; double y; } ac__type_alignof_;
23214 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_compile") 2>conftest.er1
23230 grep -v '^ *+' conftest.er1 >conftest.err
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } && {
23235 test -z "$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 } && test -s conftest.$ac_objext; then
23238 ac_hi=$ac_mid; break
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ac_lo=`expr $ac_mid + 1`
23244 if test $ac_lo -le $ac_mid; then
23248 ac_mid=`expr 2 '*' $ac_mid + 1`
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 cat >conftest.$ac_ext <<_ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23263 $ac_includes_default
23265 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23267 typedef struct { char x; double y; } ac__type_alignof_;
23271 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 $ac_includes_default
23305 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23307 typedef struct { char x; double y; } ac__type_alignof_;
23311 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_lo=$ac_mid; break
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_hi=`expr '(' $ac_mid ')' - 1`
23341 if test $ac_mid -le $ac_hi; then
23345 ac_mid=`expr 2 '*' $ac_mid`
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 # Binary search between lo and hi bounds.
23362 while test "x$ac_lo" != "x$ac_hi"; do
23363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 $ac_includes_default
23372 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23374 typedef struct { char x; double y; } ac__type_alignof_;
23378 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_lo=`expr '(' $ac_mid ')' + 1`
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 ?*) ac_cv_alignof_double=$ac_lo;;
23414 '') if test "$ac_cv_type_double" = yes; then
23415 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23416 See \`config.log' for more details." >&5
23417 echo "$as_me: error: cannot compute alignment of double
23418 See \`config.log' for more details." >&2;}
23419 { (exit 77); exit 77; }; }
23421 ac_cv_alignof_double=0
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 $ac_includes_default
23433 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23435 typedef struct { char x; double y; } ac__type_alignof_;
23436 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23437 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23439 #include <stdlib.h>
23444 FILE *f = fopen ("conftest.val", "w");
23447 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23449 long int i = longval ();
23450 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23452 fprintf (f, "%ld\n", i);
23456 unsigned long int i = ulongval ();
23457 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23459 fprintf (f, "%lu\n", i);
23461 return ferror (f) || fclose (f) != 0;
23467 rm -f conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_link") 2>&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23478 { (case "(($ac_try" in
23479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480 *) ac_try_echo=$ac_try;;
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483 (eval "$ac_try") 2>&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 ac_cv_alignof_double=`cat conftest.val`
23489 echo "$as_me: program exited with status $ac_status" >&5
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23493 ( exit $ac_status )
23494 if test "$ac_cv_type_double" = yes; then
23495 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23496 See \`config.log' for more details." >&5
23497 echo "$as_me: error: cannot compute alignment of double
23498 See \`config.log' for more details." >&2;}
23499 { (exit 77); exit 77; }; }
23501 ac_cv_alignof_double=0
23504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23508 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23509 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23513 cat >>confdefs.h <<_ACEOF
23514 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23519 # Compute maximum alignment of any basic type.
23520 # We assume long's alignment is at least as strong as char, short, or int;
23521 # but we must check long long (if it exists) and double.
23523 MAX_ALIGNOF=$ac_cv_alignof_long
23524 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23525 MAX_ALIGNOF=$ac_cv_alignof_double
23527 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23528 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23531 cat >>confdefs.h <<_ACEOF
23532 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23537 # Some platforms predefine the types int8, int16, etc. Only check
23538 # a (hopefully) representative subset.
23539 { echo "$as_me:$LINENO: checking for int8" >&5
23540 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23541 if test "${ac_cv_type_int8+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 cat >conftest.$ac_ext <<_ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h. */
23551 #ifdef HAVE_SUPPORTDEFS_H
23552 #include <SupportDefs.h>
23555 typedef int8 ac__type_new_;
23559 if ((ac__type_new_ *) 0)
23561 if (sizeof (ac__type_new_))
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_compile") 2>conftest.er1
23576 grep -v '^ *+' conftest.er1 >conftest.err
23578 cat conftest.err >&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } && {
23581 test -z "$ac_c_werror_flag" ||
23582 test ! -s conftest.err
23583 } && test -s conftest.$ac_objext; then
23584 ac_cv_type_int8=yes
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23595 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23596 if test $ac_cv_type_int8 = yes; then
23598 cat >>confdefs.h <<_ACEOF
23599 #define HAVE_INT8 1
23604 { echo "$as_me:$LINENO: checking for uint8" >&5
23605 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23606 if test "${ac_cv_type_uint8+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 cat >conftest.$ac_ext <<_ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23616 #ifdef HAVE_SUPPORTDEFS_H
23617 #include <SupportDefs.h>
23620 typedef uint8 ac__type_new_;
23624 if ((ac__type_new_ *) 0)
23626 if (sizeof (ac__type_new_))
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_cv_type_uint8=yes
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_type_uint8=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23660 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23661 if test $ac_cv_type_uint8 = yes; then
23663 cat >>confdefs.h <<_ACEOF
23664 #define HAVE_UINT8 1
23669 { echo "$as_me:$LINENO: checking for int64" >&5
23670 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23671 if test "${ac_cv_type_int64+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23674 cat >conftest.$ac_ext <<_ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23681 #ifdef HAVE_SUPPORTDEFS_H
23682 #include <SupportDefs.h>
23685 typedef int64 ac__type_new_;
23689 if ((ac__type_new_ *) 0)
23691 if (sizeof (ac__type_new_))
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_compile") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest.$ac_objext; then
23714 ac_cv_type_int64=yes
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_cv_type_int64=no
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23725 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23726 if test $ac_cv_type_int64 = yes; then
23728 cat >>confdefs.h <<_ACEOF
23729 #define HAVE_INT64 1
23734 { echo "$as_me:$LINENO: checking for uint64" >&5
23735 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23736 if test "${ac_cv_type_uint64+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 #ifdef HAVE_SUPPORTDEFS_H
23747 #include <SupportDefs.h>
23750 typedef uint64 ac__type_new_;
23754 if ((ac__type_new_ *) 0)
23756 if (sizeof (ac__type_new_))
23762 rm -f conftest.$ac_objext
23763 if { (ac_try="$ac_compile"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_compile") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest.$ac_objext; then
23779 ac_cv_type_uint64=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_type_uint64=no
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23790 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23791 if test $ac_cv_type_uint64 = yes; then
23793 cat >>confdefs.h <<_ACEOF
23794 #define HAVE_UINT64 1
23801 # We also check for sig_atomic_t, which *should* be defined per ANSI
23802 # C, but is missing on some old platforms.
23803 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23804 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23805 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 #include <signal.h>
23816 typedef sig_atomic_t ac__type_new_;
23820 if ((ac__type_new_ *) 0)
23822 if (sizeof (ac__type_new_))
23828 rm -f conftest.$ac_objext
23829 if { (ac_try="$ac_compile"
23830 case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835 (eval "$ac_compile") 2>conftest.er1
23837 grep -v '^ *+' conftest.er1 >conftest.err
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && {
23842 test -z "$ac_c_werror_flag" ||
23843 test ! -s conftest.err
23844 } && test -s conftest.$ac_objext; then
23845 ac_cv_type_sig_atomic_t=yes
23847 echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23850 ac_cv_type_sig_atomic_t=no
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23856 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23857 if test $ac_cv_type_sig_atomic_t = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_SIG_ATOMIC_T 1
23868 # If the user did not disable integer datetimes, check that
23869 # there is a working 64-bit integral type to use.
23870 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23871 test x"$HAVE_LONG_INT_64" = x"no" &&
23872 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23873 test x"$HAVE_INT64" = x"no" ; then
23874 { { echo "$as_me:$LINENO: error:
23875 Integer-based datetime support requires a 64-bit integer type,
23876 but no such type could be found. The --disable-integer-datetimes
23877 configure option can be used to disable integer-based storage
23878 of datetime values." >&5
23879 echo "$as_me: error:
23880 Integer-based datetime support requires a 64-bit integer type,
23881 but no such type could be found. The --disable-integer-datetimes
23882 configure option can be used to disable integer-based storage
23883 of datetime values." >&2;}
23884 { (exit 1); exit 1; }; }
23888 if test "$PORTNAME" != "win32"
23890 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23891 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23892 if test "${pgac_cv_func_posix_signals+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23895 cat >conftest.$ac_ext <<_ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h. */
23901 #include <signal.h>
23906 struct sigaction act, oact;
23907 sigemptyset(&act.sa_mask);
23908 act.sa_flags = SA_RESTART;
23909 sigaction(0, &act, &oact);
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_link") 2>conftest.er1
23923 grep -v '^ *+' conftest.er1 >conftest.err
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } && {
23928 test -z "$ac_c_werror_flag" ||
23929 test ! -s conftest.err
23930 } && test -s conftest$ac_exeext &&
23931 $as_test_x conftest$ac_exeext; then
23932 pgac_cv_func_posix_signals=yes
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 pgac_cv_func_posix_signals=no
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941 conftest$ac_exeext conftest.$ac_ext
23943 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23944 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23945 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_POSIX_SIGNALS
23952 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23954 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23955 { { echo "$as_me:$LINENO: error:
23956 Thread-safety requires POSIX signals, which are not supported by this
23957 operating system." >&5
23958 echo "$as_me: error:
23959 Thread-safety requires POSIX signals, which are not supported by this
23960 operating system." >&2;}
23961 { (exit 1); exit 1; }; }
23965 if test $ac_cv_func_fseeko = yes; then
23966 # Check whether --enable-largefile was given.
23967 if test "${enable_largefile+set}" = set; then
23968 enableval=$enable_largefile;
23971 if test "$enable_largefile" != no; then
23973 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23974 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23975 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 ac_cv_sys_largefile_CC=no
23979 if test "$GCC" != yes; then
23982 # IRIX 6.2 and later do not support large files by default,
23983 # so use the C compiler's -n32 option if that helps.
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 #include <sys/types.h>
23991 /* Check that off_t can represent 2**63 - 1 correctly.
23992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23993 since some C++ compilers masquerading as C compilers
23994 incorrectly reject 9223372036854775807. */
23995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23997 && LARGE_OFF_T % 2147483647 == 1)
24007 rm -f conftest.$ac_objext
24008 if { (ac_try="$ac_compile"
24009 case "(($ac_try" in
24010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014 (eval "$ac_compile") 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } && {
24021 test -z "$ac_c_werror_flag" ||
24022 test ! -s conftest.err
24023 } && test -s conftest.$ac_objext; then
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24032 rm -f core conftest.err conftest.$ac_objext
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24043 grep -v '^ *+' conftest.er1 >conftest.err
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest.$ac_objext; then
24051 ac_cv_sys_largefile_CC=' -n32'; break
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24059 rm -f core conftest.err conftest.$ac_objext
24063 rm -f conftest.$ac_ext
24066 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24067 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24068 if test "$ac_cv_sys_largefile_CC" != no; then
24069 CC=$CC$ac_cv_sys_largefile_CC
24072 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24073 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24074 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 #include <sys/types.h>
24085 /* Check that off_t can represent 2**63 - 1 correctly.
24086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24087 since some C++ compilers masquerading as C compilers
24088 incorrectly reject 9223372036854775807. */
24089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24091 && LARGE_OFF_T % 2147483647 == 1)
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_compile") 2>conftest.er1
24110 grep -v '^ *+' conftest.er1 >conftest.err
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && {
24115 test -z "$ac_c_werror_flag" ||
24116 test ! -s conftest.err
24117 } && test -s conftest.$ac_objext; then
24118 ac_cv_sys_file_offset_bits=no; break
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 cat >conftest.$ac_ext <<_ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 #define _FILE_OFFSET_BITS 64
24134 #include <sys/types.h>
24135 /* Check that off_t can represent 2**63 - 1 correctly.
24136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24137 since some C++ compilers masquerading as C compilers
24138 incorrectly reject 9223372036854775807. */
24139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24141 && LARGE_OFF_T % 2147483647 == 1)
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_cv_sys_file_offset_bits=64; break
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 ac_cv_sys_file_offset_bits=unknown
24181 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24182 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24183 case $ac_cv_sys_file_offset_bits in #(
24186 cat >>confdefs.h <<_ACEOF
24187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24192 if test $ac_cv_sys_file_offset_bits = unknown; then
24193 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24194 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24195 if test "${ac_cv_sys_large_files+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24199 cat >conftest.$ac_ext <<_ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 #include <sys/types.h>
24206 /* Check that off_t can represent 2**63 - 1 correctly.
24207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24208 since some C++ compilers masquerading as C compilers
24209 incorrectly reject 9223372036854775807. */
24210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24212 && LARGE_OFF_T % 2147483647 == 1)
24222 rm -f conftest.$ac_objext
24223 if { (ac_try="$ac_compile"
24224 case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_compile") 2>conftest.er1
24231 grep -v '^ *+' conftest.er1 >conftest.err
24233 cat conftest.err >&5
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } && {
24236 test -z "$ac_c_werror_flag" ||
24237 test ! -s conftest.err
24238 } && test -s conftest.$ac_objext; then
24239 ac_cv_sys_large_files=no; break
24241 echo "$as_me: failed program was:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #define _LARGE_FILES 1
24255 #include <sys/types.h>
24256 /* Check that off_t can represent 2**63 - 1 correctly.
24257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24258 since some C++ compilers masquerading as C compilers
24259 incorrectly reject 9223372036854775807. */
24260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24262 && LARGE_OFF_T % 2147483647 == 1)
24272 rm -f conftest.$ac_objext
24273 if { (ac_try="$ac_compile"
24274 case "(($ac_try" in
24275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276 *) ac_try_echo=$ac_try;;
24278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24279 (eval "$ac_compile") 2>conftest.er1
24281 grep -v '^ *+' conftest.er1 >conftest.err
24283 cat conftest.err >&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); } && {
24286 test -z "$ac_c_werror_flag" ||
24287 test ! -s conftest.err
24288 } && test -s conftest.$ac_objext; then
24289 ac_cv_sys_large_files=1; break
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 ac_cv_sys_large_files=unknown
24302 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24303 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24304 case $ac_cv_sys_large_files in #(
24307 cat >>confdefs.h <<_ACEOF
24308 #define _LARGE_FILES $ac_cv_sys_large_files
24318 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24319 { echo "$as_me:$LINENO: checking for off_t" >&5
24320 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24321 if test "${ac_cv_type_off_t+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 cat >conftest.$ac_ext <<_ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 $ac_includes_default
24331 typedef off_t ac__type_new_;
24335 if ((ac__type_new_ *) 0)
24337 if (sizeof (ac__type_new_))
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_compile") 2>conftest.er1
24352 grep -v '^ *+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest.$ac_objext; then
24360 ac_cv_type_off_t=yes
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24365 ac_cv_type_off_t=no
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24371 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24373 # The cast to long int works around a bug in the HP C Compiler
24374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24376 # This bug is HP SR number 8606223364.
24377 { echo "$as_me:$LINENO: checking size of off_t" >&5
24378 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24379 if test "${ac_cv_sizeof_off_t+set}" = set; then
24380 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 if test "$cross_compiling" = yes; then
24383 # Depending upon the size, compute the lo and hi bounds.
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 $ac_includes_default
24391 typedef off_t ac__type_sizeof_;
24395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24402 rm -f conftest.$ac_objext
24403 if { (ac_try="$ac_compile"
24404 case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_compile") 2>conftest.er1
24411 grep -v '^ *+' conftest.er1 >conftest.err
24413 cat conftest.err >&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } && {
24416 test -z "$ac_c_werror_flag" ||
24417 test ! -s conftest.err
24418 } && test -s conftest.$ac_objext; then
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 typedef off_t ac__type_sizeof_;
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24456 ac_hi=$ac_mid; break
24458 echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ac_lo=`expr $ac_mid + 1`
24462 if test $ac_lo -le $ac_mid; then
24466 ac_mid=`expr 2 '*' $ac_mid + 1`
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 cat >conftest.$ac_ext <<_ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h. */
24481 $ac_includes_default
24482 typedef off_t ac__type_sizeof_;
24486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1 >conftest.err
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24519 typedef off_t ac__type_sizeof_;
24523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24547 ac_lo=$ac_mid; break
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_hi=`expr '(' $ac_mid ')' - 1`
24553 if test $ac_mid -le $ac_hi; then
24557 ac_mid=`expr 2 '*' $ac_mid`
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 # Binary search between lo and hi bounds.
24574 while test "x$ac_lo" != "x$ac_hi"; do
24575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 $ac_includes_default
24583 typedef off_t ac__type_sizeof_;
24587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_compile") 2>conftest.er1
24603 grep -v '^ *+' conftest.er1 >conftest.err
24605 cat conftest.err >&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } && {
24608 test -z "$ac_c_werror_flag" ||
24609 test ! -s conftest.err
24610 } && test -s conftest.$ac_objext; then
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24616 ac_lo=`expr '(' $ac_mid ')' + 1`
24619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24622 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24623 '') if test "$ac_cv_type_off_t" = yes; then
24624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24625 See \`config.log' for more details." >&5
24626 echo "$as_me: error: cannot compute sizeof (off_t)
24627 See \`config.log' for more details." >&2;}
24628 { (exit 77); exit 77; }; }
24630 ac_cv_sizeof_off_t=0
24634 cat >conftest.$ac_ext <<_ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24640 $ac_includes_default
24641 typedef off_t ac__type_sizeof_;
24642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24645 #include <stdlib.h>
24650 FILE *f = fopen ("conftest.val", "w");
24653 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24655 long int i = longval ();
24656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24658 fprintf (f, "%ld\n", i);
24662 unsigned long int i = ulongval ();
24663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24665 fprintf (f, "%lu\n", i);
24667 return ferror (f) || fclose (f) != 0;
24673 rm -f conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_link") 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24684 { (case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689 (eval "$ac_try") 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_sizeof_off_t=`cat conftest.val`
24695 echo "$as_me: program exited with status $ac_status" >&5
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ( exit $ac_status )
24700 if test "$ac_cv_type_off_t" = yes; then
24701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24702 See \`config.log' for more details." >&5
24703 echo "$as_me: error: cannot compute sizeof (off_t)
24704 See \`config.log' for more details." >&2;}
24705 { (exit 77); exit 77; }; }
24707 ac_cv_sizeof_off_t=0
24710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24715 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24719 cat >>confdefs.h <<_ACEOF
24720 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24725 # If we don't have largefile support, can't handle segsize >= 2GB.
24726 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24727 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24728 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24729 { (exit 1); exit 1; }; }
24732 # SunOS doesn't handle negative byte comparisons properly with +/- return
24733 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24735 if test "${ac_cv_func_memcmp_working+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 if test "$cross_compiling" = yes; then
24739 ac_cv_func_memcmp_working=no
24741 cat >conftest.$ac_ext <<_ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h. */
24747 $ac_includes_default
24752 /* Some versions of memcmp are not 8-bit clean. */
24753 char c0 = '\100', c1 = '\200', c2 = '\201';
24754 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24757 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24758 or more and with at least one buffer not starting on a 4-byte boundary.
24759 William Lewis provided this test program. */
24764 for (i = 0; i < 4; i++)
24768 strcpy (a, "--------01111111");
24769 strcpy (b, "--------10000000");
24770 if (memcmp (a, b, 16) >= 0)
24780 rm -f conftest$ac_exeext
24781 if { (ac_try="$ac_link"
24782 case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_link") 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24791 { (case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_try") 2>&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_func_memcmp_working=yes
24802 echo "$as_me: program exited with status $ac_status" >&5
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ( exit $ac_status )
24807 ac_cv_func_memcmp_working=no
24809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24815 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24816 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24817 *" memcmp.$ac_objext "* ) ;;
24818 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24825 # Select semaphore implementation type.
24826 if test "$PORTNAME" != "win32"; then
24827 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24829 cat >>confdefs.h <<\_ACEOF
24830 #define USE_NAMED_POSIX_SEMAPHORES 1
24833 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24835 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24837 cat >>confdefs.h <<\_ACEOF
24838 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24841 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24844 cat >>confdefs.h <<\_ACEOF
24845 #define USE_SYSV_SEMAPHORES 1
24848 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24853 cat >>confdefs.h <<\_ACEOF
24854 #define USE_WIN32_SEMAPHORES 1
24857 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24861 # Select shared-memory implementation type.
24862 if test "$PORTNAME" != "win32"; then
24864 cat >>confdefs.h <<\_ACEOF
24865 #define USE_SYSV_SHARED_MEMORY 1
24868 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24871 cat >>confdefs.h <<\_ACEOF
24872 #define USE_WIN32_SHARED_MEMORY 1
24875 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24878 # If not set in template file, set bytes to use libc memset()
24879 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24880 MEMSET_LOOP_LIMIT=1024
24883 cat >>confdefs.h <<_ACEOF
24884 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24889 if test "$enable_nls" = yes ; then
24891 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24892 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24893 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24896 ac_func_search_save_LIBS=$LIBS
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24904 /* Override any GCC internal prototype to avoid an error.
24905 Use char because int might match the return type of a GCC
24906 builtin and then its argument prototype would still apply. */
24910 char bind_textdomain_codeset ();
24914 return bind_textdomain_codeset ();
24919 for ac_lib in '' intl; do
24920 if test -z "$ac_lib"; then
24921 ac_res="none required"
24924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24926 rm -f conftest.$ac_objext conftest$ac_exeext
24927 if { (ac_try="$ac_link"
24928 case "(($ac_try" in
24929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930 *) ac_try_echo=$ac_try;;
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933 (eval "$ac_link") 2>conftest.er1
24935 grep -v '^ *+' conftest.er1 >conftest.err
24937 cat conftest.err >&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest$ac_exeext &&
24943 $as_test_x conftest$ac_exeext; then
24944 ac_cv_search_bind_textdomain_codeset=$ac_res
24946 echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24954 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24958 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24961 ac_cv_search_bind_textdomain_codeset=no
24963 rm conftest.$ac_ext
24964 LIBS=$ac_func_search_save_LIBS
24966 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24967 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24968 ac_res=$ac_cv_search_bind_textdomain_codeset
24969 if test "$ac_res" != no; then
24970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24973 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24974 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24975 { (exit 1); exit 1; }; }
24978 if test "${ac_cv_header_libintl_h+set}" = set; then
24979 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24980 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24981 if test "${ac_cv_header_libintl_h+set}" = set; then
24982 echo $ECHO_N "(cached) $ECHO_C" >&6
24984 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24985 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24987 # Is the header compilable?
24988 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24989 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 $ac_includes_default
24997 #include <libintl.h>
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_compile") 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest.$ac_objext; then
25016 ac_header_compiler=yes
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25021 ac_header_compiler=no
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25026 echo "${ECHO_T}$ac_header_compiler" >&6; }
25028 # Is the header present?
25029 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25030 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037 #include <libintl.h>
25039 if { (ac_try="$ac_cpp conftest.$ac_ext"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } >/dev/null && {
25052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25055 ac_header_preproc=yes
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 ac_header_preproc=no
25063 rm -f conftest.err conftest.$ac_ext
25064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25065 echo "${ECHO_T}$ac_header_preproc" >&6; }
25067 # So? What about this header?
25068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25070 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25071 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25072 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25073 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25074 ac_header_preproc=yes
25077 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25078 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25080 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25081 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25082 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25084 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25086 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25087 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25088 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25090 ## ---------------------------------------- ##
25091 ## Report this to pgsql-bugs@postgresql.org ##
25092 ## ---------------------------------------- ##
25094 ) | sed "s/^/$as_me: WARNING: /" >&2
25097 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25098 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25099 if test "${ac_cv_header_libintl_h+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 ac_cv_header_libintl_h=$ac_header_preproc
25104 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25105 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25108 if test $ac_cv_header_libintl_h = yes; then
25111 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25112 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25113 { (exit 1); exit 1; }; }
25117 for ac_prog in msgfmt
25119 # Extract the first word of "$ac_prog", so it can be a program name with args.
25120 set dummy $ac_prog; ac_word=$2
25121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25123 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25126 if test -n "$MSGFMT"; then
25127 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25130 for as_dir in $PATH
25133 test -z "$as_dir" && as_dir=.
25134 for ac_exec_ext in '' $ac_executable_extensions; do
25135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25136 ac_cv_prog_MSGFMT="$ac_prog"
25137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25146 MSGFMT=$ac_cv_prog_MSGFMT
25147 if test -n "$MSGFMT"; then
25148 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25149 echo "${ECHO_T}$MSGFMT" >&6; }
25151 { echo "$as_me:$LINENO: result: no" >&5
25152 echo "${ECHO_T}no" >&6; }
25156 test -n "$MSGFMT" && break
25159 if test -z "$MSGFMT"; then
25160 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25161 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25162 { (exit 1); exit 1; }; }
25164 for ac_prog in msgmerge
25166 # Extract the first word of "$ac_prog", so it can be a program name with args.
25167 set dummy $ac_prog; ac_word=$2
25168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25170 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 if test -n "$MSGMERGE"; then
25174 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177 for as_dir in $PATH
25180 test -z "$as_dir" && as_dir=.
25181 for ac_exec_ext in '' $ac_executable_extensions; do
25182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25183 ac_cv_prog_MSGMERGE="$ac_prog"
25184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25193 MSGMERGE=$ac_cv_prog_MSGMERGE
25194 if test -n "$MSGMERGE"; then
25195 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25196 echo "${ECHO_T}$MSGMERGE" >&6; }
25198 { echo "$as_me:$LINENO: result: no" >&5
25199 echo "${ECHO_T}no" >&6; }
25203 test -n "$MSGMERGE" && break
25206 for ac_prog in xgettext
25208 # Extract the first word of "$ac_prog", so it can be a program name with args.
25209 set dummy $ac_prog; ac_word=$2
25210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25212 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25215 if test -n "$XGETTEXT"; then
25216 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25219 for as_dir in $PATH
25222 test -z "$as_dir" && as_dir=.
25223 for ac_exec_ext in '' $ac_executable_extensions; do
25224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25225 ac_cv_prog_XGETTEXT="$ac_prog"
25226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25235 XGETTEXT=$ac_cv_prog_XGETTEXT
25236 if test -n "$XGETTEXT"; then
25237 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25238 echo "${ECHO_T}$XGETTEXT" >&6; }
25240 { echo "$as_me:$LINENO: result: no" >&5
25241 echo "${ECHO_T}no" >&6; }
25245 test -n "$XGETTEXT" && break
25251 # Check for Tcl configuration script tclConfig.sh
25252 if test "$with_tcl" = yes; then
25253 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25255 # Extract the first word of "$ac_prog", so it can be a program name with args.
25256 set dummy $ac_prog; ac_word=$2
25257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25259 if test "${ac_cv_path_TCLSH+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25264 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25268 for as_dir in $PATH
25271 test -z "$as_dir" && as_dir=.
25272 for ac_exec_ext in '' $ac_executable_extensions; do
25273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25274 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25285 TCLSH=$ac_cv_path_TCLSH
25286 if test -n "$TCLSH"; then
25287 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25288 echo "${ECHO_T}$TCLSH" >&6; }
25290 { echo "$as_me:$LINENO: result: no" >&5
25291 echo "${ECHO_T}no" >&6; }
25295 test -n "$TCLSH" && break
25298 if test x"$TCLSH" = x""; then
25299 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25300 echo "$as_me: error: Tcl shell not found" >&2;}
25301 { (exit 1); exit 1; }; }
25304 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25305 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25306 # Let user override test
25307 if test -z "$TCL_CONFIG_SH"; then
25308 pgac_test_dirs="$with_tclconfig"
25310 set X $pgac_test_dirs; shift
25311 if test $# -eq 0; then
25312 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25313 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25314 { (exit 1); exit 1; }; }
25315 set X `echo 'puts $auto_path' | $TCLSH`; shift
25319 if test -r "$pgac_dir/tclConfig.sh"; then
25320 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25326 if test -z "$TCL_CONFIG_SH"; then
25327 { echo "$as_me:$LINENO: result: no" >&5
25328 echo "${ECHO_T}no" >&6; }
25329 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25330 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25331 { (exit 1); exit 1; }; }
25333 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25334 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25340 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25341 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25342 eval TCL_LIBS=\"$TCL_LIBS\"
25343 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25344 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25346 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25347 ac_save_CPPFLAGS=$CPPFLAGS
25348 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25349 if test "${ac_cv_header_tcl_h+set}" = set; then
25350 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25351 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25352 if test "${ac_cv_header_tcl_h+set}" = set; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25355 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25356 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25358 # Is the header compilable?
25359 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25360 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 $ac_includes_default
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_compile") 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } && {
25384 test -z "$ac_c_werror_flag" ||
25385 test ! -s conftest.err
25386 } && test -s conftest.$ac_objext; then
25387 ac_header_compiler=yes
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25392 ac_header_compiler=no
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25397 echo "${ECHO_T}$ac_header_compiler" >&6; }
25399 # Is the header present?
25400 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25401 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25410 if { (ac_try="$ac_cpp conftest.$ac_ext"
25411 case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25418 grep -v '^ *+' conftest.er1 >conftest.err
25420 cat conftest.err >&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); } >/dev/null && {
25423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25424 test ! -s conftest.err
25426 ac_header_preproc=yes
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25431 ac_header_preproc=no
25434 rm -f conftest.err conftest.$ac_ext
25435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25436 echo "${ECHO_T}$ac_header_preproc" >&6; }
25438 # So? What about this header?
25439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25441 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25442 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25444 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25445 ac_header_preproc=yes
25448 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25449 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25450 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25451 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25452 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25453 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25455 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25456 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25457 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25458 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25459 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25461 ## ---------------------------------------- ##
25462 ## Report this to pgsql-bugs@postgresql.org ##
25463 ## ---------------------------------------- ##
25465 ) | sed "s/^/$as_me: WARNING: /" >&2
25468 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25469 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25470 if test "${ac_cv_header_tcl_h+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 ac_cv_header_tcl_h=$ac_header_preproc
25475 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25476 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25479 if test $ac_cv_header_tcl_h = yes; then
25482 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25483 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25484 { (exit 1); exit 1; }; }
25488 CPPFLAGS=$ac_save_CPPFLAGS
25492 # Check for DocBook and tools
25494 for ac_prog in onsgmls nsgmls
25496 # Extract the first word of "$ac_prog", so it can be a program name with args.
25497 set dummy $ac_prog; ac_word=$2
25498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25500 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 if test -n "$NSGMLS"; then
25504 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25507 for as_dir in $PATH
25510 test -z "$as_dir" && as_dir=.
25511 for ac_exec_ext in '' $ac_executable_extensions; do
25512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25513 ac_cv_prog_NSGMLS="$ac_prog"
25514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25523 NSGMLS=$ac_cv_prog_NSGMLS
25524 if test -n "$NSGMLS"; then
25525 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25526 echo "${ECHO_T}$NSGMLS" >&6; }
25528 { echo "$as_me:$LINENO: result: no" >&5
25529 echo "${ECHO_T}no" >&6; }
25533 test -n "$NSGMLS" && break
25536 for ac_prog in openjade jade
25538 # Extract the first word of "$ac_prog", so it can be a program name with args.
25539 set dummy $ac_prog; ac_word=$2
25540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25542 if test "${ac_cv_prog_JADE+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 if test -n "$JADE"; then
25546 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25549 for as_dir in $PATH
25552 test -z "$as_dir" && as_dir=.
25553 for ac_exec_ext in '' $ac_executable_extensions; do
25554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25555 ac_cv_prog_JADE="$ac_prog"
25556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25565 JADE=$ac_cv_prog_JADE
25566 if test -n "$JADE"; then
25567 { echo "$as_me:$LINENO: result: $JADE" >&5
25568 echo "${ECHO_T}$JADE" >&6; }
25570 { echo "$as_me:$LINENO: result: no" >&5
25571 echo "${ECHO_T}no" >&6; }
25575 test -n "$JADE" && break
25579 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25580 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25581 if test "${pgac_cv_check_docbook+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25584 cat >conftest.sgml <<EOF
25585 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25587 <title>test</title>
25589 <title>random</title>
25591 <title>testsect</title>
25598 pgac_cv_check_docbook=no
25600 if test -n "$NSGMLS"; then
25601 $NSGMLS -s conftest.sgml 1>&5 2>&1
25602 if test $? -eq 0; then
25603 pgac_cv_check_docbook=yes
25606 rm -f conftest.sgml
25608 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25609 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25611 have_docbook=$pgac_cv_check_docbook
25614 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25615 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25616 if test "${pgac_cv_path_stylesheets+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 if test -n "$DOCBOOKSTYLE"; then
25620 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25622 for pgac_prefix in /usr /usr/local /opt /sw; do
25623 for pgac_infix in share lib; do
25624 for pgac_postfix in \
25625 sgml/stylesheets/nwalsh-modular \
25626 sgml/stylesheets/docbook \
25627 sgml/stylesheets/dsssl/docbook \
25628 sgml/docbook-dsssl \
25629 sgml/docbook/dsssl/modular \
25630 sgml/docbook/stylesheet/dsssl/modular \
25631 sgml/docbook/dsssl-stylesheets \
25632 sgml/dsssl/docbook-dsssl-nwalsh
25634 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25635 if test -r "$pgac_candidate/html/docbook.dsl" \
25636 && test -r "$pgac_candidate/print/docbook.dsl"
25638 pgac_cv_path_stylesheets=$pgac_candidate
25647 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25649 if test -n "$DOCBOOKSTYLE"; then
25650 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25651 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25653 { echo "$as_me:$LINENO: result: no" >&5
25654 echo "${ECHO_T}no" >&6; }
25656 if test -n "$DOCBOOKSTYLE"; then
25657 for ac_prog in collateindex.pl
25659 # Extract the first word of "$ac_prog", so it can be a program name with args.
25660 set dummy $ac_prog; ac_word=$2
25661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25663 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 case $COLLATEINDEX in
25668 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25672 for as_dir in $DOCBOOKSTYLE/bin $PATH
25675 test -z "$as_dir" && as_dir=.
25676 for ac_exec_ext in '' $ac_executable_extensions; do
25677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25678 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25689 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25690 if test -n "$COLLATEINDEX"; then
25691 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25692 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25694 { echo "$as_me:$LINENO: result: no" >&5
25695 echo "${ECHO_T}no" >&6; }
25699 test -n "$COLLATEINDEX" && break
25703 for ac_prog in collateindex.pl
25705 # Extract the first word of "$ac_prog", so it can be a program name with args.
25706 set dummy $ac_prog; ac_word=$2
25707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25709 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25712 case $COLLATEINDEX in
25714 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25718 for as_dir in $PATH
25721 test -z "$as_dir" && as_dir=.
25722 for ac_exec_ext in '' $ac_executable_extensions; do
25723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25724 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25735 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25736 if test -n "$COLLATEINDEX"; then
25737 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25738 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25740 { echo "$as_me:$LINENO: result: no" >&5
25741 echo "${ECHO_T}no" >&6; }
25745 test -n "$COLLATEINDEX" && break
25749 for ac_prog in sgmlspl
25751 # Extract the first word of "$ac_prog", so it can be a program name with args.
25752 set dummy $ac_prog; ac_word=$2
25753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25755 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 if test -n "$SGMLSPL"; then
25759 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25762 for as_dir in $PATH
25765 test -z "$as_dir" && as_dir=.
25766 for ac_exec_ext in '' $ac_executable_extensions; do
25767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25768 ac_cv_prog_SGMLSPL="$ac_prog"
25769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25778 SGMLSPL=$ac_cv_prog_SGMLSPL
25779 if test -n "$SGMLSPL"; then
25780 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25781 echo "${ECHO_T}$SGMLSPL" >&6; }
25783 { echo "$as_me:$LINENO: result: no" >&5
25784 echo "${ECHO_T}no" >&6; }
25788 test -n "$SGMLSPL" && break
25794 # We have to run the thread test near the end so we have all our symbols
25795 # defined. Cross compiling throws a warning.
25797 if test "$enable_thread_safety_force" = yes; then
25798 if test "$PORTNAME" != "win32"
25800 { echo "$as_me:$LINENO: WARNING:
25801 *** Skipping thread test program. --enable-thread-safety-force was used.
25802 *** Run the program in src/test/thread on the your machine and add proper
25803 *** locking function calls to your applications to guarantee thread safety.
25805 echo "$as_me: WARNING:
25806 *** Skipping thread test program. --enable-thread-safety-force was used.
25807 *** Run the program in src/test/thread on the your machine and add proper
25808 *** locking function calls to your applications to guarantee thread safety.
25811 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25812 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25814 elif test "$enable_thread_safety" = yes; then
25815 if test "$PORTNAME" != "win32"
25817 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25818 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25822 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25823 LIBS="$LIBS $PTHREAD_LIBS"
25824 if test "$cross_compiling" = yes; then
25825 { echo "$as_me:$LINENO: result: maybe" >&5
25826 echo "${ECHO_T}maybe" >&6; }
25827 { echo "$as_me:$LINENO: WARNING:
25828 *** Skipping thread test program because of cross-compile build.
25829 *** Run the program in src/test/thread on the target machine.
25831 echo "$as_me: WARNING:
25832 *** Skipping thread test program because of cross-compile build.
25833 *** Run the program in src/test/thread on the target machine.
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25842 #include "$srcdir/src/test/thread/thread_test.c"
25844 rm -f conftest$ac_exeext
25845 if { (ac_try="$ac_link"
25846 case "(($ac_try" in
25847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848 *) ac_try_echo=$ac_try;;
25850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851 (eval "$ac_link") 2>&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25855 { (case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_try") 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 { echo "$as_me:$LINENO: result: yes" >&5
25865 echo "${ECHO_T}yes" >&6; }
25867 echo "$as_me: program exited with status $ac_status" >&5
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 ( exit $ac_status )
25872 { echo "$as_me:$LINENO: result: no" >&5
25873 echo "${ECHO_T}no" >&6; }
25874 { { echo "$as_me:$LINENO: error: thread test program failed
25875 This platform is not thread-safe. Check the file 'config.log' for the
25878 You can use the configure option --enable-thread-safety-force to force
25879 threads to be enabled. But you must then run the program in
25880 src/test/thread and add locking function calls to your applications to
25881 guarantee thread safety." >&5
25882 echo "$as_me: error: thread test program failed
25883 This platform is not thread-safe. Check the file 'config.log' for the
25886 You can use the configure option --enable-thread-safety-force to force
25887 threads to be enabled. But you must then run the program in
25888 src/test/thread and add locking function calls to your applications to
25889 guarantee thread safety." >&2;}
25890 { (exit 1); exit 1; }; }
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25899 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25900 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25904 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25905 # This is much easier than trying to filter LIBS to the minimum for each
25906 # executable. (Note that shared library links won't use this switch, though.)
25907 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25908 # libreadline; therefore we postpone testing it until we know what library
25909 # dependencies readline has. The test code will try to link with $LIBS.
25910 if test "$with_readline" = yes; then
25911 link_test_func=readline
25913 link_test_func=exit
25915 if test "$PORTNAME" != "darwin"; then
25916 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25917 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25918 pgac_save_LDFLAGS=$LDFLAGS
25919 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25920 if test "$cross_compiling" = yes; then
25921 LDFLAGS="$pgac_save_LDFLAGS"
25922 { echo "$as_me:$LINENO: result: assuming no" >&5
25923 echo "${ECHO_T}assuming no" >&6; }
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25940 rm -f conftest$ac_exeext
25941 if { (ac_try="$ac_link"
25942 case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_link") 2>&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25951 { (case "(($ac_try" in
25952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953 *) ac_try_echo=$ac_try;;
25955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25956 (eval "$ac_try") 2>&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 { echo "$as_me:$LINENO: result: yes" >&5
25961 echo "${ECHO_T}yes" >&6; }
25963 echo "$as_me: program exited with status $ac_status" >&5
25964 echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25967 ( exit $ac_status )
25968 LDFLAGS="$pgac_save_LDFLAGS"
25969 { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25978 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25979 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25980 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25981 pgac_save_LDFLAGS=$LDFLAGS
25982 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25983 if test "$cross_compiling" = yes; then
25984 LDFLAGS="$pgac_save_LDFLAGS"
25985 { echo "$as_me:$LINENO: result: assuming no" >&5
25986 echo "${ECHO_T}assuming no" >&6; }
25988 cat >conftest.$ac_ext <<_ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h. */
25994 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26003 rm -f conftest$ac_exeext
26004 if { (ac_try="$ac_link"
26005 case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010 (eval "$ac_link") 2>&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26014 { (case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_try") 2>&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; }; then
26023 { echo "$as_me:$LINENO: result: yes" >&5
26024 echo "${ECHO_T}yes" >&6; }
26026 echo "$as_me: program exited with status $ac_status" >&5
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ( exit $ac_status )
26031 LDFLAGS="$pgac_save_LDFLAGS"
26032 { echo "$as_me:$LINENO: result: no" >&5
26033 echo "${ECHO_T}no" >&6; }
26035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26043 # Begin output steps
26045 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26046 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26047 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26048 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26049 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26050 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26052 # prepare build tree if outside source tree
26053 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26054 # Note 2: /bin/pwd might be better than shell's built-in at getting
26055 # a symlink-free name.
26056 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26060 if test "$no_create" != yes; then
26061 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26062 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26063 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26064 || { { echo "$as_me:$LINENO: error: failed" >&5
26065 echo "$as_me: error: failed" >&2;}
26066 { (exit 1); exit 1; }; }
26067 { echo "$as_me:$LINENO: result: done" >&5
26068 echo "${ECHO_T}done" >&6; }
26074 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26077 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}"
26080 if test "$PORTNAME" = "win32"; then
26081 ac_config_commands="$ac_config_commands check_win32_symlinks"
26085 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26088 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26091 cat >confcache <<\_ACEOF
26092 # This file is a shell script that caches the results of configure
26093 # tests run on this system so they can be shared between configure
26094 # scripts and configure runs, see configure's option --config-cache.
26095 # It is not useful on other systems. If it contains results you don't
26096 # want to keep, you may remove or edit it.
26098 # config.status only pays attention to the cache file if you give it
26099 # the --recheck option to rerun configure.
26101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26103 # following values.
26107 # The following way of writing the cache mishandles newlines in values,
26108 # but we know of no workaround that is simple, portable, and efficient.
26109 # So, we kill variables containing newlines.
26110 # Ultrix sh set writes to stderr and can't be redirected directly,
26111 # and sets the high bit in the cache file unless we assign to the vars.
26113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26114 eval ac_val=\$$ac_var
26118 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26119 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26122 _ | IFS | as_nl) ;; #(
26123 *) $as_unset $ac_var ;;
26129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26130 *${as_nl}ac_space=\ *)
26131 # `set' does not quote correctly, so add quotes (double-quote
26132 # substitution turns \\\\ into \\, and sed turns \\ into \).
26135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26138 # `set' quotes correctly as required by POSIX, so do not add quotes.
26139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26153 if test -w "$cache_file"; then
26154 test "x$cache_file" != "x/dev/null" &&
26155 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26156 echo "$as_me: updating cache $cache_file" >&6;}
26157 cat confcache >$cache_file
26159 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26160 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26166 # Let make expand exec_prefix.
26167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26169 DEFS=-DHAVE_CONFIG_H
26173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26174 # 1. Remove the extension, and $U if already installed.
26175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26176 ac_i=`echo "$ac_i" | sed "$ac_script"`
26177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26178 # will be set to the directory where LIBOBJS objects are built.
26179 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26180 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26182 LIBOBJS=$ac_libobjs
26184 LTLIBOBJS=$ac_ltlibobjs
26188 : ${CONFIG_STATUS=./config.status}
26189 ac_clean_files_save=$ac_clean_files
26190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26193 cat >$CONFIG_STATUS <<_ACEOF
26195 # Generated by $as_me.
26196 # Run this file to recreate the current configuration.
26197 # Compiler output produced by configure, useful for debugging
26198 # configure, is in config.log if it exists.
26201 ac_cs_recheck=false
26203 SHELL=\${CONFIG_SHELL-$SHELL}
26206 cat >>$CONFIG_STATUS <<\_ACEOF
26207 ## --------------------- ##
26208 ## M4sh Initialization. ##
26209 ## --------------------- ##
26211 # Be more Bourne compatible
26212 DUALCASE=1; export DUALCASE # for MKS sh
26213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26217 # is contrary to our usage. Disable this feature.
26218 alias -g '${1+"$@"}'='"$@"'
26219 setopt NO_GLOB_SUBST
26221 case `(set -o) 2>/dev/null` in
26222 *posix*) set -o posix ;;
26231 # Avoid depending upon Character Ranges.
26232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26235 as_cr_digits='0123456789'
26236 as_cr_alnum=$as_cr_Letters$as_cr_digits
26238 # The user is always right.
26239 if test "${PATH_SEPARATOR+set}" != set; then
26240 echo "#! /bin/sh" >conf$$.sh
26241 echo "exit 0" >>conf$$.sh
26243 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26251 # Support unset when possible.
26252 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26260 # We need space, tab and new line, in precisely that order. Quoting is
26261 # there to prevent editors from complaining about space-tab.
26262 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26263 # splitting by setting IFS to empty value.)
26268 # Find who we are. Look in the path if we contain no directory separator.
26270 *[\\/]* ) as_myself=$0 ;;
26271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26272 for as_dir in $PATH
26275 test -z "$as_dir" && as_dir=.
26276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26282 # We did not find ourselves, most probably we were run as `sh COMMAND'
26283 # in which case we are not to be found in the path.
26284 if test "x$as_myself" = x; then
26287 if test ! -f "$as_myself"; then
26288 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26289 { (exit 1); exit 1; }
26292 # Work around bugs in pre-3.0 UWIN ksh.
26293 for as_var in ENV MAIL MAILPATH
26294 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26304 LC_TELEPHONE LC_TIME
26306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26307 eval $as_var=C; export $as_var
26309 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26313 # Required to use basename.
26314 if expr a : '\(a\)' >/dev/null 2>&1 &&
26315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26322 as_basename=basename
26328 # Name of the executable.
26329 as_me=`$as_basename -- "$0" ||
26330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26331 X"$0" : 'X\(//\)$' \| \
26332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26334 sed '/^.*\/\([^/][^/]*\)\/*$/{
26353 as_lineno_1=$LINENO
26354 as_lineno_2=$LINENO
26355 test "x$as_lineno_1" != "x$as_lineno_2" &&
26356 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26358 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26359 # uniformly replaced by the line number. The first 'sed' inserts a
26360 # line-number line after each line using $LINENO; the second 'sed'
26361 # does the real work. The second script uses 'N' to pair each
26362 # line-number line with the line containing $LINENO, and appends
26363 # trailing '-' during substitution so that $LINENO is not a special
26364 # case at line end.
26365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26366 # scripts with optimization help from Paolo Bonzini. Blame Lee
26367 # E. McMahon (1931-1989) for sed's syntax. :-)
26379 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26382 ' >$as_me.lineno &&
26383 chmod +x "$as_me.lineno" ||
26384 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26385 { (exit 1); exit 1; }; }
26387 # Don't try to exec as it changes $[0], causing all sort of problems
26388 # (the dirname of $[0] is not the place where we might find the
26389 # original and so on. Autoconf is especially sensitive to this).
26390 . "./$as_me.lineno"
26391 # Exit status is that of the last command.
26396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26402 ECHO_C= ECHO_N= ECHO_T=
26403 case `echo -n x` in
26405 case `echo 'x\c'` in
26406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26413 if expr a : '\(a\)' >/dev/null 2>&1 &&
26414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26420 rm -f conf$$ conf$$.exe conf$$.file
26421 if test -d conf$$.dir; then
26422 rm -f conf$$.dir/conf$$.file
26428 if ln -s conf$$.file conf$$ 2>/dev/null; then
26430 # ... but there are two gotchas:
26431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26433 # In both cases, we have to default to `cp -p'.
26434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26436 elif ln conf$$.file conf$$ 2>/dev/null; then
26441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26442 rmdir conf$$.dir 2>/dev/null
26444 if mkdir -p . 2>/dev/null; then
26447 test -d ./-p && rmdir ./-p
26451 if test -x / >/dev/null 2>&1; then
26452 as_test_x='test -x'
26454 if ls -dL / >/dev/null 2>&1; then
26461 if test -d "$1"; then
26467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26468 ???[sx]*):;;*)false;;esac;fi
26472 as_executable_p=$as_test_x
26474 # Sed expression to map a string onto a valid CPP name.
26475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26477 # Sed expression to map a string onto a valid variable name.
26478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26483 # Save the log message, to keep $[0] and so on meaningful, and to
26484 # report actual input values of CONFIG_FILES etc. instead of their
26485 # values after options handling.
26487 This file was extended by PostgreSQL $as_me 8.4devel, which was
26488 generated by GNU Autoconf 2.61. Invocation command line was
26490 CONFIG_FILES = $CONFIG_FILES
26491 CONFIG_HEADERS = $CONFIG_HEADERS
26492 CONFIG_LINKS = $CONFIG_LINKS
26493 CONFIG_COMMANDS = $CONFIG_COMMANDS
26496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26501 cat >>$CONFIG_STATUS <<_ACEOF
26502 # Files that config.status was made for.
26503 config_files="$ac_config_files"
26504 config_headers="$ac_config_headers"
26505 config_links="$ac_config_links"
26506 config_commands="$ac_config_commands"
26510 cat >>$CONFIG_STATUS <<\_ACEOF
26512 \`$as_me' instantiates files from templates according to the
26513 current configuration.
26515 Usage: $0 [OPTIONS] [FILE]...
26517 -h, --help print this help, then exit
26518 -V, --version print version number and configuration settings, then exit
26519 -q, --quiet do not print progress messages
26520 -d, --debug don't remove temporary files
26521 --recheck update $as_me by reconfiguring in the same conditions
26522 --file=FILE[:TEMPLATE]
26523 instantiate the configuration file FILE
26524 --header=FILE[:TEMPLATE]
26525 instantiate the configuration header FILE
26527 Configuration files:
26530 Configuration headers:
26533 Configuration links:
26536 Configuration commands:
26539 Report bugs to <bug-autoconf@gnu.org>."
26542 cat >>$CONFIG_STATUS <<_ACEOF
26544 PostgreSQL config.status 8.4devel
26545 configured by $0, generated by GNU Autoconf 2.61,
26546 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26548 Copyright (C) 2006 Free Software Foundation, Inc.
26549 This config.status script is free software; the Free Software Foundation
26550 gives unlimited permission to copy, distribute and modify it."
26556 cat >>$CONFIG_STATUS <<\_ACEOF
26557 # If no file are specified by the user, then we need to provide default
26558 # value. By we need to know if files were specified by the user.
26564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26576 # Handling of the options.
26577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26580 echo "$ac_cs_version"; exit ;;
26581 --debug | --debu | --deb | --de | --d | -d )
26583 --file | --fil | --fi | --f )
26585 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26586 ac_need_defaults=false;;
26587 --header | --heade | --head | --hea )
26589 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26590 ac_need_defaults=false;;
26592 # Conflict between --help and --header
26593 { echo "$as_me: error: ambiguous option: $1
26594 Try \`$0 --help' for more information." >&2
26595 { (exit 1); exit 1; }; };;
26596 --help | --hel | -h )
26597 echo "$ac_cs_usage"; exit ;;
26598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26602 # This is an error.
26603 -*) { echo "$as_me: error: unrecognized option: $1
26604 Try \`$0 --help' for more information." >&2
26605 { (exit 1); exit 1; }; } ;;
26607 *) ac_config_targets="$ac_config_targets $1"
26608 ac_need_defaults=false ;;
26614 ac_configure_extra_args=
26616 if $ac_cs_silent; then
26618 ac_configure_extra_args="$ac_configure_extra_args --silent"
26622 cat >>$CONFIG_STATUS <<_ACEOF
26623 if \$ac_cs_recheck; then
26624 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26625 CONFIG_SHELL=$SHELL
26626 export CONFIG_SHELL
26627 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26631 cat >>$CONFIG_STATUS <<\_ACEOF
26635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26636 ## Running $as_me. ##
26642 cat >>$CONFIG_STATUS <<_ACEOF
26645 cat >>$CONFIG_STATUS <<\_ACEOF
26647 # Handling of arguments.
26648 for ac_config_target in $ac_config_targets
26650 case $ac_config_target in
26651 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26652 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26653 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26654 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26655 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26656 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26657 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26658 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26659 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26660 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26661 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26662 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26664 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26666 { (exit 1); exit 1; }; };;
26671 # If the user did not use the arguments to specify the items to instantiate,
26672 # then the envvar interface is used. Set only those that are not.
26673 # We use the long form for the default assignment because of an extremely
26674 # bizarre bug on SunOS 4.1.3.
26675 if $ac_need_defaults; then
26676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26678 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26682 # Have a temporary directory for convenience. Make it in the build tree
26683 # simply because there is no reason against having it here, and in addition,
26684 # creating and moving files from /tmp can sometimes cause problems.
26685 # Hook for its removal unless debugging.
26686 # Note that there is a small window in which the directory will not be cleaned:
26687 # after its creation but before its name has been assigned to `$tmp'.
26691 trap 'exit_status=$?
26692 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26694 trap '{ (exit 1); exit 1; }' 1 2 13 15
26696 # Create a (secure) tmp directory for tmp files.
26699 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26700 test -n "$tmp" && test -d "$tmp"
26703 tmp=./conf$$-$RANDOM
26704 (umask 077 && mkdir "$tmp")
26707 echo "$me: cannot create a temporary directory in ." >&2
26708 { (exit 1); exit 1; }
26712 # Set up the sed scripts for CONFIG_FILES section.
26715 # No need to generate the scripts if there are no CONFIG_FILES.
26716 # This happens for instance when ./config.status config.h
26717 if test -n "$CONFIG_FILES"; then
26724 for ac_last_try in false false false false false :; do
26725 cat >conf$$subs.sed <<_ACEOF
26726 SHELL!$SHELL$ac_delim
26727 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26728 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26729 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26730 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26731 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26732 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26733 exec_prefix!$exec_prefix$ac_delim
26734 prefix!$prefix$ac_delim
26735 program_transform_name!$program_transform_name$ac_delim
26736 bindir!$bindir$ac_delim
26737 sbindir!$sbindir$ac_delim
26738 libexecdir!$libexecdir$ac_delim
26739 datarootdir!$datarootdir$ac_delim
26740 datadir!$datadir$ac_delim
26741 sysconfdir!$sysconfdir$ac_delim
26742 sharedstatedir!$sharedstatedir$ac_delim
26743 localstatedir!$localstatedir$ac_delim
26744 includedir!$includedir$ac_delim
26745 oldincludedir!$oldincludedir$ac_delim
26746 docdir!$docdir$ac_delim
26747 infodir!$infodir$ac_delim
26748 htmldir!$htmldir$ac_delim
26749 dvidir!$dvidir$ac_delim
26750 pdfdir!$pdfdir$ac_delim
26751 psdir!$psdir$ac_delim
26752 libdir!$libdir$ac_delim
26753 localedir!$localedir$ac_delim
26754 mandir!$mandir$ac_delim
26755 DEFS!$DEFS$ac_delim
26756 ECHO_C!$ECHO_C$ac_delim
26757 ECHO_N!$ECHO_N$ac_delim
26758 ECHO_T!$ECHO_T$ac_delim
26759 LIBS!$LIBS$ac_delim
26760 build_alias!$build_alias$ac_delim
26761 host_alias!$host_alias$ac_delim
26762 target_alias!$target_alias$ac_delim
26763 configure_args!$configure_args$ac_delim
26764 build!$build$ac_delim
26765 build_cpu!$build_cpu$ac_delim
26766 build_vendor!$build_vendor$ac_delim
26767 build_os!$build_os$ac_delim
26768 host!$host$ac_delim
26769 host_cpu!$host_cpu$ac_delim
26770 host_vendor!$host_vendor$ac_delim
26771 host_os!$host_os$ac_delim
26772 PORTNAME!$PORTNAME$ac_delim
26773 enable_nls!$enable_nls$ac_delim
26774 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26775 default_port!$default_port$ac_delim
26776 enable_shared!$enable_shared$ac_delim
26777 enable_rpath!$enable_rpath$ac_delim
26778 enable_debug!$enable_debug$ac_delim
26779 enable_profiling!$enable_profiling$ac_delim
26780 GCOV!$GCOV$ac_delim
26781 LCOV!$LCOV$ac_delim
26782 GENHTML!$GENHTML$ac_delim
26783 enable_coverage!$enable_coverage$ac_delim
26784 DTRACE!$DTRACE$ac_delim
26785 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26786 enable_dtrace!$enable_dtrace$ac_delim
26788 CFLAGS!$CFLAGS$ac_delim
26789 LDFLAGS!$LDFLAGS$ac_delim
26790 CPPFLAGS!$CPPFLAGS$ac_delim
26791 ac_ct_CC!$ac_ct_CC$ac_delim
26792 EXEEXT!$EXEEXT$ac_delim
26793 OBJEXT!$OBJEXT$ac_delim
26794 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26798 autodepend!$autodepend$ac_delim
26799 INCLUDES!$INCLUDES$ac_delim
26800 enable_thread_safety!$enable_thread_safety$ac_delim
26801 with_tcl!$with_tcl$ac_delim
26802 with_perl!$with_perl$ac_delim
26803 with_python!$with_python$ac_delim
26804 with_gssapi!$with_gssapi$ac_delim
26805 with_krb5!$with_krb5$ac_delim
26806 krb_srvtab!$krb_srvtab$ac_delim
26807 with_pam!$with_pam$ac_delim
26808 with_ldap!$with_ldap$ac_delim
26809 with_bonjour!$with_bonjour$ac_delim
26810 with_openssl!$with_openssl$ac_delim
26811 with_ossp_uuid!$with_ossp_uuid$ac_delim
26812 XML2_CONFIG!$XML2_CONFIG$ac_delim
26813 with_libxml!$with_libxml$ac_delim
26814 with_libxslt!$with_libxslt$ac_delim
26815 with_system_tzdata!$with_system_tzdata$ac_delim
26816 with_zlib!$with_zlib$ac_delim
26817 GREP!$GREP$ac_delim
26818 EGREP!$EGREP$ac_delim
26819 ELF_SYS!$ELF_SYS$ac_delim
26820 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26822 with_gnu_ld!$with_gnu_ld$ac_delim
26825 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26827 elif $ac_last_try; then
26828 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26829 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26830 { (exit 1); exit 1; }; }
26832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26836 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26837 if test -n "$ac_eof"; then
26838 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26839 ac_eof=`expr $ac_eof + 1`
26842 cat >>$CONFIG_STATUS <<_ACEOF
26843 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26847 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26848 s/^/s,@/; s/!/@,|#_!!_#|/
26851 s/'"$ac_delim"'$/,g/; t
26853 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26854 ' >>$CONFIG_STATUS <conf$$subs.sed
26855 rm -f conf$$subs.sed
26856 cat >>$CONFIG_STATUS <<_ACEOF
26862 for ac_last_try in false false false false false :; do
26863 cat >conf$$subs.sed <<_ACEOF
26864 ld_R_works!$ld_R_works$ac_delim
26865 RANLIB!$RANLIB$ac_delim
26866 STRIP!$STRIP$ac_delim
26867 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26868 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26870 LN_S!$LN_S$ac_delim
26872 BISON!$BISON$ac_delim
26873 BISONFLAGS!$BISONFLAGS$ac_delim
26874 FLEX!$FLEX$ac_delim
26875 FLEXFLAGS!$FLEXFLAGS$ac_delim
26876 PERL!$PERL$ac_delim
26877 perl_archlibexp!$perl_archlibexp$ac_delim
26878 perl_privlibexp!$perl_privlibexp$ac_delim
26879 perl_useshrplib!$perl_useshrplib$ac_delim
26880 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26881 PYTHON!$PYTHON$ac_delim
26882 python_version!$python_version$ac_delim
26883 python_configdir!$python_configdir$ac_delim
26884 python_includespec!$python_includespec$ac_delim
26885 python_libdir!$python_libdir$ac_delim
26886 python_libspec!$python_libspec$ac_delim
26887 python_additional_libs!$python_additional_libs$ac_delim
26888 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26889 HAVE_IPV6!$HAVE_IPV6$ac_delim
26890 LIBOBJS!$LIBOBJS$ac_delim
26891 acx_pthread_config!$acx_pthread_config$ac_delim
26892 PTHREAD_CC!$PTHREAD_CC$ac_delim
26893 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26894 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26895 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26896 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26897 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26898 MSGFMT!$MSGFMT$ac_delim
26899 MSGMERGE!$MSGMERGE$ac_delim
26900 XGETTEXT!$XGETTEXT$ac_delim
26901 TCLSH!$TCLSH$ac_delim
26902 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26903 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26904 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26905 TCL_LIBS!$TCL_LIBS$ac_delim
26906 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26907 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26908 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26909 NSGMLS!$NSGMLS$ac_delim
26910 JADE!$JADE$ac_delim
26911 have_docbook!$have_docbook$ac_delim
26912 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26913 COLLATEINDEX!$COLLATEINDEX$ac_delim
26914 SGMLSPL!$SGMLSPL$ac_delim
26915 vpath_build!$vpath_build$ac_delim
26916 LTLIBOBJS!$LTLIBOBJS$ac_delim
26919 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26921 elif $ac_last_try; then
26922 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26924 { (exit 1); exit 1; }; }
26926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26931 if test -n "$ac_eof"; then
26932 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26933 ac_eof=`expr $ac_eof + 1`
26936 cat >>$CONFIG_STATUS <<_ACEOF
26937 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26942 s/^/s,@/; s/!/@,|#_!!_#|/
26945 s/'"$ac_delim"'$/,g/; t
26947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26948 ' >>$CONFIG_STATUS <conf$$subs.sed
26949 rm -f conf$$subs.sed
26950 cat >>$CONFIG_STATUS <<_ACEOF
26957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26959 # trailing colons and then remove the whole line if VPATH becomes empty
26960 # (actually we leave an empty line to preserve line numbers).
26961 if test "x$srcdir" = x.; then
26962 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26963 s/:*\$(srcdir):*/:/
26964 s/:*\${srcdir}:*/:/
26966 s/^\([^=]*=[ ]*\):*/\1/
26972 cat >>$CONFIG_STATUS <<\_ACEOF
26973 fi # test -n "$CONFIG_FILES"
26976 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26979 :[FHLC]) ac_mode=$ac_tag; continue;;
26981 case $ac_mode$ac_tag in
26983 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26984 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26985 { (exit 1); exit 1; }; };;
26986 :[FH]-) ac_tag=-:-;;
26987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27004 -) ac_f="$tmp/stdin";;
27005 *) # Look for the file first in the build tree, then in the source tree
27006 # (if the path is not absolute). The absolute path cannot be DOS-style,
27007 # because $ac_f cannot contain `:'.
27011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27013 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27014 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27015 { (exit 1); exit 1; }; };;
27017 ac_file_inputs="$ac_file_inputs $ac_f"
27020 # Let's still pretend it is `configure' which instantiates (i.e., don't
27021 # use $as_me), people would be surprised to read:
27022 # /* config.h. Generated by config.status. */
27023 configure_input="Generated from "`IFS=:
27024 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27025 if test x"$ac_file" != x-; then
27026 configure_input="$ac_file. $configure_input"
27027 { echo "$as_me:$LINENO: creating $ac_file" >&5
27028 echo "$as_me: creating $ac_file" >&6;}
27032 *:-:* | *:-) cat >"$tmp/stdin";;
27037 ac_dir=`$as_dirname -- "$ac_file" ||
27038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27039 X"$ac_file" : 'X\(//\)[^/]' \| \
27040 X"$ac_file" : 'X\(//\)$' \| \
27041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27047 /^X\(\/\/\)[^/].*/{
27062 -*) as_dir=./$as_dir;;
27064 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27068 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27069 *) as_qdir=$as_dir;;
27071 as_dirs="'$as_qdir' $as_dirs"
27072 as_dir=`$as_dirname -- "$as_dir" ||
27073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27074 X"$as_dir" : 'X\(//\)[^/]' \| \
27075 X"$as_dir" : 'X\(//\)$' \| \
27076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27082 /^X\(\/\/\)[^/].*/{
27095 test -d "$as_dir" && break
27097 test -z "$as_dirs" || eval "mkdir $as_dirs"
27098 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27100 { (exit 1); exit 1; }; }; }
27104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27107 # A ".." for each directory in $ac_dir_suffix.
27108 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27109 case $ac_top_builddir_sub in
27110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27114 ac_abs_top_builddir=$ac_pwd
27115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27116 # for backward compatibility:
27117 ac_top_builddir=$ac_top_build_prefix
27120 .) # We are building in place.
27122 ac_top_srcdir=$ac_top_builddir_sub
27123 ac_abs_top_srcdir=$ac_pwd ;;
27124 [\\/]* | ?:[\\/]* ) # Absolute name.
27125 ac_srcdir=$srcdir$ac_dir_suffix;
27126 ac_top_srcdir=$srcdir
27127 ac_abs_top_srcdir=$srcdir ;;
27128 *) # Relative name.
27129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27130 ac_top_srcdir=$ac_top_build_prefix$srcdir
27131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27144 cat >>$CONFIG_STATUS <<\_ACEOF
27145 # If the template does not know about datarootdir, expand it.
27146 # FIXME: This hack should be removed a few years after 2.60.
27147 ac_datarootdir_hack=; ac_datarootdir_seen=
27149 case `sed -n '/datarootdir/ {
27158 ' $ac_file_inputs` in
27159 *datarootdir*) ac_datarootdir_seen=yes;;
27160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27164 cat >>$CONFIG_STATUS <<_ACEOF
27165 ac_datarootdir_hack='
27166 s&@datadir@&$datadir&g
27167 s&@docdir@&$docdir&g
27168 s&@infodir@&$infodir&g
27169 s&@localedir@&$localedir&g
27170 s&@mandir@&$mandir&g
27171 s&\\\${datarootdir}&$datarootdir&g' ;;
27175 # Neutralize VPATH when `$srcdir' = `.'.
27176 # Shell code in configure.ac might set extrasub.
27177 # FIXME: do we really want to maintain this feature?
27178 cat >>$CONFIG_STATUS <<_ACEOF
27182 cat >>$CONFIG_STATUS <<\_ACEOF
27184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27185 s&@configure_input@&$configure_input&;t t
27186 s&@top_builddir@&$ac_top_builddir_sub&;t t
27187 s&@srcdir@&$ac_srcdir&;t t
27188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27189 s&@top_srcdir@&$ac_top_srcdir&;t t
27190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27191 s&@builddir@&$ac_builddir&;t t
27192 s&@abs_builddir@&$ac_abs_builddir&;t t
27193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27194 $ac_datarootdir_hack
27195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27200 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27201 which seems to be undefined. Please make sure it is defined." >&5
27202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27203 which seems to be undefined. Please make sure it is defined." >&2;}
27207 -) cat "$tmp/out"; rm -f "$tmp/out";;
27208 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27217 # Transform confdefs.h into a sed script `conftest.defines', that
27218 # substitutes the proper values into config.h.in to produce config.h.
27219 rm -f conftest.defines conftest.tail
27220 # First, append a space to every undef/define line, to ease matching.
27221 echo 's/$/ /' >conftest.defines
27222 # Then, protect against being on the right side of a sed subst, or in
27223 # an unquoted here document, in config.status. If some macros were
27224 # called several times there might be several #defines for the same
27225 # symbol, which is useless. But do not sort them, since the last
27226 # AC_DEFINE must be honored.
27227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27230 # PARAMS is the parameter list in the macro definition--in most cases, it's
27231 # just an empty string.
27232 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27233 ac_dB='\\)[ (].*,\\1define\\2'
27241 s/^[ ]*#[ ]*define[ ][ ]*//
27246 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27247 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27248 ' >>conftest.defines
27250 # Remove the space that was appended to ease matching.
27251 # Then replace #undef with comments. This is necessary, for
27252 # example, in the case of _POSIX_SOURCE, which is predefined and required
27253 # on some systems where configure will not decide to define it.
27254 # (The regexp can be short, since the line contains either #define or #undef.)
27256 s,^[ #]*u.*,/* & */,' >>conftest.defines
27258 # Break up conftest.defines:
27259 ac_max_sed_lines=50
27261 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27262 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27263 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27265 ac_in='$ac_file_inputs'
27266 ac_out='"$tmp/out1"'
27267 ac_nxt='"$tmp/out2"'
27271 # Write a here document:
27272 cat >>$CONFIG_STATUS <<_ACEOF
27273 # First, check the format of the line:
27274 cat >"\$tmp/defines.sed" <<\\CEOF
27275 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27276 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27280 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27282 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27283 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27284 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27285 grep . conftest.tail >/dev/null || break
27286 rm -f conftest.defines
27287 mv conftest.tail conftest.defines
27289 rm -f conftest.defines conftest.tail
27291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27292 cat >>$CONFIG_STATUS <<\_ACEOF
27293 if test x"$ac_file" != x-; then
27294 echo "/* $configure_input */" >"$tmp/config.h"
27295 cat "$ac_result" >>"$tmp/config.h"
27296 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27297 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27298 echo "$as_me: $ac_file is unchanged" >&6;}
27301 mv "$tmp/config.h" $ac_file
27304 echo "/* $configure_input */"
27314 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27315 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27317 if test ! -r "$srcdir/$ac_source"; then
27318 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27319 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27320 { (exit 1); exit 1; }; }
27324 # Try a relative symlink, then a hard link, then a copy.
27326 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27327 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27329 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27330 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27331 cp -p "$srcdir/$ac_source" "$ac_file" ||
27332 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27333 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27334 { (exit 1); exit 1; }; }
27336 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27337 echo "$as_me: executing $ac_file commands" >&6;}
27342 case $ac_file$ac_mode in
27343 "check_win32_symlinks":C)
27344 # Links sometimes fail undetected on Mingw -
27345 # so here we detect it and warn the user
27346 for FILE in $CONFIG_LINKS
27348 # test -e works for symlinks in the MinGW console
27349 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27350 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27353 "src/include/pg_config.h":H)
27354 # Update timestamp for pg_config.h (see Makefile.global)
27355 echo >src/include/stamp-h
27362 { (exit 0); exit 0; }
27364 chmod +x $CONFIG_STATUS
27365 ac_clean_files=$ac_clean_files_save
27368 # configure is writing to config.log, and then calls config.status.
27369 # config.status does its own redirection, appending to config.log.
27370 # Unfortunately, on DOS this fails, as config.log is still kept open
27371 # by configure, so config.status won't be able to write to it; its
27372 # output is simply discarded. So we exec the FD to /dev/null,
27373 # effectively closing config.log, so it can be properly (re)opened and
27374 # appended to by config.status. When coming back to configure, we
27375 # need to make the FD available again.
27376 if test "$no_create" != yes; then
27378 ac_config_status_args=
27379 test "$silent" = yes &&
27380 ac_config_status_args="$ac_config_status_args --quiet"
27382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27385 # would make configure fail if this is the last instruction.
27386 $ac_cs_success || { (exit 1); exit 1; }
27390 # Warn about unknown options
27391 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27392 for pgac_arg in $pgac_args with_gnu_ld; do
27393 if test "$pgac_var" = "$pgac_arg"; then
27397 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27398 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27399 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}