2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix=/usr/local
568 ac_config_libobj_dir=.
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
736 python_additional_libs
767 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --enable-integer-datetimes enable 64-bit integer date/time support
1353 --enable-nls[=LANGUAGES] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols (-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --enable-depend turn on automatic dependency tracking
1361 --enable-cassert enable assertion checks (for debugging)
1362 --enable-thread-safety make client libraries thread-safe
1363 --enable-thread-safety-force force thread-safety despite thread test failure
1364 --disable-largefile omit support for large files
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-includes=DIRS look for additional header files in DIRS
1371 --with-libraries=DIRS look for additional libraries in DIRS
1372 --with-libs=DIRS alternative spelling of --with-libraries
1373 --with-pgport=PORTNUM change default port number [5432]
1374 --with-tcl build Tcl modules (PL/Tcl)
1375 --with-tclconfig=DIR tclConfig.sh is in DIR
1376 --with-perl build Perl modules (PL/Perl)
1377 --with-python build Python modules (PL/Python)
1378 --with-gssapi build with GSSAPI support
1379 --with-krb5 build with Kerberos 5 support
1380 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
1381 --with-pam build with PAM support
1382 --with-ldap build with LDAP support
1383 --with-bonjour build with Bonjour support
1384 --with-openssl build with OpenSSL support
1385 --without-readline do not use GNU Readline nor BSD Libedit for editing
1386 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1387 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
1388 --with-libxml build with XML support
1389 --with-libxslt use XSLT support when building contrib/xml2
1390 --with-system-tzdata=DIR use system time zone data in DIR
1391 --without-zlib do not use Zlib
1392 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1405 location of DocBook stylesheets
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1410 Report bugs to <pgsql-bugs@postgresql.org>.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" || continue
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1471 PostgreSQL configure 8.4devel
1472 generated by GNU Autoconf 2.61
1474 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1475 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1479 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1483 cat >config.log <<_ACEOF
1484 This file contains any messages produced by compilers while
1485 running configure, to aid debugging if configure makes a mistake.
1487 It was created by PostgreSQL $as_me 8.4devel, which was
1488 generated by GNU Autoconf 2.61. Invocation command line was
1500 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1501 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1502 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1503 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1504 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1507 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1509 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1510 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1511 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1512 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1513 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1514 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1515 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 echo "PATH: $as_dir"
1540 # Keep a trace of the command line.
1541 # Strip out --no-create and --no-recursion so they do not pile up.
1542 # Strip out --silent because we don't want to record it for future runs.
1543 # Also quote any args containing shell meta-characters.
1544 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_must_keep_next=false
1554 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1556 | -silent | --silent | --silen | --sile | --sil)
1559 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1565 if test $ac_must_keep_next = true; then
1566 ac_must_keep_next=false # Got value, back to normal.
1569 *=* | --config-cache | -C | -disable-* | --disable-* \
1570 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1571 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1572 | -with-* | --with-* | -without-* | --without-* | --x)
1573 case "$ac_configure_args0 " in
1574 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577 -* ) ac_must_keep_next=true ;;
1580 ac_configure_args="$ac_configure_args '$ac_arg'"
1585 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1586 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588 # When interrupted or exit'd, cleanup temporary files, and complete
1589 # config.log. We remove comments because anyway the quotes in there
1590 # would cause problems or look ugly.
1591 # WARNING: Use '\'' to represent an apostrophe within the trap.
1592 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1593 trap 'exit_status=$?
1594 # Save into config.log some information that might help in debugging.
1599 ## ---------------- ##
1600 ## Cache variables. ##
1601 ## ---------------- ##
1604 # The following way of writing the cache mishandles newlines in values,
1606 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1607 eval ac_val=\$$ac_var
1611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615 _ | IFS | as_nl) ;; #(
1616 *) $as_unset $ac_var ;;
1621 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1622 *${as_nl}ac_space=\ *)
1624 "s/'\''/'\''\\\\'\'''\''/g;
1625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1636 ## ----------------- ##
1637 ## Output variables. ##
1638 ## ----------------- ##
1641 for ac_var in $ac_subst_vars
1643 eval ac_val=\$$ac_var
1645 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 echo "$ac_var='\''$ac_val'\''"
1651 if test -n "$ac_subst_files"; then
1653 ## ------------------- ##
1654 ## File substitutions. ##
1655 ## ------------------- ##
1658 for ac_var in $ac_subst_files
1660 eval ac_val=\$$ac_var
1662 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664 echo "$ac_var='\''$ac_val'\''"
1669 if test -s confdefs.h; then
1679 test "$ac_signal" != 0 &&
1680 echo "$as_me: caught signal $ac_signal"
1681 echo "$as_me: exit $exit_status"
1683 rm -f core *.core core.conftest.* &&
1684 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687 for ac_signal in 1 2 13 15; do
1688 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1693 rm -f -r conftest* confdefs.h
1695 # Predefined preprocessor variables.
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 # Let the site file select an alternate cache file if it wants to.
1723 # Prefer explicitly selected file to automatically selected ones.
1724 if test -n "$CONFIG_SITE"; then
1725 set x "$CONFIG_SITE"
1726 elif test "x$prefix" != xNONE; then
1727 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1729 set x "$ac_default_prefix/share/config.site" \
1730 "$ac_default_prefix/etc/config.site"
1735 if test -r "$ac_site_file"; then
1736 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1737 echo "$as_me: loading site script $ac_site_file" >&6;}
1738 sed 's/^/| /' "$ac_site_file" >&5
1743 if test -r "$cache_file"; then
1744 # Some versions of bash will fail to source /dev/null (special
1745 # files actually), so we avoid doing that.
1746 if test -f "$cache_file"; then
1747 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1748 echo "$as_me: loading cache $cache_file" >&6;}
1750 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1751 *) . "./$cache_file";;
1755 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1756 echo "$as_me: creating cache $cache_file" >&6;}
1760 # Check that the precious variables saved in the cache have kept the same
1762 ac_cache_corrupted=false
1763 for ac_var in $ac_precious_vars; do
1764 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1765 eval ac_new_set=\$ac_env_${ac_var}_set
1766 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1767 eval ac_new_val=\$ac_env_${ac_var}_value
1768 case $ac_old_set,$ac_new_set in
1770 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1771 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1772 ac_cache_corrupted=: ;;
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1775 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1779 if test "x$ac_old_val" != "x$ac_new_val"; then
1780 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1781 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1782 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1783 echo "$as_me: former value: $ac_old_val" >&2;}
1784 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1785 echo "$as_me: current value: $ac_new_val" >&2;}
1786 ac_cache_corrupted=:
1789 # Pass precious variables to config.status.
1790 if test "$ac_new_set" = set; then
1792 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 *) ac_arg=$ac_var=$ac_new_val ;;
1795 case " $ac_configure_args " in
1796 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1797 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 if $ac_cache_corrupted; then
1802 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1803 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1804 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1805 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1806 { (exit 1); exit 1; }; }
1834 ac_cpp='$CPP $CPPFLAGS'
1835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845 for ac_dir in config "$srcdir"/config; do
1846 if test -f "$ac_dir/install-sh"; then
1848 ac_install_sh="$ac_aux_dir/install-sh -c"
1850 elif test -f "$ac_dir/install.sh"; then
1852 ac_install_sh="$ac_aux_dir/install.sh -c"
1854 elif test -f "$ac_dir/shtool"; then
1856 ac_install_sh="$ac_aux_dir/shtool install -c"
1860 if test -z "$ac_aux_dir"; then
1861 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1862 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1863 { (exit 1); exit 1; }; }
1866 # These three variables are undocumented and unsupported,
1867 # and are intended to be withdrawn in a future Autoconf release.
1868 # They can cause serious problems if a builder's source tree is in a directory
1869 # whose full name contains unusual characters.
1870 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1871 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1872 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1876 configure_args=$ac_configure_args
1880 cat >>confdefs.h <<_ACEOF
1881 #define PG_VERSION "$PACKAGE_VERSION"
1885 # Make sure we can run config.sub.
1886 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1887 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1888 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1889 { (exit 1); exit 1; }; }
1891 { echo "$as_me:$LINENO: checking build system type" >&5
1892 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1893 if test "${ac_cv_build+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 ac_build_alias=$build_alias
1897 test "x$ac_build_alias" = x &&
1898 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1899 test "x$ac_build_alias" = x &&
1900 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1901 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1902 { (exit 1); exit 1; }; }
1903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1904 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1905 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1906 { (exit 1); exit 1; }; }
1909 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1910 echo "${ECHO_T}$ac_cv_build" >&6; }
1911 case $ac_cv_build in
1913 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1914 echo "$as_me: error: invalid value of canonical build" >&2;}
1915 { (exit 1); exit 1; }; };;
1918 ac_save_IFS=$IFS; IFS='-'
1924 # Remember, the first character of IFS is used to create $*,
1925 # except with old shells:
1928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1931 { echo "$as_me:$LINENO: checking host system type" >&5
1932 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_host+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test "x$host_alias" = x; then
1937 ac_cv_host=$ac_cv_build
1939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1940 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1941 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1942 { (exit 1); exit 1; }; }
1946 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1947 echo "${ECHO_T}$ac_cv_host" >&6; }
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1951 echo "$as_me: error: invalid value of canonical host" >&2;}
1952 { (exit 1); exit 1; }; };;
1955 ac_save_IFS=$IFS; IFS='-'
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1965 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking which template to use" >&5
1971 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1974 pgac_args="$pgac_args with_template"
1977 # Check whether --with-template was given.
1978 if test "${with_template+set}" = set; then
1979 withval=$with_template;
1982 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1983 echo "$as_me: error: argument required for --with-template option" >&2;}
1984 { (exit 1); exit 1; }; }
1987 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1988 echo "$as_me: error: argument required for --with-template option" >&2;}
1989 { (exit 1); exit 1; }; }
1994 list) echo; ls "$srcdir/src/template"; exit;;
1995 *) if test -f "$srcdir/src/template/$with_template" ; then
1998 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1999 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2000 { (exit 1); exit 1; }; }
2009 # --with-template not given
2012 aix*) template=aix ;;
2013 bsdi*) template=bsdi ;;
2014 cygwin*) template=cygwin ;;
2015 darwin*) template=darwin ;;
2016 dgux*) template=dgux ;;
2017 freebsd*) template=freebsd ;;
2018 hpux*) template=hpux ;;
2019 irix*) template=irix ;;
2020 linux*|gnu*|k*bsd*-gnu)
2022 mingw*) template=win32 ;;
2023 netbsd*) template=netbsd ;;
2024 nextstep*) template=nextstep ;;
2025 openbsd*) template=openbsd ;;
2026 osf*) template=osf ;;
2027 sco*) template=sco ;;
2028 solaris*) template=solaris ;;
2029 sunos*) template=sunos4 ;;
2031 case $host_vendor in
2032 univel) template=univel ;;
2034 sysv4*) template=svr4 ;;
2035 sysv5*) template=unixware ;;
2036 ultrix*) template=ultrix4 ;;
2039 if test x"$template" = x"" ; then
2040 { { echo "$as_me:$LINENO: error:
2041 *******************************************************************
2042 PostgreSQL has apparently not been ported to your platform yet.
2043 To try a manual configuration, look into the src/template directory
2044 for a similar platform and use the '--with-template=' option.
2046 Please also contact <pgsql-ports@postgresql.org> to see about
2047 rectifying this. Include the above 'checking host system type...'
2049 *******************************************************************
2051 echo "$as_me: error:
2052 *******************************************************************
2053 PostgreSQL has apparently not been ported to your platform yet.
2054 To try a manual configuration, look into the src/template directory
2055 for a similar platform and use the '--with-template=' option.
2057 Please also contact <pgsql-ports@postgresql.org> to see about
2058 rectifying this. Include the above 'checking host system type...'
2060 *******************************************************************
2062 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: result: $template" >&5
2071 echo "${ECHO_T}$template" >&6; }
2076 # Initialize default assumption that we do not need separate assembly code
2077 # for TAS (test-and-set). This can be overridden by the template file
2078 # when it's executed.
2085 ## Command line options
2089 # Add non-standard directories to the include path
2092 pgac_args="$pgac_args with_includes"
2095 # Check whether --with-includes was given.
2096 if test "${with_includes+set}" = set; then
2097 withval=$with_includes;
2100 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2101 echo "$as_me: error: argument required for --with-includes option" >&2;}
2102 { (exit 1); exit 1; }; }
2105 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2106 echo "$as_me: error: argument required for --with-includes option" >&2;}
2107 { (exit 1); exit 1; }; }
2120 # Add non-standard directories to the library search path
2123 pgac_args="$pgac_args with_libraries"
2126 # Check whether --with-libraries was given.
2127 if test "${with_libraries+set}" = set; then
2128 withval=$with_libraries;
2131 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2132 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2133 { (exit 1); exit 1; }; }
2136 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2137 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2138 { (exit 1); exit 1; }; }
2141 LIBRARY_DIRS=$withval
2150 pgac_args="$pgac_args with_libs"
2153 # Check whether --with-libs was given.
2154 if test "${with_libs+set}" = set; then
2158 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2159 echo "$as_me: error: argument required for --with-libs option" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2164 echo "$as_me: error: argument required for --with-libs option" >&2;}
2165 { (exit 1); exit 1; }; }
2168 LIBRARY_DIRS=$withval
2178 # 64-bit integer date/time storage (--enable-integer-datetimes)
2180 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2181 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2183 pgac_args="$pgac_args enable_integer_datetimes"
2185 # Check whether --enable-integer-datetimes was given.
2186 if test "${enable_integer_datetimes+set}" = set; then
2187 enableval=$enable_integer_datetimes;
2191 cat >>confdefs.h <<\_ACEOF
2192 #define USE_INTEGER_DATETIMES 1
2200 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2201 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2202 { (exit 1); exit 1; }; }
2207 enable_integer_datetimes=no
2212 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2213 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2219 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2220 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2222 pgac_args="$pgac_args enable_nls"
2224 # Check whether --enable-nls was given.
2225 if test "${enable_nls+set}" = set; then
2226 enableval=$enable_nls;
2236 WANTED_LANGUAGES=$enableval
2246 if test "$enable_nls" = yes; then
2248 cat >>confdefs.h <<\_ACEOF
2249 #define ENABLE_NLS 1
2254 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2255 echo "${ECHO_T}$enable_nls" >&6; }
2260 # Default port number (--with-pgport), default 5432
2262 { echo "$as_me:$LINENO: checking for default port number" >&5
2263 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2265 pgac_args="$pgac_args with_pgport"
2268 # Check whether --with-pgport was given.
2269 if test "${with_pgport+set}" = set; then
2270 withval=$with_pgport;
2273 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2274 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2275 { (exit 1); exit 1; }; }
2278 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2279 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2280 { (exit 1); exit 1; }; }
2283 default_port=$withval
2292 { echo "$as_me:$LINENO: result: $default_port" >&5
2293 echo "${ECHO_T}$default_port" >&6; }
2294 # Need both of these because some places want an integer and some a string
2296 cat >>confdefs.h <<_ACEOF
2297 #define DEF_PGPORT ${default_port}
2301 cat >>confdefs.h <<_ACEOF
2302 #define DEF_PGPORT_STR "${default_port}"
2308 # Option to disable shared libraries
2311 pgac_args="$pgac_args enable_shared"
2313 # Check whether --enable-shared was given.
2314 if test "${enable_shared+set}" = set; then
2315 enableval=$enable_shared;
2324 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2325 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2326 { (exit 1); exit 1; }; }
2339 # '-rpath'-like feature can be disabled
2342 pgac_args="$pgac_args enable_rpath"
2344 # Check whether --enable-rpath was given.
2345 if test "${enable_rpath+set}" = set; then
2346 enableval=$enable_rpath;
2355 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2356 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2357 { (exit 1); exit 1; }; }
2373 pgac_args="$pgac_args enable_spinlocks"
2375 # Check whether --enable-spinlocks was given.
2376 if test "${enable_spinlocks+set}" = set; then
2377 enableval=$enable_spinlocks;
2386 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2387 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2388 { (exit 1); exit 1; }; }
2393 enable_spinlocks=yes
2400 # --enable-debug adds -g to compiler flags
2403 pgac_args="$pgac_args enable_debug"
2405 # Check whether --enable-debug was given.
2406 if test "${enable_debug+set}" = set; then
2407 enableval=$enable_debug;
2416 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2417 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2418 { (exit 1); exit 1; }; }
2431 # --enable-profiling enables gcc profiling
2434 pgac_args="$pgac_args enable_profiling"
2436 # Check whether --enable-profiling was given.
2437 if test "${enable_profiling+set}" = set; then
2438 enableval=$enable_profiling;
2447 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2448 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2449 { (exit 1); exit 1; }; }
2465 pgac_args="$pgac_args enable_dtrace"
2467 # Check whether --enable-dtrace was given.
2468 if test "${enable_dtrace+set}" = set; then
2469 enableval=$enable_dtrace;
2473 cat >>confdefs.h <<\_ACEOF
2474 #define ENABLE_DTRACE 1
2477 for ac_prog in dtrace
2479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2480 set dummy $ac_prog; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_DTRACE+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$DTRACE"; then
2487 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_DTRACE="$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 DTRACE=$ac_cv_prog_DTRACE
2507 if test -n "$DTRACE"; then
2508 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2509 echo "${ECHO_T}$DTRACE" >&6; }
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2516 test -n "$DTRACE" && break
2519 if test -z "$DTRACE"; then
2520 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2521 echo "$as_me: error: dtrace not found" >&2;}
2522 { (exit 1); exit 1; }; }
2530 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2531 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2532 { (exit 1); exit 1; }; }
2548 # For historical reasons you can also use --with-CC to specify the C compiler
2549 # to use, although the standard way to do this is to set the CC environment
2552 pgac_args="$pgac_args with_CC"
2555 # Check whether --with-CC was given.
2556 if test "${with_CC+set}" = set; then
2560 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2561 echo "$as_me: error: argument required for --with-CC option" >&2;}
2562 { (exit 1); exit 1; }; }
2565 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2566 echo "$as_me: error: argument required for --with-CC option" >&2;}
2567 { (exit 1); exit 1; }; }
2579 aix) pgac_cc_list="gcc xlc";;
2580 irix) pgac_cc_list="cc";; # no gcc
2581 *) pgac_cc_list="gcc cc";;
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 if test -n "$ac_tool_prefix"; then
2590 for ac_prog in $pgac_cc_list
2592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2629 test -n "$CC" && break
2632 if test -z "$CC"; then
2634 for ac_prog in $pgac_cc_list
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_ac_ct_CC="$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664 if test -n "$ac_ct_CC"; then
2665 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2666 echo "${ECHO_T}$ac_ct_CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2673 test -n "$ac_ct_CC" && break
2676 if test "x$ac_ct_CC" = x; then
2679 case $cross_compiling:$ac_tool_warned in
2681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&5
2684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2687 ac_tool_warned=yes ;;
2694 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&5
2696 echo "$as_me: error: no acceptable C compiler found in \$PATH
2697 See \`config.log' for more details." >&2;}
2698 { (exit 1); exit 1; }; }
2700 # Provide some information about the compiler.
2701 echo "$as_me:$LINENO: checking for C compiler version" >&5
2702 ac_compiler=`set X $ac_compile; echo $2`
2703 { (ac_try="$ac_compiler --version >&5"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler --version >&5") 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713 { (ac_try="$ac_compiler -v >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler -v >&5") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723 { (ac_try="$ac_compiler -V >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -V >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2749 ac_clean_files_save=$ac_clean_files
2750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2751 # Try to create an executable without -o first, disregard a.out.
2752 # It will help us diagnose broken compilers, and finding out an intuition
2754 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758 # List of possible output files, starting from the most likely.
2759 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2760 # only as a last resort. b.out is created by i960 compilers.
2761 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763 # The IRIX 6 linker writes into existing files which may not be
2764 # executable, retaining their permissions. Remove them first so a
2765 # subsequent execution test works.
2767 for ac_file in $ac_files
2770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 if { (ac_try="$ac_link_default"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_link_default") 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; then
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2791 for ac_file in $ac_files ''
2793 test -f "$ac_file" || continue
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2798 # We found the default executable, but exeext='' is most
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2824 if test -z "$ac_file"; then
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&2;}
2832 { (exit 77); exit 77; }; }
2835 ac_exeext=$ac_cv_exeext
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3029 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3030 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3031 GCC=`test $ac_compiler_gnu = yes && echo yes`
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_c_werror_flag=$ac_save_c_werror_flag
3169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3171 if test "$ac_test_CFLAGS" = set; then
3172 CFLAGS=$ac_save_CFLAGS
3173 elif test $ac_cv_prog_cc_g = yes; then
3174 if test "$GCC" = yes; then
3180 if test "$GCC" = yes; then
3186 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3187 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3188 if test "${ac_cv_prog_cc_c89+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 ac_cv_prog_cc_c89=no
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3201 #include <sys/types.h>
3202 #include <sys/stat.h>
3203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3204 struct buf { int x; };
3205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3206 static char *e (p, i)
3212 static char *f (char * (*g) (char **, int), char **p, ...)
3217 s = g (p, va_arg (v,int));
3222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3223 function prototypes and stuff, but not '\xHH' hex character constants.
3224 These don't provoke an error unfortunately, instead are silently treated
3225 as 'x'. The following induces an error, until -std is added to get
3226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3227 array size at least. It's necessary to write '\x00'==0 to get something
3228 that's true only with -std. */
3229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3232 inside strings and character constants. */
3234 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3236 int test (int i, double x);
3237 struct s1 {int (*f) (int a);};
3238 struct s2 {int (*f) (double a);};
3239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3253 CC="$ac_save_CC $ac_arg"
3254 rm -f conftest.$ac_objext
3255 if { (ac_try="$ac_compile"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_cv_prog_cc_c89=$ac_arg
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3279 rm -f core conftest.err conftest.$ac_objext
3280 test "x$ac_cv_prog_cc_c89" != "xno" && break
3282 rm -f conftest.$ac_ext
3287 case "x$ac_cv_prog_cc_c89" in
3289 { echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6; } ;;
3292 { echo "$as_me:$LINENO: result: unsupported" >&5
3293 echo "${ECHO_T}unsupported" >&6; } ;;
3295 CC="$CC $ac_cv_prog_cc_c89"
3296 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3297 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3309 # but has idiosyncrasies of its own. We assume icc will define
3310 # __INTEL_COMPILER regardless of CFLAGS.
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3322 #ifndef __INTEL_COMPILER
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 . "$srcdir/src/template/$template" || exit
3363 # CFLAGS are selected so:
3364 # If the user specifies something in the environment, that is used.
3365 # else: If the template file set something, that is used.
3366 # else: If the compiler is GCC, then we use -O2.
3367 # else: If the compiler is something else, then we use -0.
3369 if test "$ac_env_CFLAGS_set" = set; then
3370 CFLAGS=$ac_env_CFLAGS_value
3371 elif test "${CFLAGS+set}" = set; then
3372 : # (keep what template set)
3373 elif test "$GCC" = yes; then
3376 # if the user selected debug mode, don't use -O
3377 if test "$enable_debug" != yes; then
3382 # Some versions of GCC support some additional useful warning flags.
3383 # Check whether they are supported, and add them to CFLAGS if so.
3384 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3386 if test "$GCC" = yes -a "$ICC" = no; then
3387 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3388 # These work in some but not all gcc versions
3389 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3390 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3391 pgac_save_CFLAGS=$CFLAGS
3392 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3408 rm -f conftest.$ac_objext
3409 if { (ac_try="$ac_compile"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_compile") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } && {
3422 test -z "$ac_c_werror_flag" ||
3423 test ! -s conftest.err
3424 } && test -s conftest.$ac_objext; then
3425 { echo "$as_me:$LINENO: result: yes" >&5
3426 echo "${ECHO_T}yes" >&6; }
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 CFLAGS="$pgac_save_CFLAGS"
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3439 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3440 pgac_save_CFLAGS=$CFLAGS
3441 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 { echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6; }
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 CFLAGS="$pgac_save_CFLAGS"
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 # Disable strict-aliasing rules; needed for gcc 3.3+
3488 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3489 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3490 pgac_save_CFLAGS=$CFLAGS
3491 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3507 rm -f conftest.$ac_objext
3508 if { (ac_try="$ac_compile"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compile") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } && {
3521 test -z "$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 } && test -s conftest.$ac_objext; then
3524 { echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6; }
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 CFLAGS="$pgac_save_CFLAGS"
3531 { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 elif test "$ICC" = yes; then
3538 # Intel's compiler has a bug/misoptimization in checking for
3539 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3540 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3541 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3542 pgac_save_CFLAGS=$CFLAGS
3543 CFLAGS="$pgac_save_CFLAGS -mp1"
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 { echo "$as_me:$LINENO: result: yes" >&5
3577 echo "${ECHO_T}yes" >&6; }
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 CFLAGS="$pgac_save_CFLAGS"
3583 { echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6; }
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 # Make sure strict aliasing is off (though this is said to be the default)
3590 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3591 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3592 pgac_save_CFLAGS=$CFLAGS
3593 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.$ac_objext; then
3626 { echo "$as_me:$LINENO: result: yes" >&5
3627 echo "${ECHO_T}yes" >&6; }
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 CFLAGS="$pgac_save_CFLAGS"
3633 { echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 elif test x"${CC}" = x"xlc"; then
3640 # AIX xlc has to have strict aliasing turned off too
3641 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3642 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3643 pgac_save_CFLAGS=$CFLAGS
3644 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
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 { echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6; }
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 CFLAGS="$pgac_save_CFLAGS"
3684 { echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6; }
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 # supply -g if --enable-debug
3693 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3697 # enable profiling if --enable-profiling
3698 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3699 if test "$GCC" = yes; then
3701 cat >>confdefs.h <<\_ACEOF
3702 #define PROFILE_PID_DIR 1
3705 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3707 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3708 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3709 { (exit 1); exit 1; }; }
3713 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3714 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3716 # We already have this in Makefile.win32, but configure needs it too
3717 if test "$PORTNAME" = "win32"; then
3718 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3721 # Check if the compiler still works with the template settings
3722 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3723 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3739 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (ac_try="$ac_link"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_link") 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && {
3753 test -z "$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 } && test -s conftest$ac_exeext &&
3756 $as_test_x conftest$ac_exeext; then
3757 { echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6; }
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3766 echo "$as_me: error: cannot proceed" >&2;}
3767 { (exit 1); exit 1; }; }
3770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3771 conftest$ac_exeext conftest.$ac_ext
3773 # Defend against gcc -ffast-math
3774 if test "$GCC" = yes; then
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3785 #ifdef __FAST_MATH__
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3815 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3816 { (exit 1); exit 1; }; }
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3833 if test -z "$CPP"; then
3834 if test "${ac_cv_prog_CPP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 # Double quotes because CPP needs to be expanded
3838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3856 # include <limits.h>
3858 # include <assert.h>
3862 if { (ac_try="$ac_cpp conftest.$ac_ext"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null && {
3875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 # Broken: fails on valid input.
3887 rm -f conftest.err conftest.$ac_ext
3889 # OK, works on sane cases. Now check whether nonexistent headers
3890 # can be detected and how.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 #include <ac_nonexistent.h>
3899 if { (ac_try="$ac_cpp conftest.$ac_ext"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null && {
3912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3915 # Broken: success on invalid input.
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 # Passes both tests.
3926 rm -f conftest.err conftest.$ac_ext
3929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3930 rm -f conftest.err conftest.$ac_ext
3931 if $ac_preproc_ok; then
3943 { echo "$as_me:$LINENO: result: $CPP" >&5
3944 echo "${ECHO_T}$CPP" >&6; }
3946 for ac_c_preproc_warn_flag in '' yes
3948 # Use a header file that comes with gcc, so configuring glibc
3949 # with a fresh cross-compiler works.
3950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3951 # <limits.h> exists even on freestanding compilers.
3952 # On the NeXT, cc -E runs the code through the compiler's parser,
3953 # not just through cpp. "Syntax error" is here to catch this case.
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3961 # include <limits.h>
3963 # include <assert.h>
3967 if { (ac_try="$ac_cpp conftest.$ac_ext"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev/null && {
3980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 # Broken: fails on valid input.
3992 rm -f conftest.err conftest.$ac_ext
3994 # OK, works on sane cases. Now check whether nonexistent headers
3995 # can be detected and how.
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4004 if { (ac_try="$ac_cpp conftest.$ac_ext"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } >/dev/null && {
4017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4020 # Broken: success on invalid input.
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 # Passes both tests.
4031 rm -f conftest.err conftest.$ac_ext
4034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4035 rm -f conftest.err conftest.$ac_ext
4036 if $ac_preproc_ok; then
4039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&5
4041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4042 See \`config.log' for more details." >&2;}
4043 { (exit 1); exit 1; }; }
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 # Create compiler version string
4055 if test x"$GCC" = x"yes" ; then
4056 cc_string="GCC `${CC} --version | sed q`"
4061 cat >>confdefs.h <<_ACEOF
4062 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4068 # Set up TAS assembly code if needed; the template file has now had its
4069 # chance to request this.
4071 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4074 if test "$need_tas" = yes ; then
4083 # Automatic dependency tracking
4086 pgac_args="$pgac_args enable_depend"
4088 # Check whether --enable-depend was given.
4089 if test "${enable_depend+set}" = set; then
4090 enableval=$enable_depend;
4099 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4100 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4101 { (exit 1); exit 1; }; }
4115 # Enable assert checks
4118 pgac_args="$pgac_args enable_cassert"
4120 # Check whether --enable-cassert was given.
4121 if test "${enable_cassert+set}" = set; then
4122 enableval=$enable_cassert;
4126 cat >>confdefs.h <<\_ACEOF
4127 #define USE_ASSERT_CHECKING 1
4135 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4136 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4137 { (exit 1); exit 1; }; }
4150 # Include directories
4153 IFS="${IFS}${PATH_SEPARATOR}"
4154 # SRCH_INC comes from the template file
4155 for dir in $with_includes $SRCH_INC; do
4156 if test -d "$dir"; then
4157 INCLUDES="$INCLUDES -I$dir"
4159 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4160 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4168 # Library directories
4171 IFS="${IFS}${PATH_SEPARATOR}"
4172 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4173 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4174 if test -d "$dir"; then
4175 LIBDIRS="$LIBDIRS -L$dir"
4177 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4178 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4184 # Enable thread-safe client libraries
4186 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4187 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4188 if test "$PORTNAME" != "win32"; then
4190 pgac_args="$pgac_args enable_thread_safety"
4192 # Check whether --enable-thread-safety was given.
4193 if test "${enable_thread_safety+set}" = set; then
4194 enableval=$enable_thread_safety;
4203 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4204 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4205 { (exit 1); exit 1; }; }
4210 enable_thread_safety=no
4216 # Win32 should always use threads
4218 pgac_args="$pgac_args enable_thread_safety"
4220 # Check whether --enable-thread-safety was given.
4221 if test "${enable_thread_safety+set}" = set; then
4222 enableval=$enable_thread_safety;
4231 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4232 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4233 { (exit 1); exit 1; }; }
4238 enable_thread_safety=yes
4246 pgac_args="$pgac_args enable_thread_safety_force"
4248 # Check whether --enable-thread-safety-force was given.
4249 if test "${enable_thread_safety_force+set}" = set; then
4250 enableval=$enable_thread_safety_force;
4259 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4260 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4261 { (exit 1); exit 1; }; }
4266 enable_thread_safety_force=no
4271 if test "$enable_thread_safety" = yes -o \
4272 "$enable_thread_safety_force" = yes; then
4273 enable_thread_safety="yes" # for 'force'
4275 cat >>confdefs.h <<\_ACEOF
4276 #define ENABLE_THREAD_SAFETY 1
4280 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4281 echo "${ECHO_T}$enable_thread_safety" >&6; }
4285 # Optionally build Tcl modules (PL/Tcl)
4287 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4288 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4290 pgac_args="$pgac_args with_tcl"
4293 # Check whether --with-tcl was given.
4294 if test "${with_tcl+set}" = set; then
4304 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4305 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4306 { (exit 1); exit 1; }; }
4316 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4317 echo "${ECHO_T}$with_tcl" >&6; }
4320 # We see if the path to the Tcl/Tk configuration scripts is specified.
4321 # This will override the use of tclsh to find the paths to search.
4324 pgac_args="$pgac_args with_tclconfig"
4327 # Check whether --with-tclconfig was given.
4328 if test "${with_tclconfig+set}" = set; then
4329 withval=$with_tclconfig;
4332 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4333 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4334 { (exit 1); exit 1; }; }
4337 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4338 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4339 { (exit 1); exit 1; }; }
4351 # Optionally build Perl modules (PL/Perl)
4353 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4354 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4356 pgac_args="$pgac_args with_perl"
4359 # Check whether --with-perl was given.
4360 if test "${with_perl+set}" = set; then
4370 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4371 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4372 { (exit 1); exit 1; }; }
4382 { echo "$as_me:$LINENO: result: $with_perl" >&5
4383 echo "${ECHO_T}$with_perl" >&6; }
4387 # Optionally build Python modules (PL/Python)
4389 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4390 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4392 pgac_args="$pgac_args with_python"
4395 # Check whether --with-python was given.
4396 if test "${with_python+set}" = set; then
4397 withval=$with_python;
4406 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4407 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4408 { (exit 1); exit 1; }; }
4418 { echo "$as_me:$LINENO: result: $with_python" >&5
4419 echo "${ECHO_T}$with_python" >&6; }
4425 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4426 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4428 pgac_args="$pgac_args with_gssapi"
4431 # Check whether --with-gssapi was given.
4432 if test "${with_gssapi+set}" = set; then
4433 withval=$with_gssapi;
4438 cat >>confdefs.h <<\_ACEOF
4439 #define ENABLE_GSS 1
4442 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4449 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4450 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4451 { (exit 1); exit 1; }; }
4461 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4462 echo "${ECHO_T}$with_gssapi" >&6; }
4468 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4469 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4471 pgac_args="$pgac_args with_krb5"
4474 # Check whether --with-krb5 was given.
4475 if test "${with_krb5+set}" = set; then
4481 cat >>confdefs.h <<\_ACEOF
4485 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4492 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4493 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4494 { (exit 1); exit 1; }; }
4504 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4505 echo "${ECHO_T}$with_krb5" >&6; }
4513 # Kerberos configuration parameters
4516 pgac_args="$pgac_args with_krb_srvnam"
4519 # Check whether --with-krb-srvnam was given.
4520 if test "${with_krb_srvnam+set}" = set; then
4521 withval=$with_krb_srvnam;
4524 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4525 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4526 { (exit 1); exit 1; }; }
4529 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4530 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4531 { (exit 1); exit 1; }; }
4539 with_krb_srvnam="postgres"
4544 cat >>confdefs.h <<_ACEOF
4545 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4553 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4554 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4556 pgac_args="$pgac_args with_pam"
4559 # Check whether --with-pam was given.
4560 if test "${with_pam+set}" = set; then
4565 cat >>confdefs.h <<\_ACEOF
4574 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4575 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4576 { (exit 1); exit 1; }; }
4586 { echo "$as_me:$LINENO: result: $with_pam" >&5
4587 echo "${ECHO_T}$with_pam" >&6; }
4594 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4595 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4597 pgac_args="$pgac_args with_ldap"
4600 # Check whether --with-ldap was given.
4601 if test "${with_ldap+set}" = set; then
4606 cat >>confdefs.h <<\_ACEOF
4615 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4616 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4617 { (exit 1); exit 1; }; }
4627 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4628 echo "${ECHO_T}$with_ldap" >&6; }
4635 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4636 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4638 pgac_args="$pgac_args with_bonjour"
4641 # Check whether --with-bonjour was given.
4642 if test "${with_bonjour+set}" = set; then
4643 withval=$with_bonjour;
4647 cat >>confdefs.h <<\_ACEOF
4648 #define USE_BONJOUR 1
4656 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4657 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4658 { (exit 1); exit 1; }; }
4668 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4669 echo "${ECHO_T}$with_bonjour" >&6; }
4676 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4677 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4679 pgac_args="$pgac_args with_openssl"
4682 # Check whether --with-openssl was given.
4683 if test "${with_openssl+set}" = set; then
4684 withval=$with_openssl;
4688 cat >>confdefs.h <<\_ACEOF
4697 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4698 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4699 { (exit 1); exit 1; }; }
4709 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4710 echo "${ECHO_T}$with_openssl" >&6; }
4718 pgac_args="$pgac_args with_readline"
4721 # Check whether --with-readline was given.
4722 if test "${with_readline+set}" = set; then
4723 withval=$with_readline;
4732 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4733 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4734 { (exit 1); exit 1; }; }
4744 # readline on MinGW has problems with backslashes in psql and other bugs.
4745 # This is particularly a problem with non-US code pages.
4746 # Therefore disable its use until we understand the cause. 2004-07-20
4747 if test "$PORTNAME" = "win32"; then
4748 if test "$with_readline" = yes; then
4749 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4750 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4760 pgac_args="$pgac_args with_libedit_preferred"
4763 # Check whether --with-libedit-preferred was given.
4764 if test "${with_libedit_preferred+set}" = set; then
4765 withval=$with_libedit_preferred;
4774 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4775 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4776 { (exit 1); exit 1; }; }
4781 with_libedit_preferred=no
4792 pgac_args="$pgac_args with_ossp_uuid"
4795 # Check whether --with-ossp-uuid was given.
4796 if test "${with_ossp_uuid+set}" = set; then
4797 withval=$with_ossp_uuid;
4806 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4807 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4808 { (exit 1); exit 1; }; }
4825 pgac_args="$pgac_args with_libxml"
4828 # Check whether --with-libxml was given.
4829 if test "${with_libxml+set}" = set; then
4830 withval=$with_libxml;
4834 cat >>confdefs.h <<\_ACEOF
4835 #define USE_LIBXML 1
4843 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4844 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4845 { (exit 1); exit 1; }; }
4856 if test "$with_libxml" = yes ; then
4857 for ac_prog in xml2-config
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 if test -n "$XML2_CONFIG"; then
4867 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_XML2_CONFIG="$ac_prog"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4887 if test -n "$XML2_CONFIG"; then
4888 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4889 echo "${ECHO_T}$XML2_CONFIG" >&6; }
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4896 test -n "$XML2_CONFIG" && break
4899 if test -n "$XML2_CONFIG"; then
4900 for pgac_option in `$XML2_CONFIG --cflags`; do
4901 case $pgac_option in
4902 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4905 for pgac_option in `$XML2_CONFIG --libs`; do
4906 case $pgac_option in
4907 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4919 pgac_args="$pgac_args with_libxslt"
4922 # Check whether --with-libxslt was given.
4923 if test "${with_libxslt+set}" = set; then
4924 withval=$with_libxslt;
4928 cat >>confdefs.h <<\_ACEOF
4929 #define USE_LIBXSLT 1
4937 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4938 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4939 { (exit 1); exit 1; }; }
4957 pgac_args="$pgac_args with_system_tzdata"
4960 # Check whether --with-system-tzdata was given.
4961 if test "${with_system_tzdata+set}" = set; then
4962 withval=$with_system_tzdata;
4965 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4966 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4967 { (exit 1); exit 1; }; }
4970 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4971 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4972 { (exit 1); exit 1; }; }
4988 pgac_args="$pgac_args with_zlib"
4991 # Check whether --with-zlib was given.
4992 if test "${with_zlib+set}" = set; then
5002 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5003 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5004 { (exit 1); exit 1; }; }
5020 # Assume system is ELF if it predefines __ELF__ as 1,
5021 # otherwise believe host_os based default.
5023 freebsd1*|freebsd2*) elf=no;;
5024 freebsd3*|freebsd4*) elf=yes;;
5028 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5029 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5030 if test "${ac_cv_path_GREP+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 # Extract the first word of "grep ggrep" to use in msg output
5034 if test -z "$GREP"; then
5035 set dummy grep ggrep; ac_prog_name=$2
5036 if test "${ac_cv_path_GREP+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_path_GREP_found=false
5040 # Loop through the user's path and test for each of PROGNAME-LIST
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in grep ggrep; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5049 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5050 # Check for GNU ac_path_GREP and select it if it is found.
5051 # Check for GNU $ac_path_GREP
5052 case `"$ac_path_GREP" --version 2>&1` in
5054 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5057 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 echo 'GREP' >> "conftest.nl"
5064 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 ac_count=`expr $ac_count + 1`
5067 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_GREP="$ac_path_GREP"
5070 ac_path_GREP_max=$ac_count
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 $ac_path_GREP_found && break 3
5089 GREP="$ac_cv_path_GREP"
5090 if test -z "$GREP"; then
5091 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5092 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5093 { (exit 1); exit 1; }; }
5097 ac_cv_path_GREP=$GREP
5102 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5103 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5107 { echo "$as_me:$LINENO: checking for egrep" >&5
5108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5115 # Extract the first word of "egrep" to use in msg output
5116 if test -z "$EGREP"; then
5117 set dummy egrep; ac_prog_name=$2
5118 if test "${ac_cv_path_EGREP+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 ac_path_EGREP_found=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5127 test -z "$as_dir" && as_dir=.
5128 for ac_prog in egrep; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5132 # Check for GNU ac_path_EGREP and select it if it is found.
5133 # Check for GNU $ac_path_EGREP
5134 case `"$ac_path_EGREP" --version 2>&1` in
5136 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5139 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 echo 'EGREP' >> "conftest.nl"
5146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148 ac_count=`expr $ac_count + 1`
5149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_EGREP="$ac_path_EGREP"
5152 ac_path_EGREP_max=$ac_count
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161 $ac_path_EGREP_found && break 3
5171 EGREP="$ac_cv_path_EGREP"
5172 if test -z "$EGREP"; then
5173 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5174 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5175 { (exit 1); exit 1; }; }
5179 ac_cv_path_EGREP=$EGREP
5185 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5186 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5187 EGREP="$ac_cv_path_EGREP"
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202 $EGREP "yes" >/dev/null 2>&1; then
5205 if test "X$elf" = "Xyes" ; then
5219 CPPFLAGS="$CPPFLAGS $INCLUDES"
5220 LDFLAGS="$LDFLAGS $LIBDIRS"
5222 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5223 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5224 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5225 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5230 # Check whether --with-gnu-ld was given.
5231 if test "${with_gnu_ld+set}" = set; then
5232 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5238 if test "$GCC" = yes; then
5239 # Check if gcc -print-prog-name=ld gives a path.
5240 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5241 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5244 # gcc leaves a trailing carriage return which upsets mingw
5245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5250 # Accept absolute paths.
5251 [\\/]* | [A-Za-z]:[\\/]*)
5252 re_direlt='/[^/][^/]*/\.\./'
5253 # Canonicalize the path of ld
5254 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5256 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5258 test -z "$LD" && LD="$ac_prog"
5261 # If it fails, then pretend we aren't using GCC.
5265 # If it is relative, then search for the first ld in PATH.
5269 elif test "$with_gnu_ld" = yes; then
5270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_LD+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -z "$LD"; then
5280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5281 for ac_dir in $PATH; do
5282 test -z "$ac_dir" && ac_dir=.
5283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5284 ac_cv_path_LD="$ac_dir/$ac_prog"
5285 # Check to see if the program is GNU ld. I'd rather use --version,
5286 # but apparently some GNU ld's only accept -v.
5287 # Break only if it was the GNU/non-GNU ld that we prefer.
5288 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5289 test "$with_gnu_ld" != no && break
5291 test "$with_gnu_ld" != yes && break
5297 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5302 if test -n "$LD"; then
5303 { echo "$as_me:$LINENO: result: $LD" >&5
5304 echo "${ECHO_T}$LD" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5309 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5310 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5311 { (exit 1); exit 1; }; }
5312 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5313 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5318 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5319 ac_cv_prog_gnu_ld=yes
5321 ac_cv_prog_gnu_ld=no
5324 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5325 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5326 with_gnu_ld=$ac_cv_prog_gnu_ld
5331 case $host_os in sysv5*)
5332 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5333 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5334 if test "${pgac_cv_prog_ld_R+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5354 rm -f conftest.$ac_objext conftest$ac_exeext
5355 if { (ac_try="$ac_link"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_link") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest$ac_exeext &&
5371 $as_test_x conftest$ac_exeext; then
5372 pgac_cv_prog_ld_R=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 pgac_cv_prog_ld_R=no
5380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5381 conftest$ac_exeext conftest.$ac_ext
5382 LDFLAGS=$pgac_save_LDFLAGS
5385 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5386 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5387 ld_R_works=$pgac_cv_prog_ld_R
5390 if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5395 if test "${ac_cv_prog_RANLIB+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 if test -n "$RANLIB"; then
5399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 RANLIB=$ac_cv_prog_RANLIB
5419 if test -n "$RANLIB"; then
5420 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5421 echo "${ECHO_T}$RANLIB" >&6; }
5423 { echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6; }
5429 if test -z "$ac_cv_prog_RANLIB"; then
5430 ac_ct_RANLIB=$RANLIB
5431 # Extract the first word of "ranlib", so it can be a program name with args.
5432 set dummy ranlib; ac_word=$2
5433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 if test -n "$ac_ct_RANLIB"; then
5439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_RANLIB="ranlib"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5459 if test -n "$ac_ct_RANLIB"; then
5460 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5463 { echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6; }
5467 if test "x$ac_ct_RANLIB" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet. If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&5
5475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5476 whose name does not start with the host triplet. If you think this
5477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5478 ac_tool_warned=yes ;;
5480 RANLIB=$ac_ct_RANLIB
5483 RANLIB="$ac_cv_prog_RANLIB"
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}strip; ac_word=$2
5490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5492 if test "${ac_cv_prog_STRIP+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 if test -n "$STRIP"; then
5496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 STRIP=$ac_cv_prog_STRIP
5516 if test -n "$STRIP"; then
5517 { echo "$as_me:$LINENO: result: $STRIP" >&5
5518 echo "${ECHO_T}$STRIP" >&6; }
5520 { echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6; }
5526 if test -z "$ac_cv_prog_STRIP"; then
5528 # Extract the first word of "strip", so it can be a program name with args.
5529 set dummy strip; ac_word=$2
5530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 if test -n "$ac_ct_STRIP"; then
5536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_STRIP="strip"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5556 if test -n "$ac_ct_STRIP"; then
5557 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5558 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5564 if test "x$ac_ct_STRIP" = x; then
5567 case $cross_compiling:$ac_tool_warned in
5569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5570 whose name does not start with the host triplet. If you think this
5571 configuration is useful to you, please write to autoconf@gnu.org." >&5
5572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5573 whose name does not start with the host triplet. If you think this
5574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5575 ac_tool_warned=yes ;;
5580 STRIP="$ac_cv_prog_STRIP"
5584 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5585 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5586 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5587 STRIP_STATIC_LIB="$STRIP -x"
5588 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5589 { echo "$as_me:$LINENO: result: yes" >&5
5590 echo "${ECHO_T}yes" >&6; }
5594 { echo "$as_me:$LINENO: result: no" >&5
5595 echo "${ECHO_T}no" >&6; }
5601 # Extract the first word of "tar", so it can be a program name with args.
5602 set dummy tar; ac_word=$2
5603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605 if test "${ac_cv_path_TAR+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 if test -n "$TAR"; then
5633 { echo "$as_me:$LINENO: result: $TAR" >&5
5634 echo "${ECHO_T}$TAR" >&6; }
5636 { echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6; }
5641 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5642 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5644 if test "$LN_S" = "ln -s"; then
5645 { echo "$as_me:$LINENO: result: yes" >&5
5646 echo "${ECHO_T}yes" >&6; }
5648 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5649 echo "${ECHO_T}no, using $LN_S" >&6; }
5652 for ac_prog in gawk mawk nawk awk
5654 # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5658 if test "${ac_cv_prog_AWK+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 if test -n "$AWK"; then
5662 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671 ac_cv_prog_AWK="$ac_prog"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 if test -n "$AWK"; then
5683 { echo "$as_me:$LINENO: result: $AWK" >&5
5684 echo "${ECHO_T}$AWK" >&6; }
5686 { echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6; }
5691 test -n "$AWK" && break
5695 # Let the user override the search
5696 if test -z "$YACC"; then
5697 for ac_prog in 'bison -y'
5699 # Extract the first word of "$ac_prog", so it can be a program name with args.
5700 set dummy $ac_prog; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_prog_YACC+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 if test -n "$YACC"; then
5707 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_YACC="$ac_prog"
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 YACC=$ac_cv_prog_YACC
5727 if test -n "$YACC"; then
5728 { echo "$as_me:$LINENO: result: $YACC" >&5
5729 echo "${ECHO_T}$YACC" >&6; }
5731 { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5736 test -n "$YACC" && break
5741 if test "$YACC"; then
5742 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5743 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5744 echo "$as_me: using $pgac_yacc_version" >&6;}
5745 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5747 { echo "$as_me:$LINENO: WARNING:
5748 *** The installed version of Bison is too old to use with PostgreSQL.
5749 *** Bison version 1.875 or later is required." >&5
5750 echo "$as_me: WARNING:
5751 *** The installed version of Bison is too old to use with PostgreSQL.
5752 *** Bison version 1.875 or later is required." >&2;}
5757 if test -z "$YACC"; then
5758 { echo "$as_me:$LINENO: WARNING:
5759 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5760 *** change any of the parser definition files. You can obtain Bison from
5761 *** a GNU mirror site. (If you are using the official distribution of
5762 *** PostgreSQL then you do not need to worry about this, because the Bison
5763 *** output is pre-generated.) To use a different yacc program (possible,
5764 *** but not recommended), set the environment variable YACC before running
5765 *** 'configure'." >&5
5766 echo "$as_me: WARNING:
5767 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5768 *** change any of the parser definition files. You can obtain Bison from
5769 *** a GNU mirror site. (If you are using the official distribution of
5770 *** PostgreSQL then you do not need to worry about this, because the Bison
5771 *** output is pre-generated.) To use a different yacc program (possible,
5772 *** but not recommended), set the environment variable YACC before running
5773 *** 'configure'." >&2;}
5775 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5778 { echo "$as_me:$LINENO: checking for flex" >&5
5779 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
5780 if test "${pgac_cv_path_flex+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 # Let the user override the test
5784 if test -n "$FLEX"; then
5785 pgac_cv_path_flex=$FLEX
5789 for pgac_dir in $PATH; do
5791 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5794 for pgac_prog in flex lex; do
5795 pgac_candidate="$pgac_dir/$pgac_prog"
5796 if test -f "$pgac_candidate" \
5797 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5799 echo '%%' > conftest.l
5800 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5801 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5802 pgac_broken_flex=$pgac_candidate
5806 pgac_cv_path_flex=$pgac_candidate
5812 rm -f conftest.l lex.yy.c
5813 : ${pgac_cv_path_flex=no}
5817 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5818 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
5819 if test x"$pgac_cv_path_flex" = x"no"; then
5820 if test -n "$pgac_broken_flex"; then
5821 { echo "$as_me:$LINENO: WARNING:
5822 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5823 *** should get version 2.5.4 or later." >&5
5824 echo "$as_me: WARNING:
5825 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5826 *** should get version 2.5.4 or later." >&2;}
5829 { echo "$as_me:$LINENO: WARNING:
5830 *** Without Flex you will not be able to build PostgreSQL from CVS or
5831 *** change any of the scanner definition files. You can obtain Flex from
5832 *** a GNU mirror site. (If you are using the official distribution of
5833 *** PostgreSQL then you do not need to worry about this because the Flex
5834 *** output is pre-generated.)" >&5
5835 echo "$as_me: WARNING:
5836 *** Without Flex you will not be able to build PostgreSQL from CVS or
5837 *** change any of the scanner definition files. You can obtain Flex from
5838 *** a GNU mirror site. (If you are using the official distribution of
5839 *** PostgreSQL then you do not need to worry about this because the Flex
5840 *** output is pre-generated.)" >&2;}
5844 FLEX=$pgac_cv_path_flex
5845 pgac_flex_version=`$FLEX -V 2>/dev/null`
5846 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5847 echo "$as_me: using $pgac_flex_version" >&6;}
5854 # Extract the first word of "perl", so it can be a program name with args.
5855 set dummy perl; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_path_PERL+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 PERL=$ac_cv_path_PERL
5885 if test -n "$PERL"; then
5886 { echo "$as_me:$LINENO: result: $PERL" >&5
5887 echo "${ECHO_T}$PERL" >&6; }
5889 { echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6; }
5894 if test "$with_perl" = yes; then
5896 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5897 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
5898 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5899 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5900 echo "${ECHO_T}$perl_archlibexp" >&6; }
5901 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5902 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
5903 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5904 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5905 echo "${ECHO_T}$perl_privlibexp" >&6; }
5906 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5907 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
5908 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5909 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5910 echo "${ECHO_T}$perl_useshrplib" >&6; }
5912 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5913 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
5914 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5915 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5916 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5917 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5918 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
5921 if test "$with_python" = yes; then
5922 # Extract the first word of "python", so it can be a program name with args.
5923 set dummy python; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_PYTHON+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 PYTHON=$ac_cv_path_PYTHON
5953 if test -n "$PYTHON"; then
5954 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5955 echo "${ECHO_T}$PYTHON" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 if test x"$PYTHON" = x""; then
5963 { { echo "$as_me:$LINENO: error: Python not found" >&5
5964 echo "$as_me: error: Python not found" >&2;}
5965 { (exit 1); exit 1; }; }
5969 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
5970 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
5971 if "${PYTHON}" 2>&- -c 'import distutils'
5973 { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5978 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5979 echo "$as_me: error: distutils module not found" >&2;}
5980 { (exit 1); exit 1; }; }
5982 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
5983 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
5984 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5985 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')"`
5986 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5988 # This should be enough of a message.
5989 { echo "$as_me:$LINENO: result: $python_configdir" >&5
5990 echo "${ECHO_T}$python_configdir" >&6; }
5993 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5994 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
5996 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5997 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5998 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5999 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6001 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6003 # New way: use the official shared library
6004 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6005 python_libspec="-L${python_libdir} -l${ldlibrary}"
6007 # Old way: use libpython from python_configdir
6008 python_libdir="${python_configdir}"
6009 python_libspec="-L${python_libdir} -lpython${python_version}"
6012 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6014 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6015 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6018 # threaded python is not supported on bsd's
6019 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6020 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6021 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6022 if test "$pythreads" = "1"; then
6023 { echo "$as_me:$LINENO: result: yes" >&5
6024 echo "${ECHO_T}yes" >&6; }
6027 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6028 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6029 { (exit 1); exit 1; }; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6040 # Supply a numeric version string for use by 3rd party add-ons
6041 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6042 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6044 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6046 cat >>confdefs.h <<_ACEOF
6047 #define PG_VERSION_NUM $PG_VERSION_NUM
6054 ## Most libraries are included only if they demonstrably provide a function
6055 ## we need, but libm is an exception: always include it, because there are
6056 ## too many compilers that play cute optimization games that will break
6057 ## probes for standard functions such as pow().
6061 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6062 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6063 if test "${ac_cv_lib_m_main+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_check_lib_save_LIBS=$LIBS
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6084 rm -f conftest.$ac_objext conftest$ac_exeext
6085 if { (ac_try="$ac_link"
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_link") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest$ac_exeext &&
6101 $as_test_x conftest$ac_exeext; then
6102 ac_cv_lib_m_main=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6111 conftest$ac_exeext conftest.$ac_ext
6112 LIBS=$ac_check_lib_save_LIBS
6114 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6115 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6116 if test $ac_cv_lib_m_main = yes; then
6117 cat >>confdefs.h <<_ACEOF
6125 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6126 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6127 if test "${ac_cv_search_setproctitle+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_func_search_save_LIBS=$LIBS
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6138 /* Override any GCC internal prototype to avoid an error.
6139 Use char because int might match the return type of a GCC
6140 builtin and then its argument prototype would still apply. */
6144 char setproctitle ();
6148 return setproctitle ();
6153 for ac_lib in '' util; do
6154 if test -z "$ac_lib"; then
6155 ac_res="none required"
6158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (ac_try="$ac_link"
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_link") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest$ac_exeext &&
6177 $as_test_x conftest$ac_exeext; then
6178 ac_cv_search_setproctitle=$ac_res
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6188 if test "${ac_cv_search_setproctitle+set}" = set; then
6192 if test "${ac_cv_search_setproctitle+set}" = set; then
6195 ac_cv_search_setproctitle=no
6198 LIBS=$ac_func_search_save_LIBS
6200 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6201 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6202 ac_res=$ac_cv_search_setproctitle
6203 if test "$ac_res" != no; then
6204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6208 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6209 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6210 if test "${ac_cv_search_dlopen+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 ac_func_search_save_LIBS=$LIBS
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6236 for ac_lib in '' dl; do
6237 if test -z "$ac_lib"; then
6238 ac_res="none required"
6241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest$ac_exeext &&
6260 $as_test_x conftest$ac_exeext; then
6261 ac_cv_search_dlopen=$ac_res
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6271 if test "${ac_cv_search_dlopen+set}" = set; then
6275 if test "${ac_cv_search_dlopen+set}" = set; then
6278 ac_cv_search_dlopen=no
6281 LIBS=$ac_func_search_save_LIBS
6283 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6284 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6285 ac_res=$ac_cv_search_dlopen
6286 if test "$ac_res" != no; then
6287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6291 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6292 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6293 if test "${ac_cv_search_socket+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 ac_func_search_save_LIBS=$LIBS
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6319 for ac_lib in '' socket wsock32; do
6320 if test -z "$ac_lib"; then
6321 ac_res="none required"
6324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_link") 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && {
6340 test -z "$ac_c_werror_flag" ||
6341 test ! -s conftest.err
6342 } && test -s conftest$ac_exeext &&
6343 $as_test_x conftest$ac_exeext; then
6344 ac_cv_search_socket=$ac_res
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6354 if test "${ac_cv_search_socket+set}" = set; then
6358 if test "${ac_cv_search_socket+set}" = set; then
6361 ac_cv_search_socket=no
6364 LIBS=$ac_func_search_save_LIBS
6366 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6367 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6368 ac_res=$ac_cv_search_socket
6369 if test "$ac_res" != no; then
6370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6374 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6375 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6376 if test "${ac_cv_search_shl_load+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 ac_func_search_save_LIBS=$LIBS
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6387 /* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
6402 for ac_lib in '' dld; do
6403 if test -z "$ac_lib"; then
6404 ac_res="none required"
6407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest$ac_exeext &&
6426 $as_test_x conftest$ac_exeext; then
6427 ac_cv_search_shl_load=$ac_res
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437 if test "${ac_cv_search_shl_load+set}" = set; then
6441 if test "${ac_cv_search_shl_load+set}" = set; then
6444 ac_cv_search_shl_load=no
6447 LIBS=$ac_func_search_save_LIBS
6449 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6450 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6451 ac_res=$ac_cv_search_shl_load
6452 if test "$ac_res" != no; then
6453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6457 # We only use libld in port/dynloader/aix.c
6460 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6461 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6462 if test "${ac_cv_search_ldopen+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_func_search_save_LIBS=$LIBS
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6473 /* Override any GCC internal prototype to avoid an error.
6474 Use char because int might match the return type of a GCC
6475 builtin and then its argument prototype would still apply. */
6488 for ac_lib in '' ld; do
6489 if test -z "$ac_lib"; then
6490 ac_res="none required"
6493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (ac_try="$ac_link"
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_link") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest$ac_exeext &&
6512 $as_test_x conftest$ac_exeext; then
6513 ac_cv_search_ldopen=$ac_res
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 if test "${ac_cv_search_ldopen+set}" = set; then
6527 if test "${ac_cv_search_ldopen+set}" = set; then
6530 ac_cv_search_ldopen=no
6533 LIBS=$ac_func_search_save_LIBS
6535 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6536 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6537 ac_res=$ac_cv_search_ldopen
6538 if test "$ac_res" != no; then
6539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6545 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6546 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6547 if test "${ac_cv_search_getopt_long+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_func_search_save_LIBS=$LIBS
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 /* Override any GCC internal prototype to avoid an error.
6559 Use char because int might match the return type of a GCC
6560 builtin and then its argument prototype would still apply. */
6564 char getopt_long ();
6568 return getopt_long ();
6573 for ac_lib in '' getopt gnugetopt; do
6574 if test -z "$ac_lib"; then
6575 ac_res="none required"
6578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_link") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest$ac_exeext &&
6597 $as_test_x conftest$ac_exeext; then
6598 ac_cv_search_getopt_long=$ac_res
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608 if test "${ac_cv_search_getopt_long+set}" = set; then
6612 if test "${ac_cv_search_getopt_long+set}" = set; then
6615 ac_cv_search_getopt_long=no
6618 LIBS=$ac_func_search_save_LIBS
6620 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6621 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6622 ac_res=$ac_cv_search_getopt_long
6623 if test "$ac_res" != no; then
6624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6628 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6629 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6630 if test "${ac_cv_search_crypt+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_func_search_save_LIBS=$LIBS
6634 cat >conftest.$ac_ext <<_ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6656 for ac_lib in '' crypt; do
6657 if test -z "$ac_lib"; then
6658 ac_res="none required"
6661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (ac_try="$ac_link"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_link") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest$ac_exeext &&
6680 $as_test_x conftest$ac_exeext; then
6681 ac_cv_search_crypt=$ac_res
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6691 if test "${ac_cv_search_crypt+set}" = set; then
6695 if test "${ac_cv_search_crypt+set}" = set; then
6698 ac_cv_search_crypt=no
6701 LIBS=$ac_func_search_save_LIBS
6703 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6704 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6705 ac_res=$ac_cv_search_crypt
6706 if test "$ac_res" != no; then
6707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6712 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6713 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6714 if test "${ac_cv_search_fdatasync+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_func_search_save_LIBS=$LIBS
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6735 return fdatasync ();
6740 for ac_lib in '' rt posix4; do
6741 if test -z "$ac_lib"; then
6742 ac_res="none required"
6745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (ac_try="$ac_link"
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_link") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest$ac_exeext &&
6764 $as_test_x conftest$ac_exeext; then
6765 ac_cv_search_fdatasync=$ac_res
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6775 if test "${ac_cv_search_fdatasync+set}" = set; then
6779 if test "${ac_cv_search_fdatasync+set}" = set; then
6782 ac_cv_search_fdatasync=no
6785 LIBS=$ac_func_search_save_LIBS
6787 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6788 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
6789 ac_res=$ac_cv_search_fdatasync
6790 if test "$ac_res" != no; then
6791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6796 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
6797 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
6798 if test "${ac_cv_search_shmget+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_func_search_save_LIBS=$LIBS
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 /* Override any GCC internal prototype to avoid an error.
6810 Use char because int might match the return type of a GCC
6811 builtin and then its argument prototype would still apply. */
6824 for ac_lib in '' cygipc; do
6825 if test -z "$ac_lib"; then
6826 ac_res="none required"
6829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6831 rm -f conftest.$ac_objext conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>conftest.er1
6840 grep -v '^ *+' conftest.er1 >conftest.err
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest$ac_exeext &&
6848 $as_test_x conftest$ac_exeext; then
6849 ac_cv_search_shmget=$ac_res
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859 if test "${ac_cv_search_shmget+set}" = set; then
6863 if test "${ac_cv_search_shmget+set}" = set; then
6866 ac_cv_search_shmget=no
6869 LIBS=$ac_func_search_save_LIBS
6871 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6872 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
6873 ac_res=$ac_cv_search_shmget
6874 if test "$ac_res" != no; then
6875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6880 if test "$with_readline" = yes; then
6883 if test "${pgac_cv_check_readline+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 pgac_cv_check_readline=no
6887 pgac_save_LIBS=$LIBS
6888 if test x"$with_libedit_preferred" != x"yes"
6889 then READLINE_ORDER="-lreadline -ledit"
6890 else READLINE_ORDER="-ledit -lreadline"
6892 for pgac_rllib in $READLINE_ORDER ; do
6893 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6894 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
6895 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6896 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6904 /* Override any GCC internal prototype to avoid an error.
6905 Use char because int might match the return type of a GCC
6906 builtin and then its argument prototype would still apply. */
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (ac_try="$ac_link"
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_link") 2>conftest.er1
6928 grep -v '^ *+' conftest.er1 >conftest.err
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest$ac_exeext &&
6936 $as_test_x conftest$ac_exeext; then
6938 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6939 # recognize dependent libraries; assume curses is needed if we didn't
6940 # find any dependency.
6942 netbsd* | openbsd* | irix*)
6943 if test x"$pgac_lib" = x"" ; then
6944 pgac_lib=" -lcurses"
6948 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6959 conftest$ac_exeext conftest.$ac_ext
6961 if test "$pgac_cv_check_readline" != no ; then
6962 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6963 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6970 LIBS=$pgac_save_LIBS
6974 if test "$pgac_cv_check_readline" != no ; then
6975 LIBS="$pgac_cv_check_readline $LIBS"
6977 cat >>confdefs.h <<\_ACEOF
6978 #define HAVE_LIBREADLINE 1
6984 if test x"$pgac_cv_check_readline" = x"no"; then
6985 { { echo "$as_me:$LINENO: error: readline library not found
6986 If you have readline already installed, see config.log for details on the
6987 failure. It is possible the compiler isn't looking in the proper directory.
6988 Use --without-readline to disable readline support." >&5
6989 echo "$as_me: error: readline library not found
6990 If you have readline already installed, see config.log for details on the
6991 failure. It is possible the compiler isn't looking in the proper directory.
6992 Use --without-readline to disable readline support." >&2;}
6993 { (exit 1); exit 1; }; }
6997 if test "$with_zlib" = yes; then
6999 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7000 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7001 if test "${ac_cv_lib_z_inflate+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_check_lib_save_LIBS=$LIBS
7006 cat >conftest.$ac_ext <<_ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7028 rm -f conftest.$ac_objext conftest$ac_exeext
7029 if { (ac_try="$ac_link"
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035 (eval "$ac_link") 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest$ac_exeext &&
7045 $as_test_x conftest$ac_exeext; then
7046 ac_cv_lib_z_inflate=yes
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_lib_z_inflate=no
7054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7055 conftest$ac_exeext conftest.$ac_ext
7056 LIBS=$ac_check_lib_save_LIBS
7058 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7059 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7060 if test $ac_cv_lib_z_inflate = yes; then
7061 cat >>confdefs.h <<_ACEOF
7068 { { echo "$as_me:$LINENO: error: zlib library not found
7069 If you have zlib already installed, see config.log for details on the
7070 failure. It is possible the compiler isn't looking in the proper directory.
7071 Use --without-zlib to disable zlib support." >&5
7072 echo "$as_me: error: zlib library not found
7073 If you have zlib already installed, see config.log for details on the
7074 failure. It is possible the compiler isn't looking in the proper directory.
7075 Use --without-zlib to disable zlib support." >&2;}
7076 { (exit 1); exit 1; }; }
7081 if test "$enable_spinlocks" = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define HAVE_SPINLOCKS 1
7088 { echo "$as_me:$LINENO: WARNING:
7089 *** Not using spinlocks will cause poor performance." >&5
7090 echo "$as_me: WARNING:
7091 *** Not using spinlocks will cause poor performance." >&2;}
7094 if test "$with_gssapi" = yes ; then
7095 if test "$PORTNAME" != "win32"; then
7096 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7097 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7098 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_func_search_save_LIBS=$LIBS
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7109 /* Override any GCC internal prototype to avoid an error.
7110 Use char because int might match the return type of a GCC
7111 builtin and then its argument prototype would still apply. */
7115 char gss_init_sec_context ();
7119 return gss_init_sec_context ();
7124 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7125 if test -z "$ac_lib"; then
7126 ac_res="none required"
7129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_link") 2>conftest.er1
7140 grep -v '^ *+' conftest.er1 >conftest.err
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest$ac_exeext &&
7148 $as_test_x conftest$ac_exeext; then
7149 ac_cv_search_gss_init_sec_context=$ac_res
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7159 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7163 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7166 ac_cv_search_gss_init_sec_context=no
7169 LIBS=$ac_func_search_save_LIBS
7171 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7172 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7173 ac_res=$ac_cv_search_gss_init_sec_context
7174 if test "$ac_res" != no; then
7175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7178 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7179 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7180 { (exit 1); exit 1; }; }
7184 LIBS="$LIBS -lgssapi32"
7188 if test "$with_krb5" = yes ; then
7189 if test "$PORTNAME" != "win32"; then
7190 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7191 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7192 if test "${ac_cv_search_com_err+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 ac_func_search_save_LIBS=$LIBS
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7203 /* Override any GCC internal prototype to avoid an error.
7204 Use char because int might match the return type of a GCC
7205 builtin and then its argument prototype would still apply. */
7218 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7219 if test -z "$ac_lib"; then
7220 ac_res="none required"
7223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (ac_try="$ac_link"
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_link") 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest$ac_exeext &&
7242 $as_test_x conftest$ac_exeext; then
7243 ac_cv_search_com_err=$ac_res
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 if test "${ac_cv_search_com_err+set}" = set; then
7257 if test "${ac_cv_search_com_err+set}" = set; then
7260 ac_cv_search_com_err=no
7263 LIBS=$ac_func_search_save_LIBS
7265 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7266 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7267 ac_res=$ac_cv_search_com_err
7268 if test "$ac_res" != no; then
7269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7272 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7273 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7274 { (exit 1); exit 1; }; }
7277 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7278 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7279 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 ac_func_search_save_LIBS=$LIBS
7283 cat >conftest.$ac_ext <<_ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7290 /* Override any GCC internal prototype to avoid an error.
7291 Use char because int might match the return type of a GCC
7292 builtin and then its argument prototype would still apply. */
7296 char krb5_sendauth ();
7300 return krb5_sendauth ();
7305 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7306 if test -z "$ac_lib"; then
7307 ac_res="none required"
7310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (ac_try="$ac_link"
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_link") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest$ac_exeext &&
7329 $as_test_x conftest$ac_exeext; then
7330 ac_cv_search_krb5_sendauth=$ac_res
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7340 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7344 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7347 ac_cv_search_krb5_sendauth=no
7350 LIBS=$ac_func_search_save_LIBS
7352 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7353 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7354 ac_res=$ac_cv_search_krb5_sendauth
7355 if test "$ac_res" != no; then
7356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7359 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7360 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7361 { (exit 1); exit 1; }; }
7365 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7366 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7367 if test "${ac_cv_search_com_err+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_func_search_save_LIBS=$LIBS
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7378 /* Override any GCC internal prototype to avoid an error.
7379 Use char because int might match the return type of a GCC
7380 builtin and then its argument prototype would still apply. */
7393 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7394 if test -z "$ac_lib"; then
7395 ac_res="none required"
7398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (ac_try="$ac_link"
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_link") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext &&
7417 $as_test_x conftest$ac_exeext; then
7418 ac_cv_search_com_err=$ac_res
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7428 if test "${ac_cv_search_com_err+set}" = set; then
7432 if test "${ac_cv_search_com_err+set}" = set; then
7435 ac_cv_search_com_err=no
7438 LIBS=$ac_func_search_save_LIBS
7440 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7441 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7442 ac_res=$ac_cv_search_com_err
7443 if test "$ac_res" != no; then
7444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7447 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7448 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7449 { (exit 1); exit 1; }; }
7455 if test "$with_openssl" = yes ; then
7456 if test "$PORTNAME" != "win32"; then
7458 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7459 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7460 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_check_lib_save_LIBS=$LIBS
7464 LIBS="-lcrypto $LIBS"
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7472 /* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7478 char CRYPTO_new_ex_data ();
7482 return CRYPTO_new_ex_data ();
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest$ac_exeext &&
7504 $as_test_x conftest$ac_exeext; then
7505 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext conftest.$ac_ext
7515 LIBS=$ac_check_lib_save_LIBS
7517 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7518 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7519 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_LIBCRYPTO 1
7524 LIBS="-lcrypto $LIBS"
7527 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7528 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7529 { (exit 1); exit 1; }; }
7533 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7534 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7535 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_check_lib_save_LIBS=$LIBS
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7547 /* Override any GCC internal prototype to avoid an error.
7548 Use char because int might match the return type of a GCC
7549 builtin and then its argument prototype would still apply. */
7553 char SSL_library_init ();
7557 return SSL_library_init ();
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (ac_try="$ac_link"
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_link") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest$ac_exeext &&
7579 $as_test_x conftest$ac_exeext; then
7580 ac_cv_lib_ssl_SSL_library_init=yes
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_cv_lib_ssl_SSL_library_init=no
7588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7589 conftest$ac_exeext conftest.$ac_ext
7590 LIBS=$ac_check_lib_save_LIBS
7592 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7593 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7594 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7595 cat >>confdefs.h <<_ACEOF
7596 #define HAVE_LIBSSL 1
7602 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7603 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7604 { (exit 1); exit 1; }; }
7609 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7610 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7611 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 ac_check_lib_save_LIBS=$LIBS
7615 LIBS="-leay32 $LIBS"
7616 cat >conftest.$ac_ext <<_ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7623 /* Override any GCC internal prototype to avoid an error.
7624 Use char because int might match the return type of a GCC
7625 builtin and then its argument prototype would still apply. */
7629 char CRYPTO_new_ex_data ();
7633 return CRYPTO_new_ex_data ();
7638 rm -f conftest.$ac_objext conftest$ac_exeext
7639 if { (ac_try="$ac_link"
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_link") 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest$ac_exeext &&
7655 $as_test_x conftest$ac_exeext; then
7656 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7665 conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_check_lib_save_LIBS
7668 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7669 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7670 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define HAVE_LIBEAY32 1
7675 LIBS="-leay32 $LIBS"
7678 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7679 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7680 { (exit 1); exit 1; }; }
7684 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7685 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7686 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_check_lib_save_LIBS=$LIBS
7690 LIBS="-lssleay32 $LIBS"
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 /* Override any GCC internal prototype to avoid an error.
7699 Use char because int might match the return type of a GCC
7700 builtin and then its argument prototype would still apply. */
7704 char SSL_library_init ();
7708 return SSL_library_init ();
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_link") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest$ac_exeext &&
7730 $as_test_x conftest$ac_exeext; then
7731 ac_cv_lib_ssleay32_SSL_library_init=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_lib_ssleay32_SSL_library_init=no
7739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7740 conftest$ac_exeext conftest.$ac_ext
7741 LIBS=$ac_check_lib_save_LIBS
7743 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7744 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
7745 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7746 cat >>confdefs.h <<_ACEOF
7747 #define HAVE_LIBSSLEAY32 1
7750 LIBS="-lssleay32 $LIBS"
7753 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7754 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7755 { (exit 1); exit 1; }; }
7761 if test "$with_pam" = yes ; then
7763 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7764 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
7765 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_check_lib_save_LIBS=$LIBS
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7777 /* Override any GCC internal prototype to avoid an error.
7778 Use char because int might match the return type of a GCC
7779 builtin and then its argument prototype would still apply. */
7787 return pam_start ();
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (ac_try="$ac_link"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_link") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest$ac_exeext &&
7809 $as_test_x conftest$ac_exeext; then
7810 ac_cv_lib_pam_pam_start=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_cv_lib_pam_pam_start=no
7818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7822 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7823 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
7824 if test $ac_cv_lib_pam_pam_start = yes; then
7825 cat >>confdefs.h <<_ACEOF
7826 #define HAVE_LIBPAM 1
7832 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7833 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7834 { (exit 1); exit 1; }; }
7839 if test "$with_libxml" = yes ; then
7841 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7842 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
7843 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_check_lib_save_LIBS=$LIBS
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7861 char xmlSaveToBuffer ();
7865 return xmlSaveToBuffer ();
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (ac_try="$ac_link"
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>conftest.er1
7879 grep -v '^ *+' conftest.er1 >conftest.err
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest$ac_exeext &&
7887 $as_test_x conftest$ac_exeext; then
7888 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_lib_xml2_xmlSaveToBuffer=no
7896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS
7900 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7901 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
7902 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_LIBXML2 1
7910 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7911 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7912 { (exit 1); exit 1; }; }
7917 if test "$with_libxslt" = yes ; then
7919 { echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7920 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6; }
7921 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_check_lib_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7939 char xsltLibxmlVersion ();
7943 return xsltLibxmlVersion ();
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_link") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest$ac_exeext &&
7965 $as_test_x conftest$ac_exeext; then
7966 ac_cv_lib_xslt_xsltLibxmlVersion=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_lib_xslt_xsltLibxmlVersion=no
7974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7975 conftest$ac_exeext conftest.$ac_ext
7976 LIBS=$ac_check_lib_save_LIBS
7978 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7979 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6; }
7980 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_LIBXSLT 1
7988 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7989 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7990 { (exit 1); exit 1; }; }
7995 # for contrib/uuid-ossp
7996 if test "$with_ossp_uuid" = yes ; then
7997 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
7998 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
7999 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 ac_check_lib_save_LIBS=$LIBS
8003 LIBS="-lossp-uuid $LIBS"
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8011 /* Override any GCC internal prototype to avoid an error.
8012 Use char because int might match the return type of a GCC
8013 builtin and then its argument prototype would still apply. */
8017 char uuid_export ();
8021 return uuid_export ();
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_link") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest$ac_exeext &&
8043 $as_test_x conftest$ac_exeext; then
8044 ac_cv_lib_ossp_uuid_uuid_export=yes
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 ac_cv_lib_ossp_uuid_uuid_export=no
8052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8053 conftest$ac_exeext conftest.$ac_ext
8054 LIBS=$ac_check_lib_save_LIBS
8056 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8057 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8058 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8059 OSSP_UUID_LIBS="-lossp-uuid"
8061 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8062 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8063 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_check_lib_save_LIBS=$LIBS
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8075 /* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8081 char uuid_export ();
8085 return uuid_export ();
8090 rm -f conftest.$ac_objext conftest$ac_exeext
8091 if { (ac_try="$ac_link"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_link") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest$ac_exeext &&
8107 $as_test_x conftest$ac_exeext; then
8108 ac_cv_lib_uuid_uuid_export=yes
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_cv_lib_uuid_uuid_export=no
8116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8120 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8121 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8122 if test $ac_cv_lib_uuid_uuid_export = yes; then
8123 OSSP_UUID_LIBS="-luuid"
8125 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8126 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8127 { (exit 1); exit 1; }; }
8140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8142 if test "${ac_cv_header_stdc+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_cv_header_stdc=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_cv_header_stdc=no
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 if test $ac_cv_header_stdc = yes; then
8192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "memchr" >/dev/null 2>&1; then
8206 ac_cv_header_stdc=no
8212 if test $ac_cv_header_stdc = yes; then
8213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "free" >/dev/null 2>&1; then
8227 ac_cv_header_stdc=no
8233 if test $ac_cv_header_stdc = yes; then
8234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8235 if test "$cross_compiling" = yes; then
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8246 #if ((' ' & 0x0FF) == 0x020)
8247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8250 # define ISLOWER(c) \
8251 (('a' <= (c) && (c) <= 'i') \
8252 || ('j' <= (c) && (c) <= 'r') \
8253 || ('s' <= (c) && (c) <= 'z'))
8254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8262 for (i = 0; i < 256; i++)
8263 if (XOR (islower (i), ISLOWER (i))
8264 || toupper (i) != TOUPPER (i))
8269 rm -f conftest$ac_exeext
8270 if { (ac_try="$ac_link"
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_link") 2>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8291 echo "$as_me: program exited with status $ac_status" >&5
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_cv_header_stdc=no
8298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8306 if test $ac_cv_header_stdc = yes; then
8308 cat >>confdefs.h <<\_ACEOF
8309 #define STDC_HEADERS 1
8314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8325 inttypes.h stdint.h unistd.h
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8341 #include <$ac_header>
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 eval "$as_ac_Header=yes"
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 eval "$as_ac_Header=no"
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 ac_res=`eval echo '${'$as_ac_Header'}'`
8371 { echo "$as_me:$LINENO: result: $ac_res" >&5
8372 echo "${ECHO_T}$ac_res" >&6; }
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 ac_res=`eval echo '${'$as_ac_Header'}'`
8419 { echo "$as_me:$LINENO: result: $ac_res" >&5
8420 echo "${ECHO_T}$ac_res" >&6; }
8422 # Is the header compilable?
8423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 #include <$ac_header>
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.$ac_objext; then
8451 ac_header_compiler=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 ac_header_compiler=no
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8461 echo "${ECHO_T}$ac_header_compiler" >&6; }
8463 # Is the header present?
8464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <$ac_header>
8474 if { (ac_try="$ac_cpp conftest.$ac_ext"
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } >/dev/null && {
8487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8490 ac_header_preproc=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_header_preproc=no
8498 rm -f conftest.err conftest.$ac_ext
8499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8500 echo "${ECHO_T}$ac_header_preproc" >&6; }
8502 # So? What about this header?
8503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8509 ac_header_preproc=yes
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8525 ## ---------------------------------------- ##
8526 ## Report this to pgsql-bugs@postgresql.org ##
8527 ## ---------------------------------------- ##
8529 ) | sed "s/^/$as_me: WARNING: /" >&2
8532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 eval "$as_ac_Header=\$ac_header_preproc"
8539 ac_res=`eval echo '${'$as_ac_Header'}'`
8540 { echo "$as_me:$LINENO: result: $ac_res" >&5
8541 echo "${ECHO_T}$ac_res" >&6; }
8544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8545 cat >>confdefs.h <<_ACEOF
8546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8555 # netinet/in.h is included first.
8557 for ac_header in netinet/in.h
8559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567 { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8570 # Is the header compilable?
8571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 $ac_includes_default
8580 #include <$ac_header>
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_header_compiler=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_header_compiler=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6; }
8611 # Is the header present?
8612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8622 if { (ac_try="$ac_cpp conftest.$ac_ext"
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8630 grep -v '^ *+' conftest.er1 >conftest.err
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } >/dev/null && {
8635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8638 ac_header_preproc=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_header_preproc=no
8646 rm -f conftest.err conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8648 echo "${ECHO_T}$ac_header_preproc" >&6; }
8650 # So? What about this header?
8651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8657 ac_header_preproc=yes
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8673 ## ---------------------------------------- ##
8674 ## Report this to pgsql-bugs@postgresql.org ##
8675 ## ---------------------------------------- ##
8677 ) | sed "s/^/$as_me: WARNING: /" >&2
8680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 eval "$as_ac_Header=\$ac_header_preproc"
8687 ac_res=`eval echo '${'$as_ac_Header'}'`
8688 { echo "$as_me:$LINENO: result: $ac_res" >&5
8689 echo "${ECHO_T}$ac_res" >&6; }
8692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8693 cat >>confdefs.h <<_ACEOF
8694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702 for ac_header in netinet/tcp.h
8704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8717 #ifdef HAVE_NETINET_IN_H
8718 #include <netinet/in.h>
8722 #include <$ac_header>
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 eval "$as_ac_Header=yes"
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 eval "$as_ac_Header=no"
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 ac_res=`eval echo '${'$as_ac_Header'}'`
8752 { echo "$as_me:$LINENO: result: $ac_res" >&5
8753 echo "${ECHO_T}$ac_res" >&6; }
8754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8766 for ac_header in readline/readline.h
8768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_res=`eval echo '${'$as_ac_Header'}'`
8776 { echo "$as_me:$LINENO: result: $ac_res" >&5
8777 echo "${ECHO_T}$ac_res" >&6; }
8779 # Is the header compilable?
8780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8782 cat >conftest.$ac_ext <<_ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 $ac_includes_default
8789 #include <$ac_header>
8791 rm -f conftest.$ac_objext
8792 if { (ac_try="$ac_compile"
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_compile") 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } && {
8805 test -z "$ac_c_werror_flag" ||
8806 test ! -s conftest.err
8807 } && test -s conftest.$ac_objext; then
8808 ac_header_compiler=yes
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_header_compiler=no
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6; }
8820 # Is the header present?
8821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <$ac_header>
8831 if { (ac_try="$ac_cpp conftest.$ac_ext"
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } >/dev/null && {
8844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8847 ac_header_preproc=yes
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_header_preproc=no
8855 rm -f conftest.err conftest.$ac_ext
8856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6; }
8859 # So? What about this header?
8860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866 ac_header_preproc=yes
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8882 ## ---------------------------------------- ##
8883 ## Report this to pgsql-bugs@postgresql.org ##
8884 ## ---------------------------------------- ##
8886 ) | sed "s/^/$as_me: WARNING: /" >&2
8889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 eval "$as_ac_Header=\$ac_header_preproc"
8896 ac_res=`eval echo '${'$as_ac_Header'}'`
8897 { echo "$as_me:$LINENO: result: $ac_res" >&5
8898 echo "${ECHO_T}$ac_res" >&6; }
8901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8902 cat >>confdefs.h <<_ACEOF
8903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908 for ac_header in readline.h
8910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 ac_res=`eval echo '${'$as_ac_Header'}'`
8918 { echo "$as_me:$LINENO: result: $ac_res" >&5
8919 echo "${ECHO_T}$ac_res" >&6; }
8921 # Is the header compilable?
8922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8931 #include <$ac_header>
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_compile") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest.$ac_objext; then
8950 ac_header_compiler=yes
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_header_compiler=no
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8960 echo "${ECHO_T}$ac_header_compiler" >&6; }
8962 # Is the header present?
8963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 #include <$ac_header>
8973 if { (ac_try="$ac_cpp conftest.$ac_ext"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } >/dev/null && {
8986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8989 ac_header_preproc=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_header_preproc=no
8997 rm -f conftest.err conftest.$ac_ext
8998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8999 echo "${ECHO_T}$ac_header_preproc" >&6; }
9001 # So? What about this header?
9002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9008 ac_header_preproc=yes
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9024 ## ---------------------------------------- ##
9025 ## Report this to pgsql-bugs@postgresql.org ##
9026 ## ---------------------------------------- ##
9028 ) | sed "s/^/$as_me: WARNING: /" >&2
9031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 eval "$as_ac_Header=\$ac_header_preproc"
9038 ac_res=`eval echo '${'$as_ac_Header'}'`
9039 { echo "$as_me:$LINENO: result: $ac_res" >&5
9040 echo "${ECHO_T}$ac_res" >&6; }
9043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9044 cat >>confdefs.h <<_ACEOF
9045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9049 { { echo "$as_me:$LINENO: error: readline header not found
9050 If you have readline already installed, see config.log for details on the
9051 failure. It is possible the compiler isn't looking in the proper directory.
9052 Use --without-readline to disable readline support." >&5
9053 echo "$as_me: error: readline header not found
9054 If you have readline already installed, see config.log for details on the
9055 failure. It is possible the compiler isn't looking in the proper directory.
9056 Use --without-readline to disable readline support." >&2;}
9057 { (exit 1); exit 1; }; }
9067 for ac_header in readline/history.h
9069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 ac_res=`eval echo '${'$as_ac_Header'}'`
9077 { echo "$as_me:$LINENO: result: $ac_res" >&5
9078 echo "${ECHO_T}$ac_res" >&6; }
9080 # Is the header compilable?
9081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9083 cat >conftest.$ac_ext <<_ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 $ac_includes_default
9090 #include <$ac_header>
9092 rm -f conftest.$ac_objext
9093 if { (ac_try="$ac_compile"
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_compile") 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && {
9106 test -z "$ac_c_werror_flag" ||
9107 test ! -s conftest.err
9108 } && test -s conftest.$ac_objext; then
9109 ac_header_compiler=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_header_compiler=no
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119 echo "${ECHO_T}$ac_header_compiler" >&6; }
9121 # Is the header present?
9122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <$ac_header>
9132 if { (ac_try="$ac_cpp conftest.$ac_ext"
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } >/dev/null && {
9145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9146 test ! -s conftest.err
9148 ac_header_preproc=yes
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_header_preproc=no
9156 rm -f conftest.err conftest.$ac_ext
9157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9158 echo "${ECHO_T}$ac_header_preproc" >&6; }
9160 # So? What about this header?
9161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9167 ac_header_preproc=yes
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 ## ---------------------------------------- ##
9184 ## Report this to pgsql-bugs@postgresql.org ##
9185 ## ---------------------------------------- ##
9187 ) | sed "s/^/$as_me: WARNING: /" >&2
9190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 eval "$as_ac_Header=\$ac_header_preproc"
9197 ac_res=`eval echo '${'$as_ac_Header'}'`
9198 { echo "$as_me:$LINENO: result: $ac_res" >&5
9199 echo "${ECHO_T}$ac_res" >&6; }
9202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 for ac_header in history.h
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 ac_res=`eval echo '${'$as_ac_Header'}'`
9219 { echo "$as_me:$LINENO: result: $ac_res" >&5
9220 echo "${ECHO_T}$ac_res" >&6; }
9222 # Is the header compilable?
9223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 $ac_includes_default
9232 #include <$ac_header>
9234 rm -f conftest.$ac_objext
9235 if { (ac_try="$ac_compile"
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_compile") 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest.$ac_objext; then
9251 ac_header_compiler=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_header_compiler=no
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9261 echo "${ECHO_T}$ac_header_compiler" >&6; }
9263 # Is the header present?
9264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 #include <$ac_header>
9274 if { (ac_try="$ac_cpp conftest.$ac_ext"
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } >/dev/null && {
9287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9288 test ! -s conftest.err
9290 ac_header_preproc=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_preproc=no
9298 rm -f conftest.err conftest.$ac_ext
9299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9300 echo "${ECHO_T}$ac_header_preproc" >&6; }
9302 # So? What about this header?
9303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9309 ac_header_preproc=yes
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9325 ## ---------------------------------------- ##
9326 ## Report this to pgsql-bugs@postgresql.org ##
9327 ## ---------------------------------------- ##
9329 ) | sed "s/^/$as_me: WARNING: /" >&2
9332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 eval "$as_ac_Header=\$ac_header_preproc"
9339 ac_res=`eval echo '${'$as_ac_Header'}'`
9340 { echo "$as_me:$LINENO: result: $ac_res" >&5
9341 echo "${ECHO_T}$ac_res" >&6; }
9344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9345 cat >>confdefs.h <<_ACEOF
9346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 { { echo "$as_me:$LINENO: error: history header not found
9351 If you have readline already installed, see config.log for details on the
9352 failure. It is possible the compiler isn't looking in the proper directory.
9353 Use --without-readline to disable readline support." >&5
9354 echo "$as_me: error: history header not found
9355 If you have readline already installed, see config.log for details on the
9356 failure. It is possible the compiler isn't looking in the proper directory.
9357 Use --without-readline to disable readline support." >&2;}
9358 { (exit 1); exit 1; }; }
9369 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9370 # Some installations of libedit usurp /usr/include/readline/, which seems
9371 # bad practice, since in combined installations readline will have its headers
9372 # there. We might have to resort to AC_EGREP checks to make sure we found
9373 # the proper header...
9375 for ac_header in editline/readline.h
9377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 ac_res=`eval echo '${'$as_ac_Header'}'`
9385 { echo "$as_me:$LINENO: result: $ac_res" >&5
9386 echo "${ECHO_T}$ac_res" >&6; }
9388 # Is the header compilable?
9389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 $ac_includes_default
9398 #include <$ac_header>
9400 rm -f conftest.$ac_objext
9401 if { (ac_try="$ac_compile"
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407 (eval "$ac_compile") 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } && {
9414 test -z "$ac_c_werror_flag" ||
9415 test ! -s conftest.err
9416 } && test -s conftest.$ac_objext; then
9417 ac_header_compiler=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_header_compiler=no
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6; }
9429 # Is the header present?
9430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9432 cat >conftest.$ac_ext <<_ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <$ac_header>
9440 if { (ac_try="$ac_cpp conftest.$ac_ext"
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } >/dev/null && {
9453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9454 test ! -s conftest.err
9456 ac_header_preproc=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_header_preproc=no
9464 rm -f conftest.err conftest.$ac_ext
9465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9466 echo "${ECHO_T}$ac_header_preproc" >&6; }
9468 # So? What about this header?
9469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9475 ac_header_preproc=yes
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9491 ## ---------------------------------------- ##
9492 ## Report this to pgsql-bugs@postgresql.org ##
9493 ## ---------------------------------------- ##
9495 ) | sed "s/^/$as_me: WARNING: /" >&2
9498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 eval "$as_ac_Header=\$ac_header_preproc"
9505 ac_res=`eval echo '${'$as_ac_Header'}'`
9506 { echo "$as_me:$LINENO: result: $ac_res" >&5
9507 echo "${ECHO_T}$ac_res" >&6; }
9510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511 cat >>confdefs.h <<_ACEOF
9512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9517 for ac_header in readline.h
9519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_res=`eval echo '${'$as_ac_Header'}'`
9527 { echo "$as_me:$LINENO: result: $ac_res" >&5
9528 echo "${ECHO_T}$ac_res" >&6; }
9530 # Is the header compilable?
9531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 $ac_includes_default
9540 #include <$ac_header>
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_compile") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && {
9556 test -z "$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9558 } && test -s conftest.$ac_objext; then
9559 ac_header_compiler=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_header_compiler=no
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6; }
9571 # Is the header present?
9572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 #include <$ac_header>
9582 if { (ac_try="$ac_cpp conftest.$ac_ext"
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } >/dev/null && {
9595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9596 test ! -s conftest.err
9598 ac_header_preproc=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_header_preproc=no
9606 rm -f conftest.err conftest.$ac_ext
9607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6; }
9610 # So? What about this header?
9611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9617 ac_header_preproc=yes
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9633 ## ---------------------------------------- ##
9634 ## Report this to pgsql-bugs@postgresql.org ##
9635 ## ---------------------------------------- ##
9637 ) | sed "s/^/$as_me: WARNING: /" >&2
9640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 eval "$as_ac_Header=\$ac_header_preproc"
9647 ac_res=`eval echo '${'$as_ac_Header'}'`
9648 { echo "$as_me:$LINENO: result: $ac_res" >&5
9649 echo "${ECHO_T}$ac_res" >&6; }
9652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659 for ac_header in readline/readline.h
9661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_res=`eval echo '${'$as_ac_Header'}'`
9669 { echo "$as_me:$LINENO: result: $ac_res" >&5
9670 echo "${ECHO_T}$ac_res" >&6; }
9672 # Is the header compilable?
9673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 $ac_includes_default
9682 #include <$ac_header>
9684 rm -f conftest.$ac_objext
9685 if { (ac_try="$ac_compile"
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_header_compiler=no
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 echo "${ECHO_T}$ac_header_compiler" >&6; }
9713 # Is the header present?
9714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <$ac_header>
9724 if { (ac_try="$ac_cpp conftest.$ac_ext"
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } >/dev/null && {
9737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9740 ac_header_preproc=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_header_preproc=no
9748 rm -f conftest.err conftest.$ac_ext
9749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9750 echo "${ECHO_T}$ac_header_preproc" >&6; }
9752 # So? What about this header?
9753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9759 ac_header_preproc=yes
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9775 ## ---------------------------------------- ##
9776 ## Report this to pgsql-bugs@postgresql.org ##
9777 ## ---------------------------------------- ##
9779 ) | sed "s/^/$as_me: WARNING: /" >&2
9782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 eval "$as_ac_Header=\$ac_header_preproc"
9789 ac_res=`eval echo '${'$as_ac_Header'}'`
9790 { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9795 cat >>confdefs.h <<_ACEOF
9796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9800 { { echo "$as_me:$LINENO: error: readline header not found
9801 If you have libedit already installed, see config.log for details on the
9802 failure. It is possible the compiler isn't looking in the proper directory.
9803 Use --without-readline to disable libedit support." >&5
9804 echo "$as_me: error: readline header not found
9805 If you have libedit already installed, see config.log for details on the
9806 failure. It is possible the compiler isn't looking in the proper directory.
9807 Use --without-readline to disable libedit support." >&2;}
9808 { (exit 1); exit 1; }; }
9821 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9822 # not be there at all. Hence, don't complain if not found. We must check
9823 # though, since in yet other versions it is an independent header.
9825 for ac_header in editline/history.h
9827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_res=`eval echo '${'$as_ac_Header'}'`
9835 { echo "$as_me:$LINENO: result: $ac_res" >&5
9836 echo "${ECHO_T}$ac_res" >&6; }
9838 # Is the header compilable?
9839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9848 #include <$ac_header>
9850 rm -f conftest.$ac_objext
9851 if { (ac_try="$ac_compile"
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_compile") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest.$ac_objext; then
9867 ac_header_compiler=yes
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_header_compiler=no
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9877 echo "${ECHO_T}$ac_header_compiler" >&6; }
9879 # Is the header present?
9880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 #include <$ac_header>
9890 if { (ac_try="$ac_cpp conftest.$ac_ext"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null && {
9903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9906 ac_header_preproc=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_header_preproc=no
9914 rm -f conftest.err conftest.$ac_ext
9915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9916 echo "${ECHO_T}$ac_header_preproc" >&6; }
9918 # So? What about this header?
9919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9925 ac_header_preproc=yes
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9941 ## ---------------------------------------- ##
9942 ## Report this to pgsql-bugs@postgresql.org ##
9943 ## ---------------------------------------- ##
9945 ) | sed "s/^/$as_me: WARNING: /" >&2
9948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 eval "$as_ac_Header=\$ac_header_preproc"
9955 ac_res=`eval echo '${'$as_ac_Header'}'`
9956 { echo "$as_me:$LINENO: result: $ac_res" >&5
9957 echo "${ECHO_T}$ac_res" >&6; }
9960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9961 cat >>confdefs.h <<_ACEOF
9962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 for ac_header in history.h
9969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 ac_res=`eval echo '${'$as_ac_Header'}'`
9977 { echo "$as_me:$LINENO: result: $ac_res" >&5
9978 echo "${ECHO_T}$ac_res" >&6; }
9980 # Is the header compilable?
9981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_compile") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest.$ac_objext; then
10009 ac_header_compiler=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_header_compiler=no
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10019 echo "${ECHO_T}$ac_header_compiler" >&6; }
10021 # Is the header present?
10022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <$ac_header>
10032 if { (ac_try="$ac_cpp conftest.$ac_ext"
10033 case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev/null && {
10045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10048 ac_header_preproc=yes
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_header_preproc=no
10056 rm -f conftest.err conftest.$ac_ext
10057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 echo "${ECHO_T}$ac_header_preproc" >&6; }
10060 # So? What about this header?
10061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10083 ## ---------------------------------------- ##
10084 ## Report this to pgsql-bugs@postgresql.org ##
10085 ## ---------------------------------------- ##
10087 ) | sed "s/^/$as_me: WARNING: /" >&2
10090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 eval "$as_ac_Header=\$ac_header_preproc"
10097 ac_res=`eval echo '${'$as_ac_Header'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10109 for ac_header in readline/history.h
10111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 ac_res=`eval echo '${'$as_ac_Header'}'`
10119 { echo "$as_me:$LINENO: result: $ac_res" >&5
10120 echo "${ECHO_T}$ac_res" >&6; }
10122 # Is the header compilable?
10123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 $ac_includes_default
10132 #include <$ac_header>
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_header_compiler=yes
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_header_compiler=no
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161 echo "${ECHO_T}$ac_header_compiler" >&6; }
10163 # Is the header present?
10164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <$ac_header>
10174 if { (ac_try="$ac_cpp conftest.$ac_ext"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } >/dev/null && {
10187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10190 ac_header_preproc=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_header_preproc=no
10198 rm -f conftest.err conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10200 echo "${ECHO_T}$ac_header_preproc" >&6; }
10202 # So? What about this header?
10203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10209 ac_header_preproc=yes
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10225 ## ---------------------------------------- ##
10226 ## Report this to pgsql-bugs@postgresql.org ##
10227 ## ---------------------------------------- ##
10229 ) | sed "s/^/$as_me: WARNING: /" >&2
10232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 eval "$as_ac_Header=\$ac_header_preproc"
10239 ac_res=`eval echo '${'$as_ac_Header'}'`
10240 { echo "$as_me:$LINENO: result: $ac_res" >&5
10241 echo "${ECHO_T}$ac_res" >&6; }
10244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10245 cat >>confdefs.h <<_ACEOF
10246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10263 if test "$with_zlib" = yes; then
10264 if test "${ac_cv_header_zlib_h+set}" = set; then
10265 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10266 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10267 if test "${ac_cv_header_zlib_h+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10271 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10273 # Is the header compilable?
10274 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10275 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 $ac_includes_default
10285 rm -f conftest.$ac_objext
10286 if { (ac_try="$ac_compile"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_compile") 2>conftest.er1
10294 grep -v '^ *+' conftest.er1 >conftest.err
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && {
10299 test -z "$ac_c_werror_flag" ||
10300 test ! -s conftest.err
10301 } && test -s conftest.$ac_objext; then
10302 ac_header_compiler=yes
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ac_header_compiler=no
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10312 echo "${ECHO_T}$ac_header_compiler" >&6; }
10314 # Is the header present?
10315 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10316 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10325 if { (ac_try="$ac_cpp conftest.$ac_ext"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } >/dev/null && {
10338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10341 ac_header_preproc=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_header_preproc=no
10349 rm -f conftest.err conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10351 echo "${ECHO_T}$ac_header_preproc" >&6; }
10353 # So? What about this header?
10354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10356 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10357 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10359 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10360 ac_header_preproc=yes
10363 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10364 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10366 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10368 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10370 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10372 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10374 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10376 ## ---------------------------------------- ##
10377 ## Report this to pgsql-bugs@postgresql.org ##
10378 ## ---------------------------------------- ##
10380 ) | sed "s/^/$as_me: WARNING: /" >&2
10383 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10384 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10385 if test "${ac_cv_header_zlib_h+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 ac_cv_header_zlib_h=$ac_header_preproc
10390 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10391 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10394 if test $ac_cv_header_zlib_h = yes; then
10397 { { echo "$as_me:$LINENO: error: zlib header not found
10398 If you have zlib already installed, see config.log for details on the
10399 failure. It is possible the compiler isn't looking in the proper directory.
10400 Use --without-zlib to disable zlib support." >&5
10401 echo "$as_me: error: zlib header not found
10402 If you have zlib already installed, see config.log for details on the
10403 failure. It is possible the compiler isn't looking in the proper directory.
10404 Use --without-zlib to disable zlib support." >&2;}
10405 { (exit 1); exit 1; }; }
10411 if test "$with_gssapi" = yes ; then
10413 for ac_header in gssapi/gssapi.h
10415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_res=`eval echo '${'$as_ac_Header'}'`
10423 { echo "$as_me:$LINENO: result: $ac_res" >&5
10424 echo "${ECHO_T}$ac_res" >&6; }
10426 # Is the header compilable?
10427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 #include <$ac_header>
10438 rm -f conftest.$ac_objext
10439 if { (ac_try="$ac_compile"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_compile") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest.$ac_objext; then
10455 ac_header_compiler=yes
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_header_compiler=no
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465 echo "${ECHO_T}$ac_header_compiler" >&6; }
10467 # Is the header present?
10468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10470 cat >conftest.$ac_ext <<_ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <$ac_header>
10478 if { (ac_try="$ac_cpp conftest.$ac_ext"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null && {
10491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10494 ac_header_preproc=yes
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_header_preproc=no
10502 rm -f conftest.err conftest.$ac_ext
10503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10504 echo "${ECHO_T}$ac_header_preproc" >&6; }
10506 # So? What about this header?
10507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10513 ac_header_preproc=yes
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10529 ## ---------------------------------------- ##
10530 ## Report this to pgsql-bugs@postgresql.org ##
10531 ## ---------------------------------------- ##
10533 ) | sed "s/^/$as_me: WARNING: /" >&2
10536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 eval "$as_ac_Header=\$ac_header_preproc"
10543 ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10549 cat >>confdefs.h <<_ACEOF
10550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10555 for ac_header in gssapi.h
10557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 ac_res=`eval echo '${'$as_ac_Header'}'`
10565 { echo "$as_me:$LINENO: result: $ac_res" >&5
10566 echo "${ECHO_T}$ac_res" >&6; }
10568 # Is the header compilable?
10569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 $ac_includes_default
10578 #include <$ac_header>
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_header_compiler=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_compiler=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6; }
10609 # Is the header present?
10610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <$ac_header>
10620 if { (ac_try="$ac_cpp conftest.$ac_ext"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628 grep -v '^ *+' conftest.er1 >conftest.err
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } >/dev/null && {
10633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10636 ac_header_preproc=yes
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ac_header_preproc=no
10644 rm -f conftest.err conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10646 echo "${ECHO_T}$ac_header_preproc" >&6; }
10648 # So? What about this header?
10649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10655 ac_header_preproc=yes
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10671 ## ---------------------------------------- ##
10672 ## Report this to pgsql-bugs@postgresql.org ##
10673 ## ---------------------------------------- ##
10675 ) | sed "s/^/$as_me: WARNING: /" >&2
10678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 eval "$as_ac_Header=\$ac_header_preproc"
10685 ac_res=`eval echo '${'$as_ac_Header'}'`
10686 { echo "$as_me:$LINENO: result: $ac_res" >&5
10687 echo "${ECHO_T}$ac_res" >&6; }
10690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10691 cat >>confdefs.h <<_ACEOF
10692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10697 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10698 { (exit 1); exit 1; }; }
10709 if test "$with_krb5" = yes ; then
10710 if test "${ac_cv_header_krb5_h+set}" = set; then
10711 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10712 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10713 if test "${ac_cv_header_krb5_h+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10717 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10719 # Is the header compilable?
10720 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10721 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10722 cat >conftest.$ac_ext <<_ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 $ac_includes_default
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_compile") 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest.$ac_objext; then
10748 ac_header_compiler=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_header_compiler=no
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758 echo "${ECHO_T}$ac_header_compiler" >&6; }
10760 # Is the header present?
10761 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
10762 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10771 if { (ac_try="$ac_cpp conftest.$ac_ext"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } >/dev/null && {
10784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10787 ac_header_preproc=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_header_preproc=no
10795 rm -f conftest.err conftest.$ac_ext
10796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10797 echo "${ECHO_T}$ac_header_preproc" >&6; }
10799 # So? What about this header?
10800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10803 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10805 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10806 ac_header_preproc=yes
10809 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10810 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10812 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10814 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10816 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10818 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10820 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10822 ## ---------------------------------------- ##
10823 ## Report this to pgsql-bugs@postgresql.org ##
10824 ## ---------------------------------------- ##
10826 ) | sed "s/^/$as_me: WARNING: /" >&2
10829 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10830 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10831 if test "${ac_cv_header_krb5_h+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_cv_header_krb5_h=$ac_header_preproc
10836 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10837 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10840 if test $ac_cv_header_krb5_h = yes; then
10843 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10844 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10845 { (exit 1); exit 1; }; }
10851 if test "$with_openssl" = yes ; then
10852 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10853 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10854 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
10855 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10859 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
10861 # Is the header compilable?
10862 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10863 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 #include <openssl/ssl.h>
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_header_compiler=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_compiler=no
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10900 echo "${ECHO_T}$ac_header_compiler" >&6; }
10902 # Is the header present?
10903 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10904 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <openssl/ssl.h>
10913 if { (ac_try="$ac_cpp conftest.$ac_ext"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10921 grep -v '^ *+' conftest.er1 >conftest.err
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } >/dev/null && {
10926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10927 test ! -s conftest.err
10929 ac_header_preproc=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_header_preproc=no
10937 rm -f conftest.err conftest.$ac_ext
10938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6; }
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10947 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10948 ac_header_preproc=yes
10951 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10952 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10954 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10956 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10958 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10960 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10962 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10964 ## ---------------------------------------- ##
10965 ## Report this to pgsql-bugs@postgresql.org ##
10966 ## ---------------------------------------- ##
10968 ) | sed "s/^/$as_me: WARNING: /" >&2
10971 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10972 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
10973 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10978 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10979 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
10982 if test $ac_cv_header_openssl_ssl_h = yes; then
10985 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10986 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10987 { (exit 1); exit 1; }; }
10991 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10992 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10993 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
10994 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10998 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11000 # Is the header compilable?
11001 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11002 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 #include <openssl/err.h>
11012 rm -f conftest.$ac_objext
11013 if { (ac_try="$ac_compile"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.$ac_objext; then
11029 ac_header_compiler=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_header_compiler=no
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11039 echo "${ECHO_T}$ac_header_compiler" >&6; }
11041 # Is the header present?
11042 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11043 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 #include <openssl/err.h>
11052 if { (ac_try="$ac_cpp conftest.$ac_ext"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } >/dev/null && {
11065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11068 ac_header_preproc=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_header_preproc=no
11076 rm -f conftest.err conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078 echo "${ECHO_T}$ac_header_preproc" >&6; }
11080 # So? What about this header?
11081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11083 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11084 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11086 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11087 ac_header_preproc=yes
11090 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11091 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11093 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11095 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11097 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11099 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11101 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11103 ## ---------------------------------------- ##
11104 ## Report this to pgsql-bugs@postgresql.org ##
11105 ## ---------------------------------------- ##
11107 ) | sed "s/^/$as_me: WARNING: /" >&2
11110 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11111 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11112 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_cv_header_openssl_err_h=$ac_header_preproc
11117 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11118 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11121 if test $ac_cv_header_openssl_err_h = yes; then
11124 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11125 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11126 { (exit 1); exit 1; }; }
11131 for ac_func in ERR_set_mark
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11155 # include <limits.h>
11157 # include <assert.h>
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11179 return $ac_func ();
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (ac_try="$ac_link"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "$as_ac_var=no"
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 if test "$with_pam" = yes ; then
11228 for ac_header in security/pam_appl.h
11230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11241 # Is the header compilable?
11242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 #include <$ac_header>
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && {
11267 test -z "$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11269 } && test -s conftest.$ac_objext; then
11270 ac_header_compiler=yes
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_header_compiler=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11280 echo "${ECHO_T}$ac_header_compiler" >&6; }
11282 # Is the header present?
11283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <$ac_header>
11293 if { (ac_try="$ac_cpp conftest.$ac_ext"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null && {
11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11309 ac_header_preproc=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 echo "${ECHO_T}$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval echo '${'$as_ac_Header'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370 for ac_header in pam/pam_appl.h
11372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11383 # Is the header compilable?
11384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 $ac_includes_default
11393 #include <$ac_header>
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11404 grep -v '^ *+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 ac_header_compiler=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_header_compiler=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 echo "${ECHO_T}$ac_header_compiler" >&6; }
11424 # Is the header present?
11425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <$ac_header>
11435 if { (ac_try="$ac_cpp conftest.$ac_ext"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } >/dev/null && {
11448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11451 ac_header_preproc=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_header_preproc=no
11459 rm -f conftest.err conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461 echo "${ECHO_T}$ac_header_preproc" >&6; }
11463 # So? What about this header?
11464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486 ## ---------------------------------------- ##
11487 ## Report this to pgsql-bugs@postgresql.org ##
11488 ## ---------------------------------------- ##
11490 ) | sed "s/^/$as_me: WARNING: /" >&2
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 eval "$as_ac_Header=\$ac_header_preproc"
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501 { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11511 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11512 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11513 { (exit 1); exit 1; }; }
11524 if test "$with_libxml" = yes ; then
11525 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11526 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11527 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11528 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11532 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11534 # Is the header compilable?
11535 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11536 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11544 #include <libxml/parser.h>
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest.$ac_objext; then
11563 ac_header_compiler=yes
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_header_compiler=no
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11573 echo "${ECHO_T}$ac_header_compiler" >&6; }
11575 # Is the header present?
11576 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11577 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 #include <libxml/parser.h>
11586 if { (ac_try="$ac_cpp conftest.$ac_ext"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } >/dev/null && {
11599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11600 test ! -s conftest.err
11602 ac_header_preproc=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_header_preproc=no
11610 rm -f conftest.err conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11612 echo "${ECHO_T}$ac_header_preproc" >&6; }
11614 # So? What about this header?
11615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11617 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11618 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11620 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11621 ac_header_preproc=yes
11624 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11625 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11627 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11629 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11631 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11633 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11635 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11637 ## ---------------------------------------- ##
11638 ## Report this to pgsql-bugs@postgresql.org ##
11639 ## ---------------------------------------- ##
11641 ) | sed "s/^/$as_me: WARNING: /" >&2
11644 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11645 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11646 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 ac_cv_header_libxml_parser_h=$ac_header_preproc
11651 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11655 if test $ac_cv_header_libxml_parser_h = yes; then
11658 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11659 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11660 { (exit 1); exit 1; }; }
11666 if test "$with_libxslt" = yes ; then
11667 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11668 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11669 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11670 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11676 # Is the header compilable?
11677 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11678 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 #include <libxslt/xslt.h>
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_compile") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest.$ac_objext; then
11705 ac_header_compiler=yes
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_header_compiler=no
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6; }
11717 # Is the header present?
11718 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11719 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <libxslt/xslt.h>
11728 if { (ac_try="$ac_cpp conftest.$ac_ext"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } >/dev/null && {
11741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11744 ac_header_preproc=yes
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_header_preproc=no
11752 rm -f conftest.err conftest.$ac_ext
11753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754 echo "${ECHO_T}$ac_header_preproc" >&6; }
11756 # So? What about this header?
11757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11759 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11760 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11762 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11763 ac_header_preproc=yes
11766 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11767 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11769 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11771 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11773 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11775 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11777 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11779 ## ---------------------------------------- ##
11780 ## Report this to pgsql-bugs@postgresql.org ##
11781 ## ---------------------------------------- ##
11783 ) | sed "s/^/$as_me: WARNING: /" >&2
11786 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11787 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11788 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11793 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11794 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11797 if test $ac_cv_header_libxslt_xslt_h = yes; then
11800 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11801 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11802 { (exit 1); exit 1; }; }
11808 if test "$with_ldap" = yes ; then
11809 if test "$PORTNAME" != "win32"; then
11811 for ac_header in ldap.h
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 ac_res=`eval echo '${'$as_ac_Header'}'`
11821 { echo "$as_me:$LINENO: result: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11824 # Is the header compilable?
11825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 #include <$ac_header>
11836 rm -f conftest.$ac_objext
11837 if { (ac_try="$ac_compile"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_header_compiler=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_compiler=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6; }
11865 # Is the header present?
11866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <$ac_header>
11876 if { (ac_try="$ac_cpp conftest.$ac_ext"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev/null && {
11889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11890 test ! -s conftest.err
11892 ac_header_preproc=yes
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_header_preproc=no
11900 rm -f conftest.err conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11902 echo "${ECHO_T}$ac_header_preproc" >&6; }
11904 # So? What about this header?
11905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11911 ac_header_preproc=yes
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11927 ## ---------------------------------------- ##
11928 ## Report this to pgsql-bugs@postgresql.org ##
11929 ## ---------------------------------------- ##
11931 ) | sed "s/^/$as_me: WARNING: /" >&2
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 eval "$as_ac_Header=\$ac_header_preproc"
11941 ac_res=`eval echo '${'$as_ac_Header'}'`
11942 { echo "$as_me:$LINENO: result: $ac_res" >&5
11943 echo "${ECHO_T}$ac_res" >&6; }
11946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11952 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11953 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11954 { (exit 1); exit 1; }; }
11961 for ac_header in winldap.h
11963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11976 #include <windows.h>
11979 #include <$ac_header>
11981 rm -f conftest.$ac_objext
11982 if { (ac_try="$ac_compile"
11983 case "(($ac_try" in
11984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985 *) ac_try_echo=$ac_try;;
11987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988 (eval "$ac_compile") 2>conftest.er1
11990 grep -v '^ *+' conftest.er1 >conftest.err
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } && {
11995 test -z "$ac_c_werror_flag" ||
11996 test ! -s conftest.err
11997 } && test -s conftest.$ac_objext; then
11998 eval "$as_ac_Header=yes"
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 eval "$as_ac_Header=no"
12006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 ac_res=`eval echo '${'$as_ac_Header'}'`
12009 { echo "$as_me:$LINENO: result: $ac_res" >&5
12010 echo "${ECHO_T}$ac_res" >&6; }
12011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12018 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12019 { (exit 1); exit 1; }; }
12027 if test "$with_bonjour" = yes ; then
12028 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12029 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12030 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12035 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12037 # Is the header compilable?
12038 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12039 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 $ac_includes_default
12047 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12049 rm -f conftest.$ac_objext
12050 if { (ac_try="$ac_compile"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
12066 ac_header_compiler=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_compiler=no
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6; }
12078 # Is the header present?
12079 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12080 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12089 if { (ac_try="$ac_cpp conftest.$ac_ext"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null && {
12102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12105 ac_header_preproc=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_header_preproc=no
12113 rm -f conftest.err conftest.$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12115 echo "${ECHO_T}$ac_header_preproc" >&6; }
12117 # So? What about this header?
12118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12121 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12123 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12124 ac_header_preproc=yes
12127 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12128 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12130 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12132 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12134 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12136 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12138 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12140 ## ---------------------------------------- ##
12141 ## Report this to pgsql-bugs@postgresql.org ##
12142 ## ---------------------------------------- ##
12144 ) | sed "s/^/$as_me: WARNING: /" >&2
12147 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12148 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12149 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12154 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12158 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12161 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12162 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12163 { (exit 1); exit 1; }; }
12169 # for contrib/uuid-ossp
12170 if test "$with_ossp_uuid" = yes ; then
12172 for ac_header in ossp/uuid.h
12174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 ac_res=`eval echo '${'$as_ac_Header'}'`
12182 { echo "$as_me:$LINENO: result: $ac_res" >&5
12183 echo "${ECHO_T}$ac_res" >&6; }
12185 # Is the header compilable?
12186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 $ac_includes_default
12195 #include <$ac_header>
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_compile") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest.$ac_objext; then
12214 ac_header_compiler=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_header_compiler=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6; }
12226 # Is the header present?
12227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <$ac_header>
12237 if { (ac_try="$ac_cpp conftest.$ac_ext"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null && {
12250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12253 ac_header_preproc=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_header_preproc=no
12261 rm -f conftest.err conftest.$ac_ext
12262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12263 echo "${ECHO_T}$ac_header_preproc" >&6; }
12265 # So? What about this header?
12266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12272 ac_header_preproc=yes
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12288 ## ---------------------------------------- ##
12289 ## Report this to pgsql-bugs@postgresql.org ##
12290 ## ---------------------------------------- ##
12292 ) | sed "s/^/$as_me: WARNING: /" >&2
12295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 eval "$as_ac_Header=\$ac_header_preproc"
12302 ac_res=`eval echo '${'$as_ac_Header'}'`
12303 { echo "$as_me:$LINENO: result: $ac_res" >&5
12304 echo "${ECHO_T}$ac_res" >&6; }
12307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12308 cat >>confdefs.h <<_ACEOF
12309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315 for ac_header in uuid.h
12317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 ac_res=`eval echo '${'$as_ac_Header'}'`
12325 { echo "$as_me:$LINENO: result: $ac_res" >&5
12326 echo "${ECHO_T}$ac_res" >&6; }
12328 # Is the header compilable?
12329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 #include <$ac_header>
12340 rm -f conftest.$ac_objext
12341 if { (ac_try="$ac_compile"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_compile") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest.$ac_objext; then
12357 ac_header_compiler=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_header_compiler=no
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367 echo "${ECHO_T}$ac_header_compiler" >&6; }
12369 # Is the header present?
12370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 #include <$ac_header>
12380 if { (ac_try="$ac_cpp conftest.$ac_ext"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } >/dev/null && {
12393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12394 test ! -s conftest.err
12396 ac_header_preproc=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_header_preproc=no
12404 rm -f conftest.err conftest.$ac_ext
12405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12406 echo "${ECHO_T}$ac_header_preproc" >&6; }
12408 # So? What about this header?
12409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12415 ac_header_preproc=yes
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12431 ## ---------------------------------------- ##
12432 ## Report this to pgsql-bugs@postgresql.org ##
12433 ## ---------------------------------------- ##
12435 ) | sed "s/^/$as_me: WARNING: /" >&2
12438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 eval "$as_ac_Header=\$ac_header_preproc"
12445 ac_res=`eval echo '${'$as_ac_Header'}'`
12446 { echo "$as_me:$LINENO: result: $ac_res" >&5
12447 echo "${ECHO_T}$ac_res" >&6; }
12450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12451 cat >>confdefs.h <<_ACEOF
12452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12456 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12457 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12458 { (exit 1); exit 1; }; }
12471 ## Types, structures, compiler characteristics
12474 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12475 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12476 if test "${ac_cv_c_bigendian+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 # See if sys/param.h defines the BYTE_ORDER macro.
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 #include <sys/types.h>
12487 #include <sys/param.h>
12492 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12493 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12494 bogus endian macros
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 # It does; now see whether it defined to BIG_ENDIAN or not.
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <sys/types.h>
12526 #include <sys/param.h>
12531 #if BYTE_ORDER != BIG_ENDIAN
12539 rm -f conftest.$ac_objext
12540 if { (ac_try="$ac_compile"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_compile") 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && {
12553 test -z "$ac_c_werror_flag" ||
12554 test ! -s conftest.err
12555 } && test -s conftest.$ac_objext; then
12556 ac_cv_c_bigendian=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_cv_c_bigendian=no
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 # It does not; compile a test program.
12570 if test "$cross_compiling" = yes; then
12571 # try to guess the endianness by grepping values into an object file
12572 ac_cv_c_bigendian=unknown
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12580 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12581 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12582 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12583 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12584 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12588 _ascii (); _ebcdic ();
12593 rm -f conftest.$ac_objext
12594 if { (ac_try="$ac_compile"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_compile") 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } && {
12607 test -z "$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12609 } && test -s conftest.$ac_objext; then
12610 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12611 ac_cv_c_bigendian=yes
12613 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12614 if test "$ac_cv_c_bigendian" = unknown; then
12615 ac_cv_c_bigendian=no
12617 # finding both strings is unlikely to happen, but who knows?
12618 ac_cv_c_bigendian=unknown
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 cat >conftest.$ac_ext <<_ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12641 /* Are we little or big endian? From Harbison&Steele. */
12645 char c[sizeof (long int)];
12648 return u.c[sizeof (long int) - 1] == 1;
12654 rm -f conftest$ac_exeext
12655 if { (ac_try="$ac_link"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_link") 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12665 { (case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_try") 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 ac_cv_c_bigendian=no
12676 echo "$as_me: program exited with status $ac_status" >&5
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ( exit $ac_status )
12681 ac_cv_c_bigendian=yes
12683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12692 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12693 case $ac_cv_c_bigendian in
12696 cat >>confdefs.h <<\_ACEOF
12697 #define WORDS_BIGENDIAN 1
12703 { { echo "$as_me:$LINENO: error: unknown endianness
12704 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12705 echo "$as_me: error: unknown endianness
12706 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12707 { (exit 1); exit 1; }; } ;;
12710 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12711 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12712 if test "${ac_cv_c_const+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12725 /* FIXME: Include the comments suggested by Paul. */
12726 #ifndef __cplusplus
12727 /* Ultrix mips cc rejects this. */
12728 typedef int charset[2];
12730 /* SunOS 4.1.1 cc rejects this. */
12731 char const *const *pcpcc;
12733 /* NEC SVR4.0.2 mips cc rejects this. */
12734 struct point {int x, y;};
12735 static struct point const zero = {0,0};
12736 /* AIX XL C 1.02.0.0 rejects this.
12737 It does not let you subtract one const X* pointer from another in
12738 an arm of an if-expression whose if-part is not a constant
12740 const char *g = "string";
12741 pcpcc = &g + (g ? g-g : 0);
12742 /* HPUX 7.0 cc rejects these. */
12744 ppc = (char**) pcpcc;
12745 pcpcc = (char const *const *) ppc;
12746 { /* SCO 3.2v4 cc rejects this. */
12748 char const *s = 0 ? (char *) 0 : (char const *) 0;
12753 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12754 int x[] = {25, 17};
12755 const int *foo = &x[0];
12758 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12759 typedef const int *iptr;
12763 { /* AIX XL C 1.02.0.0 rejects this saying
12764 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12765 struct s { int j; const int *ap[3]; };
12766 struct s *b; b->j = 5;
12768 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12769 const int foo = 10;
12770 if (!foo) return 0;
12772 return !cs[0] && !zero.x;
12779 rm -f conftest.$ac_objext
12780 if { (ac_try="$ac_compile"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_compile") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && {
12793 test -z "$ac_c_werror_flag" ||
12794 test ! -s conftest.err
12795 } && test -s conftest.$ac_objext; then
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12807 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12808 if test $ac_cv_c_const = no; then
12810 cat >>confdefs.h <<\_ACEOF
12816 { echo "$as_me:$LINENO: checking for inline" >&5
12817 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12818 if test "${ac_cv_c_inline+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 for ac_kw in inline __inline__ __inline; do
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 #ifndef __cplusplus
12831 static $ac_kw foo_t static_foo () {return 0; }
12832 $ac_kw foo_t foo () {return 0; }
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_compile") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && {
12850 test -z "$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 } && test -s conftest.$ac_objext; then
12853 ac_cv_c_inline=$ac_kw
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 test "$ac_cv_c_inline" != no && break
12866 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12867 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12870 case $ac_cv_c_inline in
12873 case $ac_cv_c_inline in
12875 *) ac_val=$ac_cv_c_inline;;
12877 cat >>confdefs.h <<_ACEOF
12878 #ifndef __cplusplus
12879 #define inline $ac_val
12885 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12886 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
12887 if test "${ac_cv_c_stringize+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12898 char *s = x(teststring);
12900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12901 $EGREP "#teststring" >/dev/null 2>&1; then
12902 ac_cv_c_stringize=no
12904 ac_cv_c_stringize=yes
12909 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12910 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
12911 if test $ac_cv_c_stringize = yes; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_STRINGIZE 1
12919 { echo "$as_me:$LINENO: checking for signed types" >&5
12920 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
12921 if test "${pgac_cv_c_signed+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 cat >conftest.$ac_ext <<_ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12934 signed char c; signed short s; signed int i;
12939 rm -f conftest.$ac_objext
12940 if { (ac_try="$ac_compile"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_compile") 2>conftest.er1
12948 grep -v '^ *+' conftest.er1 >conftest.err
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && {
12953 test -z "$ac_c_werror_flag" ||
12954 test ! -s conftest.err
12955 } && test -s conftest.$ac_objext; then
12956 pgac_cv_c_signed=yes
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 pgac_cv_c_signed=no
12964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
12967 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
12968 if test x"$pgac_cv_c_signed" = xno ; then
12970 cat >>confdefs.h <<\_ACEOF
12975 { echo "$as_me:$LINENO: checking for working volatile" >&5
12976 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12977 if test "${ac_cv_c_volatile+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 cat >conftest.$ac_ext <<_ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12992 int * volatile y = (int *) 0;
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.$ac_objext; then
13015 ac_cv_c_volatile=yes
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ac_cv_c_volatile=no
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13026 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13027 if test $ac_cv_c_volatile = no; then
13029 cat >>confdefs.h <<\_ACEOF
13035 { echo "$as_me:$LINENO: checking for __func__" >&5
13036 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13037 if test "${pgac_cv_funcname_func_support+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13050 printf("%s\n", __func__);
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compile") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && {
13069 test -z "$ac_c_werror_flag" ||
13070 test ! -s conftest.err
13071 } && test -s conftest.$ac_objext; then
13072 pgac_cv_funcname_func_support=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 pgac_cv_funcname_func_support=no
13080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13083 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13084 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_FUNCNAME__FUNC 1
13091 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13092 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13093 if test "${pgac_cv_funcname_function_support+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13106 printf("%s\n", __FUNCTION__);
13111 rm -f conftest.$ac_objext
13112 if { (ac_try="$ac_compile"
13113 case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_compile") 2>conftest.er1
13120 grep -v '^ *+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && {
13125 test -z "$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13127 } && test -s conftest.$ac_objext; then
13128 pgac_cv_funcname_function_support=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 pgac_cv_funcname_function_support=no
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13139 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13140 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13142 cat >>confdefs.h <<\_ACEOF
13143 #define HAVE_FUNCNAME__FUNCTION 1
13148 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13149 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13150 if test "${ac_cv_struct_tm+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <sys/types.h>
13166 int *p = &tm.tm_sec;
13172 rm -f conftest.$ac_objext
13173 if { (ac_try="$ac_compile"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_compile") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest.$ac_objext; then
13189 ac_cv_struct_tm=time.h
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_cv_struct_tm=sys/time.h
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13200 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13201 if test $ac_cv_struct_tm = sys/time.h; then
13203 cat >>confdefs.h <<\_ACEOF
13204 #define TM_IN_SYS_TIME 1
13209 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13210 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13211 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <sys/types.h>
13221 #include <$ac_cv_struct_tm>
13227 static struct tm ac_aggr;
13228 if (ac_aggr.tm_zone)
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_cv_member_struct_tm_tm_zone=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <sys/types.h>
13263 #include <$ac_cv_struct_tm>
13269 static struct tm ac_aggr;
13270 if (sizeof ac_aggr.tm_zone)
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_compile") 2>conftest.er1
13285 grep -v '^ *+' conftest.er1 >conftest.err
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } && {
13290 test -z "$ac_c_werror_flag" ||
13291 test ! -s conftest.err
13292 } && test -s conftest.$ac_objext; then
13293 ac_cv_member_struct_tm_tm_zone=yes
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_cv_member_struct_tm_tm_zone=no
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13307 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13308 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13310 cat >>confdefs.h <<_ACEOF
13311 #define HAVE_STRUCT_TM_TM_ZONE 1
13317 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_TM_ZONE 1
13324 { echo "$as_me:$LINENO: checking for tzname" >&5
13325 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13326 if test "${ac_cv_var_tzname+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 cat >conftest.$ac_ext <<_ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13336 #ifndef tzname /* For SGI. */
13337 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (ac_try="$ac_link"
13350 case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_link") 2>conftest.er1
13357 grep -v '^ *+' conftest.er1 >conftest.err
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && {
13362 test -z "$ac_c_werror_flag" ||
13363 test ! -s conftest.err
13364 } && test -s conftest$ac_exeext &&
13365 $as_test_x conftest$ac_exeext; then
13366 ac_cv_var_tzname=yes
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371 ac_cv_var_tzname=no
13374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13375 conftest$ac_exeext conftest.$ac_ext
13377 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13378 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13379 if test $ac_cv_var_tzname = yes; then
13381 cat >>confdefs.h <<\_ACEOF
13382 #define HAVE_TZNAME 1
13387 { echo "$as_me:$LINENO: checking for union semun" >&5
13388 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13389 if test "${ac_cv_type_union_semun+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 #include <sys/types.h>
13399 #include <sys/ipc.h>
13400 #include <sys/sem.h>
13402 typedef union semun ac__type_new_;
13406 if ((ac__type_new_ *) 0)
13408 if (sizeof (ac__type_new_))
13414 rm -f conftest.$ac_objext
13415 if { (ac_try="$ac_compile"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_compile") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest.$ac_objext; then
13431 ac_cv_type_union_semun=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_type_union_semun=no
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13442 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13443 if test $ac_cv_type_union_semun = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_UNION_SEMUN 1
13452 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13453 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13454 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <sys/types.h>
13464 #ifdef HAVE_SYS_UN_H
13465 #include <sys/un.h>
13469 typedef struct sockaddr_un ac__type_new_;
13473 if ((ac__type_new_ *) 0)
13475 if (sizeof (ac__type_new_))
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_cv_type_struct_sockaddr_un=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_cv_type_struct_sockaddr_un=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13509 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13510 if test $ac_cv_type_struct_sockaddr_un = yes; then
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_STRUCT_SOCKADDR_UN 1
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_UNIX_SOCKETS 1
13523 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13524 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13525 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 #include <sys/types.h>
13535 #ifdef HAVE_SYS_SOCKET_H
13536 #include <sys/socket.h>
13540 typedef struct sockaddr_storage ac__type_new_;
13544 if ((ac__type_new_ *) 0)
13546 if (sizeof (ac__type_new_))
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
13569 ac_cv_type_struct_sockaddr_storage=yes
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_cv_type_struct_sockaddr_storage=no
13577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13580 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13581 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13583 cat >>confdefs.h <<_ACEOF
13584 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13590 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13591 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13592 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <sys/types.h>
13602 #ifdef HAVE_SYS_SOCKET_H
13603 #include <sys/socket.h>
13610 static struct sockaddr_storage ac_aggr;
13611 if (ac_aggr.ss_family)
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compile") 2>conftest.er1
13626 grep -v '^ *+' conftest.er1 >conftest.err
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } && {
13631 test -z "$ac_c_werror_flag" ||
13632 test ! -s conftest.err
13633 } && test -s conftest.$ac_objext; then
13634 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 #include <sys/types.h>
13646 #ifdef HAVE_SYS_SOCKET_H
13647 #include <sys/socket.h>
13654 static struct sockaddr_storage ac_aggr;
13655 if (sizeof ac_aggr.ss_family)
13661 rm -f conftest.$ac_objext
13662 if { (ac_try="$ac_compile"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_compile") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest.$ac_objext; then
13678 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_cv_member_struct_sockaddr_storage_ss_family=no
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13692 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13693 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13701 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13702 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13703 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <sys/types.h>
13713 #ifdef HAVE_SYS_SOCKET_H
13714 #include <sys/socket.h>
13721 static struct sockaddr_storage ac_aggr;
13722 if (ac_aggr.__ss_family)
13728 rm -f conftest.$ac_objext
13729 if { (ac_try="$ac_compile"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_compile") 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } && {
13742 test -z "$ac_c_werror_flag" ||
13743 test ! -s conftest.err
13744 } && test -s conftest.$ac_objext; then
13745 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 cat >conftest.$ac_ext <<_ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <sys/types.h>
13757 #ifdef HAVE_SYS_SOCKET_H
13758 #include <sys/socket.h>
13765 static struct sockaddr_storage ac_aggr;
13766 if (sizeof ac_aggr.__ss_family)
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_compile") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } && {
13786 test -z "$ac_c_werror_flag" ||
13787 test ! -s conftest.err
13788 } && test -s conftest.$ac_objext; then
13789 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_cv_member_struct_sockaddr_storage___ss_family=no
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13803 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
13804 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13812 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13813 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
13814 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <sys/types.h>
13824 #ifdef HAVE_SYS_SOCKET_H
13825 #include <sys/socket.h>
13832 static struct sockaddr_storage ac_aggr;
13833 if (ac_aggr.ss_len)
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <sys/types.h>
13868 #ifdef HAVE_SYS_SOCKET_H
13869 #include <sys/socket.h>
13876 static struct sockaddr_storage ac_aggr;
13877 if (sizeof ac_aggr.ss_len)
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_compile") 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } && {
13897 test -z "$ac_c_werror_flag" ||
13898 test ! -s conftest.err
13899 } && test -s conftest.$ac_objext; then
13900 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_cv_member_struct_sockaddr_storage_ss_len=no
13908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13914 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
13915 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13923 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
13924 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
13925 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 #include <sys/types.h>
13935 #ifdef HAVE_SYS_SOCKET_H
13936 #include <sys/socket.h>
13943 static struct sockaddr_storage ac_aggr;
13944 if (ac_aggr.__ss_len)
13950 rm -f conftest.$ac_objext
13951 if { (ac_try="$ac_compile"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 ac_cv_member_struct_sockaddr_storage___ss_len=yes
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 #include <sys/types.h>
13979 #ifdef HAVE_SYS_SOCKET_H
13980 #include <sys/socket.h>
13987 static struct sockaddr_storage ac_aggr;
13988 if (sizeof ac_aggr.__ss_len)
13994 rm -f conftest.$ac_objext
13995 if { (ac_try="$ac_compile"
13996 case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_compile") 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest.$ac_objext; then
14011 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14016 ac_cv_member_struct_sockaddr_storage___ss_len=no
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14025 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14026 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14034 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14035 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14036 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <sys/types.h>
14046 #ifdef HAVE_SYS_SOCKET_H
14047 #include <sys/socket.h>
14054 static struct sockaddr ac_aggr;
14055 if (ac_aggr.sa_len)
14061 rm -f conftest.$ac_objext
14062 if { (ac_try="$ac_compile"
14063 case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_compile") 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest.$ac_objext; then
14078 ac_cv_member_struct_sockaddr_sa_len=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <sys/types.h>
14090 #ifdef HAVE_SYS_SOCKET_H
14091 #include <sys/socket.h>
14098 static struct sockaddr ac_aggr;
14099 if (sizeof ac_aggr.sa_len)
14105 rm -f conftest.$ac_objext
14106 if { (ac_try="$ac_compile"
14107 case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_compile") 2>conftest.er1
14114 grep -v '^ *+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest.$ac_objext; then
14122 ac_cv_member_struct_sockaddr_sa_len=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_cv_member_struct_sockaddr_sa_len=no
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14136 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14137 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14146 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14147 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14148 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <sys/types.h>
14158 #include <sys/socket.h>
14162 typedef struct addrinfo ac__type_new_;
14166 if ((ac__type_new_ *) 0)
14168 if (sizeof (ac__type_new_))
14174 rm -f conftest.$ac_objext
14175 if { (ac_try="$ac_compile"
14176 case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_compile") 2>conftest.er1
14183 grep -v '^ *+' conftest.er1 >conftest.err
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } && {
14188 test -z "$ac_c_werror_flag" ||
14189 test ! -s conftest.err
14190 } && test -s conftest.$ac_objext; then
14191 ac_cv_type_struct_addrinfo=yes
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 ac_cv_type_struct_addrinfo=no
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14202 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14203 if test $ac_cv_type_struct_addrinfo = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define HAVE_STRUCT_ADDRINFO 1
14213 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14214 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14215 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 #include <sys/param.h>
14225 #include <sys/types.h>
14226 #include <sys/socket.h>
14227 #include <sys/ucred.h>
14229 typedef struct cmsgcred ac__type_new_;
14233 if ((ac__type_new_ *) 0)
14235 if (sizeof (ac__type_new_))
14241 rm -f conftest.$ac_objext
14242 if { (ac_try="$ac_compile"
14243 case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_compile") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
14258 ac_cv_type_struct_cmsgcred=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_type_struct_cmsgcred=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14269 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14270 if test $ac_cv_type_struct_cmsgcred = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_STRUCT_CMSGCRED 1
14278 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14279 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14280 if test "${ac_cv_type_struct_fcred+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <sys/param.h>
14290 #include <sys/types.h>
14291 #include <sys/socket.h>
14292 #include <sys/ucred.h>
14294 typedef struct fcred ac__type_new_;
14298 if ((ac__type_new_ *) 0)
14300 if (sizeof (ac__type_new_))
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest.$ac_objext; then
14323 ac_cv_type_struct_fcred=yes
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_cv_type_struct_fcred=no
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14334 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14335 if test $ac_cv_type_struct_fcred = yes; then
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_STRUCT_FCRED 1
14343 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14344 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14345 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <sys/param.h>
14355 #include <sys/types.h>
14356 #include <sys/socket.h>
14357 #include <sys/ucred.h>
14359 typedef struct sockcred ac__type_new_;
14363 if ((ac__type_new_ *) 0)
14365 if (sizeof (ac__type_new_))
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 ac_cv_type_struct_sockcred=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_cv_type_struct_sockcred=no
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14399 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14400 if test $ac_cv_type_struct_sockcred = yes; then
14402 cat >>confdefs.h <<_ACEOF
14403 #define HAVE_STRUCT_SOCKCRED 1
14410 { echo "$as_me:$LINENO: checking for struct option" >&5
14411 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14412 if test "${ac_cv_type_struct_option+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #ifdef HAVE_GETOPT_H
14422 #include <getopt.h>
14425 typedef struct option ac__type_new_;
14429 if ((ac__type_new_ *) 0)
14431 if (sizeof (ac__type_new_))
14437 rm -f conftest.$ac_objext
14438 if { (ac_try="$ac_compile"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_compile") 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } && {
14451 test -z "$ac_c_werror_flag" ||
14452 test ! -s conftest.err
14453 } && test -s conftest.$ac_objext; then
14454 ac_cv_type_struct_option=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_type_struct_option=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14465 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14466 if test $ac_cv_type_struct_option = yes; then
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_STRUCT_OPTION 1
14476 if test "$with_zlib" = yes; then
14477 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14478 # did not). While we could work around the lack of z_streamp, it
14479 # seems unwise to encourage people to use such old zlib versions...
14480 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14481 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14482 if test "${ac_cv_type_z_streamp+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14493 typedef z_streamp ac__type_new_;
14497 if ((ac__type_new_ *) 0)
14499 if (sizeof (ac__type_new_))
14505 rm -f conftest.$ac_objext
14506 if { (ac_try="$ac_compile"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_compile") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest.$ac_objext; then
14522 ac_cv_type_z_streamp=yes
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_cv_type_z_streamp=no
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14533 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14534 if test $ac_cv_type_z_streamp = yes; then
14537 { { echo "$as_me:$LINENO: error: zlib version is too old
14538 Use --without-zlib to disable zlib support." >&5
14539 echo "$as_me: error: zlib version is too old
14540 Use --without-zlib to disable zlib support." >&2;}
14541 { (exit 1); exit 1; }; }
14546 if test "$with_krb5" = yes; then
14547 # Check for differences between MIT and Heimdal (KTH) releases
14548 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14549 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14550 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14564 static krb5_ticket ac_aggr;
14565 if (ac_aggr.enc_part2)
14571 rm -f conftest.$ac_objext
14572 if { (ac_try="$ac_compile"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_compile") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest.$ac_objext; then
14588 ac_cv_member_krb5_ticket_enc_part2=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14604 static krb5_ticket ac_aggr;
14605 if (sizeof ac_aggr.enc_part2)
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 ac_cv_member_krb5_ticket_enc_part2=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_member_krb5_ticket_enc_part2=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14642 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14643 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14645 cat >>confdefs.h <<_ACEOF
14646 #define HAVE_KRB5_TICKET_ENC_PART2 1
14651 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14652 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14653 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 cat >conftest.$ac_ext <<_ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14667 static krb5_ticket ac_aggr;
14668 if (ac_aggr.client)
14674 rm -f conftest.$ac_objext
14675 if { (ac_try="$ac_compile"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_compile") 2>conftest.er1
14683 grep -v '^ *+' conftest.er1 >conftest.err
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && {
14688 test -z "$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14690 } && test -s conftest.$ac_objext; then
14691 ac_cv_member_krb5_ticket_client=yes
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14707 static krb5_ticket ac_aggr;
14708 if (sizeof ac_aggr.client)
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_compile") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } && {
14728 test -z "$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14730 } && test -s conftest.$ac_objext; then
14731 ac_cv_member_krb5_ticket_client=yes
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_member_krb5_ticket_client=no
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14745 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
14746 if test $ac_cv_member_krb5_ticket_client = yes; then
14748 cat >>confdefs.h <<_ACEOF
14749 #define HAVE_KRB5_TICKET_CLIENT 1
14754 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14755 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14756 { (exit 1); exit 1; }; }
14761 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14762 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
14763 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14777 static krb5_error ac_aggr;
14778 if (ac_aggr.text.data)
14784 rm -f conftest.$ac_objext
14785 if { (ac_try="$ac_compile"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_compile") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest.$ac_objext; then
14801 ac_cv_member_krb5_error_text_data=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14817 static krb5_error ac_aggr;
14818 if (sizeof ac_aggr.text.data)
14824 rm -f conftest.$ac_objext
14825 if { (ac_try="$ac_compile"
14826 case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_compile") 2>conftest.er1
14833 grep -v '^ *+' conftest.er1 >conftest.err
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } && {
14838 test -z "$ac_c_werror_flag" ||
14839 test ! -s conftest.err
14840 } && test -s conftest.$ac_objext; then
14841 ac_cv_member_krb5_error_text_data=yes
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_member_krb5_error_text_data=no
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14855 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
14856 if test $ac_cv_member_krb5_error_text_data = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14864 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14865 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
14866 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14880 static krb5_error ac_aggr;
14881 if (ac_aggr.e_data)
14887 rm -f conftest.$ac_objext
14888 if { (ac_try="$ac_compile"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_compile") 2>conftest.er1
14896 grep -v '^ *+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest.$ac_objext; then
14904 ac_cv_member_krb5_error_e_data=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14920 static krb5_error ac_aggr;
14921 if (sizeof ac_aggr.e_data)
14927 rm -f conftest.$ac_objext
14928 if { (ac_try="$ac_compile"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_compile") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1 >conftest.err
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest.$ac_objext; then
14944 ac_cv_member_krb5_error_e_data=yes
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_cv_member_krb5_error_e_data=no
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14958 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
14959 if test $ac_cv_member_krb5_error_e_data = yes; then
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_KRB5_ERROR_E_DATA 1
14967 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14968 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14969 { (exit 1); exit 1; }; }
14975 # Win32 requires headers to be loaded for __stdcall, so can't use
14976 # AC_CHECK_FUNCS here.
14977 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
14978 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14989 krb5_free_unparsed_name(NULL,NULL);
14994 rm -f conftest.$ac_objext conftest$ac_exeext
14995 if { (ac_try="$ac_link"
14996 case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_link") 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } && {
15008 test -z "$ac_c_werror_flag" ||
15009 test ! -s conftest.err
15010 } && test -s conftest$ac_exeext &&
15011 $as_test_x conftest$ac_exeext; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15017 { echo "$as_me:$LINENO: result: yes" >&5
15018 echo "${ECHO_T}yes" >&6; }
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 { echo "$as_me:$LINENO: result: no" >&5
15024 echo "${ECHO_T}no" >&6; }
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028 conftest$ac_exeext conftest.$ac_ext
15033 ## Functions, global variables
15036 { echo "$as_me:$LINENO: checking for int timezone" >&5
15037 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15038 if test "${pgac_cv_var_int_timezone+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15053 res = timezone / 60;
15055 res = _timezone / 60;
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 pgac_cv_var_int_timezone=yes
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 pgac_cv_var_int_timezone=no
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15090 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15091 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15092 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_INT_TIMEZONE
15099 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15100 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15101 if test "${ac_cv_func_accept_return+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 if test "${ac_cv_func_accept_arg1+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 if test "${ac_cv_func_accept_arg2+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 if test "${ac_cv_func_accept_arg3+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15114 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15115 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15116 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #ifdef HAVE_SYS_TYPES_H
15124 #include <sys/types.h>
15126 #ifdef HAVE_SYS_SOCKET_H
15127 #include <sys/socket.h>
15129 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_compile") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest.$ac_objext; then
15155 ac_not_found=no; break 4
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 if test "$ac_not_found" = yes; then
15169 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15170 echo "$as_me: error: could not determine argument types" >&2;}
15171 { (exit 1); exit 1; }; }
15173 if test "$ac_cv_func_accept_arg3" = "void"; then
15174 ac_cv_func_accept_arg3=int
15184 { 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
15185 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15187 cat >>confdefs.h <<_ACEOF
15188 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15192 cat >>confdefs.h <<_ACEOF
15193 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15197 cat >>confdefs.h <<_ACEOF
15198 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15202 cat >>confdefs.h <<_ACEOF
15203 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15207 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15208 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15209 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <sys/time.h>
15222 struct timeval *tp;
15223 struct timezone *tzp;
15224 gettimeofday(tp,tzp);
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest.$ac_objext; then
15246 pgac_cv_func_gettimeofday_1arg=no
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 pgac_cv_func_gettimeofday_1arg=yes
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15257 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15258 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define GETTIMEOFDAY_1ARG
15288 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15304 #define $ac_func innocuous_$ac_func
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char $ac_func (); below.
15308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309 <limits.h> exists even on freestanding compilers. */
15312 # include <limits.h>
15314 # include <assert.h>
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined __stub_$ac_func || defined __stub___$ac_func
15336 return $ac_func ();
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 eval "$as_ac_var=yes"
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 eval "$as_ac_var=no"
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15370 ac_res=`eval echo '${'$as_ac_var'}'`
15371 { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15373 if test `eval echo '${'$as_ac_var'}'` = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15382 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15383 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15384 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <unistd.h>
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest.$ac_objext; then
15423 ac_cv_have_decl_fdatasync=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_cv_have_decl_fdatasync=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15434 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15435 if test $ac_cv_have_decl_fdatasync = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define HAVE_DECL_FDATASYNC 1
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_DECL_FDATASYNC 0
15451 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15452 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15453 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15467 #ifndef posix_fadvise
15468 (void) posix_fadvise;
15475 rm -f conftest.$ac_objext
15476 if { (ac_try="$ac_compile"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_compile") 2>conftest.er1
15484 grep -v '^ *+' conftest.er1 >conftest.err
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } && {
15489 test -z "$ac_c_werror_flag" ||
15490 test ! -s conftest.err
15491 } && test -s conftest.$ac_objext; then
15492 ac_cv_have_decl_posix_fadvise=yes
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15497 ac_cv_have_decl_posix_fadvise=no
15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15503 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15504 if test $ac_cv_have_decl_posix_fadvise = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_DECL_POSIX_FADVISE 1
15512 cat >>confdefs.h <<_ACEOF
15513 #define HAVE_DECL_POSIX_FADVISE 0
15520 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15521 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15522 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest.$ac_objext; then
15560 ac_cv_have_decl_strlcat=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_cv_have_decl_strlcat=no
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15571 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15572 if test $ac_cv_have_decl_strlcat = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define HAVE_DECL_STRLCAT 1
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_DECL_STRLCAT 0
15586 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15587 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15588 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 $ac_includes_default
15609 rm -f conftest.$ac_objext
15610 if { (ac_try="$ac_compile"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_compile") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest.$ac_objext; then
15626 ac_cv_have_decl_strlcpy=yes
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_cv_have_decl_strlcpy=no
15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15637 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15638 if test $ac_cv_have_decl_strlcpy = yes; then
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_DECL_STRLCPY 1
15646 cat >>confdefs.h <<_ACEOF
15647 #define HAVE_DECL_STRLCPY 0
15654 # This is probably only present on Darwin, but may as well check always
15655 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15656 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15657 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15671 #ifndef F_FULLFSYNC
15672 (void) F_FULLFSYNC;
15679 rm -f conftest.$ac_objext
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } && {
15693 test -z "$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15695 } && test -s conftest.$ac_objext; then
15696 ac_cv_have_decl_F_FULLFSYNC=yes
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_cv_have_decl_F_FULLFSYNC=no
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15707 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15708 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define HAVE_DECL_F_FULLFSYNC 1
15716 cat >>confdefs.h <<_ACEOF
15717 #define HAVE_DECL_F_FULLFSYNC 0
15726 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15727 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15728 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 $ac_includes_default
15738 #include <netinet/in.h>
15740 typedef struct sockaddr_in6 ac__type_new_;
15744 if ((ac__type_new_ *) 0)
15746 if (sizeof (ac__type_new_))
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_cv_type_struct_sockaddr_in6=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_type_struct_sockaddr_in6=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15780 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
15781 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_IPV6 1
15792 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15793 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
15794 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 cat >conftest.$ac_ext <<_ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h. */
15803 #include <machine/vmparam.h>
15804 #include <sys/exec.h>
15809 PS_STRINGS->ps_nargvstr = 1;
15810 PS_STRINGS->ps_argvstr = "foo";
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_link") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 } && test -s conftest$ac_exeext &&
15832 $as_test_x conftest$ac_exeext; then
15833 pgac_cv_var_PS_STRINGS=yes
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 pgac_cv_var_PS_STRINGS=no
15841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15842 conftest$ac_exeext conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15845 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
15846 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15848 cat >>confdefs.h <<\_ACEOF
15849 #define HAVE_PS_STRINGS
15855 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15856 # is missing. Yes, there are machines that have only one. We may
15857 # also decide to use snprintf.c if snprintf() is present but does not
15858 # have all the features we need --- see below.
15860 if test "$PORTNAME" = "win32"; then
15861 # Win32 gets snprintf.c built unconditionally.
15863 # To properly translate all NLS languages strings, we must support the
15864 # *printf() %$ format, which allows *printf() arguments to be selected
15865 # by position in the translated string.
15867 # libintl versions < 0.13 use the native *printf() functions, and Win32
15868 # *printf() doesn't understand %$, so we must use our /port versions,
15869 # which do understand %$. libintl versions >= 0.13 include their own
15870 # *printf versions on Win32. The libintl 0.13 release note text is:
15872 # C format strings with positions, as they arise when a translator
15873 # needs to reorder a sentence, are now supported on all platforms.
15874 # On those few platforms (NetBSD and Woe32) for which the native
15875 # printf()/fprintf()/... functions don't support such format
15876 # strings, replacements are provided through <libintl.h>.
15878 # We could use libintl >= 0.13's *printf() if we were sure that we had
15879 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15880 # to guarantee that, it is best to just use our own, so we are sure to
15881 # get %$ support. In include/port.h we disable the *printf() macros
15882 # that might have been defined by libintl.
15884 # We do this unconditionally whether NLS is used or not so we are sure
15885 # that all Win32 libraries and binaries behave the same.
15886 pgac_need_repl_snprintf=yes
15888 pgac_need_repl_snprintf=no
15890 for ac_func in snprintf
15892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15906 #define $ac_func innocuous_$ac_func
15908 /* System header to define __stub macros and hopefully few prototypes,
15909 which can conflict with char $ac_func (); below.
15910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15911 <limits.h> exists even on freestanding compilers. */
15914 # include <limits.h>
15916 # include <assert.h>
15921 /* Override any GCC internal prototype to avoid an error.
15922 Use char because int might match the return type of a GCC
15923 builtin and then its argument prototype would still apply. */
15928 /* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931 #if defined __stub_$ac_func || defined __stub___$ac_func
15938 return $ac_func ();
15943 rm -f conftest.$ac_objext conftest$ac_exeext
15944 if { (ac_try="$ac_link"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_link") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest$ac_exeext &&
15960 $as_test_x conftest$ac_exeext; then
15961 eval "$as_ac_var=yes"
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 eval "$as_ac_var=no"
15969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15970 conftest$ac_exeext conftest.$ac_ext
15972 ac_res=`eval echo '${'$as_ac_var'}'`
15973 { echo "$as_me:$LINENO: result: $ac_res" >&5
15974 echo "${ECHO_T}$ac_res" >&6; }
15975 if test `eval echo '${'$as_ac_var'}'` = yes; then
15976 cat >>confdefs.h <<_ACEOF
15977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15981 pgac_need_repl_snprintf=yes
15986 for ac_func in vsnprintf
15988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 cat >conftest.$ac_ext <<_ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16002 #define $ac_func innocuous_$ac_func
16004 /* System header to define __stub macros and hopefully few prototypes,
16005 which can conflict with char $ac_func (); below.
16006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16007 <limits.h> exists even on freestanding compilers. */
16010 # include <limits.h>
16012 # include <assert.h>
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16024 /* The GNU C library defines this for functions which it implements
16025 to always fail with ENOSYS. Some functions are actually named
16026 something starting with __ and the normal name is an alias. */
16027 #if defined __stub_$ac_func || defined __stub___$ac_func
16034 return $ac_func ();
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (ac_try="$ac_link"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_link") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest$ac_exeext &&
16056 $as_test_x conftest$ac_exeext; then
16057 eval "$as_ac_var=yes"
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 eval "$as_ac_var=no"
16065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16066 conftest$ac_exeext conftest.$ac_ext
16068 ac_res=`eval echo '${'$as_ac_var'}'`
16069 { echo "$as_me:$LINENO: result: $ac_res" >&5
16070 echo "${ECHO_T}$ac_res" >&6; }
16071 if test `eval echo '${'$as_ac_var'}'` = yes; then
16072 cat >>confdefs.h <<_ACEOF
16073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16077 pgac_need_repl_snprintf=yes
16084 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16085 # include/c.h will provide declarations. Note this is a separate test
16086 # from whether the functions exist in the C library --- there are
16087 # systems that have the functions but don't bother to declare them :-(
16089 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16090 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16091 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16129 ac_cv_have_decl_snprintf=yes
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_cv_have_decl_snprintf=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16140 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16141 if test $ac_cv_have_decl_snprintf = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_DECL_SNPRINTF 1
16149 cat >>confdefs.h <<_ACEOF
16150 #define HAVE_DECL_SNPRINTF 0
16155 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16156 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16157 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16178 rm -f conftest.$ac_objext
16179 if { (ac_try="$ac_compile"
16180 case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_compile") 2>conftest.er1
16187 grep -v '^ *+' conftest.er1 >conftest.err
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } && {
16192 test -z "$ac_c_werror_flag" ||
16193 test ! -s conftest.err
16194 } && test -s conftest.$ac_objext; then
16195 ac_cv_have_decl_vsnprintf=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_cv_have_decl_vsnprintf=no
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16206 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16207 if test $ac_cv_have_decl_vsnprintf = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define HAVE_DECL_VSNPRINTF 1
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_DECL_VSNPRINTF 0
16225 { echo "$as_me:$LINENO: checking for isinf" >&5
16226 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16227 if test "${ac_cv_func_isinf+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16238 double glob_double;
16243 return isinf(glob_double) ? 0 : 1;
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (ac_try="$ac_link"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16266 ac_cv_func_isinf=yes
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_cv_func_isinf=no
16274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16275 conftest$ac_exeext conftest.$ac_ext
16277 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16278 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16280 if test $ac_cv_func_isinf = yes ; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_ISINF 1
16287 case " $LIBOBJS " in
16288 *" isinf.$ac_objext "* ) ;;
16289 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16293 # Look for a way to implement a substitute for isinf()
16298 for ac_func in fpclass fp_class fp_class_d class
16300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 cat >conftest.$ac_ext <<_ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16314 #define $ac_func innocuous_$ac_func
16316 /* System header to define __stub macros and hopefully few prototypes,
16317 which can conflict with char $ac_func (); below.
16318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16319 <limits.h> exists even on freestanding compilers. */
16322 # include <limits.h>
16324 # include <assert.h>
16329 /* Override any GCC internal prototype to avoid an error.
16330 Use char because int might match the return type of a GCC
16331 builtin and then its argument prototype would still apply. */
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined __stub_$ac_func || defined __stub___$ac_func
16346 return $ac_func ();
16351 rm -f conftest.$ac_objext conftest$ac_exeext
16352 if { (ac_try="$ac_link"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_link") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest$ac_exeext &&
16368 $as_test_x conftest$ac_exeext; then
16369 eval "$as_ac_var=yes"
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 eval "$as_ac_var=no"
16377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16378 conftest$ac_exeext conftest.$ac_ext
16380 ac_res=`eval echo '${'$as_ac_var'}'`
16381 { echo "$as_me:$LINENO: result: $ac_res" >&5
16382 echo "${ECHO_T}$ac_res" >&6; }
16383 if test `eval echo '${'$as_ac_var'}'` = yes; then
16384 cat >>confdefs.h <<_ACEOF
16385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16393 # Some versions of libedit contain strlcpy(); so disregard that library while
16394 # checking for these standard libc functions.
16395 pgac_save_LIBS="$LIBS"
16396 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16413 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16429 #define $ac_func innocuous_$ac_func
16431 /* System header to define __stub macros and hopefully few prototypes,
16432 which can conflict with char $ac_func (); below.
16433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16434 <limits.h> exists even on freestanding compilers. */
16437 # include <limits.h>
16439 # include <assert.h>
16444 /* Override any GCC internal prototype to avoid an error.
16445 Use char because int might match the return type of a GCC
16446 builtin and then its argument prototype would still apply. */
16451 /* The GNU C library defines this for functions which it implements
16452 to always fail with ENOSYS. Some functions are actually named
16453 something starting with __ and the normal name is an alias. */
16454 #if defined __stub_$ac_func || defined __stub___$ac_func
16461 return $ac_func ();
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (ac_try="$ac_link"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_link") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest$ac_exeext &&
16483 $as_test_x conftest$ac_exeext; then
16484 eval "$as_ac_var=yes"
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 eval "$as_ac_var=no"
16492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16493 conftest$ac_exeext conftest.$ac_ext
16495 ac_res=`eval echo '${'$as_ac_var'}'`
16496 { echo "$as_me:$LINENO: result: $ac_res" >&5
16497 echo "${ECHO_T}$ac_res" >&6; }
16498 if test `eval echo '${'$as_ac_var'}'` = yes; then
16499 cat >>confdefs.h <<_ACEOF
16500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 case " $LIBOBJS " in
16505 *" $ac_func.$ac_objext "* ) ;;
16506 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16515 LIBS="$pgac_save_LIBS"
16517 # System's version of getaddrinfo(), if any, may be used only if we found
16518 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16519 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16520 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16521 # because we want to use our own getaddrinfo.c on Windows anyway.)
16522 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16524 for ac_func in getaddrinfo
16526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16540 #define $ac_func innocuous_$ac_func
16542 /* System header to define __stub macros and hopefully few prototypes,
16543 which can conflict with char $ac_func (); below.
16544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16545 <limits.h> exists even on freestanding compilers. */
16548 # include <limits.h>
16550 # include <assert.h>
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16562 /* The GNU C library defines this for functions which it implements
16563 to always fail with ENOSYS. Some functions are actually named
16564 something starting with __ and the normal name is an alias. */
16565 #if defined __stub_$ac_func || defined __stub___$ac_func
16572 return $ac_func ();
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } && {
16591 test -z "$ac_c_werror_flag" ||
16592 test ! -s conftest.err
16593 } && test -s conftest$ac_exeext &&
16594 $as_test_x conftest$ac_exeext; then
16595 eval "$as_ac_var=yes"
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 eval "$as_ac_var=no"
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16606 ac_res=`eval echo '${'$as_ac_var'}'`
16607 { echo "$as_me:$LINENO: result: $ac_res" >&5
16608 echo "${ECHO_T}$ac_res" >&6; }
16609 if test `eval echo '${'$as_ac_var'}'` = yes; then
16610 cat >>confdefs.h <<_ACEOF
16611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615 case " $LIBOBJS " in
16616 *" $ac_func.$ac_objext "* ) ;;
16617 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16626 case " $LIBOBJS " in
16627 *" getaddrinfo.$ac_objext "* ) ;;
16628 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16634 # similarly, use system's getopt_long() only if system provides struct option.
16635 if test x"$ac_cv_type_struct_option" = xyes ; then
16637 for ac_func in getopt_long
16639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16653 #define $ac_func innocuous_$ac_func
16655 /* System header to define __stub macros and hopefully few prototypes,
16656 which can conflict with char $ac_func (); below.
16657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16658 <limits.h> exists even on freestanding compilers. */
16661 # include <limits.h>
16663 # include <assert.h>
16668 /* Override any GCC internal prototype to avoid an error.
16669 Use char because int might match the return type of a GCC
16670 builtin and then its argument prototype would still apply. */
16675 /* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678 #if defined __stub_$ac_func || defined __stub___$ac_func
16685 return $ac_func ();
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (ac_try="$ac_link"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_link") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest$ac_exeext &&
16707 $as_test_x conftest$ac_exeext; then
16708 eval "$as_ac_var=yes"
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 eval "$as_ac_var=no"
16716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16717 conftest$ac_exeext conftest.$ac_ext
16719 ac_res=`eval echo '${'$as_ac_var'}'`
16720 { echo "$as_me:$LINENO: result: $ac_res" >&5
16721 echo "${ECHO_T}$ac_res" >&6; }
16722 if test `eval echo '${'$as_ac_var'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16728 case " $LIBOBJS " in
16729 *" $ac_func.$ac_objext "* ) ;;
16730 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16739 case " $LIBOBJS " in
16740 *" getopt_long.$ac_objext "* ) ;;
16741 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16748 if test "$PORTNAME" = "win32"; then
16750 for ac_func in gettimeofday
16752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766 #define $ac_func innocuous_$ac_func
16768 /* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char $ac_func (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16774 # include <limits.h>
16776 # include <assert.h>
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined __stub_$ac_func || defined __stub___$ac_func
16798 return $ac_func ();
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext &&
16820 $as_test_x conftest$ac_exeext; then
16821 eval "$as_ac_var=yes"
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 eval "$as_ac_var=no"
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16832 ac_res=`eval echo '${'$as_ac_var'}'`
16833 { echo "$as_me:$LINENO: result: $ac_res" >&5
16834 echo "${ECHO_T}$ac_res" >&6; }
16835 if test `eval echo '${'$as_ac_var'}'` = yes; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16841 case " $LIBOBJS " in
16842 *" $ac_func.$ac_objext "* ) ;;
16843 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16851 case " $LIBOBJS " in
16852 *" kill.$ac_objext "* ) ;;
16853 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
16857 case " $LIBOBJS " in
16858 *" open.$ac_objext "* ) ;;
16859 *) LIBOBJS="$LIBOBJS open.$ac_objext"
16863 case " $LIBOBJS " in
16864 *" rand.$ac_objext "* ) ;;
16865 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
16869 case " $LIBOBJS " in
16870 *" win32error.$ac_objext "* ) ;;
16871 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
16876 cat >>confdefs.h <<\_ACEOF
16877 #define HAVE_SYMLINK 1
16882 if test "$with_readline" = yes; then
16883 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16884 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16892 #ifdef HAVE_READLINE_READLINE_H
16893 # include <readline/readline.h>
16894 #elif defined(HAVE_READLINE_H)
16895 # include <readline.h>
16901 rl_completion_append_character = 'x';
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (ac_try="$ac_link"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_link") 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && {
16920 test -z "$ac_c_werror_flag" ||
16921 test ! -s conftest.err
16922 } && test -s conftest$ac_exeext &&
16923 $as_test_x conftest$ac_exeext; then
16924 { echo "$as_me:$LINENO: result: yes" >&5
16925 echo "${ECHO_T}yes" >&6; }
16927 cat >>confdefs.h <<\_ACEOF
16928 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 { echo "$as_me:$LINENO: result: no" >&5
16936 echo "${ECHO_T}no" >&6; }
16939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16940 conftest$ac_exeext conftest.$ac_ext
16943 for ac_func in rl_completion_matches rl_filename_completion_function
16945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 cat >conftest.$ac_ext <<_ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16959 #define $ac_func innocuous_$ac_func
16961 /* System header to define __stub macros and hopefully few prototypes,
16962 which can conflict with char $ac_func (); below.
16963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16964 <limits.h> exists even on freestanding compilers. */
16967 # include <limits.h>
16969 # include <assert.h>
16974 /* Override any GCC internal prototype to avoid an error.
16975 Use char because int might match the return type of a GCC
16976 builtin and then its argument prototype would still apply. */
16981 /* The GNU C library defines this for functions which it implements
16982 to always fail with ENOSYS. Some functions are actually named
16983 something starting with __ and the normal name is an alias. */
16984 #if defined __stub_$ac_func || defined __stub___$ac_func
16991 return $ac_func ();
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (ac_try="$ac_link"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_link") 2>conftest.er1
17005 grep -v '^ *+' conftest.er1 >conftest.err
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest$ac_exeext &&
17013 $as_test_x conftest$ac_exeext; then
17014 eval "$as_ac_var=yes"
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 eval "$as_ac_var=no"
17022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17023 conftest$ac_exeext conftest.$ac_ext
17025 ac_res=`eval echo '${'$as_ac_var'}'`
17026 { echo "$as_me:$LINENO: result: $ac_res" >&5
17027 echo "${ECHO_T}$ac_res" >&6; }
17028 if test `eval echo '${'$as_ac_var'}'` = yes; then
17029 cat >>confdefs.h <<_ACEOF
17030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17037 for ac_func in replace_history_entry
17039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 cat >conftest.$ac_ext <<_ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17053 #define $ac_func innocuous_$ac_func
17055 /* System header to define __stub macros and hopefully few prototypes,
17056 which can conflict with char $ac_func (); below.
17057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058 <limits.h> exists even on freestanding compilers. */
17061 # include <limits.h>
17063 # include <assert.h>
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17075 /* The GNU C library defines this for functions which it implements
17076 to always fail with ENOSYS. Some functions are actually named
17077 something starting with __ and the normal name is an alias. */
17078 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 return $ac_func ();
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext &&
17107 $as_test_x conftest$ac_exeext; then
17108 eval "$as_ac_var=yes"
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 eval "$as_ac_var=no"
17116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17117 conftest$ac_exeext conftest.$ac_ext
17119 ac_res=`eval echo '${'$as_ac_var'}'`
17120 { echo "$as_me:$LINENO: result: $ac_res" >&5
17121 echo "${ECHO_T}$ac_res" >&6; }
17122 if test `eval echo '${'$as_ac_var'}'` = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17134 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <setjmp.h>
17145 sigjmp_buf x; sigsetjmp(x, 1);
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest$ac_exeext &&
17167 $as_test_x conftest$ac_exeext; then
17169 cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_SIGSETJMP 1
17173 { echo "$as_me:$LINENO: result: yes" >&5
17174 echo "${ECHO_T}yes" >&6; }
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 { echo "$as_me:$LINENO: result: no" >&5
17180 echo "${ECHO_T}no" >&6; }
17183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17184 conftest$ac_exeext conftest.$ac_ext
17186 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17187 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17188 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <signal.h>
17198 /* NetBSD declares sys_siglist in unistd.h. */
17199 #ifdef HAVE_UNISTD_H
17200 # include <unistd.h>
17207 #ifndef sys_siglist
17208 (void) sys_siglist;
17215 rm -f conftest.$ac_objext
17216 if { (ac_try="$ac_compile"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_compile") 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } && {
17229 test -z "$ac_c_werror_flag" ||
17230 test ! -s conftest.err
17231 } && test -s conftest.$ac_objext; then
17232 ac_cv_have_decl_sys_siglist=yes
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ac_cv_have_decl_sys_siglist=no
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17242 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17243 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17244 if test $ac_cv_have_decl_sys_siglist = yes; then
17246 cat >>confdefs.h <<_ACEOF
17247 #define HAVE_DECL_SYS_SIGLIST 1
17252 cat >>confdefs.h <<_ACEOF
17253 #define HAVE_DECL_SYS_SIGLIST 0
17262 { echo "$as_me:$LINENO: checking for syslog" >&5
17263 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17264 if test "${ac_cv_func_syslog+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 cat >conftest.$ac_ext <<_ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17275 #define syslog innocuous_syslog
17277 /* System header to define __stub macros and hopefully few prototypes,
17278 which can conflict with char syslog (); below.
17279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17280 <limits.h> exists even on freestanding compilers. */
17283 # include <limits.h>
17285 # include <assert.h>
17290 /* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17297 /* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300 #if defined __stub_syslog || defined __stub___syslog
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17321 grep -v '^ *+' conftest.er1 >conftest.err
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330 ac_cv_func_syslog=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_func_syslog=no
17338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339 conftest$ac_exeext conftest.$ac_ext
17341 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17342 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17343 if test $ac_cv_func_syslog = yes; then
17344 if test "${ac_cv_header_syslog_h+set}" = set; then
17345 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17346 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17347 if test "${ac_cv_header_syslog_h+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17351 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17353 # Is the header compilable?
17354 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17355 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 $ac_includes_default
17363 #include <syslog.h>
17365 rm -f conftest.$ac_objext
17366 if { (ac_try="$ac_compile"
17367 case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_compile") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1 >conftest.err
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } && {
17379 test -z "$ac_c_werror_flag" ||
17380 test ! -s conftest.err
17381 } && test -s conftest.$ac_objext; then
17382 ac_header_compiler=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_header_compiler=no
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17392 echo "${ECHO_T}$ac_header_compiler" >&6; }
17394 # Is the header present?
17395 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17396 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 #include <syslog.h>
17405 if { (ac_try="$ac_cpp conftest.$ac_ext"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } >/dev/null && {
17418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17421 ac_header_preproc=yes
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_header_preproc=no
17429 rm -f conftest.err conftest.$ac_ext
17430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17431 echo "${ECHO_T}$ac_header_preproc" >&6; }
17433 # So? What about this header?
17434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17436 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17437 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17439 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17440 ac_header_preproc=yes
17443 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17444 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17446 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17448 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17450 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17452 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17454 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17456 ## ---------------------------------------- ##
17457 ## Report this to pgsql-bugs@postgresql.org ##
17458 ## ---------------------------------------- ##
17460 ) | sed "s/^/$as_me: WARNING: /" >&2
17463 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17464 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17465 if test "${ac_cv_header_syslog_h+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 ac_cv_header_syslog_h=$ac_header_preproc
17470 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17471 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17474 if test $ac_cv_header_syslog_h = yes; then
17476 cat >>confdefs.h <<\_ACEOF
17477 #define HAVE_SYSLOG 1
17486 { echo "$as_me:$LINENO: checking for optreset" >&5
17487 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17488 if test "${pgac_cv_var_int_optreset+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <unistd.h>
17501 extern int optreset; optreset = 1;
17506 rm -f conftest.$ac_objext conftest$ac_exeext
17507 if { (ac_try="$ac_link"
17508 case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_link") 2>conftest.er1
17515 grep -v '^ *+' conftest.er1 >conftest.err
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest$ac_exeext &&
17523 $as_test_x conftest$ac_exeext; then
17524 pgac_cv_var_int_optreset=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 pgac_cv_var_int_optreset=no
17532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 conftest$ac_exeext conftest.$ac_ext
17535 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17536 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17537 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_INT_OPTRESET 1
17547 for ac_func in strtoll strtoq
17549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17563 #define $ac_func innocuous_$ac_func
17565 /* System header to define __stub macros and hopefully few prototypes,
17566 which can conflict with char $ac_func (); below.
17567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17568 <limits.h> exists even on freestanding compilers. */
17571 # include <limits.h>
17573 # include <assert.h>
17578 /* Override any GCC internal prototype to avoid an error.
17579 Use char because int might match the return type of a GCC
17580 builtin and then its argument prototype would still apply. */
17585 /* The GNU C library defines this for functions which it implements
17586 to always fail with ENOSYS. Some functions are actually named
17587 something starting with __ and the normal name is an alias. */
17588 #if defined __stub_$ac_func || defined __stub___$ac_func
17595 return $ac_func ();
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } && {
17614 test -z "$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17616 } && test -s conftest$ac_exeext &&
17617 $as_test_x conftest$ac_exeext; then
17618 eval "$as_ac_var=yes"
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 eval "$as_ac_var=no"
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627 conftest$ac_exeext conftest.$ac_ext
17629 ac_res=`eval echo '${'$as_ac_var'}'`
17630 { echo "$as_me:$LINENO: result: $ac_res" >&5
17631 echo "${ECHO_T}$ac_res" >&6; }
17632 if test `eval echo '${'$as_ac_var'}'` = yes; then
17633 cat >>confdefs.h <<_ACEOF
17634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17642 for ac_func in strtoull strtouq
17644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17658 #define $ac_func innocuous_$ac_func
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char $ac_func (); below.
17662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17663 <limits.h> exists even on freestanding compilers. */
17666 # include <limits.h>
17668 # include <assert.h>
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17680 /* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683 #if defined __stub_$ac_func || defined __stub___$ac_func
17690 return $ac_func ();
17695 rm -f conftest.$ac_objext conftest$ac_exeext
17696 if { (ac_try="$ac_link"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_link") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest$ac_exeext &&
17712 $as_test_x conftest$ac_exeext; then
17713 eval "$as_ac_var=yes"
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17718 eval "$as_ac_var=no"
17721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17722 conftest$ac_exeext conftest.$ac_ext
17724 ac_res=`eval echo '${'$as_ac_var'}'`
17725 { echo "$as_me:$LINENO: result: $ac_res" >&5
17726 echo "${ECHO_T}$ac_res" >&6; }
17727 if test `eval echo '${'$as_ac_var'}'` = yes; then
17728 cat >>confdefs.h <<_ACEOF
17729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17736 # Check for one of atexit() or on_exit()
17738 for ac_func in atexit
17740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17754 #define $ac_func innocuous_$ac_func
17756 /* System header to define __stub macros and hopefully few prototypes,
17757 which can conflict with char $ac_func (); below.
17758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17759 <limits.h> exists even on freestanding compilers. */
17762 # include <limits.h>
17764 # include <assert.h>
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17776 /* The GNU C library defines this for functions which it implements
17777 to always fail with ENOSYS. Some functions are actually named
17778 something starting with __ and the normal name is an alias. */
17779 #if defined __stub_$ac_func || defined __stub___$ac_func
17786 return $ac_func ();
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_link") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest$ac_exeext &&
17808 $as_test_x conftest$ac_exeext; then
17809 eval "$as_ac_var=yes"
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 eval "$as_ac_var=no"
17817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17818 conftest$ac_exeext conftest.$ac_ext
17820 ac_res=`eval echo '${'$as_ac_var'}'`
17821 { echo "$as_me:$LINENO: result: $ac_res" >&5
17822 echo "${ECHO_T}$ac_res" >&6; }
17823 if test `eval echo '${'$as_ac_var'}'` = yes; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830 for ac_func in on_exit
17832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17846 #define $ac_func innocuous_$ac_func
17848 /* System header to define __stub macros and hopefully few prototypes,
17849 which can conflict with char $ac_func (); below.
17850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17851 <limits.h> exists even on freestanding compilers. */
17854 # include <limits.h>
17856 # include <assert.h>
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17868 /* The GNU C library defines this for functions which it implements
17869 to always fail with ENOSYS. Some functions are actually named
17870 something starting with __ and the normal name is an alias. */
17871 #if defined __stub_$ac_func || defined __stub___$ac_func
17878 return $ac_func ();
17883 rm -f conftest.$ac_objext conftest$ac_exeext
17884 if { (ac_try="$ac_link"
17885 case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_link") 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } && {
17897 test -z "$ac_c_werror_flag" ||
17898 test ! -s conftest.err
17899 } && test -s conftest$ac_exeext &&
17900 $as_test_x conftest$ac_exeext; then
17901 eval "$as_ac_var=yes"
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 eval "$as_ac_var=no"
17909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17910 conftest$ac_exeext conftest.$ac_ext
17912 ac_res=`eval echo '${'$as_ac_var'}'`
17913 { echo "$as_me:$LINENO: result: $ac_res" >&5
17914 echo "${ECHO_T}$ac_res" >&6; }
17915 if test `eval echo '${'$as_ac_var'}'` = yes; then
17916 cat >>confdefs.h <<_ACEOF
17917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17921 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17922 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17923 { (exit 1); exit 1; }; }
17932 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_FSEEKO 1
17939 ac_cv_func_fseeko=yes;;
17941 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17942 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17943 if test "${ac_cv_sys_largefile_source+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17957 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (ac_try="$ac_link"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_link") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest$ac_exeext &&
17979 $as_test_x conftest$ac_exeext; then
17980 ac_cv_sys_largefile_source=no; break
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17989 conftest$ac_exeext conftest.$ac_ext
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #define _LARGEFILE_SOURCE 1
18001 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && {
18020 test -z "$ac_c_werror_flag" ||
18021 test ! -s conftest.err
18022 } && test -s conftest$ac_exeext &&
18023 $as_test_x conftest$ac_exeext; then
18024 ac_cv_sys_largefile_source=1; break
18026 echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.$ac_ext >&5
18032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18033 conftest$ac_exeext conftest.$ac_ext
18034 ac_cv_sys_largefile_source=unknown
18038 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18039 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18040 case $ac_cv_sys_largefile_source in #(
18043 cat >>confdefs.h <<_ACEOF
18044 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18050 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18051 # in glibc 2.1.3, but that breaks too many other things.
18052 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18053 if test $ac_cv_sys_largefile_source != unknown; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_FSEEKO 1
18067 # For each platform, we need to know about any special compile and link
18068 # libraries, and whether the normal C function names are thread-safe.
18069 # See the comment at the top of src/port/thread.c for more information.
18070 # WIN32 doesn't need the pthread tests; it always uses threads
18071 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18076 ac_cpp='$CPP $CPPFLAGS'
18077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083 # We used to check for pthread.h first, but this fails if pthread.h
18084 # requires special compiler flags (e.g. on True64 or Sequent).
18085 # It gets checked for in the link test anyway.
18087 # First of all, check if the user has set any of the PTHREAD_LIBS,
18088 # etcetera environment variables, and if threads linking works using
18090 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18091 save_CFLAGS="$CFLAGS"
18092 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18094 LIBS="$PTHREAD_LIBS $LIBS"
18095 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18096 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18097 cat >conftest.$ac_ext <<_ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18104 /* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18110 char pthread_join ();
18114 return pthread_join ();
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (ac_try="$ac_link"
18121 case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_link") 2>conftest.er1
18128 grep -v '^ *+' conftest.er1 >conftest.err
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } && {
18133 test -z "$ac_c_werror_flag" ||
18134 test ! -s conftest.err
18135 } && test -s conftest$ac_exeext &&
18136 $as_test_x conftest$ac_exeext; then
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18146 conftest$ac_exeext conftest.$ac_ext
18147 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18148 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18149 if test x"$acx_pthread_ok" = xno; then
18154 CFLAGS="$save_CFLAGS"
18157 # We must check for the threads library under a number of different
18158 # names; the ordering is very important because some systems
18159 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18160 # libraries is broken (non-POSIX).
18162 # Create a list of thread flags to try. Items starting with a "-" are
18163 # C compiler flags, and other items are library names, except for "none"
18164 # which indicates that we try without any flags at all, and "pthread-config"
18165 # which is a program returning the flags for the Pth emulation library.
18167 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18169 # The ordering *is* (sometimes) important. Some notes on the
18170 # individual items follow:
18172 # pthreads: AIX (must check this before -lpthread)
18173 # none: in case threads are in libc; should be tried before -Kthread and
18174 # other compiler flags to prevent continual compiler warnings
18175 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18176 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18177 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18178 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18179 # -pthreads: Solaris/gcc
18180 # -mthreads: Mingw32/gcc, Lynx/gcc
18181 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18182 # doesn't hurt to check since this sometimes defines pthreads too;
18183 # also defines -D_REENTRANT)
18184 # pthread: Linux, etcetera
18185 # --thread-safe: KAI C++
18186 # pthread-config: use pthread-config program (for GNU Pth library)
18188 case "${host_cpu}-${host_os}" in
18191 # On Solaris (at least, for some versions), libc contains stubbed
18192 # (non-functional) versions of the pthreads routines, so link-based
18193 # tests will erroneously succeed. (We need to link with -pthread or
18194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18195 # a function called by this macro, so we could check for that, but
18196 # who knows whether they'll stub that too in a future libc.) So,
18197 # we'll just look for -pthreads and -lpthread first:
18199 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18203 if test x"$acx_pthread_ok" = xno; then
18204 for flag in $acx_pthread_flags; do
18206 tryPTHREAD_CFLAGS=""
18210 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18211 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18215 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18216 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18217 tryPTHREAD_CFLAGS="$flag"
18221 # skip this if we already have flags defined, for PostgreSQL
18222 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18223 # Extract the first word of "pthread-config", so it can be a program name with args.
18224 set dummy pthread-config; ac_word=$2
18225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18227 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 if test -n "$acx_pthread_config"; then
18231 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18234 for as_dir in $PATH
18237 test -z "$as_dir" && as_dir=.
18238 for ac_exec_ext in '' $ac_executable_extensions; do
18239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18240 ac_cv_prog_acx_pthread_config="yes"
18241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18248 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18251 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18252 if test -n "$acx_pthread_config"; then
18253 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18254 echo "${ECHO_T}$acx_pthread_config" >&6; }
18256 { echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6; }
18261 if test x"$acx_pthread_config" = xno; then continue; fi
18262 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18263 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18267 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18268 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18269 tryPTHREAD_LIBS="-l$flag"
18274 save_CFLAGS="$CFLAGS"
18275 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18278 # Check for various functions. We must include pthread.h,
18279 # since some functions may be macros. (On the Sequent, we
18280 # need a special flag -Kthread to make this header compile.)
18281 # We check for pthread_join because it is in -lpthread on IRIX
18282 # while pthread_create is in libc. We check for pthread_attr_init
18283 # due to DEC craziness with -lpthreads. We check for
18284 # pthread_cleanup_push because it is one of the few pthread
18285 # functions on Solaris that doesn't have a non-functional libc stub.
18286 # We try pthread_create on general principles.
18287 cat >conftest.$ac_ext <<_ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 #include <pthread.h>
18297 pthread_t th; pthread_join(th, 0);
18298 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18299 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (ac_try="$ac_link"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_link") 2>conftest.er1
18313 grep -v '^ *+' conftest.er1 >conftest.err
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } && {
18318 test -z "$ac_c_werror_flag" ||
18319 test ! -s conftest.err
18320 } && test -s conftest$ac_exeext &&
18321 $as_test_x conftest$ac_exeext; then
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18331 conftest$ac_exeext conftest.$ac_ext
18333 if test "x$acx_pthread_ok" = xyes; then
18334 # Don't use options that are ignored by the compiler.
18335 # We find them by checking stderror.
18336 cat >conftest.$ac_ext <<_ACEOF
18338 main (int argc, char **argv)
18345 rm -f conftest.$ac_objext conftest$ac_exeext
18346 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18347 # we continue with more flags because Linux needs -lpthread
18348 # for libpq builds on PostgreSQL. The test above only
18349 # tests for building binaries, not shared libraries.
18350 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18351 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18352 else acx_pthread_ok=no
18357 CFLAGS="$save_CFLAGS"
18359 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18360 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18364 # Various other checks:
18365 if test "x$acx_pthread_ok" = xyes; then
18367 LIBS="$PTHREAD_LIBS $LIBS"
18368 save_CFLAGS="$CFLAGS"
18369 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18371 # Detect AIX lossage: threads are created detached by default
18372 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18373 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18374 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include <pthread.h>
18385 int attr=PTHREAD_CREATE_JOINABLE;
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_link") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest$ac_exeext &&
18407 $as_test_x conftest$ac_exeext; then
18408 ok=PTHREAD_CREATE_JOINABLE
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18417 conftest$ac_exeext conftest.$ac_ext
18418 if test x"$ok" = xunknown; then
18419 cat >conftest.$ac_ext <<_ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 #include <pthread.h>
18429 int attr=PTHREAD_CREATE_UNDETACHED;
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext &&
18451 $as_test_x conftest$ac_exeext; then
18452 ok=PTHREAD_CREATE_UNDETACHED
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461 conftest$ac_exeext conftest.$ac_ext
18463 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define PTHREAD_CREATE_JOINABLE $ok
18470 { echo "$as_me:$LINENO: result: ${ok}" >&5
18471 echo "${ECHO_T}${ok}" >&6; }
18472 if test x"$ok" = xunknown; then
18473 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18474 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18477 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18478 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18480 # We always add these in PostgreSQL
18481 # case "${host_cpu}-${host_os}" in
18482 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18483 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18485 { echo "$as_me:$LINENO: result: ${flag}" >&5
18486 echo "${ECHO_T}${flag}" >&6; }
18487 if test "x$flag" != xno; then
18488 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18492 CFLAGS="$save_CFLAGS"
18494 # Supporting cc_r would require a special CC in all places that
18495 # use libpq, and that is ugly, so we don't do it. Users can still
18496 # define their compiler as cc_r to do thread builds of everything.
18497 # More AIX lossage: must compile with cc_r
18498 # Extract the first word of "cc_r", so it can be a program name with args.
18499 set dummy cc_r; ac_word=$2
18500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18502 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 if test -n "$PTHREAD_CC"; then
18506 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509 for as_dir in $PATH
18512 test -z "$as_dir" && as_dir=.
18513 for ac_exec_ext in '' $ac_executable_extensions; do
18514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18515 ac_cv_prog_PTHREAD_CC="cc_r"
18516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18523 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18526 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18527 if test -n "$PTHREAD_CC"; then
18528 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18529 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18531 { echo "$as_me:$LINENO: result: no" >&5
18532 echo "${ECHO_T}no" >&6; }
18544 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18545 if test x"$acx_pthread_ok" = xyes; then
18547 cat >>confdefs.h <<\_ACEOF
18548 #define HAVE_PTHREAD 1
18557 ac_cpp='$CPP $CPPFLAGS'
18558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18564 # Some platforms use these, so just defineed them. They can't hurt if they
18565 # are not supported.
18566 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18569 # At this point, we don't want to muck with the compiler name for threading.
18570 # Let's see who fails, perhaps AIX. 2004-04-23
18571 if test "$PTHREAD_CC" != "$CC"; then
18572 { { echo "$as_me:$LINENO: error:
18573 PostgreSQL does not support platforms that require a special compiler
18574 for thread safety." >&5
18575 echo "$as_me: error:
18576 PostgreSQL does not support platforms that require a special compiler
18577 for thread safety." >&2;}
18578 { (exit 1); exit 1; }; }
18581 if test "$THREAD_SUPPORT" = no; then
18582 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18583 This platform is known to not support thread-safe programs. For details,
18584 compile and run src/bin/pg_thread_test." >&5
18585 echo "$as_me: error: cannot enable threads on this platform
18586 This platform is known to not support thread-safe programs. For details,
18587 compile and run src/bin/pg_thread_test." >&2;}
18588 { (exit 1); exit 1; }; }
18591 # Check for *_r functions
18594 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18595 LIBS="$LIBS $PTHREAD_LIBS"
18597 if test "$PORTNAME" != "win32"; then
18598 if test "${ac_cv_header_pthread_h+set}" = set; then
18599 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18600 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18601 if test "${ac_cv_header_pthread_h+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18605 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18607 # Is the header compilable?
18608 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18609 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 $ac_includes_default
18617 #include <pthread.h>
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_compile") 2>conftest.er1
18628 grep -v '^ *+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest.$ac_objext; then
18636 ac_header_compiler=yes
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_header_compiler=no
18644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18646 echo "${ECHO_T}$ac_header_compiler" >&6; }
18648 # Is the header present?
18649 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
18650 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <pthread.h>
18659 if { (ac_try="$ac_cpp conftest.$ac_ext"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } >/dev/null && {
18672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18675 ac_header_preproc=yes
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_header_preproc=no
18683 rm -f conftest.err conftest.$ac_ext
18684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18685 echo "${ECHO_T}$ac_header_preproc" >&6; }
18687 # So? What about this header?
18688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18690 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18691 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18693 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18694 ac_header_preproc=yes
18697 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18698 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18699 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18700 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18701 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18702 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18704 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18705 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18706 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18707 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18708 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18710 ## ---------------------------------------- ##
18711 ## Report this to pgsql-bugs@postgresql.org ##
18712 ## ---------------------------------------- ##
18714 ) | sed "s/^/$as_me: WARNING: /" >&2
18717 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18718 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18719 if test "${ac_cv_header_pthread_h+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 ac_cv_header_pthread_h=$ac_header_preproc
18724 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18725 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18728 if test $ac_cv_header_pthread_h = yes; then
18731 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18732 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18733 { (exit 1); exit 1; }; }
18742 for ac_func in strerror_r getpwuid_r gethostbyname_r
18744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758 #define $ac_func innocuous_$ac_func
18760 /* System header to define __stub macros and hopefully few prototypes,
18761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 <limits.h> exists even on freestanding compilers. */
18766 # include <limits.h>
18768 # include <assert.h>
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18780 /* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783 #if defined __stub_$ac_func || defined __stub___$ac_func
18790 return $ac_func ();
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18813 eval "$as_ac_var=yes"
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 eval "$as_ac_var=no"
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836 # Do test here with the proper thread flags
18837 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18838 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
18839 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18848 #include <sys/types.h>
18854 struct passwd *space;
18857 struct passwd **result;
18858 getpwuid_r(uid, space, buf, bufsize, result);
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_compile") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest.$ac_objext; then
18880 pgac_func_getpwuid_r_5arg=yes
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 pgac_func_getpwuid_r_5arg=no
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18891 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
18892 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18894 cat >>confdefs.h <<\_ACEOF
18895 #define GETPWUID_R_5ARG
18900 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18901 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
18902 if test "${pgac_func_strerror_r_int+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 cat >conftest.$ac_ext <<_ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #include <string.h>
18916 int strerror_r(int, char *, size_t);
18918 /* Older AIX has 'int' for the third argument so we don't test the args. */
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_compile") 2>conftest.er1
18934 grep -v '^ *+' conftest.er1 >conftest.err
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest.$ac_objext; then
18942 pgac_func_strerror_r_int=yes
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 pgac_func_strerror_r_int=no
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18953 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
18954 if test x"$pgac_func_strerror_r_int" = xyes ; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define STRERROR_R_INT
18967 # do not use values from template file
18976 # We can test for libldap_r only after we know PTHREAD_LIBS
18977 if test "$with_ldap" = yes ; then
18979 if test "$PORTNAME" != "win32"; then
18981 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18982 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
18983 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 ac_check_lib_save_LIBS=$LIBS
18987 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19005 return ldap_bind ();
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && {
19024 test -z "$ac_c_werror_flag" ||
19025 test ! -s conftest.err
19026 } && test -s conftest$ac_exeext &&
19027 $as_test_x conftest$ac_exeext; then
19028 ac_cv_lib_ldap_ldap_bind=yes
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_cv_lib_ldap_ldap_bind=no
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19040 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19041 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19042 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBLDAP 1
19047 LIBS="-lldap $LIBS"
19050 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19051 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19052 { (exit 1); exit 1; }; }
19055 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19056 if test "$enable_thread_safety" = yes; then
19057 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19059 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19060 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19061 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 ac_check_lib_save_LIBS=$LIBS
19065 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19066 cat >conftest.$ac_ext <<_ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19073 /* Override any GCC internal prototype to avoid an error.
19074 Use char because int might match the return type of a GCC
19075 builtin and then its argument prototype would still apply. */
19079 char ldap_simple_bind ();
19083 return ldap_simple_bind ();
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (ac_try="$ac_link"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_link") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest$ac_exeext &&
19105 $as_test_x conftest$ac_exeext; then
19106 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_cv_lib_ldap_r_ldap_simple_bind=no
19114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19115 conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19118 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19119 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19120 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_LIBLDAP_R 1
19125 LIBS="-lldap_r $LIBS"
19128 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19129 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19130 { (exit 1); exit 1; }; }
19133 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19135 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19139 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19140 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19141 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 ac_check_lib_save_LIBS=$LIBS
19145 LIBS="-lwldap32 $LIBS"
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19163 return ldap_bind ();
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_link") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest$ac_exeext &&
19185 $as_test_x conftest$ac_exeext; then
19186 ac_cv_lib_wldap32_ldap_bind=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_wldap32_ldap_bind=no
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19198 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19199 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19200 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define HAVE_LIBWLDAP32 1
19205 LIBS="-lwldap32 $LIBS"
19208 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19209 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19210 { (exit 1); exit 1; }; }
19213 LDAP_LIBS_FE="-lwldap32"
19214 LDAP_LIBS_BE="-lwldap32"
19222 # This test makes sure that run tests work at all. Sometimes a shared
19223 # library is found by the linker, but the runtime linker can't find it.
19224 # This check should come after all modifications of compiler or linker
19225 # variables, and before any other run tests.
19226 { echo "$as_me:$LINENO: checking test program" >&5
19227 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19228 if test "$cross_compiling" = yes; then
19229 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19230 echo "${ECHO_T}cross-compiling" >&6; }
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 int main() { return 0; }
19240 rm -f conftest$ac_exeext
19241 if { (ac_try="$ac_link"
19242 case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_link") 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 { echo "$as_me:$LINENO: result: ok" >&5
19261 echo "${ECHO_T}ok" >&6; }
19263 echo "$as_me: program exited with status $ac_status" >&5
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ( exit $ac_status )
19268 { echo "$as_me:$LINENO: result: failed" >&5
19269 echo "${ECHO_T}failed" >&6; }
19270 { { echo "$as_me:$LINENO: error:
19271 Could not execute a simple test program. This may be a problem
19272 related to locating shared libraries. Check the file 'config.log'
19273 for the exact reason." >&5
19274 echo "$as_me: error:
19275 Could not execute a simple test program. This may be a problem
19276 related to locating shared libraries. Check the file 'config.log'
19277 for the exact reason." >&2;}
19278 { (exit 1); exit 1; }; }
19280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19285 # --------------------
19286 # Run tests below here
19287 # --------------------
19289 # Force use of our snprintf if system's doesn't do arg control
19290 # See comment above at snprintf test for details.
19291 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19292 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19293 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19294 if test "${pgac_cv_printf_arg_control+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 if test "$cross_compiling" = yes; then
19298 pgac_cv_printf_arg_control=cross
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19307 #include <string.h>
19313 /* can it swap arguments? */
19314 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19315 if (strcmp(buf, "4 3") != 0)
19320 rm -f conftest$ac_exeext
19321 if { (ac_try="$ac_link"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_link") 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 pgac_cv_printf_arg_control=yes
19342 echo "$as_me: program exited with status $ac_status" >&5
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ( exit $ac_status )
19347 pgac_cv_printf_arg_control=no
19349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19355 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19356 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19358 if test $pgac_cv_printf_arg_control != yes ; then
19359 pgac_need_repl_snprintf=yes
19365 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19366 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19367 if test "${pgac_cv_type_long_int_64+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 if test "$cross_compiling" = yes; then
19371 # If cross-compiling, check the size reported by the compiler and
19372 # trust that the arithmetic works.
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19383 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest.$ac_objext; then
19407 pgac_cv_type_long_int_64=yes
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 pgac_cv_type_long_int_64=no
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 typedef long int ac_int64;
19426 * These are globals to discourage the compiler from folding all the
19427 * arithmetic tests down to compile-time constants.
19429 ac_int64 a = 20000001;
19430 ac_int64 b = 40000005;
19432 int does_int64_work()
19436 if (sizeof(ac_int64) != 8)
19437 return 0; /* definitely not the right size */
19439 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19447 exit(! does_int64_work());
19450 rm -f conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 pgac_cv_type_long_int_64=yes
19472 echo "$as_me: program exited with status $ac_status" >&5
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ( exit $ac_status )
19477 pgac_cv_type_long_int_64=no
19479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19485 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19487 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19488 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_LONG_INT_64
19497 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19498 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19499 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19500 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 if test "$cross_compiling" = yes; then
19504 # If cross-compiling, check the size reported by the compiler and
19505 # trust that the arithmetic works.
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19516 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_compile") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest.$ac_objext; then
19540 pgac_cv_type_long_long_int_64=yes
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 pgac_cv_type_long_long_int_64=no
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 typedef long long int ac_int64;
19559 * These are globals to discourage the compiler from folding all the
19560 * arithmetic tests down to compile-time constants.
19562 ac_int64 a = 20000001;
19563 ac_int64 b = 40000005;
19565 int does_int64_work()
19569 if (sizeof(ac_int64) != 8)
19570 return 0; /* definitely not the right size */
19572 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19580 exit(! does_int64_work());
19583 rm -f conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 pgac_cv_type_long_long_int_64=yes
19605 echo "$as_me: program exited with status $ac_status" >&5
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ( exit $ac_status )
19610 pgac_cv_type_long_long_int_64=no
19612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19617 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19618 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19620 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19621 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_LONG_LONG_INT_64
19633 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19641 #define INT64CONST(x) x##LL
19642 long long int foo = INT64CONST(0x1234567890123456);
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_LL_CONSTANTS 1
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 # If we found "long int" is 64 bits, assume snprintf handles it. If
19686 # we found we need to use "long long int", better check. We cope with
19687 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19688 # work, fall back to our own snprintf emulation (which we know uses %lld).
19690 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19691 if test $pgac_need_repl_snprintf = no; then
19692 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19693 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
19694 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 for pgac_format in '%lld' '%qd' '%I64d'; do
19698 if test "$cross_compiling" = yes; then
19699 pgac_cv_snprintf_long_long_int_format=cross; break
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 typedef long long int ac_int64;
19709 #define INT64_FORMAT "$pgac_format"
19711 ac_int64 a = 20000001;
19712 ac_int64 b = 40000005;
19714 int does_int64_snprintf_work()
19719 if (sizeof(ac_int64) != 8)
19720 return 0; /* doesn't look like the right size */
19723 snprintf(buf, 100, INT64_FORMAT, c);
19724 if (strcmp(buf, "800000140000005") != 0)
19725 return 0; /* either multiply or snprintf is busted */
19729 exit(! does_int64_snprintf_work());
19732 rm -f conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19754 echo "$as_me: program exited with status $ac_status" >&5
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19766 LONG_LONG_INT_FORMAT=''
19768 case $pgac_cv_snprintf_long_long_int_format in
19769 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19770 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
19771 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19772 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
19773 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19774 *) { echo "$as_me:$LINENO: result: none" >&5
19775 echo "${ECHO_T}none" >&6; };;
19777 if test "$LONG_LONG_INT_FORMAT" = ""; then
19778 # Force usage of our own snprintf, since system snprintf is broken
19779 pgac_need_repl_snprintf=yes
19780 LONG_LONG_INT_FORMAT='%lld'
19783 # Here if we previously decided we needed to use our own snprintf
19784 LONG_LONG_INT_FORMAT='%lld'
19786 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19787 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19788 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19790 # Here if we are not using 'long long int' at all
19791 INT64_FORMAT='"%ld"'
19792 UINT64_FORMAT='"%lu"'
19796 cat >>confdefs.h <<_ACEOF
19797 #define INT64_FORMAT $INT64_FORMAT
19802 cat >>confdefs.h <<_ACEOF
19803 #define UINT64_FORMAT $UINT64_FORMAT
19807 # Now we have checked all the reasons to replace snprintf
19808 if test $pgac_need_repl_snprintf = yes; then
19810 cat >>confdefs.h <<\_ACEOF
19811 #define USE_REPL_SNPRINTF 1
19814 case " $LIBOBJS " in
19815 *" snprintf.$ac_objext "* ) ;;
19816 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19822 # Need a #define for the size of Datum (unsigned long)
19823 { echo "$as_me:$LINENO: checking for unsigned long" >&5
19824 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
19825 if test "${ac_cv_type_unsigned_long+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 $ac_includes_default
19835 typedef unsigned long ac__type_new_;
19839 if ((ac__type_new_ *) 0)
19841 if (sizeof (ac__type_new_))
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_compile") 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest.$ac_objext; then
19864 ac_cv_type_unsigned_long=yes
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_cv_type_unsigned_long=no
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19875 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
19877 # The cast to long int works around a bug in the HP C Compiler
19878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19880 # This bug is HP SR number 8606223364.
19881 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
19882 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
19883 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 if test "$cross_compiling" = yes; then
19887 # Depending upon the size, compute the lo and hi bounds.
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 typedef unsigned long ac__type_sizeof_;
19899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_compile") 2>conftest.er1
19915 grep -v '^ *+' conftest.er1 >conftest.err
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && {
19920 test -z "$ac_c_werror_flag" ||
19921 test ! -s conftest.err
19922 } && test -s conftest.$ac_objext; then
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 typedef unsigned long ac__type_sizeof_;
19936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_compile") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest.$ac_objext; then
19960 ac_hi=$ac_mid; break
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_lo=`expr $ac_mid + 1`
19966 if test $ac_lo -le $ac_mid; then
19970 ac_mid=`expr 2 '*' $ac_mid + 1`
19973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 $ac_includes_default
19986 typedef unsigned long ac__type_sizeof_;
19990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest.$ac_objext; then
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 typedef unsigned long ac__type_sizeof_;
20027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20034 rm -f conftest.$ac_objext
20035 if { (ac_try="$ac_compile"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_compile") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest.$ac_objext; then
20051 ac_lo=$ac_mid; break
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_hi=`expr '(' $ac_mid ')' - 1`
20057 if test $ac_mid -le $ac_hi; then
20061 ac_mid=`expr 2 '*' $ac_mid`
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 # Binary search between lo and hi bounds.
20078 while test "x$ac_lo" != "x$ac_hi"; do
20079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 $ac_includes_default
20087 typedef unsigned long ac__type_sizeof_;
20091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20098 rm -f conftest.$ac_objext
20099 if { (ac_try="$ac_compile"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_compile") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest.$ac_objext; then
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_lo=`expr '(' $ac_mid ')' + 1`
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20127 '') if test "$ac_cv_type_unsigned_long" = yes; then
20128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20129 See \`config.log' for more details." >&5
20130 echo "$as_me: error: cannot compute sizeof (unsigned long)
20131 See \`config.log' for more details." >&2;}
20132 { (exit 77); exit 77; }; }
20134 ac_cv_sizeof_unsigned_long=0
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 typedef unsigned long ac__type_sizeof_;
20146 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20147 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20149 #include <stdlib.h>
20154 FILE *f = fopen ("conftest.val", "w");
20157 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20159 long int i = longval ();
20160 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20162 fprintf (f, "%ld\n", i);
20166 unsigned long int i = ulongval ();
20167 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20169 fprintf (f, "%lu\n", i);
20171 return ferror (f) || fclose (f) != 0;
20177 rm -f conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20199 echo "$as_me: program exited with status $ac_status" >&5
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ( exit $ac_status )
20204 if test "$ac_cv_type_unsigned_long" = yes; then
20205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20206 See \`config.log' for more details." >&5
20207 echo "$as_me: error: cannot compute sizeof (unsigned long)
20208 See \`config.log' for more details." >&2;}
20209 { (exit 77); exit 77; }; }
20211 ac_cv_sizeof_unsigned_long=0
20214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20218 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20219 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20223 cat >>confdefs.h <<_ACEOF
20224 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20229 # And one for the size of size_t (enables tweaks for > 32bit address space)
20230 { echo "$as_me:$LINENO: checking for size_t" >&5
20231 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20232 if test "${ac_cv_type_size_t+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 $ac_includes_default
20242 typedef size_t ac__type_new_;
20246 if ((ac__type_new_ *) 0)
20248 if (sizeof (ac__type_new_))
20254 rm -f conftest.$ac_objext
20255 if { (ac_try="$ac_compile"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_compile") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest.$ac_objext; then
20271 ac_cv_type_size_t=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_type_size_t=no
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20282 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20284 # The cast to long int works around a bug in the HP C Compiler
20285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20287 # This bug is HP SR number 8606223364.
20288 { echo "$as_me:$LINENO: checking size of size_t" >&5
20289 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20290 if test "${ac_cv_sizeof_size_t+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 if test "$cross_compiling" = yes; then
20294 # Depending upon the size, compute the lo and hi bounds.
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 $ac_includes_default
20302 typedef size_t ac__type_sizeof_;
20306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_compile") 2>conftest.er1
20322 grep -v '^ *+' conftest.er1 >conftest.err
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest.$ac_objext; then
20332 cat >conftest.$ac_ext <<_ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20338 $ac_includes_default
20339 typedef size_t ac__type_sizeof_;
20343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20350 rm -f conftest.$ac_objext
20351 if { (ac_try="$ac_compile"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_compile") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest.$ac_objext; then
20367 ac_hi=$ac_mid; break
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_lo=`expr $ac_mid + 1`
20373 if test $ac_lo -le $ac_mid; then
20377 ac_mid=`expr 2 '*' $ac_mid + 1`
20380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 $ac_includes_default
20393 typedef size_t ac__type_sizeof_;
20397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20404 rm -f conftest.$ac_objext
20405 if { (ac_try="$ac_compile"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_compile") 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest.$ac_objext; then
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 typedef size_t ac__type_sizeof_;
20434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20441 rm -f conftest.$ac_objext
20442 if { (ac_try="$ac_compile"
20443 case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_compile") 2>conftest.er1
20450 grep -v '^ *+' conftest.er1 >conftest.err
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest.$ac_objext; then
20458 ac_lo=$ac_mid; break
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463 ac_hi=`expr '(' $ac_mid ')' - 1`
20464 if test $ac_mid -le $ac_hi; then
20468 ac_mid=`expr 2 '*' $ac_mid`
20471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484 # Binary search between lo and hi bounds.
20485 while test "x$ac_lo" != "x$ac_hi"; do
20486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 $ac_includes_default
20494 typedef size_t ac__type_sizeof_;
20498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest.$ac_objext; then
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_lo=`expr '(' $ac_mid ')' + 1`
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20534 '') if test "$ac_cv_type_size_t" = yes; then
20535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20536 See \`config.log' for more details." >&5
20537 echo "$as_me: error: cannot compute sizeof (size_t)
20538 See \`config.log' for more details." >&2;}
20539 { (exit 77); exit 77; }; }
20541 ac_cv_sizeof_size_t=0
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 $ac_includes_default
20552 typedef size_t ac__type_sizeof_;
20553 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20554 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20556 #include <stdlib.h>
20561 FILE *f = fopen ("conftest.val", "w");
20564 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20566 long int i = longval ();
20567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20569 fprintf (f, "%ld\n", i);
20573 unsigned long int i = ulongval ();
20574 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20576 fprintf (f, "%lu\n", i);
20578 return ferror (f) || fclose (f) != 0;
20584 rm -f conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_link") 2>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20595 { (case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_try") 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_sizeof_size_t=`cat conftest.val`
20606 echo "$as_me: program exited with status $ac_status" >&5
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 ( exit $ac_status )
20611 if test "$ac_cv_type_size_t" = yes; then
20612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20613 See \`config.log' for more details." >&5
20614 echo "$as_me: error: cannot compute sizeof (size_t)
20615 See \`config.log' for more details." >&2;}
20616 { (exit 77); exit 77; }; }
20618 ac_cv_sizeof_size_t=0
20621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20625 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20626 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20630 cat >>confdefs.h <<_ACEOF
20631 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20636 # Determine memory alignment requirements for the basic C data types.
20638 { echo "$as_me:$LINENO: checking for short" >&5
20639 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20640 if test "${ac_cv_type_short+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 $ac_includes_default
20650 typedef short ac__type_new_;
20654 if ((ac__type_new_ *) 0)
20656 if (sizeof (ac__type_new_))
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_compile") 2>conftest.er1
20671 grep -v '^ *+' conftest.er1 >conftest.err
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } && {
20676 test -z "$ac_c_werror_flag" ||
20677 test ! -s conftest.err
20678 } && test -s conftest.$ac_objext; then
20679 ac_cv_type_short=yes
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_cv_type_short=no
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20690 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20692 # The cast to long int works around a bug in the HP C Compiler,
20693 # see AC_CHECK_SIZEOF for more information.
20694 { echo "$as_me:$LINENO: checking alignment of short" >&5
20695 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
20696 if test "${ac_cv_alignof_short+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 if test "$cross_compiling" = yes; then
20700 # Depending upon the size, compute the lo and hi bounds.
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 $ac_includes_default
20709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20711 typedef struct { char x; short y; } ac__type_alignof_;
20715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
20722 rm -f conftest.$ac_objext
20723 if { (ac_try="$ac_compile"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_compile") 2>conftest.er1
20731 grep -v '^ *+' conftest.er1 >conftest.err
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } && {
20736 test -z "$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20738 } && test -s conftest.$ac_objext; then
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20749 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20751 typedef struct { char x; short y; } ac__type_alignof_;
20755 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
20762 rm -f conftest.$ac_objext
20763 if { (ac_try="$ac_compile"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_compile") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest.$ac_objext; then
20779 ac_hi=$ac_mid; break
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_lo=`expr $ac_mid + 1`
20785 if test $ac_lo -le $ac_mid; then
20789 ac_mid=`expr 2 '*' $ac_mid + 1`
20792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20808 typedef struct { char x; short y; } ac__type_alignof_;
20812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest.$ac_objext; then
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 $ac_includes_default
20846 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20848 typedef struct { char x; short y; } ac__type_alignof_;
20852 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20876 ac_lo=$ac_mid; break
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_hi=`expr '(' $ac_mid ')' - 1`
20882 if test $ac_mid -le $ac_hi; then
20886 ac_mid=`expr 2 '*' $ac_mid`
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 # Binary search between lo and hi bounds.
20903 while test "x$ac_lo" != "x$ac_hi"; do
20904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 $ac_includes_default
20913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20915 typedef struct { char x; short y; } ac__type_alignof_;
20919 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest.$ac_objext; then
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_lo=`expr '(' $ac_mid ')' + 1`
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 ?*) ac_cv_alignof_short=$ac_lo;;
20955 '') if test "$ac_cv_type_short" = yes; then
20956 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
20957 See \`config.log' for more details." >&5
20958 echo "$as_me: error: cannot compute alignment of short
20959 See \`config.log' for more details." >&2;}
20960 { (exit 77); exit 77; }; }
20962 ac_cv_alignof_short=0
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20974 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20976 typedef struct { char x; short y; } ac__type_alignof_;
20977 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
20978 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
20980 #include <stdlib.h>
20985 FILE *f = fopen ("conftest.val", "w");
20988 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
20990 long int i = longval ();
20991 if (i != ((long int) offsetof (ac__type_alignof_, y)))
20993 fprintf (f, "%ld\n", i);
20997 unsigned long int i = ulongval ();
20998 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21000 fprintf (f, "%lu\n", i);
21002 return ferror (f) || fclose (f) != 0;
21008 rm -f conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_link") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21019 { (case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_try") 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_cv_alignof_short=`cat conftest.val`
21030 echo "$as_me: program exited with status $ac_status" >&5
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ( exit $ac_status )
21035 if test "$ac_cv_type_short" = yes; then
21036 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21037 See \`config.log' for more details." >&5
21038 echo "$as_me: error: cannot compute alignment of short
21039 See \`config.log' for more details." >&2;}
21040 { (exit 77); exit 77; }; }
21042 ac_cv_alignof_short=0
21045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21050 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21054 cat >>confdefs.h <<_ACEOF
21055 #define ALIGNOF_SHORT $ac_cv_alignof_short
21059 { echo "$as_me:$LINENO: checking for int" >&5
21060 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21061 if test "${ac_cv_type_int+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21071 typedef int ac__type_new_;
21075 if ((ac__type_new_ *) 0)
21077 if (sizeof (ac__type_new_))
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
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21111 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21113 # The cast to long int works around a bug in the HP C Compiler,
21114 # see AC_CHECK_SIZEOF for more information.
21115 { echo "$as_me:$LINENO: checking alignment of int" >&5
21116 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21117 if test "${ac_cv_alignof_int+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 if test "$cross_compiling" = yes; then
21121 # Depending upon the size, compute the lo and hi bounds.
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 $ac_includes_default
21130 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21132 typedef struct { char x; int y; } ac__type_alignof_;
21136 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_compile") 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest.$ac_objext; then
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21170 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21172 typedef struct { char x; int y; } ac__type_alignof_;
21176 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1 >conftest.err
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_hi=$ac_mid; break
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_lo=`expr $ac_mid + 1`
21206 if test $ac_lo -le $ac_mid; then
21210 ac_mid=`expr 2 '*' $ac_mid + 1`
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21227 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21229 typedef struct { char x; int y; } ac__type_alignof_;
21233 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21267 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21269 typedef struct { char x; int y; } ac__type_alignof_;
21273 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_compile") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest.$ac_objext; then
21297 ac_lo=$ac_mid; break
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_hi=`expr '(' $ac_mid ')' - 1`
21303 if test $ac_mid -le $ac_hi; then
21307 ac_mid=`expr 2 '*' $ac_mid`
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 # Binary search between lo and hi bounds.
21324 while test "x$ac_lo" != "x$ac_hi"; do
21325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 $ac_includes_default
21334 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21336 typedef struct { char x; int y; } ac__type_alignof_;
21340 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21347 rm -f conftest.$ac_objext
21348 if { (ac_try="$ac_compile"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_compile") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && {
21361 test -z "$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 } && test -s conftest.$ac_objext; then
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_lo=`expr '(' $ac_mid ')' + 1`
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375 ?*) ac_cv_alignof_int=$ac_lo;;
21376 '') if test "$ac_cv_type_int" = yes; then
21377 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21378 See \`config.log' for more details." >&5
21379 echo "$as_me: error: cannot compute alignment of int
21380 See \`config.log' for more details." >&2;}
21381 { (exit 77); exit 77; }; }
21383 ac_cv_alignof_int=0
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 $ac_includes_default
21395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21397 typedef struct { char x; int y; } ac__type_alignof_;
21398 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21399 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21401 #include <stdlib.h>
21406 FILE *f = fopen ("conftest.val", "w");
21409 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21411 long int i = longval ();
21412 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21414 fprintf (f, "%ld\n", i);
21418 unsigned long int i = ulongval ();
21419 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21421 fprintf (f, "%lu\n", i);
21423 return ferror (f) || fclose (f) != 0;
21429 rm -f conftest$ac_exeext
21430 if { (ac_try="$ac_link"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_link") 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21440 { (case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_try") 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_alignof_int=`cat conftest.val`
21451 echo "$as_me: program exited with status $ac_status" >&5
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ( exit $ac_status )
21456 if test "$ac_cv_type_int" = yes; then
21457 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21458 See \`config.log' for more details." >&5
21459 echo "$as_me: error: cannot compute alignment of int
21460 See \`config.log' for more details." >&2;}
21461 { (exit 77); exit 77; }; }
21463 ac_cv_alignof_int=0
21466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21471 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21475 cat >>confdefs.h <<_ACEOF
21476 #define ALIGNOF_INT $ac_cv_alignof_int
21480 { echo "$as_me:$LINENO: checking for long" >&5
21481 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21482 if test "${ac_cv_type_long+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 $ac_includes_default
21492 typedef long ac__type_new_;
21496 if ((ac__type_new_ *) 0)
21498 if (sizeof (ac__type_new_))
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_cv_type_long=yes
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21532 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21534 # The cast to long int works around a bug in the HP C Compiler,
21535 # see AC_CHECK_SIZEOF for more information.
21536 { echo "$as_me:$LINENO: checking alignment of long" >&5
21537 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
21538 if test "${ac_cv_alignof_long+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 if test "$cross_compiling" = yes; then
21542 # Depending upon the size, compute the lo and hi bounds.
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 $ac_includes_default
21551 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21553 typedef struct { char x; long y; } ac__type_alignof_;
21557 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest.$ac_objext; then
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21591 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21593 typedef struct { char x; long y; } ac__type_alignof_;
21597 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_compile") 2>conftest.er1
21613 grep -v '^ *+' conftest.er1 >conftest.err
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest.$ac_objext; then
21621 ac_hi=$ac_mid; break
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_lo=`expr $ac_mid + 1`
21627 if test $ac_lo -le $ac_mid; then
21631 ac_mid=`expr 2 '*' $ac_mid + 1`
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21648 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21650 typedef struct { char x; long y; } ac__type_alignof_;
21654 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 $ac_includes_default
21688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21690 typedef struct { char x; long y; } ac__type_alignof_;
21694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 ac_lo=$ac_mid; break
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_hi=`expr '(' $ac_mid ')' - 1`
21724 if test $ac_mid -le $ac_hi; then
21728 ac_mid=`expr 2 '*' $ac_mid`
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21744 # Binary search between lo and hi bounds.
21745 while test "x$ac_lo" != "x$ac_hi"; do
21746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 $ac_includes_default
21755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21757 typedef struct { char x; long y; } ac__type_alignof_;
21761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21768 rm -f conftest.$ac_objext
21769 if { (ac_try="$ac_compile"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_compile") 2>conftest.er1
21777 grep -v '^ *+' conftest.er1 >conftest.err
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } && {
21782 test -z "$ac_c_werror_flag" ||
21783 test ! -s conftest.err
21784 } && test -s conftest.$ac_objext; then
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_lo=`expr '(' $ac_mid ')' + 1`
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 ?*) ac_cv_alignof_long=$ac_lo;;
21797 '') if test "$ac_cv_type_long" = yes; then
21798 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
21799 See \`config.log' for more details." >&5
21800 echo "$as_me: error: cannot compute alignment of long
21801 See \`config.log' for more details." >&2;}
21802 { (exit 77); exit 77; }; }
21804 ac_cv_alignof_long=0
21808 cat >conftest.$ac_ext <<_ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h. */
21814 $ac_includes_default
21816 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21818 typedef struct { char x; long y; } ac__type_alignof_;
21819 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21820 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21822 #include <stdlib.h>
21827 FILE *f = fopen ("conftest.val", "w");
21830 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21832 long int i = longval ();
21833 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21835 fprintf (f, "%ld\n", i);
21839 unsigned long int i = ulongval ();
21840 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21842 fprintf (f, "%lu\n", i);
21844 return ferror (f) || fclose (f) != 0;
21850 rm -f conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_link") 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_cv_alignof_long=`cat conftest.val`
21872 echo "$as_me: program exited with status $ac_status" >&5
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ( exit $ac_status )
21877 if test "$ac_cv_type_long" = yes; then
21878 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
21879 See \`config.log' for more details." >&5
21880 echo "$as_me: error: cannot compute alignment of long
21881 See \`config.log' for more details." >&2;}
21882 { (exit 77); exit 77; }; }
21884 ac_cv_alignof_long=0
21887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
21892 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
21896 cat >>confdefs.h <<_ACEOF
21897 #define ALIGNOF_LONG $ac_cv_alignof_long
21901 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21902 { echo "$as_me:$LINENO: checking for long long int" >&5
21903 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21904 if test "${ac_cv_type_long_long_int+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21914 typedef long long int ac__type_new_;
21918 if ((ac__type_new_ *) 0)
21920 if (sizeof (ac__type_new_))
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_compile") 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest.$ac_objext; then
21943 ac_cv_type_long_long_int=yes
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_cv_type_long_long_int=no
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21954 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
21956 # The cast to long int works around a bug in the HP C Compiler,
21957 # see AC_CHECK_SIZEOF for more information.
21958 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
21959 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
21960 if test "${ac_cv_alignof_long_long_int+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 if test "$cross_compiling" = yes; then
21964 # Depending upon the size, compute the lo and hi bounds.
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 $ac_includes_default
21973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21975 typedef struct { char x; long long int y; } ac__type_alignof_;
21979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 $ac_includes_default
22013 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22015 typedef struct { char x; long long int y; } ac__type_alignof_;
22019 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_hi=$ac_mid; break
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_lo=`expr $ac_mid + 1`
22049 if test $ac_lo -le $ac_mid; then
22053 ac_mid=`expr 2 '*' $ac_mid + 1`
22056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22070 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22072 typedef struct { char x; long long int y; } ac__type_alignof_;
22076 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_compile") 2>conftest.er1
22092 grep -v '^ *+' conftest.er1 >conftest.err
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } && {
22097 test -z "$ac_c_werror_flag" ||
22098 test ! -s conftest.err
22099 } && test -s conftest.$ac_objext; then
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 $ac_includes_default
22110 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22112 typedef struct { char x; long long int y; } ac__type_alignof_;
22116 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22123 rm -f conftest.$ac_objext
22124 if { (ac_try="$ac_compile"
22125 case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_compile") 2>conftest.er1
22132 grep -v '^ *+' conftest.er1 >conftest.err
22134 cat conftest.err >&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && {
22137 test -z "$ac_c_werror_flag" ||
22138 test ! -s conftest.err
22139 } && test -s conftest.$ac_objext; then
22140 ac_lo=$ac_mid; break
22142 echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145 ac_hi=`expr '(' $ac_mid ')' - 1`
22146 if test $ac_mid -le $ac_hi; then
22150 ac_mid=`expr 2 '*' $ac_mid`
22153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 # Binary search between lo and hi bounds.
22167 while test "x$ac_lo" != "x$ac_hi"; do
22168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22177 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22179 typedef struct { char x; long long int y; } ac__type_alignof_;
22183 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22190 rm -f conftest.$ac_objext
22191 if { (ac_try="$ac_compile"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_compile") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } && {
22204 test -z "$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 } && test -s conftest.$ac_objext; then
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_lo=`expr '(' $ac_mid ')' + 1`
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22219 '') if test "$ac_cv_type_long_long_int" = yes; then
22220 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22221 See \`config.log' for more details." >&5
22222 echo "$as_me: error: cannot compute alignment of long long int
22223 See \`config.log' for more details." >&2;}
22224 { (exit 77); exit 77; }; }
22226 ac_cv_alignof_long_long_int=0
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 $ac_includes_default
22238 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22240 typedef struct { char x; long long int y; } ac__type_alignof_;
22241 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22242 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22244 #include <stdlib.h>
22249 FILE *f = fopen ("conftest.val", "w");
22252 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22254 long int i = longval ();
22255 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22257 fprintf (f, "%ld\n", i);
22261 unsigned long int i = ulongval ();
22262 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22264 fprintf (f, "%lu\n", i);
22266 return ferror (f) || fclose (f) != 0;
22272 rm -f conftest$ac_exeext
22273 if { (ac_try="$ac_link"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_link") 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283 { (case "(($ac_try" in
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285 *) ac_try_echo=$ac_try;;
22287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288 (eval "$ac_try") 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ac_cv_alignof_long_long_int=`cat conftest.val`
22294 echo "$as_me: program exited with status $ac_status" >&5
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ( exit $ac_status )
22299 if test "$ac_cv_type_long_long_int" = yes; then
22300 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22301 See \`config.log' for more details." >&5
22302 echo "$as_me: error: cannot compute alignment of long long int
22303 See \`config.log' for more details." >&2;}
22304 { (exit 77); exit 77; }; }
22306 ac_cv_alignof_long_long_int=0
22309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22313 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22314 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22318 cat >>confdefs.h <<_ACEOF
22319 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22324 { echo "$as_me:$LINENO: checking for double" >&5
22325 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22326 if test "${ac_cv_type_double+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22336 typedef double ac__type_new_;
22340 if ((ac__type_new_ *) 0)
22342 if (sizeof (ac__type_new_))
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest.$ac_objext; then
22365 ac_cv_type_double=yes
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 ac_cv_type_double=no
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22376 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22378 # The cast to long int works around a bug in the HP C Compiler,
22379 # see AC_CHECK_SIZEOF for more information.
22380 { echo "$as_me:$LINENO: checking alignment of double" >&5
22381 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22382 if test "${ac_cv_alignof_double+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22385 if test "$cross_compiling" = yes; then
22386 # Depending upon the size, compute the lo and hi bounds.
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22393 $ac_includes_default
22395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22397 typedef struct { char x; double y; } ac__type_alignof_;
22401 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_compile") 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest.$ac_objext; then
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 $ac_includes_default
22435 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22437 typedef struct { char x; double y; } ac__type_alignof_;
22441 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_hi=$ac_mid; break
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_lo=`expr $ac_mid + 1`
22471 if test $ac_lo -le $ac_mid; then
22475 ac_mid=`expr 2 '*' $ac_mid + 1`
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 cat >conftest.$ac_ext <<_ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 $ac_includes_default
22492 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22494 typedef struct { char x; double y; } ac__type_alignof_;
22498 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_compile") 2>conftest.er1
22514 grep -v '^ *+' conftest.er1 >conftest.err
22516 cat conftest.err >&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } && {
22519 test -z "$ac_c_werror_flag" ||
22520 test ! -s conftest.err
22521 } && test -s conftest.$ac_objext; then
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22532 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22534 typedef struct { char x; double y; } ac__type_alignof_;
22538 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_compile") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest.$ac_objext; then
22562 ac_lo=$ac_mid; break
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_hi=`expr '(' $ac_mid ')' - 1`
22568 if test $ac_mid -le $ac_hi; then
22572 ac_mid=`expr 2 '*' $ac_mid`
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 # Binary search between lo and hi bounds.
22589 while test "x$ac_lo" != "x$ac_hi"; do
22590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22599 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22601 typedef struct { char x; double y; } ac__type_alignof_;
22605 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_lo=`expr '(' $ac_mid ')' + 1`
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 ?*) ac_cv_alignof_double=$ac_lo;;
22641 '') if test "$ac_cv_type_double" = yes; then
22642 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22643 See \`config.log' for more details." >&5
22644 echo "$as_me: error: cannot compute alignment of double
22645 See \`config.log' for more details." >&2;}
22646 { (exit 77); exit 77; }; }
22648 ac_cv_alignof_double=0
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22660 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22662 typedef struct { char x; double y; } ac__type_alignof_;
22663 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22664 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22666 #include <stdlib.h>
22671 FILE *f = fopen ("conftest.val", "w");
22674 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22676 long int i = longval ();
22677 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22679 fprintf (f, "%ld\n", i);
22683 unsigned long int i = ulongval ();
22684 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22686 fprintf (f, "%lu\n", i);
22688 return ferror (f) || fclose (f) != 0;
22694 rm -f conftest$ac_exeext
22695 if { (ac_try="$ac_link"
22696 case "(($ac_try" in
22697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698 *) ac_try_echo=$ac_try;;
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_link") 2>&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22705 { (case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_try") 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22714 ac_cv_alignof_double=`cat conftest.val`
22716 echo "$as_me: program exited with status $ac_status" >&5
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ( exit $ac_status )
22721 if test "$ac_cv_type_double" = yes; then
22722 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22723 See \`config.log' for more details." >&5
22724 echo "$as_me: error: cannot compute alignment of double
22725 See \`config.log' for more details." >&2;}
22726 { (exit 77); exit 77; }; }
22728 ac_cv_alignof_double=0
22731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
22736 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
22740 cat >>confdefs.h <<_ACEOF
22741 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
22746 # Compute maximum alignment of any basic type.
22747 # We assume long's alignment is at least as strong as char, short, or int;
22748 # but we must check long long (if it exists) and double.
22750 MAX_ALIGNOF=$ac_cv_alignof_long
22751 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
22752 MAX_ALIGNOF=$ac_cv_alignof_double
22754 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
22755 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
22758 cat >>confdefs.h <<_ACEOF
22759 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22764 # Some platforms predefine the types int8, int16, etc. Only check
22765 # a (hopefully) representative subset.
22766 { echo "$as_me:$LINENO: checking for int8" >&5
22767 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
22768 if test "${ac_cv_type_int8+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22778 #ifdef HAVE_SUPPORTDEFS_H
22779 #include <SupportDefs.h>
22782 typedef int8 ac__type_new_;
22786 if ((ac__type_new_ *) 0)
22788 if (sizeof (ac__type_new_))
22794 rm -f conftest.$ac_objext
22795 if { (ac_try="$ac_compile"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_compile") 2>conftest.er1
22803 grep -v '^ *+' conftest.er1 >conftest.err
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } && {
22808 test -z "$ac_c_werror_flag" ||
22809 test ! -s conftest.err
22810 } && test -s conftest.$ac_objext; then
22811 ac_cv_type_int8=yes
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22821 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
22822 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
22823 if test $ac_cv_type_int8 = yes; then
22825 cat >>confdefs.h <<_ACEOF
22826 #define HAVE_INT8 1
22831 { echo "$as_me:$LINENO: checking for uint8" >&5
22832 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
22833 if test "${ac_cv_type_uint8+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22843 #ifdef HAVE_SUPPORTDEFS_H
22844 #include <SupportDefs.h>
22847 typedef uint8 ac__type_new_;
22851 if ((ac__type_new_ *) 0)
22853 if (sizeof (ac__type_new_))
22859 rm -f conftest.$ac_objext
22860 if { (ac_try="$ac_compile"
22861 case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866 (eval "$ac_compile") 2>conftest.er1
22868 grep -v '^ *+' conftest.er1 >conftest.err
22870 cat conftest.err >&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } && {
22873 test -z "$ac_c_werror_flag" ||
22874 test ! -s conftest.err
22875 } && test -s conftest.$ac_objext; then
22876 ac_cv_type_uint8=yes
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ac_cv_type_uint8=no
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22887 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
22888 if test $ac_cv_type_uint8 = yes; then
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_UINT8 1
22896 { echo "$as_me:$LINENO: checking for int64" >&5
22897 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
22898 if test "${ac_cv_type_int64+set}" = set; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 cat >conftest.$ac_ext <<_ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22908 #ifdef HAVE_SUPPORTDEFS_H
22909 #include <SupportDefs.h>
22912 typedef int64 ac__type_new_;
22916 if ((ac__type_new_ *) 0)
22918 if (sizeof (ac__type_new_))
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 ac_cv_type_int64=yes
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ac_cv_type_int64=no
22949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22952 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
22953 if test $ac_cv_type_int64 = yes; then
22955 cat >>confdefs.h <<_ACEOF
22956 #define HAVE_INT64 1
22961 { echo "$as_me:$LINENO: checking for uint64" >&5
22962 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
22963 if test "${ac_cv_type_uint64+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 #ifdef HAVE_SUPPORTDEFS_H
22974 #include <SupportDefs.h>
22977 typedef uint64 ac__type_new_;
22981 if ((ac__type_new_ *) 0)
22983 if (sizeof (ac__type_new_))
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_cv_type_uint64=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_cv_type_uint64=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23017 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23018 if test $ac_cv_type_uint64 = yes; then
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_UINT64 1
23028 # We also check for sig_atomic_t, which *should* be defined per ANSI
23029 # C, but is missing on some old platforms.
23030 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23031 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23032 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 #include <signal.h>
23043 typedef sig_atomic_t ac__type_new_;
23047 if ((ac__type_new_ *) 0)
23049 if (sizeof (ac__type_new_))
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_type_sig_atomic_t=yes
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_cv_type_sig_atomic_t=no
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23083 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23084 if test $ac_cv_type_sig_atomic_t = yes; then
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_SIG_ATOMIC_T 1
23095 if test "$PORTNAME" != "win32"
23097 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23098 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23099 if test "${pgac_cv_func_posix_signals+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 #include <signal.h>
23113 struct sigaction act, oact;
23114 sigemptyset(&act.sa_mask);
23115 act.sa_flags = SA_RESTART;
23116 sigaction(0, &act, &oact);
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23138 $as_test_x conftest$ac_exeext; then
23139 pgac_cv_func_posix_signals=yes
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 pgac_cv_func_posix_signals=no
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148 conftest$ac_exeext conftest.$ac_ext
23150 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23151 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23152 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_POSIX_SIGNALS
23159 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23161 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23162 { { echo "$as_me:$LINENO: error:
23163 Thread-safety requires POSIX signals, which are not supported by this
23164 operating system." >&5
23165 echo "$as_me: error:
23166 Thread-safety requires POSIX signals, which are not supported by this
23167 operating system." >&2;}
23168 { (exit 1); exit 1; }; }
23172 if test $ac_cv_func_fseeko = yes; then
23173 # Check whether --enable-largefile was given.
23174 if test "${enable_largefile+set}" = set; then
23175 enableval=$enable_largefile;
23178 if test "$enable_largefile" != no; then
23180 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23181 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23182 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 ac_cv_sys_largefile_CC=no
23186 if test "$GCC" != yes; then
23189 # IRIX 6.2 and later do not support large files by default,
23190 # so use the C compiler's -n32 option if that helps.
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 #include <sys/types.h>
23198 /* Check that off_t can represent 2**63 - 1 correctly.
23199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23200 since some C++ compilers masquerading as C compilers
23201 incorrectly reject 9223372036854775807. */
23202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23204 && LARGE_OFF_T % 2147483647 == 1)
23214 rm -f conftest.$ac_objext
23215 if { (ac_try="$ac_compile"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_compile") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest.$ac_objext; then
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23239 rm -f core conftest.err conftest.$ac_objext
23241 rm -f conftest.$ac_objext
23242 if { (ac_try="$ac_compile"
23243 case "(($ac_try" in
23244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245 *) ac_try_echo=$ac_try;;
23247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248 (eval "$ac_compile") 2>conftest.er1
23250 grep -v '^ *+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } && {
23255 test -z "$ac_c_werror_flag" ||
23256 test ! -s conftest.err
23257 } && test -s conftest.$ac_objext; then
23258 ac_cv_sys_largefile_CC=' -n32'; break
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23266 rm -f core conftest.err conftest.$ac_objext
23270 rm -f conftest.$ac_ext
23273 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23274 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23275 if test "$ac_cv_sys_largefile_CC" != no; then
23276 CC=$CC$ac_cv_sys_largefile_CC
23279 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23280 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23281 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23291 #include <sys/types.h>
23292 /* Check that off_t can represent 2**63 - 1 correctly.
23293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23294 since some C++ compilers masquerading as C compilers
23295 incorrectly reject 9223372036854775807. */
23296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23298 && LARGE_OFF_T % 2147483647 == 1)
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315 (eval "$ac_compile") 2>conftest.er1
23317 grep -v '^ *+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && {
23322 test -z "$ac_c_werror_flag" ||
23323 test ! -s conftest.err
23324 } && test -s conftest.$ac_objext; then
23325 ac_cv_sys_file_offset_bits=no; break
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 #define _FILE_OFFSET_BITS 64
23341 #include <sys/types.h>
23342 /* Check that off_t can represent 2**63 - 1 correctly.
23343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23344 since some C++ compilers masquerading as C compilers
23345 incorrectly reject 9223372036854775807. */
23346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23348 && LARGE_OFF_T % 2147483647 == 1)
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_compile") 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest.$ac_objext; then
23375 ac_cv_sys_file_offset_bits=64; break
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 ac_cv_sys_file_offset_bits=unknown
23388 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23389 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23390 case $ac_cv_sys_file_offset_bits in #(
23393 cat >>confdefs.h <<_ACEOF
23394 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23399 if test $ac_cv_sys_file_offset_bits = unknown; then
23400 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23401 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23402 if test "${ac_cv_sys_large_files+set}" = set; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23406 cat >conftest.$ac_ext <<_ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23412 #include <sys/types.h>
23413 /* Check that off_t can represent 2**63 - 1 correctly.
23414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23415 since some C++ compilers masquerading as C compilers
23416 incorrectly reject 9223372036854775807. */
23417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23419 && LARGE_OFF_T % 2147483647 == 1)
23429 rm -f conftest.$ac_objext
23430 if { (ac_try="$ac_compile"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436 (eval "$ac_compile") 2>conftest.er1
23438 grep -v '^ *+' conftest.er1 >conftest.err
23440 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } && {
23443 test -z "$ac_c_werror_flag" ||
23444 test ! -s conftest.err
23445 } && test -s conftest.$ac_objext; then
23446 ac_cv_sys_large_files=no; break
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 cat >conftest.$ac_ext <<_ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 #define _LARGE_FILES 1
23462 #include <sys/types.h>
23463 /* Check that off_t can represent 2**63 - 1 correctly.
23464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23465 since some C++ compilers masquerading as C compilers
23466 incorrectly reject 9223372036854775807. */
23467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23469 && LARGE_OFF_T % 2147483647 == 1)
23479 rm -f conftest.$ac_objext
23480 if { (ac_try="$ac_compile"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_compile") 2>conftest.er1
23488 grep -v '^ *+' conftest.er1 >conftest.err
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest.$ac_objext; then
23496 ac_cv_sys_large_files=1; break
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23505 ac_cv_sys_large_files=unknown
23509 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23510 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23511 case $ac_cv_sys_large_files in #(
23514 cat >>confdefs.h <<_ACEOF
23515 #define _LARGE_FILES $ac_cv_sys_large_files
23525 # SunOS doesn't handle negative byte comparisons properly with +/- return
23526 { echo "$as_me:$LINENO: checking for working memcmp" >&5
23527 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
23528 if test "${ac_cv_func_memcmp_working+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 if test "$cross_compiling" = yes; then
23532 ac_cv_func_memcmp_working=no
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23545 /* Some versions of memcmp are not 8-bit clean. */
23546 char c0 = '\100', c1 = '\200', c2 = '\201';
23547 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23550 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23551 or more and with at least one buffer not starting on a 4-byte boundary.
23552 William Lewis provided this test program. */
23557 for (i = 0; i < 4; i++)
23561 strcpy (a, "--------01111111");
23562 strcpy (b, "--------10000000");
23563 if (memcmp (a, b, 16) >= 0)
23573 rm -f conftest$ac_exeext
23574 if { (ac_try="$ac_link"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_link") 2>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23584 { (case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589 (eval "$ac_try") 2>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; }; then
23593 ac_cv_func_memcmp_working=yes
23595 echo "$as_me: program exited with status $ac_status" >&5
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23599 ( exit $ac_status )
23600 ac_cv_func_memcmp_working=no
23602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23607 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23608 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
23609 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23610 *" memcmp.$ac_objext "* ) ;;
23611 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23618 # Select semaphore implementation type.
23619 if test "$PORTNAME" != "win32"; then
23620 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
23622 cat >>confdefs.h <<\_ACEOF
23623 #define USE_NAMED_POSIX_SEMAPHORES 1
23626 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23628 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
23630 cat >>confdefs.h <<\_ACEOF
23631 #define USE_UNNAMED_POSIX_SEMAPHORES 1
23634 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23637 cat >>confdefs.h <<\_ACEOF
23638 #define USE_SYSV_SEMAPHORES 1
23641 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
23646 cat >>confdefs.h <<\_ACEOF
23647 #define USE_WIN32_SEMAPHORES 1
23650 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
23654 # Select shared-memory implementation type.
23655 if test "$PORTNAME" != "win32"; then
23657 cat >>confdefs.h <<\_ACEOF
23658 #define USE_SYSV_SHARED_MEMORY 1
23661 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
23664 cat >>confdefs.h <<\_ACEOF
23665 #define USE_WIN32_SHARED_MEMORY 1
23668 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
23671 # If not set in template file, set bytes to use libc memset()
23672 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
23673 MEMSET_LOOP_LIMIT=1024
23676 cat >>confdefs.h <<_ACEOF
23677 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
23682 if test "$enable_nls" = yes ; then
23684 { echo "$as_me:$LINENO: checking for library containing gettext" >&5
23685 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
23686 if test "${ac_cv_search_gettext+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 ac_func_search_save_LIBS=$LIBS
23690 cat >conftest.$ac_ext <<_ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23697 /* Override any GCC internal prototype to avoid an error.
23698 Use char because int might match the return type of a GCC
23699 builtin and then its argument prototype would still apply. */
23712 for ac_lib in '' intl; do
23713 if test -z "$ac_lib"; then
23714 ac_res="none required"
23717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (ac_try="$ac_link"
23721 case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_link") 2>conftest.er1
23728 grep -v '^ *+' conftest.er1 >conftest.err
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } && {
23733 test -z "$ac_c_werror_flag" ||
23734 test ! -s conftest.err
23735 } && test -s conftest$ac_exeext &&
23736 $as_test_x conftest$ac_exeext; then
23737 ac_cv_search_gettext=$ac_res
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747 if test "${ac_cv_search_gettext+set}" = set; then
23751 if test "${ac_cv_search_gettext+set}" = set; then
23754 ac_cv_search_gettext=no
23756 rm conftest.$ac_ext
23757 LIBS=$ac_func_search_save_LIBS
23759 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
23760 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
23761 ac_res=$ac_cv_search_gettext
23762 if test "$ac_res" != no; then
23763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23766 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23767 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23768 { (exit 1); exit 1; }; }
23771 if test "${ac_cv_header_libintl_h+set}" = set; then
23772 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23773 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23774 if test "${ac_cv_header_libintl_h+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23778 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23780 # Is the header compilable?
23781 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
23782 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
23783 cat >conftest.$ac_ext <<_ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 $ac_includes_default
23790 #include <libintl.h>
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.$ac_objext; then
23809 ac_header_compiler=yes
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_header_compiler=no
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23819 echo "${ECHO_T}$ac_header_compiler" >&6; }
23821 # Is the header present?
23822 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
23823 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
23824 cat >conftest.$ac_ext <<_ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 #include <libintl.h>
23832 if { (ac_try="$ac_cpp conftest.$ac_ext"
23833 case "(($ac_try" in
23834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835 *) ac_try_echo=$ac_try;;
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23840 grep -v '^ *+' conftest.er1 >conftest.err
23842 cat conftest.err >&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } >/dev/null && {
23845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23848 ac_header_preproc=yes
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 ac_header_preproc=no
23856 rm -f conftest.err conftest.$ac_ext
23857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23858 echo "${ECHO_T}$ac_header_preproc" >&6; }
23860 # So? What about this header?
23861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23863 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23864 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23866 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23867 ac_header_preproc=yes
23870 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23871 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23872 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
23873 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
23874 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23875 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23876 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
23877 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23878 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23879 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23880 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23881 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23883 ## ---------------------------------------- ##
23884 ## Report this to pgsql-bugs@postgresql.org ##
23885 ## ---------------------------------------- ##
23887 ) | sed "s/^/$as_me: WARNING: /" >&2
23890 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23891 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23892 if test "${ac_cv_header_libintl_h+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23895 ac_cv_header_libintl_h=$ac_header_preproc
23897 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23898 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23901 if test $ac_cv_header_libintl_h = yes; then
23904 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23905 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23906 { (exit 1); exit 1; }; }
23910 for ac_prog in msgfmt
23912 # Extract the first word of "$ac_prog", so it can be a program name with args.
23913 set dummy $ac_prog; ac_word=$2
23914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23916 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 if test -n "$MSGFMT"; then
23920 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23923 for as_dir in $PATH
23926 test -z "$as_dir" && as_dir=.
23927 for ac_exec_ext in '' $ac_executable_extensions; do
23928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23929 ac_cv_prog_MSGFMT="$ac_prog"
23930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23939 MSGFMT=$ac_cv_prog_MSGFMT
23940 if test -n "$MSGFMT"; then
23941 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23942 echo "${ECHO_T}$MSGFMT" >&6; }
23944 { echo "$as_me:$LINENO: result: no" >&5
23945 echo "${ECHO_T}no" >&6; }
23949 test -n "$MSGFMT" && break
23952 if test -z "$MSGFMT"; then
23953 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23954 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23955 { (exit 1); exit 1; }; }
23957 for ac_prog in msgmerge
23959 # Extract the first word of "$ac_prog", so it can be a program name with args.
23960 set dummy $ac_prog; ac_word=$2
23961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23963 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23964 echo $ECHO_N "(cached) $ECHO_C" >&6
23966 if test -n "$MSGMERGE"; then
23967 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23970 for as_dir in $PATH
23973 test -z "$as_dir" && as_dir=.
23974 for ac_exec_ext in '' $ac_executable_extensions; do
23975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23976 ac_cv_prog_MSGMERGE="$ac_prog"
23977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23986 MSGMERGE=$ac_cv_prog_MSGMERGE
23987 if test -n "$MSGMERGE"; then
23988 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23989 echo "${ECHO_T}$MSGMERGE" >&6; }
23991 { echo "$as_me:$LINENO: result: no" >&5
23992 echo "${ECHO_T}no" >&6; }
23996 test -n "$MSGMERGE" && break
23999 for ac_prog in xgettext
24001 # Extract the first word of "$ac_prog", so it can be a program name with args.
24002 set dummy $ac_prog; ac_word=$2
24003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24005 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24008 if test -n "$XGETTEXT"; then
24009 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24012 for as_dir in $PATH
24015 test -z "$as_dir" && as_dir=.
24016 for ac_exec_ext in '' $ac_executable_extensions; do
24017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24018 ac_cv_prog_XGETTEXT="$ac_prog"
24019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24028 XGETTEXT=$ac_cv_prog_XGETTEXT
24029 if test -n "$XGETTEXT"; then
24030 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24031 echo "${ECHO_T}$XGETTEXT" >&6; }
24033 { echo "$as_me:$LINENO: result: no" >&5
24034 echo "${ECHO_T}no" >&6; }
24038 test -n "$XGETTEXT" && break
24044 # Check for Tcl configuration script tclConfig.sh
24045 if test "$with_tcl" = yes; then
24046 for ac_prog in tclsh tcl
24048 # Extract the first word of "$ac_prog", so it can be a program name with args.
24049 set dummy $ac_prog; ac_word=$2
24050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24052 if test "${ac_cv_path_TCLSH+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24057 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24061 for as_dir in $PATH
24064 test -z "$as_dir" && as_dir=.
24065 for ac_exec_ext in '' $ac_executable_extensions; do
24066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24067 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24078 TCLSH=$ac_cv_path_TCLSH
24079 if test -n "$TCLSH"; then
24080 { echo "$as_me:$LINENO: result: $TCLSH" >&5
24081 echo "${ECHO_T}$TCLSH" >&6; }
24083 { echo "$as_me:$LINENO: result: no" >&5
24084 echo "${ECHO_T}no" >&6; }
24088 test -n "$TCLSH" && break
24091 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24092 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
24093 # Let user override test
24094 if test -z "$TCL_CONFIG_SH"; then
24095 pgac_test_dirs="$with_tclconfig"
24097 set X $pgac_test_dirs; shift
24098 if test $# -eq 0; then
24099 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24100 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24101 { (exit 1); exit 1; }; }
24102 set X `echo 'puts $auto_path' | $TCLSH`; shift
24106 if test -r "$pgac_dir/tclConfig.sh"; then
24107 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24113 if test -z "$TCL_CONFIG_SH"; then
24114 { echo "$as_me:$LINENO: result: no" >&5
24115 echo "${ECHO_T}no" >&6; }
24116 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24117 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24118 { (exit 1); exit 1; }; }
24120 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24121 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
24127 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24128 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24129 eval TCL_LIBS=\"$TCL_LIBS\"
24130 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24131 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24133 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24134 ac_save_CPPFLAGS=$CPPFLAGS
24135 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24136 if test "${ac_cv_header_tcl_h+set}" = set; then
24137 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24138 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24139 if test "${ac_cv_header_tcl_h+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24143 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24145 # Is the header compilable?
24146 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
24147 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
24148 cat >conftest.$ac_ext <<_ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h. */
24154 $ac_includes_default
24157 rm -f conftest.$ac_objext
24158 if { (ac_try="$ac_compile"
24159 case "(($ac_try" in
24160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24161 *) ac_try_echo=$ac_try;;
24163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24164 (eval "$ac_compile") 2>conftest.er1
24166 grep -v '^ *+' conftest.er1 >conftest.err
24168 cat conftest.err >&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && {
24171 test -z "$ac_c_werror_flag" ||
24172 test ! -s conftest.err
24173 } && test -s conftest.$ac_objext; then
24174 ac_header_compiler=yes
24176 echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24179 ac_header_compiler=no
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24184 echo "${ECHO_T}$ac_header_compiler" >&6; }
24186 # Is the header present?
24187 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
24188 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24197 if { (ac_try="$ac_cpp conftest.$ac_ext"
24198 case "(($ac_try" in
24199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200 *) ac_try_echo=$ac_try;;
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24205 grep -v '^ *+' conftest.er1 >conftest.err
24207 cat conftest.err >&5
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); } >/dev/null && {
24210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24211 test ! -s conftest.err
24213 ac_header_preproc=yes
24215 echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24218 ac_header_preproc=no
24221 rm -f conftest.err conftest.$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24223 echo "${ECHO_T}$ac_header_preproc" >&6; }
24225 # So? What about this header?
24226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24228 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24229 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24231 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24232 ac_header_preproc=yes
24235 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24236 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
24238 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24240 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
24242 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24244 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24245 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24246 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24248 ## ---------------------------------------- ##
24249 ## Report this to pgsql-bugs@postgresql.org ##
24250 ## ---------------------------------------- ##
24252 ) | sed "s/^/$as_me: WARNING: /" >&2
24255 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24256 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24257 if test "${ac_cv_header_tcl_h+set}" = set; then
24258 echo $ECHO_N "(cached) $ECHO_C" >&6
24260 ac_cv_header_tcl_h=$ac_header_preproc
24262 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24263 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24266 if test $ac_cv_header_tcl_h = yes; then
24269 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24270 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24271 { (exit 1); exit 1; }; }
24275 CPPFLAGS=$ac_save_CPPFLAGS
24279 # Check for DocBook and tools
24281 for ac_prog in onsgmls nsgmls
24283 # Extract the first word of "$ac_prog", so it can be a program name with args.
24284 set dummy $ac_prog; ac_word=$2
24285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24287 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 if test -n "$NSGMLS"; then
24291 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24294 for as_dir in $PATH
24297 test -z "$as_dir" && as_dir=.
24298 for ac_exec_ext in '' $ac_executable_extensions; do
24299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24300 ac_cv_prog_NSGMLS="$ac_prog"
24301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24310 NSGMLS=$ac_cv_prog_NSGMLS
24311 if test -n "$NSGMLS"; then
24312 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
24313 echo "${ECHO_T}$NSGMLS" >&6; }
24315 { echo "$as_me:$LINENO: result: no" >&5
24316 echo "${ECHO_T}no" >&6; }
24320 test -n "$NSGMLS" && break
24323 for ac_prog in openjade jade
24325 # Extract the first word of "$ac_prog", so it can be a program name with args.
24326 set dummy $ac_prog; ac_word=$2
24327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24329 if test "${ac_cv_prog_JADE+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 if test -n "$JADE"; then
24333 ac_cv_prog_JADE="$JADE" # Let the user override the test.
24335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24336 for as_dir in $PATH
24339 test -z "$as_dir" && as_dir=.
24340 for ac_exec_ext in '' $ac_executable_extensions; do
24341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24342 ac_cv_prog_JADE="$ac_prog"
24343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24352 JADE=$ac_cv_prog_JADE
24353 if test -n "$JADE"; then
24354 { echo "$as_me:$LINENO: result: $JADE" >&5
24355 echo "${ECHO_T}$JADE" >&6; }
24357 { echo "$as_me:$LINENO: result: no" >&5
24358 echo "${ECHO_T}no" >&6; }
24362 test -n "$JADE" && break
24366 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24367 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
24368 if test "${pgac_cv_check_docbook+set}" = set; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 cat >conftest.sgml <<EOF
24372 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24374 <title>test</title>
24376 <title>random</title>
24378 <title>testsect</title>
24385 pgac_cv_check_docbook=no
24387 if test -n "$NSGMLS"; then
24388 $NSGMLS -s conftest.sgml 1>&5 2>&1
24389 if test $? -eq 0; then
24390 pgac_cv_check_docbook=yes
24393 rm -f conftest.sgml
24395 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24396 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
24398 have_docbook=$pgac_cv_check_docbook
24401 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24402 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
24403 if test "${pgac_cv_path_stylesheets+set}" = set; then
24404 echo $ECHO_N "(cached) $ECHO_C" >&6
24406 if test -n "$DOCBOOKSTYLE"; then
24407 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
24409 for pgac_prefix in /usr /usr/local /opt; do
24410 for pgac_infix in share lib; do
24411 for pgac_postfix in \
24412 sgml/stylesheets/nwalsh-modular \
24413 sgml/stylesheets/docbook \
24414 sgml/stylesheets/dsssl/docbook \
24415 sgml/docbook-dsssl \
24416 sgml/docbook/dsssl/modular \
24417 sgml/docbook/stylesheet/dsssl/modular \
24418 sgml/docbook/dsssl-stylesheets
24420 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
24421 if test -r "$pgac_candidate/html/docbook.dsl" \
24422 && test -r "$pgac_candidate/print/docbook.dsl"
24424 pgac_cv_path_stylesheets=$pgac_candidate
24433 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
24435 if test -n "$DOCBOOKSTYLE"; then
24436 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24437 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
24439 { echo "$as_me:$LINENO: result: no" >&5
24440 echo "${ECHO_T}no" >&6; }
24442 if test -n "$DOCBOOKSTYLE"; then
24443 for ac_prog in collateindex.pl
24445 # Extract the first word of "$ac_prog", so it can be a program name with args.
24446 set dummy $ac_prog; ac_word=$2
24447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24449 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 case $COLLATEINDEX in
24454 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24458 for as_dir in $DOCBOOKSTYLE/bin $PATH
24461 test -z "$as_dir" && as_dir=.
24462 for ac_exec_ext in '' $ac_executable_extensions; do
24463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24464 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24475 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24476 if test -n "$COLLATEINDEX"; then
24477 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24478 echo "${ECHO_T}$COLLATEINDEX" >&6; }
24480 { echo "$as_me:$LINENO: result: no" >&5
24481 echo "${ECHO_T}no" >&6; }
24485 test -n "$COLLATEINDEX" && break
24489 for ac_prog in collateindex.pl
24491 # Extract the first word of "$ac_prog", so it can be a program name with args.
24492 set dummy $ac_prog; ac_word=$2
24493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24495 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 case $COLLATEINDEX in
24500 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24504 for as_dir in $PATH
24507 test -z "$as_dir" && as_dir=.
24508 for ac_exec_ext in '' $ac_executable_extensions; do
24509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24510 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24521 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24522 if test -n "$COLLATEINDEX"; then
24523 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24524 echo "${ECHO_T}$COLLATEINDEX" >&6; }
24526 { echo "$as_me:$LINENO: result: no" >&5
24527 echo "${ECHO_T}no" >&6; }
24531 test -n "$COLLATEINDEX" && break
24535 for ac_prog in sgmlspl
24537 # Extract the first word of "$ac_prog", so it can be a program name with args.
24538 set dummy $ac_prog; ac_word=$2
24539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24541 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 if test -n "$SGMLSPL"; then
24545 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
24547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24548 for as_dir in $PATH
24551 test -z "$as_dir" && as_dir=.
24552 for ac_exec_ext in '' $ac_executable_extensions; do
24553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24554 ac_cv_prog_SGMLSPL="$ac_prog"
24555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24564 SGMLSPL=$ac_cv_prog_SGMLSPL
24565 if test -n "$SGMLSPL"; then
24566 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
24567 echo "${ECHO_T}$SGMLSPL" >&6; }
24569 { echo "$as_me:$LINENO: result: no" >&5
24570 echo "${ECHO_T}no" >&6; }
24574 test -n "$SGMLSPL" && break
24580 # We have to run the thread test near the end so we have all our symbols
24581 # defined. Cross compiling throws a warning.
24583 if test "$enable_thread_safety_force" = yes; then
24584 if test "$PORTNAME" != "win32"
24586 { echo "$as_me:$LINENO: WARNING:
24587 *** Skipping thread test program. --enable-thread-safety-force was used.
24588 *** Run the program in src/test/thread on the your machine and add proper
24589 *** locking function calls to your applications to guarantee thread safety.
24591 echo "$as_me: WARNING:
24592 *** Skipping thread test program. --enable-thread-safety-force was used.
24593 *** Run the program in src/test/thread on the your machine and add proper
24594 *** locking function calls to your applications to guarantee thread safety.
24597 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24598 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24600 elif test "$enable_thread_safety" = yes; then
24601 if test "$PORTNAME" != "win32"
24603 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
24604 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
24608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
24609 LIBS="$LIBS $PTHREAD_LIBS"
24610 if test "$cross_compiling" = yes; then
24611 { echo "$as_me:$LINENO: result: maybe" >&5
24612 echo "${ECHO_T}maybe" >&6; }
24613 { echo "$as_me:$LINENO: WARNING:
24614 *** Skipping thread test program because of cross-compile build.
24615 *** Run the program in src/test/thread on the target machine.
24617 echo "$as_me: WARNING:
24618 *** Skipping thread test program because of cross-compile build.
24619 *** Run the program in src/test/thread on the target machine.
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 #include "$srcdir/src/test/thread/thread_test.c"
24630 rm -f conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24641 { (case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_try") 2>&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; }; then
24650 { echo "$as_me:$LINENO: result: yes" >&5
24651 echo "${ECHO_T}yes" >&6; }
24653 echo "$as_me: program exited with status $ac_status" >&5
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24657 ( exit $ac_status )
24658 { echo "$as_me:$LINENO: result: no" >&5
24659 echo "${ECHO_T}no" >&6; }
24660 { { echo "$as_me:$LINENO: error: thread test program failed
24661 This platform is not thread-safe. Check the file 'config.log'for the
24664 You can use the configure option --enable-thread-safety-force to force
24665 threads to be enabled. But you must then run the program in
24666 src/test/thread and add locking function calls to your applications to
24667 guarantee thread safety." >&5
24668 echo "$as_me: error: thread test program failed
24669 This platform is not thread-safe. Check the file 'config.log'for the
24672 You can use the configure option --enable-thread-safety-force to force
24673 threads to be enabled. But you must then run the program in
24674 src/test/thread and add locking function calls to your applications to
24675 guarantee thread safety." >&2;}
24676 { (exit 1); exit 1; }; }
24678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24685 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24686 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24690 # prepare build tree if outside source tree
24691 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
24692 # Note 2: /bin/pwd might be better than shell's built-in at getting
24693 # a symlink-free name.
24694 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
24698 if test "$no_create" != yes; then
24699 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
24700 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
24701 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
24702 || { { echo "$as_me:$LINENO: error: failed" >&5
24703 echo "$as_me: error: failed" >&2;}
24704 { (exit 1); exit 1; }; }
24705 { echo "$as_me:$LINENO: result: done" >&5
24706 echo "${ECHO_T}done" >&6; }
24712 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
24715 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}"
24718 if test "$PORTNAME" = "win32"; then
24719 ac_config_commands="$ac_config_commands check_win32_symlinks"
24723 ac_config_headers="$ac_config_headers src/include/pg_config.h"
24726 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
24729 cat >confcache <<\_ACEOF
24730 # This file is a shell script that caches the results of configure
24731 # tests run on this system so they can be shared between configure
24732 # scripts and configure runs, see configure's option --config-cache.
24733 # It is not useful on other systems. If it contains results you don't
24734 # want to keep, you may remove or edit it.
24736 # config.status only pays attention to the cache file if you give it
24737 # the --recheck option to rerun configure.
24739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24741 # following values.
24745 # The following way of writing the cache mishandles newlines in values,
24746 # but we know of no workaround that is simple, portable, and efficient.
24747 # So, we kill variables containing newlines.
24748 # Ultrix sh set writes to stderr and can't be redirected directly,
24749 # and sets the high bit in the cache file unless we assign to the vars.
24751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24752 eval ac_val=\$$ac_var
24756 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24757 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24760 _ | IFS | as_nl) ;; #(
24761 *) $as_unset $ac_var ;;
24767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24768 *${as_nl}ac_space=\ *)
24769 # `set' does not quote correctly, so add quotes (double-quote
24770 # substitution turns \\\\ into \\, and sed turns \\ into \).
24773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24776 # `set' quotes correctly as required by POSIX, so do not add quotes.
24777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24791 if test -w "$cache_file"; then
24792 test "x$cache_file" != "x/dev/null" &&
24793 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24794 echo "$as_me: updating cache $cache_file" >&6;}
24795 cat confcache >$cache_file
24797 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24798 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24804 # Let make expand exec_prefix.
24805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24807 DEFS=-DHAVE_CONFIG_H
24811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24812 # 1. Remove the extension, and $U if already installed.
24813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24814 ac_i=`echo "$ac_i" | sed "$ac_script"`
24815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24816 # will be set to the directory where LIBOBJS objects are built.
24817 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24818 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24820 LIBOBJS=$ac_libobjs
24822 LTLIBOBJS=$ac_ltlibobjs
24826 : ${CONFIG_STATUS=./config.status}
24827 ac_clean_files_save=$ac_clean_files
24828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24831 cat >$CONFIG_STATUS <<_ACEOF
24833 # Generated by $as_me.
24834 # Run this file to recreate the current configuration.
24835 # Compiler output produced by configure, useful for debugging
24836 # configure, is in config.log if it exists.
24839 ac_cs_recheck=false
24841 SHELL=\${CONFIG_SHELL-$SHELL}
24844 cat >>$CONFIG_STATUS <<\_ACEOF
24845 ## --------------------- ##
24846 ## M4sh Initialization. ##
24847 ## --------------------- ##
24849 # Be more Bourne compatible
24850 DUALCASE=1; export DUALCASE # for MKS sh
24851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24854 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24855 # is contrary to our usage. Disable this feature.
24856 alias -g '${1+"$@"}'='"$@"'
24857 setopt NO_GLOB_SUBST
24859 case `(set -o) 2>/dev/null` in
24860 *posix*) set -o posix ;;
24869 # Avoid depending upon Character Ranges.
24870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24873 as_cr_digits='0123456789'
24874 as_cr_alnum=$as_cr_Letters$as_cr_digits
24876 # The user is always right.
24877 if test "${PATH_SEPARATOR+set}" != set; then
24878 echo "#! /bin/sh" >conf$$.sh
24879 echo "exit 0" >>conf$$.sh
24881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24889 # Support unset when possible.
24890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24898 # We need space, tab and new line, in precisely that order. Quoting is
24899 # there to prevent editors from complaining about space-tab.
24900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24901 # splitting by setting IFS to empty value.)
24906 # Find who we are. Look in the path if we contain no directory separator.
24908 *[\\/]* ) as_myself=$0 ;;
24909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24910 for as_dir in $PATH
24913 test -z "$as_dir" && as_dir=.
24914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24920 # We did not find ourselves, most probably we were run as `sh COMMAND'
24921 # in which case we are not to be found in the path.
24922 if test "x$as_myself" = x; then
24925 if test ! -f "$as_myself"; then
24926 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24927 { (exit 1); exit 1; }
24930 # Work around bugs in pre-3.0 UWIN ksh.
24931 for as_var in ENV MAIL MAILPATH
24932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24940 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24941 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24942 LC_TELEPHONE LC_TIME
24944 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24945 eval $as_var=C; export $as_var
24947 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24951 # Required to use basename.
24952 if expr a : '\(a\)' >/dev/null 2>&1 &&
24953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24960 as_basename=basename
24966 # Name of the executable.
24967 as_me=`$as_basename -- "$0" ||
24968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24969 X"$0" : 'X\(//\)$' \| \
24970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24972 sed '/^.*\/\([^/][^/]*\)\/*$/{
24991 as_lineno_1=$LINENO
24992 as_lineno_2=$LINENO
24993 test "x$as_lineno_1" != "x$as_lineno_2" &&
24994 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24997 # uniformly replaced by the line number. The first 'sed' inserts a
24998 # line-number line after each line using $LINENO; the second 'sed'
24999 # does the real work. The second script uses 'N' to pair each
25000 # line-number line with the line containing $LINENO, and appends
25001 # trailing '-' during substitution so that $LINENO is not a special
25002 # case at line end.
25003 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25004 # scripts with optimization help from Paolo Bonzini. Blame Lee
25005 # E. McMahon (1931-1989) for sed's syntax. :-)
25017 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25020 ' >$as_me.lineno &&
25021 chmod +x "$as_me.lineno" ||
25022 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25023 { (exit 1); exit 1; }; }
25025 # Don't try to exec as it changes $[0], causing all sort of problems
25026 # (the dirname of $[0] is not the place where we might find the
25027 # original and so on. Autoconf is especially sensitive to this).
25028 . "./$as_me.lineno"
25029 # Exit status is that of the last command.
25034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25040 ECHO_C= ECHO_N= ECHO_T=
25041 case `echo -n x` in
25043 case `echo 'x\c'` in
25044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25051 if expr a : '\(a\)' >/dev/null 2>&1 &&
25052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25058 rm -f conf$$ conf$$.exe conf$$.file
25059 if test -d conf$$.dir; then
25060 rm -f conf$$.dir/conf$$.file
25066 if ln -s conf$$.file conf$$ 2>/dev/null; then
25068 # ... but there are two gotchas:
25069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25071 # In both cases, we have to default to `cp -p'.
25072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25074 elif ln conf$$.file conf$$ 2>/dev/null; then
25079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25080 rmdir conf$$.dir 2>/dev/null
25082 if mkdir -p . 2>/dev/null; then
25085 test -d ./-p && rmdir ./-p
25089 if test -x / >/dev/null 2>&1; then
25090 as_test_x='test -x'
25092 if ls -dL / >/dev/null 2>&1; then
25099 if test -d "$1"; then
25105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25106 ???[sx]*):;;*)false;;esac;fi
25110 as_executable_p=$as_test_x
25112 # Sed expression to map a string onto a valid CPP name.
25113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25115 # Sed expression to map a string onto a valid variable name.
25116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25121 # Save the log message, to keep $[0] and so on meaningful, and to
25122 # report actual input values of CONFIG_FILES etc. instead of their
25123 # values after options handling.
25125 This file was extended by PostgreSQL $as_me 8.4devel, which was
25126 generated by GNU Autoconf 2.61. Invocation command line was
25128 CONFIG_FILES = $CONFIG_FILES
25129 CONFIG_HEADERS = $CONFIG_HEADERS
25130 CONFIG_LINKS = $CONFIG_LINKS
25131 CONFIG_COMMANDS = $CONFIG_COMMANDS
25134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25139 cat >>$CONFIG_STATUS <<_ACEOF
25140 # Files that config.status was made for.
25141 config_files="$ac_config_files"
25142 config_headers="$ac_config_headers"
25143 config_links="$ac_config_links"
25144 config_commands="$ac_config_commands"
25148 cat >>$CONFIG_STATUS <<\_ACEOF
25150 \`$as_me' instantiates files from templates according to the
25151 current configuration.
25153 Usage: $0 [OPTIONS] [FILE]...
25155 -h, --help print this help, then exit
25156 -V, --version print version number and configuration settings, then exit
25157 -q, --quiet do not print progress messages
25158 -d, --debug don't remove temporary files
25159 --recheck update $as_me by reconfiguring in the same conditions
25160 --file=FILE[:TEMPLATE]
25161 instantiate the configuration file FILE
25162 --header=FILE[:TEMPLATE]
25163 instantiate the configuration header FILE
25165 Configuration files:
25168 Configuration headers:
25171 Configuration links:
25174 Configuration commands:
25177 Report bugs to <bug-autoconf@gnu.org>."
25180 cat >>$CONFIG_STATUS <<_ACEOF
25182 PostgreSQL config.status 8.4devel
25183 configured by $0, generated by GNU Autoconf 2.61,
25184 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25186 Copyright (C) 2006 Free Software Foundation, Inc.
25187 This config.status script is free software; the Free Software Foundation
25188 gives unlimited permission to copy, distribute and modify it."
25194 cat >>$CONFIG_STATUS <<\_ACEOF
25195 # If no file are specified by the user, then we need to provide default
25196 # value. By we need to know if files were specified by the user.
25202 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25203 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25214 # Handling of the options.
25215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25218 echo "$ac_cs_version"; exit ;;
25219 --debug | --debu | --deb | --de | --d | -d )
25221 --file | --fil | --fi | --f )
25223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25224 ac_need_defaults=false;;
25225 --header | --heade | --head | --hea )
25227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25228 ac_need_defaults=false;;
25230 # Conflict between --help and --header
25231 { echo "$as_me: error: ambiguous option: $1
25232 Try \`$0 --help' for more information." >&2
25233 { (exit 1); exit 1; }; };;
25234 --help | --hel | -h )
25235 echo "$ac_cs_usage"; exit ;;
25236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25240 # This is an error.
25241 -*) { echo "$as_me: error: unrecognized option: $1
25242 Try \`$0 --help' for more information." >&2
25243 { (exit 1); exit 1; }; } ;;
25245 *) ac_config_targets="$ac_config_targets $1"
25246 ac_need_defaults=false ;;
25252 ac_configure_extra_args=
25254 if $ac_cs_silent; then
25256 ac_configure_extra_args="$ac_configure_extra_args --silent"
25260 cat >>$CONFIG_STATUS <<_ACEOF
25261 if \$ac_cs_recheck; then
25262 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25263 CONFIG_SHELL=$SHELL
25264 export CONFIG_SHELL
25265 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25269 cat >>$CONFIG_STATUS <<\_ACEOF
25273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25274 ## Running $as_me. ##
25280 cat >>$CONFIG_STATUS <<_ACEOF
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25285 # Handling of arguments.
25286 for ac_config_target in $ac_config_targets
25288 case $ac_config_target in
25289 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25290 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25291 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25292 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25293 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25294 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25295 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25296 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25297 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25298 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25299 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25300 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25304 { (exit 1); exit 1; }; };;
25309 # If the user did not use the arguments to specify the items to instantiate,
25310 # then the envvar interface is used. Set only those that are not.
25311 # We use the long form for the default assignment because of an extremely
25312 # bizarre bug on SunOS 4.1.3.
25313 if $ac_need_defaults; then
25314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25316 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25320 # Have a temporary directory for convenience. Make it in the build tree
25321 # simply because there is no reason against having it here, and in addition,
25322 # creating and moving files from /tmp can sometimes cause problems.
25323 # Hook for its removal unless debugging.
25324 # Note that there is a small window in which the directory will not be cleaned:
25325 # after its creation but before its name has been assigned to `$tmp'.
25329 trap 'exit_status=$?
25330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25332 trap '{ (exit 1); exit 1; }' 1 2 13 15
25334 # Create a (secure) tmp directory for tmp files.
25337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25338 test -n "$tmp" && test -d "$tmp"
25341 tmp=./conf$$-$RANDOM
25342 (umask 077 && mkdir "$tmp")
25345 echo "$me: cannot create a temporary directory in ." >&2
25346 { (exit 1); exit 1; }
25350 # Set up the sed scripts for CONFIG_FILES section.
25353 # No need to generate the scripts if there are no CONFIG_FILES.
25354 # This happens for instance when ./config.status config.h
25355 if test -n "$CONFIG_FILES"; then
25362 for ac_last_try in false false false false false :; do
25363 cat >conf$$subs.sed <<_ACEOF
25364 SHELL!$SHELL$ac_delim
25365 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25366 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25367 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25368 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25369 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25370 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25371 exec_prefix!$exec_prefix$ac_delim
25372 prefix!$prefix$ac_delim
25373 program_transform_name!$program_transform_name$ac_delim
25374 bindir!$bindir$ac_delim
25375 sbindir!$sbindir$ac_delim
25376 libexecdir!$libexecdir$ac_delim
25377 datarootdir!$datarootdir$ac_delim
25378 datadir!$datadir$ac_delim
25379 sysconfdir!$sysconfdir$ac_delim
25380 sharedstatedir!$sharedstatedir$ac_delim
25381 localstatedir!$localstatedir$ac_delim
25382 includedir!$includedir$ac_delim
25383 oldincludedir!$oldincludedir$ac_delim
25384 docdir!$docdir$ac_delim
25385 infodir!$infodir$ac_delim
25386 htmldir!$htmldir$ac_delim
25387 dvidir!$dvidir$ac_delim
25388 pdfdir!$pdfdir$ac_delim
25389 psdir!$psdir$ac_delim
25390 libdir!$libdir$ac_delim
25391 localedir!$localedir$ac_delim
25392 mandir!$mandir$ac_delim
25393 DEFS!$DEFS$ac_delim
25394 ECHO_C!$ECHO_C$ac_delim
25395 ECHO_N!$ECHO_N$ac_delim
25396 ECHO_T!$ECHO_T$ac_delim
25397 LIBS!$LIBS$ac_delim
25398 build_alias!$build_alias$ac_delim
25399 host_alias!$host_alias$ac_delim
25400 target_alias!$target_alias$ac_delim
25401 configure_args!$configure_args$ac_delim
25402 build!$build$ac_delim
25403 build_cpu!$build_cpu$ac_delim
25404 build_vendor!$build_vendor$ac_delim
25405 build_os!$build_os$ac_delim
25406 host!$host$ac_delim
25407 host_cpu!$host_cpu$ac_delim
25408 host_vendor!$host_vendor$ac_delim
25409 host_os!$host_os$ac_delim
25410 PORTNAME!$PORTNAME$ac_delim
25411 enable_nls!$enable_nls$ac_delim
25412 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
25413 default_port!$default_port$ac_delim
25414 enable_shared!$enable_shared$ac_delim
25415 enable_rpath!$enable_rpath$ac_delim
25416 enable_debug!$enable_debug$ac_delim
25417 enable_profiling!$enable_profiling$ac_delim
25418 DTRACE!$DTRACE$ac_delim
25419 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
25420 enable_dtrace!$enable_dtrace$ac_delim
25422 CFLAGS!$CFLAGS$ac_delim
25423 LDFLAGS!$LDFLAGS$ac_delim
25424 CPPFLAGS!$CPPFLAGS$ac_delim
25425 ac_ct_CC!$ac_ct_CC$ac_delim
25426 EXEEXT!$EXEEXT$ac_delim
25427 OBJEXT!$OBJEXT$ac_delim
25431 autodepend!$autodepend$ac_delim
25432 INCLUDES!$INCLUDES$ac_delim
25433 enable_thread_safety!$enable_thread_safety$ac_delim
25434 with_tcl!$with_tcl$ac_delim
25435 with_perl!$with_perl$ac_delim
25436 with_python!$with_python$ac_delim
25437 with_gssapi!$with_gssapi$ac_delim
25438 with_krb5!$with_krb5$ac_delim
25439 krb_srvtab!$krb_srvtab$ac_delim
25440 with_pam!$with_pam$ac_delim
25441 with_ldap!$with_ldap$ac_delim
25442 with_bonjour!$with_bonjour$ac_delim
25443 with_openssl!$with_openssl$ac_delim
25444 with_ossp_uuid!$with_ossp_uuid$ac_delim
25445 XML2_CONFIG!$XML2_CONFIG$ac_delim
25446 with_libxml!$with_libxml$ac_delim
25447 with_libxslt!$with_libxslt$ac_delim
25448 with_system_tzdata!$with_system_tzdata$ac_delim
25449 with_zlib!$with_zlib$ac_delim
25450 GREP!$GREP$ac_delim
25451 EGREP!$EGREP$ac_delim
25452 ELF_SYS!$ELF_SYS$ac_delim
25453 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
25455 with_gnu_ld!$with_gnu_ld$ac_delim
25456 ld_R_works!$ld_R_works$ac_delim
25457 RANLIB!$RANLIB$ac_delim
25458 STRIP!$STRIP$ac_delim
25459 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
25460 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
25463 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25465 elif $ac_last_try; then
25466 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25467 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25468 { (exit 1); exit 1; }; }
25470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25474 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25475 if test -n "$ac_eof"; then
25476 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25477 ac_eof=`expr $ac_eof + 1`
25480 cat >>$CONFIG_STATUS <<_ACEOF
25481 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25485 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25486 s/^/s,@/; s/!/@,|#_!!_#|/
25489 s/'"$ac_delim"'$/,g/; t
25491 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25492 ' >>$CONFIG_STATUS <conf$$subs.sed
25493 rm -f conf$$subs.sed
25494 cat >>$CONFIG_STATUS <<_ACEOF
25500 for ac_last_try in false false false false false :; do
25501 cat >conf$$subs.sed <<_ACEOF
25503 LN_S!$LN_S$ac_delim
25505 YACC!$YACC$ac_delim
25506 YFLAGS!$YFLAGS$ac_delim
25507 FLEX!$FLEX$ac_delim
25508 FLEXFLAGS!$FLEXFLAGS$ac_delim
25509 PERL!$PERL$ac_delim
25510 perl_archlibexp!$perl_archlibexp$ac_delim
25511 perl_privlibexp!$perl_privlibexp$ac_delim
25512 perl_useshrplib!$perl_useshrplib$ac_delim
25513 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
25514 PYTHON!$PYTHON$ac_delim
25515 python_version!$python_version$ac_delim
25516 python_configdir!$python_configdir$ac_delim
25517 python_includespec!$python_includespec$ac_delim
25518 python_libdir!$python_libdir$ac_delim
25519 python_libspec!$python_libspec$ac_delim
25520 python_additional_libs!$python_additional_libs$ac_delim
25521 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
25522 HAVE_IPV6!$HAVE_IPV6$ac_delim
25523 LIBOBJS!$LIBOBJS$ac_delim
25524 acx_pthread_config!$acx_pthread_config$ac_delim
25525 PTHREAD_CC!$PTHREAD_CC$ac_delim
25526 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25527 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25528 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
25529 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
25530 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
25531 MSGFMT!$MSGFMT$ac_delim
25532 MSGMERGE!$MSGMERGE$ac_delim
25533 XGETTEXT!$XGETTEXT$ac_delim
25534 TCLSH!$TCLSH$ac_delim
25535 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
25536 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
25537 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
25538 TCL_LIBS!$TCL_LIBS$ac_delim
25539 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
25540 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
25541 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
25542 NSGMLS!$NSGMLS$ac_delim
25543 JADE!$JADE$ac_delim
25544 have_docbook!$have_docbook$ac_delim
25545 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
25546 COLLATEINDEX!$COLLATEINDEX$ac_delim
25547 SGMLSPL!$SGMLSPL$ac_delim
25548 vpath_build!$vpath_build$ac_delim
25549 LTLIBOBJS!$LTLIBOBJS$ac_delim
25552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
25554 elif $ac_last_try; then
25555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25556 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25557 { (exit 1); exit 1; }; }
25559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25563 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25564 if test -n "$ac_eof"; then
25565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25566 ac_eof=`expr $ac_eof + 1`
25569 cat >>$CONFIG_STATUS <<_ACEOF
25570 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25574 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25575 s/^/s,@/; s/!/@,|#_!!_#|/
25578 s/'"$ac_delim"'$/,g/; t
25580 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25581 ' >>$CONFIG_STATUS <conf$$subs.sed
25582 rm -f conf$$subs.sed
25583 cat >>$CONFIG_STATUS <<_ACEOF
25590 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25591 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25592 # trailing colons and then remove the whole line if VPATH becomes empty
25593 # (actually we leave an empty line to preserve line numbers).
25594 if test "x$srcdir" = x.; then
25595 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25596 s/:*\$(srcdir):*/:/
25597 s/:*\${srcdir}:*/:/
25599 s/^\([^=]*=[ ]*\):*/\1/
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606 fi # test -n "$CONFIG_FILES"
25609 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
25612 :[FHLC]) ac_mode=$ac_tag; continue;;
25614 case $ac_mode$ac_tag in
25616 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25617 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25618 { (exit 1); exit 1; }; };;
25619 :[FH]-) ac_tag=-:-;;
25620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25637 -) ac_f="$tmp/stdin";;
25638 *) # Look for the file first in the build tree, then in the source tree
25639 # (if the path is not absolute). The absolute path cannot be DOS-style,
25640 # because $ac_f cannot contain `:'.
25644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25646 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25647 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25648 { (exit 1); exit 1; }; };;
25650 ac_file_inputs="$ac_file_inputs $ac_f"
25653 # Let's still pretend it is `configure' which instantiates (i.e., don't
25654 # use $as_me), people would be surprised to read:
25655 # /* config.h. Generated by config.status. */
25656 configure_input="Generated from "`IFS=:
25657 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25658 if test x"$ac_file" != x-; then
25659 configure_input="$ac_file. $configure_input"
25660 { echo "$as_me:$LINENO: creating $ac_file" >&5
25661 echo "$as_me: creating $ac_file" >&6;}
25665 *:-:* | *:-) cat >"$tmp/stdin";;
25670 ac_dir=`$as_dirname -- "$ac_file" ||
25671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25672 X"$ac_file" : 'X\(//\)[^/]' \| \
25673 X"$ac_file" : 'X\(//\)$' \| \
25674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25680 /^X\(\/\/\)[^/].*/{
25695 -*) as_dir=./$as_dir;;
25697 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25701 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25702 *) as_qdir=$as_dir;;
25704 as_dirs="'$as_qdir' $as_dirs"
25705 as_dir=`$as_dirname -- "$as_dir" ||
25706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25707 X"$as_dir" : 'X\(//\)[^/]' \| \
25708 X"$as_dir" : 'X\(//\)$' \| \
25709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25715 /^X\(\/\/\)[^/].*/{
25728 test -d "$as_dir" && break
25730 test -z "$as_dirs" || eval "mkdir $as_dirs"
25731 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25732 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25733 { (exit 1); exit 1; }; }; }
25737 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25740 # A ".." for each directory in $ac_dir_suffix.
25741 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25742 case $ac_top_builddir_sub in
25743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25747 ac_abs_top_builddir=$ac_pwd
25748 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25749 # for backward compatibility:
25750 ac_top_builddir=$ac_top_build_prefix
25753 .) # We are building in place.
25755 ac_top_srcdir=$ac_top_builddir_sub
25756 ac_abs_top_srcdir=$ac_pwd ;;
25757 [\\/]* | ?:[\\/]* ) # Absolute name.
25758 ac_srcdir=$srcdir$ac_dir_suffix;
25759 ac_top_srcdir=$srcdir
25760 ac_abs_top_srcdir=$srcdir ;;
25761 *) # Relative name.
25762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25763 ac_top_srcdir=$ac_top_build_prefix$srcdir
25764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25766 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25777 cat >>$CONFIG_STATUS <<\_ACEOF
25778 # If the template does not know about datarootdir, expand it.
25779 # FIXME: This hack should be removed a few years after 2.60.
25780 ac_datarootdir_hack=; ac_datarootdir_seen=
25782 case `sed -n '/datarootdir/ {
25791 ' $ac_file_inputs` in
25792 *datarootdir*) ac_datarootdir_seen=yes;;
25793 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25794 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25795 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25797 cat >>$CONFIG_STATUS <<_ACEOF
25798 ac_datarootdir_hack='
25799 s&@datadir@&$datadir&g
25800 s&@docdir@&$docdir&g
25801 s&@infodir@&$infodir&g
25802 s&@localedir@&$localedir&g
25803 s&@mandir@&$mandir&g
25804 s&\\\${datarootdir}&$datarootdir&g' ;;
25808 # Neutralize VPATH when `$srcdir' = `.'.
25809 # Shell code in configure.ac might set extrasub.
25810 # FIXME: do we really want to maintain this feature?
25811 cat >>$CONFIG_STATUS <<_ACEOF
25815 cat >>$CONFIG_STATUS <<\_ACEOF
25817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25818 s&@configure_input@&$configure_input&;t t
25819 s&@top_builddir@&$ac_top_builddir_sub&;t t
25820 s&@srcdir@&$ac_srcdir&;t t
25821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25822 s&@top_srcdir@&$ac_top_srcdir&;t t
25823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25824 s&@builddir@&$ac_builddir&;t t
25825 s&@abs_builddir@&$ac_abs_builddir&;t t
25826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25827 $ac_datarootdir_hack
25828 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25831 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25833 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25834 which seems to be undefined. Please make sure it is defined." >&5
25835 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25836 which seems to be undefined. Please make sure it is defined." >&2;}
25840 -) cat "$tmp/out"; rm -f "$tmp/out";;
25841 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25850 # Transform confdefs.h into a sed script `conftest.defines', that
25851 # substitutes the proper values into config.h.in to produce config.h.
25852 rm -f conftest.defines conftest.tail
25853 # First, append a space to every undef/define line, to ease matching.
25854 echo 's/$/ /' >conftest.defines
25855 # Then, protect against being on the right side of a sed subst, or in
25856 # an unquoted here document, in config.status. If some macros were
25857 # called several times there might be several #defines for the same
25858 # symbol, which is useless. But do not sort them, since the last
25859 # AC_DEFINE must be honored.
25860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25861 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25862 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25863 # PARAMS is the parameter list in the macro definition--in most cases, it's
25864 # just an empty string.
25865 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25866 ac_dB='\\)[ (].*,\\1define\\2'
25874 s/^[ ]*#[ ]*define[ ][ ]*//
25879 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25880 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25881 ' >>conftest.defines
25883 # Remove the space that was appended to ease matching.
25884 # Then replace #undef with comments. This is necessary, for
25885 # example, in the case of _POSIX_SOURCE, which is predefined and required
25886 # on some systems where configure will not decide to define it.
25887 # (The regexp can be short, since the line contains either #define or #undef.)
25889 s,^[ #]*u.*,/* & */,' >>conftest.defines
25891 # Break up conftest.defines:
25892 ac_max_sed_lines=50
25894 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25895 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25896 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25898 ac_in='$ac_file_inputs'
25899 ac_out='"$tmp/out1"'
25900 ac_nxt='"$tmp/out2"'
25904 # Write a here document:
25905 cat >>$CONFIG_STATUS <<_ACEOF
25906 # First, check the format of the line:
25907 cat >"\$tmp/defines.sed" <<\\CEOF
25908 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25909 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25913 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25915 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25916 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25917 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25918 grep . conftest.tail >/dev/null || break
25919 rm -f conftest.defines
25920 mv conftest.tail conftest.defines
25922 rm -f conftest.defines conftest.tail
25924 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25925 cat >>$CONFIG_STATUS <<\_ACEOF
25926 if test x"$ac_file" != x-; then
25927 echo "/* $configure_input */" >"$tmp/config.h"
25928 cat "$ac_result" >>"$tmp/config.h"
25929 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25931 echo "$as_me: $ac_file is unchanged" >&6;}
25934 mv "$tmp/config.h" $ac_file
25937 echo "/* $configure_input */"
25947 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
25948 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
25950 if test ! -r "$srcdir/$ac_source"; then
25951 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25952 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25953 { (exit 1); exit 1; }; }
25957 # Try a relative symlink, then a hard link, then a copy.
25959 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25960 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
25962 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
25963 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
25964 cp -p "$srcdir/$ac_source" "$ac_file" ||
25965 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
25966 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
25967 { (exit 1); exit 1; }; }
25969 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25970 echo "$as_me: executing $ac_file commands" >&6;}
25975 case $ac_file$ac_mode in
25976 "check_win32_symlinks":C)
25977 # Links sometimes fail undetected on Mingw -
25978 # so here we detect it and warn the user
25979 for FILE in $CONFIG_LINKS
25981 # test -e works for symlinks in the MinGW console
25982 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
25983 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
25986 "src/include/pg_config.h":H)
25987 # Update timestamp for pg_config.h (see Makefile.global)
25988 echo >src/include/stamp-h
25995 { (exit 0); exit 0; }
25997 chmod +x $CONFIG_STATUS
25998 ac_clean_files=$ac_clean_files_save
26001 # configure is writing to config.log, and then calls config.status.
26002 # config.status does its own redirection, appending to config.log.
26003 # Unfortunately, on DOS this fails, as config.log is still kept open
26004 # by configure, so config.status won't be able to write to it; its
26005 # output is simply discarded. So we exec the FD to /dev/null,
26006 # effectively closing config.log, so it can be properly (re)opened and
26007 # appended to by config.status. When coming back to configure, we
26008 # need to make the FD available again.
26009 if test "$no_create" != yes; then
26011 ac_config_status_args=
26012 test "$silent" = yes &&
26013 ac_config_status_args="$ac_config_status_args --quiet"
26015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26018 # would make configure fail if this is the last instruction.
26019 $ac_cs_success || { (exit 1); exit 1; }
26023 # Warn about unknown options
26024 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26025 for pgac_arg in $pgac_args with_gnu_ld; do
26026 if test "$pgac_var" = "$pgac_arg"; then
26030 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26031 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26032 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}