2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1devel.
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, 2007, 2008 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-2011, 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 # Pre-4.2 versions of Zsh do 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
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
675 python_additional_libs
795 program_transform_name
807 enable_option_checking
812 enable_integer_datetimes
843 with_libedit_preferred
854 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1176 -site=* | --site=* | --sit=*)
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-integer-datetimes
1492 disable 64-bit integer date/time support
1493 --enable-nls[=LANGUAGES]
1494 enable Native Language Support
1495 --disable-shared do not build shared libraries
1496 --disable-rpath do not embed shared library search path in
1498 --disable-spinlocks do not use spinlocks
1499 --enable-debug build with debugging symbols (-g)
1500 --enable-profiling build with profiling enabled
1501 --enable-coverage build with coverage testing instrumentation
1502 --enable-dtrace build with DTrace support
1503 --enable-depend turn on automatic dependency tracking
1504 --enable-cassert enable assertion checks (for debugging)
1505 --disable-thread-safety disable thread-safety in client libraries
1506 --disable-largefile omit support for large files
1507 --disable-float4-byval disable float4 passed by value
1508 --disable-float8-byval disable float8 passed by value
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-template=NAME override operating system template
1514 --with-includes=DIRS look for additional header files in DIRS
1515 --with-libraries=DIRS look for additional libraries in DIRS
1516 --with-libs=DIRS alternative spelling of --with-libraries
1517 --with-pgport=PORTNUM set default port number [5432]
1518 --with-blocksize=BLOCKSIZE
1519 set table block size in kB [8]
1520 --with-segsize=SEGSIZE set table segment size in GB [1]
1521 --with-wal-blocksize=BLOCKSIZE
1522 set WAL block size in kB [8]
1523 --with-wal-segsize=SEGSIZE
1524 set WAL segment size in MB [16]
1525 --with-CC=CMD set compiler (deprecated)
1526 --with-tcl build Tcl modules (PL/Tcl)
1527 --with-tclconfig=DIR tclConfig.sh is in DIR
1528 --with-perl build Perl modules (PL/Perl)
1529 --with-python build Python modules (PL/Python)
1530 --with-gssapi build with GSSAPI support
1531 --with-krb5 build with Kerberos 5 support
1532 --with-krb-srvnam=NAME default service principal name in Kerberos
1534 --with-pam build with PAM support
1535 --with-ldap build with LDAP support
1536 --with-bonjour build with Bonjour support
1537 --with-openssl build with OpenSSL support
1538 --with-selinux build with SELinux support
1539 --without-readline do not use GNU Readline nor BSD Libedit for editing
1540 --with-libedit-preferred
1541 prefer BSD Libedit over GNU Readline
1542 --with-ossp-uuid use OSSP UUID library when building
1544 --with-libxml build with XML support
1545 --with-libxslt use XSLT support when building contrib/xml2
1546 --with-system-tzdata=DIR
1547 use system time zone data in DIR
1548 --without-zlib do not use Zlib
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1560 LDFLAGS_EX extra linker flags for linking executables only
1561 LDFLAGS_SL extra linker flags for linking shared libraries only
1563 location of DocBook stylesheets
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <pgsql-bugs@postgresql.org>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 PostgreSQL configure 9.1devel
1632 generated by GNU Autoconf 2.63
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1639 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by PostgreSQL $as_me 9.1devel, which was
1648 generated by GNU Autoconf 2.63. Invocation command line was
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 $as_echo "PATH: $as_dir"
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_must_keep_next=false
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1719 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 -* ) ac_must_keep_next=true ;;
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767 eval ac_val=\$$ac_var
1771 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1775 _ | IFS | as_nl) ;; #(
1776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 $as_echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 $as_echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 $as_echo "$as_me: caught signal $ac_signal"
1842 $as_echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer an explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 ac_site_file1=$CONFIG_SITE
1889 elif test "x$prefix" != xNONE; then
1890 ac_site_file1=$prefix/share/config.site
1891 ac_site_file2=$prefix/etc/config.site
1893 ac_site_file1=$ac_default_prefix/share/config.site
1894 ac_site_file2=$ac_default_prefix/etc/config.site
1896 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1898 test "x$ac_site_file" = xNONE && continue
1899 if test -r "$ac_site_file"; then
1900 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1901 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1902 sed 's/^/| /' "$ac_site_file" >&5
1907 if test -r "$cache_file"; then
1908 # Some versions of bash will fail to source /dev/null (special
1909 # files actually), so we avoid doing that.
1910 if test -f "$cache_file"; then
1911 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1912 $as_echo "$as_me: loading cache $cache_file" >&6;}
1914 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1915 *) . "./$cache_file";;
1919 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1920 $as_echo "$as_me: creating cache $cache_file" >&6;}
1924 # Check that the precious variables saved in the cache have kept the same
1926 ac_cache_corrupted=false
1927 for ac_var in $ac_precious_vars; do
1928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1929 eval ac_new_set=\$ac_env_${ac_var}_set
1930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1931 eval ac_new_val=\$ac_env_${ac_var}_value
1932 case $ac_old_set,$ac_new_set in
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1943 if test "x$ac_old_val" != "x$ac_new_val"; then
1944 # differences in whitespace do not lead to failure.
1945 ac_old_val_w=`echo x $ac_old_val`
1946 ac_new_val_w=`echo x $ac_new_val`
1947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 ac_cache_corrupted=:
1952 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1953 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1954 eval $ac_var=\$ac_old_val
1956 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1957 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1958 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1959 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1965 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 *) ac_arg=$ac_var=$ac_new_val ;;
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1974 if $ac_cache_corrupted; then
1975 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1977 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1978 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1979 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1980 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1981 { (exit 1); exit 1; }; }
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 for ac_dir in config "$srcdir"/config; do
2021 if test -f "$ac_dir/install-sh"; then
2023 ac_install_sh="$ac_aux_dir/install-sh -c"
2025 elif test -f "$ac_dir/install.sh"; then
2027 ac_install_sh="$ac_aux_dir/install.sh -c"
2029 elif test -f "$ac_dir/shtool"; then
2031 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 if test -z "$ac_aux_dir"; then
2036 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2037 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2038 { (exit 1); exit 1; }; }
2041 # These three variables are undocumented and unsupported,
2042 # and are intended to be withdrawn in a future Autoconf release.
2043 # They can cause serious problems if a builder's source tree is in a directory
2044 # whose full name contains unusual characters.
2045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2051 configure_args=$ac_configure_args
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_VERSION "$PACKAGE_VERSION"
2059 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2062 cat >>confdefs.h <<_ACEOF
2063 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2067 # Make sure we can run config.sub.
2068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2069 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2070 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2071 { (exit 1); exit 1; }; }
2073 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2074 $as_echo_n "checking build system type... " >&6; }
2075 if test "${ac_cv_build+set}" = set; then
2076 $as_echo_n "(cached) " >&6
2078 ac_build_alias=$build_alias
2079 test "x$ac_build_alias" = x &&
2080 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2081 test "x$ac_build_alias" = x &&
2082 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2083 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2084 { (exit 1); exit 1; }; }
2085 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2086 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2087 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2088 { (exit 1); exit 1; }; }
2091 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2092 $as_echo "$ac_cv_build" >&6; }
2093 case $ac_cv_build in
2095 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2096 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2097 { (exit 1); exit 1; }; };;
2100 ac_save_IFS=$IFS; IFS='-'
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2113 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2114 $as_echo_n "checking host system type... " >&6; }
2115 if test "${ac_cv_host+set}" = set; then
2116 $as_echo_n "(cached) " >&6
2118 if test "x$host_alias" = x; then
2119 ac_cv_host=$ac_cv_build
2121 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2122 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2123 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
2128 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2129 $as_echo "$ac_cv_host" >&6; }
2132 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2133 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2134 { (exit 1); exit 1; }; };;
2137 ac_save_IFS=$IFS; IFS='-'
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2152 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2153 $as_echo_n "checking which template to use... " >&6; }
2158 # Check whether --with-template was given.
2159 if test "${with_template+set}" = set; then
2160 withval=$with_template;
2163 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165 { (exit 1); exit 1; }; }
2168 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2169 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2170 { (exit 1); exit 1; }; }
2175 list) echo; ls "$srcdir/src/template"; exit;;
2176 *) if test -f "$srcdir/src/template/$with_template" ; then
2179 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2180 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2181 { (exit 1); exit 1; }; }
2190 # --with-template not given
2193 aix*) template=aix ;;
2194 bsdi*) template=bsdi ;;
2195 cygwin*) template=cygwin ;;
2196 darwin*) template=darwin ;;
2197 dragonfly*) template=netbsd ;;
2198 dgux*) template=dgux ;;
2199 freebsd*) template=freebsd ;;
2200 hpux*) template=hpux ;;
2201 irix*) template=irix ;;
2202 linux*|gnu*|k*bsd*-gnu)
2204 mingw*) template=win32 ;;
2205 netbsd*) template=netbsd ;;
2206 nextstep*) template=nextstep ;;
2207 openbsd*) template=openbsd ;;
2208 osf*) template=osf ;;
2209 sco*) template=sco ;;
2210 solaris*) template=solaris ;;
2211 sunos*) template=sunos4 ;;
2213 case $host_vendor in
2214 univel) template=univel ;;
2216 sysv4*) template=svr4 ;;
2217 sysv5*) template=unixware ;;
2218 ultrix*) template=ultrix4 ;;
2221 if test x"$template" = x"" ; then
2222 { { $as_echo "$as_me:$LINENO: error:
2223 *******************************************************************
2224 PostgreSQL has apparently not been ported to your platform yet.
2225 To try a manual configuration, look into the src/template directory
2226 for a similar platform and use the '--with-template=' option.
2228 Please also contact <pgsql-bugs@postgresql.org> to see about
2229 rectifying this. Include the above 'checking host system type...'
2231 *******************************************************************
2233 $as_echo "$as_me: error:
2234 *******************************************************************
2235 PostgreSQL has apparently not been ported to your platform yet.
2236 To try a manual configuration, look into the src/template directory
2237 for a similar platform and use the '--with-template=' option.
2239 Please also contact <pgsql-bugs@postgresql.org> to see about
2240 rectifying this. Include the above 'checking host system type...'
2242 *******************************************************************
2244 { (exit 1); exit 1; }; }
2252 { $as_echo "$as_me:$LINENO: result: $template" >&5
2253 $as_echo "$template" >&6; }
2258 # Initialize default assumption that we do not need separate assembly code
2259 # for TAS (test-and-set). This can be overridden by the template file
2260 # when it's executed.
2267 ## Command line options
2271 # Add non-standard directories to the include path
2276 # Check whether --with-includes was given.
2277 if test "${with_includes+set}" = set; then
2278 withval=$with_includes;
2281 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283 { (exit 1); exit 1; }; }
2286 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2287 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2288 { (exit 1); exit 1; }; }
2301 # Add non-standard directories to the library search path
2306 # Check whether --with-libraries was given.
2307 if test "${with_libraries+set}" = set; then
2308 withval=$with_libraries;
2311 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2317 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2318 { (exit 1); exit 1; }; }
2321 LIBRARY_DIRS=$withval
2332 # Check whether --with-libs was given.
2333 if test "${with_libs+set}" = set; then
2337 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339 { (exit 1); exit 1; }; }
2342 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2343 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2344 { (exit 1); exit 1; }; }
2347 LIBRARY_DIRS=$withval
2357 # 64-bit integer date/time storage: enabled by default.
2359 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2360 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2363 # Check whether --enable-integer-datetimes was given.
2364 if test "${enable_integer_datetimes+set}" = set; then
2365 enableval=$enable_integer_datetimes;
2369 cat >>confdefs.h <<\_ACEOF
2370 #define USE_INTEGER_DATETIMES 1
2378 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2379 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2380 { (exit 1); exit 1; }; }
2385 enable_integer_datetimes=yes
2387 cat >>confdefs.h <<\_ACEOF
2388 #define USE_INTEGER_DATETIMES 1
2394 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2395 $as_echo "$enable_integer_datetimes" >&6; }
2401 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2402 $as_echo_n "checking whether NLS is wanted... " >&6; }
2405 # Check whether --enable-nls was given.
2406 if test "${enable_nls+set}" = set; then
2407 enableval=$enable_nls;
2417 WANTED_LANGUAGES=$enableval
2427 if test "$enable_nls" = yes; then
2429 cat >>confdefs.h <<\_ACEOF
2430 #define ENABLE_NLS 1
2435 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2436 $as_echo "$enable_nls" >&6; }
2441 # Default port number (--with-pgport), default 5432
2443 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2444 $as_echo_n "checking for default port number... " >&6; }
2448 # Check whether --with-pgport was given.
2449 if test "${with_pgport+set}" = set; then
2450 withval=$with_pgport;
2453 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455 { (exit 1); exit 1; }; }
2458 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2459 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2460 { (exit 1); exit 1; }; }
2463 default_port=$withval
2472 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2473 $as_echo "$default_port" >&6; }
2474 # Need both of these because some places want an integer and some a string
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT ${default_port}
2481 cat >>confdefs.h <<_ACEOF
2482 #define DEF_PGPORT_STR "${default_port}"
2488 # Option to disable shared libraries
2492 # Check whether --enable-shared was given.
2493 if test "${enable_shared+set}" = set; then
2494 enableval=$enable_shared;
2503 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2504 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2505 { (exit 1); exit 1; }; }
2518 # '-rpath'-like feature can be disabled
2522 # Check whether --enable-rpath was given.
2523 if test "${enable_rpath+set}" = set; then
2524 enableval=$enable_rpath;
2533 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2534 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2535 { (exit 1); exit 1; }; }
2552 # Check whether --enable-spinlocks was given.
2553 if test "${enable_spinlocks+set}" = set; then
2554 enableval=$enable_spinlocks;
2563 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2564 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2565 { (exit 1); exit 1; }; }
2570 enable_spinlocks=yes
2577 # --enable-debug adds -g to compiler flags
2581 # Check whether --enable-debug was given.
2582 if test "${enable_debug+set}" = set; then
2583 enableval=$enable_debug;
2592 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2593 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2594 { (exit 1); exit 1; }; }
2607 # --enable-profiling enables gcc profiling
2611 # Check whether --enable-profiling was given.
2612 if test "${enable_profiling+set}" = set; then
2613 enableval=$enable_profiling;
2622 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2623 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2624 { (exit 1); exit 1; }; }
2637 # --enable-coverage enables generation of code coverage metrics with gcov
2641 # Check whether --enable-coverage was given.
2642 if test "${enable_coverage+set}" = set; then
2643 enableval=$enable_coverage;
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_GCOV+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$GCOV"; then
2656 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_GCOV="$ac_prog"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 GCOV=$ac_cv_prog_GCOV
2676 if test -n "$GCOV"; then
2677 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2678 $as_echo "$GCOV" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$GCOV" && break
2688 if test -z "$GCOV"; then
2689 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2690 $as_echo "$as_me: error: gcov not found" >&2;}
2691 { (exit 1); exit 1; }; }
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_LCOV+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$LCOV"; then
2703 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_LCOV="$ac_prog"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 LCOV=$ac_cv_prog_LCOV
2723 if test -n "$LCOV"; then
2724 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2725 $as_echo "$LCOV" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$LCOV" && break
2735 if test -z "$LCOV"; then
2736 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2737 $as_echo "$as_me: error: lcov not found" >&2;}
2738 { (exit 1); exit 1; }; }
2740 for ac_prog in genhtml
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_GENHTML+set}" = set; then
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$GENHTML"; then
2750 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_GENHTML="$ac_prog"
2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 GENHTML=$ac_cv_prog_GENHTML
2770 if test -n "$GENHTML"; then
2771 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2772 $as_echo "$GENHTML" >&6; }
2774 { $as_echo "$as_me:$LINENO: result: no" >&5
2775 $as_echo "no" >&6; }
2779 test -n "$GENHTML" && break
2782 if test -z "$GENHTML"; then
2783 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2784 $as_echo "$as_me: error: genhtml not found" >&2;}
2785 { (exit 1); exit 1; }; }
2792 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2793 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2794 { (exit 1); exit 1; }; }
2811 # Check whether --enable-dtrace was given.
2812 if test "${enable_dtrace+set}" = set; then
2813 enableval=$enable_dtrace;
2817 cat >>confdefs.h <<\_ACEOF
2818 #define ENABLE_DTRACE 1
2821 for ac_prog in dtrace
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_DTRACE+set}" = set; then
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$DTRACE"; then
2831 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_DTRACE="$ac_prog"
2841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 DTRACE=$ac_cv_prog_DTRACE
2851 if test -n "$DTRACE"; then
2852 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2853 $as_echo "$DTRACE" >&6; }
2855 { $as_echo "$as_me:$LINENO: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$DTRACE" && break
2863 if test -z "$DTRACE"; then
2864 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2865 $as_echo "$as_me: error: dtrace not found" >&2;}
2866 { (exit 1); exit 1; }; }
2874 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2875 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2876 { (exit 1); exit 1; }; }
2891 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2892 $as_echo_n "checking for block size... " >&6; }
2896 # Check whether --with-blocksize was given.
2897 if test "${with_blocksize+set}" = set; then
2898 withval=$with_blocksize;
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903 { (exit 1); exit 1; }; }
2906 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2908 { (exit 1); exit 1; }; }
2920 case ${blocksize} in
2927 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2928 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2929 { (exit 1); exit 1; }; }
2931 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2932 $as_echo "${blocksize}kB" >&6; }
2935 cat >>confdefs.h <<_ACEOF
2936 #define BLCKSZ ${BLCKSZ}
2941 # Relation segment size
2943 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2944 $as_echo_n "checking for segment size... " >&6; }
2948 # Check whether --with-segsize was given.
2949 if test "${with_segsize+set}" = set; then
2950 withval=$with_segsize;
2953 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955 { (exit 1); exit 1; }; }
2958 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2959 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2960 { (exit 1); exit 1; }; }
2972 # this expression is set up to avoid unnecessary integer overflow
2973 # blocksize is already guaranteed to be a factor of 1024
2974 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2975 test $? -eq 0 || exit 1
2976 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2977 $as_echo "${segsize}GB" >&6; }
2980 cat >>confdefs.h <<_ACEOF
2981 #define RELSEG_SIZE ${RELSEG_SIZE}
2988 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2989 $as_echo_n "checking for WAL block size... " >&6; }
2993 # Check whether --with-wal-blocksize was given.
2994 if test "${with_wal_blocksize+set}" = set; then
2995 withval=$with_wal_blocksize;
2998 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000 { (exit 1); exit 1; }; }
3003 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3004 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3005 { (exit 1); exit 1; }; }
3008 wal_blocksize=$withval
3017 case ${wal_blocksize} in
3018 1) XLOG_BLCKSZ=1024;;
3019 2) XLOG_BLCKSZ=2048;;
3020 4) XLOG_BLCKSZ=4096;;
3021 8) XLOG_BLCKSZ=8192;;
3022 16) XLOG_BLCKSZ=16384;;
3023 32) XLOG_BLCKSZ=32768;;
3024 64) XLOG_BLCKSZ=65536;;
3025 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3026 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3027 { (exit 1); exit 1; }; }
3029 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3030 $as_echo "${wal_blocksize}kB" >&6; }
3033 cat >>confdefs.h <<_ACEOF
3034 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3041 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3042 $as_echo_n "checking for WAL segment size... " >&6; }
3046 # Check whether --with-wal-segsize was given.
3047 if test "${with_wal_segsize+set}" = set; then
3048 withval=$with_wal_segsize;
3051 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053 { (exit 1); exit 1; }; }
3056 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3057 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3058 { (exit 1); exit 1; }; }
3061 wal_segsize=$withval
3070 case ${wal_segsize} in
3078 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3079 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3080 { (exit 1); exit 1; }; }
3082 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3083 $as_echo "${wal_segsize}MB" >&6; }
3086 cat >>confdefs.h <<_ACEOF
3087 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3095 # For historical reasons you can also use --with-CC to specify the C compiler
3096 # to use, although the standard way to do this is to set the CC environment
3101 # Check whether --with-CC was given.
3102 if test "${with_CC+set}" = set; then
3106 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108 { (exit 1); exit 1; }; }
3111 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3112 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3113 { (exit 1); exit 1; }; }
3125 aix) pgac_cc_list="gcc xlc";;
3126 irix) pgac_cc_list="cc";; # no gcc
3127 *) pgac_cc_list="gcc cc";;
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog in $pgac_cc_list
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$CC" && break
3178 if test -z "$CC"; then
3180 for ac_prog in $pgac_cc_list
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_ac_ct_CC="$ac_prog"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$ac_ct_CC" && break
3222 if test "x$ac_ct_CC" = x; then
3225 case $cross_compiling:$ac_tool_warned in
3227 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3236 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3239 See \`config.log' for more details." >&5
3240 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }; }
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3248 { (ac_try="$ac_compiler --version >&5"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255 (eval "$ac_compiler --version >&5") 2>&5
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3259 { (ac_try="$ac_compiler -v >&5"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler -v >&5") 2>&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -V >&5"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -V >&5") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3302 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310 for ac_file in $ac_files
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 if { (ac_try="$ac_link_default"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_link_default") 2>&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; then
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3335 for ac_file in $ac_files ''
3337 test -f "$ac_file" || continue
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 # We found the default executable, but exeext='' is most
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 if test -z "$ac_file"; then
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3375 See \`config.log' for more details." >&5
3376 $as_echo "$as_me: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&2;}
3378 { (exit 77); exit 77; }; }; }
3381 ac_exeext=$ac_cv_exeext
3383 # Check that the compiler produces executables we can run. If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386 $as_echo_n "checking whether the C compiler works... " >&6; }
3387 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388 # If not cross compiling, check that we can run a simple program.
3389 if test "$cross_compiling" != yes; then
3390 if { ac_try='./$ac_file'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396 $as_echo "$ac_try_echo") >&5
3397 (eval "$ac_try") 2>&5
3399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3403 if test "$cross_compiling" = maybe; then
3406 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }; }
3418 { $as_echo "$as_me:$LINENO: result: yes" >&5
3419 $as_echo "yes" >&6; }
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { (ac_try="$ac_link"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_link") 2>&5
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; then
3443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3447 for ac_file in conftest.exe conftest conftest.*; do
3448 test -f "$ac_file" || continue
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }; }
3466 rm -f conftest$ac_cv_exeext
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468 $as_echo "$ac_cv_exeext" >&6; }
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3473 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if test "${ac_cv_objext+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { (ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; then
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&5
3521 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }; }
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3532 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if test "${ac_cv_prog_cc_g+set}" = set; then
3597 $as_echo_n "(cached) " >&6
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625 $as_echo "$ac_try_echo") >&5
3626 (eval "$ac_compile") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && {
3633 test -z "$ac_c_werror_flag" ||
3634 test ! -s conftest.err
3635 } && test -s conftest.$ac_objext; then
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_compile") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest.$ac_objext; then
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_c_werror_flag=$ac_save_c_werror_flag
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733 $as_echo "$ac_cv_prog_cc_g" >&6; }
3734 if test "$ac_test_CFLAGS" = set; then
3735 CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737 if test "$GCC" = yes; then
3743 if test "$GCC" = yes; then
3749 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if test "${ac_cv_prog_cc_c89+set}" = set; then
3752 $as_echo_n "(cached) " >&6
3754 ac_cv_prog_cc_c89=no
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3780 s = g (p, va_arg (v,int));
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3786 function prototypes and stuff, but not '\xHH' hex character constants.
3787 These don't provoke an error unfortunately, instead are silently treated
3788 as 'x'. The following induces an error, until -std is added to get
3789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3790 array size at least. It's necessary to write '\x00'==0 to get something
3791 that's true only with -std. */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795 inside strings and character constants. */
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816 CC="$ac_save_CC $ac_arg"
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 ac_cv_prog_cc_c89=$ac_arg
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3843 rm -f core conftest.err conftest.$ac_objext
3844 test "x$ac_cv_prog_cc_c89" != "xno" && break
3846 rm -f conftest.$ac_ext
3851 case "x$ac_cv_prog_cc_c89" in
3853 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;;
3856 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3857 $as_echo "unsupported" >&6; } ;;
3859 CC="$CC $ac_cv_prog_cc_c89"
3860 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3873 # but has idiosyncrasies of its own. We assume icc will define
3874 # __INTEL_COMPILER regardless of CFLAGS.
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3886 #ifndef __INTEL_COMPILER
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3900 $as_echo "$ac_try_echo") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 # Check if it's Sun Studio compiler. We assume that
3922 # __SUNPRO_C will be defined for Sun Studio compilers
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947 $as_echo "$ac_try_echo") >&5
3948 (eval "$ac_compile") 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && {
3955 test -z "$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3957 } && test -s conftest.$ac_objext; then
3960 $as_echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 . "$srcdir/src/template/$template" || exit
3977 # CFLAGS are selected so:
3978 # If the user specifies something in the environment, that is used.
3979 # else: If the template file set something, that is used.
3980 # else: If coverage was enabled, don't set anything.
3981 # else: If the compiler is GCC, then we use -O2.
3982 # else: If the compiler is something else, then we use -O, unless debugging.
3984 if test "$ac_env_CFLAGS_set" = set; then
3985 CFLAGS=$ac_env_CFLAGS_value
3986 elif test "${CFLAGS+set}" = set; then
3987 : # (keep what template set)
3988 elif test "$enable_coverage" = yes; then
3989 : # no optimization by default
3990 elif test "$GCC" = yes; then
3993 # if the user selected debug mode, don't use -O
3994 if test "$enable_debug" != yes; then
3999 # Some versions of GCC support some additional useful warning flags.
4000 # Check whether they are supported, and add them to CFLAGS if so.
4001 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4002 # but has its own. Also check other compiler-specific flags here.
4004 if test "$GCC" = yes -a "$ICC" = no; then
4005 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4006 # These work in some but not all gcc versions
4007 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4008 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4009 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4010 $as_echo_n "(cached) " >&6
4012 pgac_save_CFLAGS=$CFLAGS
4013 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4036 $as_echo "$ac_try_echo") >&5
4037 (eval "$ac_compile") 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && {
4044 test -z "$ac_c_werror_flag" ||
4045 test ! -s conftest.err
4046 } && test -s conftest.$ac_objext; then
4047 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 CFLAGS="$pgac_save_CFLAGS"
4058 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4059 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4060 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4061 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4064 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4065 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4066 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4067 $as_echo_n "(cached) " >&6
4069 pgac_save_CFLAGS=$CFLAGS
4070 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093 $as_echo "$ac_try_echo") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4096 grep -v '^ *+' conftest.er1 >conftest.err
4098 cat conftest.err >&5
4099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4104 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 pgac_cv_prog_cc_cflags__Wendif_labels=no
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 CFLAGS="$pgac_save_CFLAGS"
4115 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4116 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4117 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4118 CFLAGS="$CFLAGS -Wendif-labels"
4121 # This was included in -Wall/-Wformat in older GCC versions
4122 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4123 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4124 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4125 $as_echo_n "(cached) " >&6
4127 pgac_save_CFLAGS=$CFLAGS
4128 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4144 rm -f conftest.$ac_objext
4145 if { (ac_try="$ac_compile"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4151 $as_echo "$ac_try_echo") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } && {
4159 test -z "$ac_c_werror_flag" ||
4160 test ! -s conftest.err
4161 } && test -s conftest.$ac_objext; then
4162 pgac_cv_prog_cc_cflags__Wformat_security=yes
4164 $as_echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 pgac_cv_prog_cc_cflags__Wformat_security=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 CFLAGS="$pgac_save_CFLAGS"
4173 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4174 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4175 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4176 CFLAGS="$CFLAGS -Wformat-security"
4179 # Disable strict-aliasing rules; needed for gcc 3.3+
4180 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4181 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4182 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4183 $as_echo_n "(cached) " >&6
4185 pgac_save_CFLAGS=$CFLAGS
4186 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4209 $as_echo "$ac_try_echo") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4222 $as_echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 CFLAGS="$pgac_save_CFLAGS"
4231 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4232 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4233 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4234 CFLAGS="$CFLAGS -fno-strict-aliasing"
4237 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4238 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4239 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4240 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4243 pgac_save_CFLAGS=$CFLAGS
4244 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4267 $as_echo "$ac_try_echo") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && {
4275 test -z "$ac_c_werror_flag" ||
4276 test ! -s conftest.err
4277 } && test -s conftest.$ac_objext; then
4278 pgac_cv_prog_cc_cflags__fwrapv=yes
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 pgac_cv_prog_cc_cflags__fwrapv=no
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 CFLAGS="$pgac_save_CFLAGS"
4289 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4290 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4291 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4292 CFLAGS="$CFLAGS -fwrapv"
4295 elif test "$ICC" = yes; then
4296 # Intel's compiler has a bug/misoptimization in checking for
4297 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4298 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4299 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4300 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4301 $as_echo_n "(cached) " >&6
4303 pgac_save_CFLAGS=$CFLAGS
4304 CFLAGS="$pgac_save_CFLAGS -mp1"
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327 $as_echo "$ac_try_echo") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4338 pgac_cv_prog_cc_cflags__mp1=yes
4340 $as_echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 pgac_cv_prog_cc_cflags__mp1=no
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 CFLAGS="$pgac_save_CFLAGS"
4349 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4350 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4351 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4352 CFLAGS="$CFLAGS -mp1"
4355 # Make sure strict aliasing is off (though this is said to be the default)
4356 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4357 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4358 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4361 pgac_save_CFLAGS=$CFLAGS
4362 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4378 rm -f conftest.$ac_objext
4379 if { (ac_try="$ac_compile"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
4396 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4398 $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 CFLAGS="$pgac_save_CFLAGS"
4407 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4408 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4409 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4410 CFLAGS="$CFLAGS -fno-strict-aliasing"
4413 elif test "$PORTNAME" = "aix"; then
4414 # AIX's xlc has to have strict aliasing turned off too
4415 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4416 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4417 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4420 pgac_save_CFLAGS=$CFLAGS
4421 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4437 rm -f conftest.$ac_objext
4438 if { (ac_try="$ac_compile"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444 $as_echo "$ac_try_echo") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 pgac_cv_prog_cc_cflags__qnoansialias=yes
4457 $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 pgac_cv_prog_cc_cflags__qnoansialias=no
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 CFLAGS="$pgac_save_CFLAGS"
4466 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4467 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4468 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4469 CFLAGS="$CFLAGS -qnoansialias"
4474 # supply -g if --enable-debug
4475 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4479 # enable code coverage if --enable-coverage
4480 if test "$enable_coverage" = yes; then
4481 if test "$GCC" = yes; then
4482 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4484 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4485 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4486 { (exit 1); exit 1; }; }
4490 # enable profiling if --enable-profiling
4491 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4492 if test "$GCC" = yes; then
4494 cat >>confdefs.h <<\_ACEOF
4495 #define PROFILE_PID_DIR 1
4498 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4500 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4501 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4502 { (exit 1); exit 1; }; }
4506 # We already have this in Makefile.win32, but configure needs it too
4507 if test "$PORTNAME" = "win32"; then
4508 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4511 # Check if the compiler still works with the template settings
4512 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4513 $as_echo_n "checking whether the C compiler still works... " >&6; }
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (ac_try="$ac_link"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537 (eval "$ac_link") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest$ac_exeext && {
4547 test "$cross_compiling" = yes ||
4548 $as_test_x conftest$ac_exeext
4550 { $as_echo "$as_me:$LINENO: result: yes" >&5
4551 $as_echo "yes" >&6; }
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 { $as_echo "$as_me:$LINENO: result: no" >&5
4557 $as_echo "no" >&6; }
4558 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4559 $as_echo "$as_me: error: cannot proceed" >&2;}
4560 { (exit 1); exit 1; }; }
4563 rm -rf conftest.dSYM
4564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4565 conftest$ac_exeext conftest.$ac_ext
4567 # Defend against gcc -ffast-math
4568 if test "$GCC" = yes; then
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4579 #ifdef __FAST_MATH__
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593 $as_echo "$ac_try_echo") >&5
4594 (eval "$ac_compile") 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && {
4601 test -z "$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4603 } && test -s conftest.$ac_objext; then
4606 $as_echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4610 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4611 { (exit 1); exit 1; }; }
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4623 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4624 # On Suns, sometimes $CPP names a directory.
4625 if test -n "$CPP" && test -d "$CPP"; then
4628 if test -z "$CPP"; then
4629 if test "${ac_cv_prog_CPP+set}" = set; then
4630 $as_echo_n "(cached) " >&6
4632 # Double quotes because CPP needs to be expanded
4633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4636 for ac_c_preproc_warn_flag in '' yes
4638 # Use a header file that comes with gcc, so configuring glibc
4639 # with a fresh cross-compiler works.
4640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641 # <limits.h> exists even on freestanding compilers.
4642 # On the NeXT, cc -E runs the code through the compiler's parser,
4643 # not just through cpp. "Syntax error" is here to catch this case.
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4651 # include <limits.h>
4653 # include <assert.h>
4657 if { (ac_try="$ac_cpp conftest.$ac_ext"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } >/dev/null && {
4671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 # Broken: fails on valid input.
4683 rm -f conftest.err conftest.$ac_ext
4685 # OK, works on sane cases. Now check whether nonexistent headers
4686 # can be detected and how.
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <ac_nonexistent.h>
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null && {
4709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4712 # Broken: success on invalid input.
4715 $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 # Passes both tests.
4723 rm -f conftest.err conftest.$ac_ext
4726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4727 rm -f conftest.err conftest.$ac_ext
4728 if $ac_preproc_ok; then
4740 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4741 $as_echo "$CPP" >&6; }
4743 for ac_c_preproc_warn_flag in '' yes
4745 # Use a header file that comes with gcc, so configuring glibc
4746 # with a fresh cross-compiler works.
4747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 # <limits.h> exists even on freestanding compilers.
4749 # On the NeXT, cc -E runs the code through the compiler's parser,
4750 # not just through cpp. "Syntax error" is here to catch this case.
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4758 # include <limits.h>
4760 # include <assert.h>
4764 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4770 $as_echo "$ac_try_echo") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4783 $as_echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 # Broken: fails on valid input.
4790 rm -f conftest.err conftest.$ac_ext
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <ac_nonexistent.h>
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4808 $as_echo "$ac_try_echo") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null && {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4819 # Broken: success on invalid input.
4822 $as_echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 # Passes both tests.
4830 rm -f conftest.err conftest.$ac_ext
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.err conftest.$ac_ext
4835 if $ac_preproc_ok; then
4838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details." >&5
4842 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4843 See \`config.log' for more details." >&2;}
4844 { (exit 1); exit 1; }; }; }
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 # Set up TAS assembly code if needed; the template file has now had its
4858 # chance to request this.
4860 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4863 if test "$need_tas" = yes ; then
4872 # Automatic dependency tracking
4876 # Check whether --enable-depend was given.
4877 if test "${enable_depend+set}" = set; then
4878 enableval=$enable_depend;
4887 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4888 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4889 { (exit 1); exit 1; }; }
4903 # Enable assert checks
4907 # Check whether --enable-cassert was given.
4908 if test "${enable_cassert+set}" = set; then
4909 enableval=$enable_cassert;
4913 cat >>confdefs.h <<\_ACEOF
4914 #define USE_ASSERT_CHECKING 1
4922 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4923 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4924 { (exit 1); exit 1; }; }
4937 # Include directories
4940 IFS="${IFS}${PATH_SEPARATOR}"
4941 # SRCH_INC comes from the template file
4942 for dir in $with_includes $SRCH_INC; do
4943 if test -d "$dir"; then
4944 INCLUDES="$INCLUDES -I$dir"
4946 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4947 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4955 # Library directories
4958 IFS="${IFS}${PATH_SEPARATOR}"
4959 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4960 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4961 if test -d "$dir"; then
4962 LIBDIRS="$LIBDIRS -L$dir"
4964 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4965 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4971 # Enable thread-safe client libraries
4973 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4974 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4977 # Check whether --enable-thread-safety was given.
4978 if test "${enable_thread_safety+set}" = set; then
4979 enableval=$enable_thread_safety;
4988 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4989 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4990 { (exit 1); exit 1; }; }
4995 enable_thread_safety=yes
5000 if test "$enable_thread_safety" = yes; then
5002 cat >>confdefs.h <<\_ACEOF
5003 #define ENABLE_THREAD_SAFETY 1
5007 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5008 $as_echo "$enable_thread_safety" >&6; }
5012 # Optionally build Tcl modules (PL/Tcl)
5014 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5015 $as_echo_n "checking whether to build with Tcl... " >&6; }
5019 # Check whether --with-tcl was given.
5020 if test "${with_tcl+set}" = set; then
5030 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5031 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5032 { (exit 1); exit 1; }; }
5042 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5043 $as_echo "$with_tcl" >&6; }
5046 # We see if the path to the Tcl/Tk configuration scripts is specified.
5047 # This will override the use of tclsh to find the paths to search.
5052 # Check whether --with-tclconfig was given.
5053 if test "${with_tclconfig+set}" = set; then
5054 withval=$with_tclconfig;
5057 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5058 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5059 { (exit 1); exit 1; }; }
5062 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5063 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5064 { (exit 1); exit 1; }; }
5076 # Optionally build Perl modules (PL/Perl)
5078 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5079 $as_echo_n "checking whether to build Perl modules... " >&6; }
5083 # Check whether --with-perl was given.
5084 if test "${with_perl+set}" = set; then
5094 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5095 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5096 { (exit 1); exit 1; }; }
5106 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5107 $as_echo "$with_perl" >&6; }
5111 # Optionally build Python modules (PL/Python)
5113 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5114 $as_echo_n "checking whether to build Python modules... " >&6; }
5118 # Check whether --with-python was given.
5119 if test "${with_python+set}" = set; then
5120 withval=$with_python;
5129 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5130 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5131 { (exit 1); exit 1; }; }
5141 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5142 $as_echo "$with_python" >&6; }
5148 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5149 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5153 # Check whether --with-gssapi was given.
5154 if test "${with_gssapi+set}" = set; then
5155 withval=$with_gssapi;
5160 cat >>confdefs.h <<\_ACEOF
5161 #define ENABLE_GSS 1
5164 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5171 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5172 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5173 { (exit 1); exit 1; }; }
5183 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5184 $as_echo "$with_gssapi" >&6; }
5190 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5191 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5195 # Check whether --with-krb5 was given.
5196 if test "${with_krb5+set}" = set; then
5202 cat >>confdefs.h <<\_ACEOF
5206 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5213 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5214 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5215 { (exit 1); exit 1; }; }
5225 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5226 $as_echo "$with_krb5" >&6; }
5234 # Kerberos configuration parameters
5239 # Check whether --with-krb-srvnam was given.
5240 if test "${with_krb_srvnam+set}" = set; then
5241 withval=$with_krb_srvnam;
5244 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5245 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5246 { (exit 1); exit 1; }; }
5249 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5250 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5251 { (exit 1); exit 1; }; }
5259 with_krb_srvnam="postgres"
5264 cat >>confdefs.h <<_ACEOF
5265 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5273 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5274 $as_echo_n "checking whether to build with PAM support... " >&6; }
5278 # Check whether --with-pam was given.
5279 if test "${with_pam+set}" = set; then
5284 cat >>confdefs.h <<\_ACEOF
5293 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5294 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5295 { (exit 1); exit 1; }; }
5305 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5306 $as_echo "$with_pam" >&6; }
5313 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5314 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5318 # Check whether --with-ldap was given.
5319 if test "${with_ldap+set}" = set; then
5324 cat >>confdefs.h <<\_ACEOF
5333 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5334 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5335 { (exit 1); exit 1; }; }
5345 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5346 $as_echo "$with_ldap" >&6; }
5353 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5354 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5358 # Check whether --with-bonjour was given.
5359 if test "${with_bonjour+set}" = set; then
5360 withval=$with_bonjour;
5364 cat >>confdefs.h <<\_ACEOF
5365 #define USE_BONJOUR 1
5373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5374 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5375 { (exit 1); exit 1; }; }
5385 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5386 $as_echo "$with_bonjour" >&6; }
5393 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5394 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5398 # Check whether --with-openssl was given.
5399 if test "${with_openssl+set}" = set; then
5400 withval=$with_openssl;
5404 cat >>confdefs.h <<\_ACEOF
5413 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5414 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5415 { (exit 1); exit 1; }; }
5425 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5426 $as_echo "$with_openssl" >&6; }
5432 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5433 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5437 # Check whether --with-selinux was given.
5438 if test "${with_selinux+set}" = set; then
5439 withval=$with_selinux;
5448 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5449 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5450 { (exit 1); exit 1; }; }
5461 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5462 $as_echo "$with_selinux" >&6; }
5470 # Check whether --with-readline was given.
5471 if test "${with_readline+set}" = set; then
5472 withval=$with_readline;
5481 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5482 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5483 { (exit 1); exit 1; }; }
5493 # readline on MinGW has problems with backslashes in psql and other bugs.
5494 # This is particularly a problem with non-US code pages.
5495 # Therefore disable its use until we understand the cause. 2004-07-20
5496 if test "$PORTNAME" = "win32"; then
5497 if test "$with_readline" = yes; then
5498 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5499 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5511 # Check whether --with-libedit-preferred was given.
5512 if test "${with_libedit_preferred+set}" = set; then
5513 withval=$with_libedit_preferred;
5522 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5523 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5524 { (exit 1); exit 1; }; }
5529 with_libedit_preferred=no
5542 # Check whether --with-ossp-uuid was given.
5543 if test "${with_ossp_uuid+set}" = set; then
5544 withval=$with_ossp_uuid;
5553 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5554 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5555 { (exit 1); exit 1; }; }
5574 # Check whether --with-libxml was given.
5575 if test "${with_libxml+set}" = set; then
5576 withval=$with_libxml;
5580 cat >>confdefs.h <<\_ACEOF
5581 #define USE_LIBXML 1
5589 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5590 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5591 { (exit 1); exit 1; }; }
5602 if test "$with_libxml" = yes ; then
5603 for ac_prog in xml2-config
5605 # Extract the first word of "$ac_prog", so it can be a program name with args.
5606 set dummy $ac_prog; ac_word=$2
5607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5612 if test -n "$XML2_CONFIG"; then
5613 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_XML2_CONFIG="$ac_prog"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5633 if test -n "$XML2_CONFIG"; then
5634 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5635 $as_echo "$XML2_CONFIG" >&6; }
5637 { $as_echo "$as_me:$LINENO: result: no" >&5
5638 $as_echo "no" >&6; }
5642 test -n "$XML2_CONFIG" && break
5645 if test -n "$XML2_CONFIG"; then
5646 for pgac_option in `$XML2_CONFIG --cflags`; do
5647 case $pgac_option in
5648 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5651 for pgac_option in `$XML2_CONFIG --libs`; do
5652 case $pgac_option in
5653 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5667 # Check whether --with-libxslt was given.
5668 if test "${with_libxslt+set}" = set; then
5669 withval=$with_libxslt;
5673 cat >>confdefs.h <<\_ACEOF
5674 #define USE_LIBXSLT 1
5682 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5683 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5684 { (exit 1); exit 1; }; }
5704 # Check whether --with-system-tzdata was given.
5705 if test "${with_system_tzdata+set}" = set; then
5706 withval=$with_system_tzdata;
5709 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5710 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5711 { (exit 1); exit 1; }; }
5714 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5715 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5716 { (exit 1); exit 1; }; }
5734 # Check whether --with-zlib was given.
5735 if test "${with_zlib+set}" = set; then
5745 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5746 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5747 { (exit 1); exit 1; }; }
5763 # Assume system is ELF if it predefines __ELF__ as 1,
5764 # otherwise believe host_os based default.
5766 freebsd1*|freebsd2*) elf=no;;
5767 freebsd3*|freebsd4*) elf=yes;;
5771 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5773 if test "${ac_cv_path_GREP+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5776 if test -z "$GREP"; then
5777 ac_path_GREP_found=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in grep ggrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5788 # Check for GNU ac_path_GREP and select it if it is found.
5789 # Check for GNU $ac_path_GREP
5790 case `"$ac_path_GREP" --version 2>&1` in
5792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5795 $as_echo_n 0123456789 >"conftest.in"
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'GREP' >> "conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804 ac_count=`expr $ac_count + 1`
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP="$ac_path_GREP"
5808 ac_path_GREP_max=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5816 $ac_path_GREP_found && break 3
5821 if test -z "$ac_cv_path_GREP"; then
5822 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824 { (exit 1); exit 1; }; }
5827 ac_cv_path_GREP=$GREP
5831 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5832 $as_echo "$ac_cv_path_GREP" >&6; }
5833 GREP="$ac_cv_path_GREP"
5836 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5837 $as_echo_n "checking for egrep... " >&6; }
5838 if test "${ac_cv_path_EGREP+set}" = set; then
5839 $as_echo_n "(cached) " >&6
5841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5842 then ac_cv_path_EGREP="$GREP -E"
5844 if test -z "$EGREP"; then
5845 ac_path_EGREP_found=false
5846 # Loop through the user's path and test for each of PROGNAME-LIST
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5851 test -z "$as_dir" && as_dir=.
5852 for ac_prog in egrep; do
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5855 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5856 # Check for GNU ac_path_EGREP and select it if it is found.
5857 # Check for GNU $ac_path_EGREP
5858 case `"$ac_path_EGREP" --version 2>&1` in
5860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5863 $as_echo_n 0123456789 >"conftest.in"
5866 cat "conftest.in" "conftest.in" >"conftest.tmp"
5867 mv "conftest.tmp" "conftest.in"
5868 cp "conftest.in" "conftest.nl"
5869 $as_echo 'EGREP' >> "conftest.nl"
5870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5872 ac_count=`expr $ac_count + 1`
5873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5874 # Best one so far, save it but keep looking for a better one
5875 ac_cv_path_EGREP="$ac_path_EGREP"
5876 ac_path_EGREP_max=$ac_count
5878 # 10*(2^10) chars as input seems more than enough
5879 test $ac_count -gt 10 && break
5881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5884 $ac_path_EGREP_found && break 3
5889 if test -z "$ac_cv_path_EGREP"; then
5890 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5891 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5892 { (exit 1); exit 1; }; }
5895 ac_cv_path_EGREP=$EGREP
5900 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5901 $as_echo "$ac_cv_path_EGREP" >&6; }
5902 EGREP="$ac_cv_path_EGREP"
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "yes" >/dev/null 2>&1; then
5920 if test "X$elf" = "Xyes" ; then
5934 CPPFLAGS="$CPPFLAGS $INCLUDES"
5935 LDFLAGS="$LDFLAGS $LIBDIRS"
5941 # Check whether --with-gnu-ld was given.
5942 if test "${with_gnu_ld+set}" = set; then
5943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5949 if test "$GCC" = yes; then
5950 # Check if gcc -print-prog-name=ld gives a path.
5951 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5952 $as_echo_n "checking for ld used by GCC... " >&6; }
5955 # gcc leaves a trailing carriage return which upsets mingw
5956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5961 # Accept absolute paths.
5962 [\\/]* | [A-Za-z]:[\\/]*)
5963 re_direlt='/[^/][^/]*/\.\./'
5964 # Canonicalize the path of ld
5965 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5966 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5967 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5969 test -z "$LD" && LD="$ac_prog"
5972 # If it fails, then pretend we aren't using GCC.
5976 # If it is relative, then search for the first ld in PATH.
5980 elif test "$with_gnu_ld" = yes; then
5981 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5982 $as_echo_n "checking for GNU ld... " >&6; }
5984 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5985 $as_echo_n "checking for non-GNU ld... " >&6; }
5987 if test "${ac_cv_path_LD+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5990 if test -z "$LD"; then
5991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5992 for ac_dir in $PATH; do
5993 test -z "$ac_dir" && ac_dir=.
5994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5995 ac_cv_path_LD="$ac_dir/$ac_prog"
5996 # Check to see if the program is GNU ld. I'd rather use --version,
5997 # but apparently some GNU ld's only accept -v.
5998 # Break only if it was the GNU/non-GNU ld that we prefer.
5999 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6000 test "$with_gnu_ld" != no && break
6002 test "$with_gnu_ld" != yes && break
6008 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6013 if test -n "$LD"; then
6014 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6015 $as_echo "$LD" >&6; }
6017 { $as_echo "$as_me:$LINENO: result: no" >&5
6018 $as_echo "no" >&6; }
6020 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6021 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6022 { (exit 1); exit 1; }; }
6023 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6025 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6026 $as_echo_n "(cached) " >&6
6028 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6029 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6030 ac_cv_prog_gnu_ld=yes
6032 ac_cv_prog_gnu_ld=no
6035 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6036 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6037 with_gnu_ld=$ac_cv_prog_gnu_ld
6042 case $host_os in sysv5*)
6043 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6044 $as_echo_n "checking whether ld -R works... " >&6; }
6045 if test "${pgac_cv_prog_ld_R+set}" = set; then
6046 $as_echo_n "(cached) " >&6
6049 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (ac_try="$ac_link"
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_link") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest$ac_exeext && {
6083 test "$cross_compiling" = yes ||
6084 $as_test_x conftest$ac_exeext
6086 pgac_cv_prog_ld_R=yes
6088 $as_echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 pgac_cv_prog_ld_R=no
6094 rm -rf conftest.dSYM
6095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6096 conftest$ac_exeext conftest.$ac_ext
6097 LDFLAGS=$pgac_save_LDFLAGS
6100 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6101 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6102 ld_R_works=$pgac_cv_prog_ld_R
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if test "${ac_cv_prog_RANLIB+set}" = set; then
6111 $as_echo_n "(cached) " >&6
6113 if test -n "$RANLIB"; then
6114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 RANLIB=$ac_cv_prog_RANLIB
6134 if test -n "$RANLIB"; then
6135 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6136 $as_echo "$RANLIB" >&6; }
6138 { $as_echo "$as_me:$LINENO: result: no" >&5
6139 $as_echo "no" >&6; }
6144 if test -z "$ac_cv_prog_RANLIB"; then
6145 ac_ct_RANLIB=$RANLIB
6146 # Extract the first word of "ranlib", so it can be a program name with args.
6147 set dummy ranlib; ac_word=$2
6148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6151 $as_echo_n "(cached) " >&6
6153 if test -n "$ac_ct_RANLIB"; then
6154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_ac_ct_RANLIB="ranlib"
6164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6174 if test -n "$ac_ct_RANLIB"; then
6175 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6176 $as_echo "$ac_ct_RANLIB" >&6; }
6178 { $as_echo "$as_me:$LINENO: result: no" >&5
6179 $as_echo "no" >&6; }
6182 if test "x$ac_ct_RANLIB" = x; then
6185 case $cross_compiling:$ac_tool_warned in
6187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6191 RANLIB=$ac_ct_RANLIB
6194 RANLIB="$ac_cv_prog_RANLIB"
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}strip; ac_word=$2
6201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if test "${ac_cv_prog_STRIP+set}" = set; then
6204 $as_echo_n "(cached) " >&6
6206 if test -n "$STRIP"; then
6207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 STRIP=$ac_cv_prog_STRIP
6227 if test -n "$STRIP"; then
6228 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6229 $as_echo "$STRIP" >&6; }
6231 { $as_echo "$as_me:$LINENO: result: no" >&5
6232 $as_echo "no" >&6; }
6237 if test -z "$ac_cv_prog_STRIP"; then
6239 # Extract the first word of "strip", so it can be a program name with args.
6240 set dummy strip; ac_word=$2
6241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6244 $as_echo_n "(cached) " >&6
6246 if test -n "$ac_ct_STRIP"; then
6247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_ac_ct_STRIP="strip"
6257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6267 if test -n "$ac_ct_STRIP"; then
6268 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6269 $as_echo "$ac_ct_STRIP" >&6; }
6271 { $as_echo "$as_me:$LINENO: result: no" >&5
6272 $as_echo "no" >&6; }
6275 if test "x$ac_ct_STRIP" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6287 STRIP="$ac_cv_prog_STRIP"
6291 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6292 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6293 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6294 STRIP_STATIC_LIB="$STRIP -x"
6295 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6296 { $as_echo "$as_me:$LINENO: result: yes" >&5
6297 $as_echo "yes" >&6; }
6301 { $as_echo "$as_me:$LINENO: result: no" >&5
6302 $as_echo "no" >&6; }
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ar; ac_word=$2
6310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_AR+set}" = set; then
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$AR"; then
6316 ac_cv_prog_AR="$AR" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_AR="${ac_tool_prefix}ar"
6326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 if test -n "$AR"; then
6337 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6338 $as_echo "$AR" >&6; }
6340 { $as_echo "$as_me:$LINENO: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_AR"; then
6348 # Extract the first word of "ar", so it can be a program name with args.
6349 set dummy ar; ac_word=$2
6350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$ac_ct_AR"; then
6356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_ac_ct_AR="ar"
6366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6376 if test -n "$ac_ct_AR"; then
6377 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6378 $as_echo "$ac_ct_AR" >&6; }
6380 { $as_echo "$as_me:$LINENO: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_AR" = x; then
6387 case $cross_compiling:$ac_tool_warned in
6389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6399 if test "$PORTNAME" = "win32"; then
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$DLLTOOL"; then
6409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 DLLTOOL=$ac_cv_prog_DLLTOOL
6429 if test -n "$DLLTOOL"; then
6430 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6431 $as_echo "$DLLTOOL" >&6; }
6433 { $as_echo "$as_me:$LINENO: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_prog_DLLTOOL"; then
6440 ac_ct_DLLTOOL=$DLLTOOL
6441 # Extract the first word of "dlltool", so it can be a program name with args.
6442 set dummy dlltool; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$ac_ct_DLLTOOL"; then
6449 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6469 if test -n "$ac_ct_DLLTOOL"; then
6470 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6471 $as_echo "$ac_ct_DLLTOOL" >&6; }
6473 { $as_echo "$as_me:$LINENO: result: no" >&5
6474 $as_echo "no" >&6; }
6477 if test "x$ac_ct_DLLTOOL" = x; then
6480 case $cross_compiling:$ac_tool_warned in
6482 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6486 DLLTOOL=$ac_ct_DLLTOOL
6489 DLLTOOL="$ac_cv_prog_DLLTOOL"
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6494 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6498 $as_echo_n "(cached) " >&6
6500 if test -n "$DLLWRAP"; then
6501 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 DLLWRAP=$ac_cv_prog_DLLWRAP
6521 if test -n "$DLLWRAP"; then
6522 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6523 $as_echo "$DLLWRAP" >&6; }
6525 { $as_echo "$as_me:$LINENO: result: no" >&5
6526 $as_echo "no" >&6; }
6531 if test -z "$ac_cv_prog_DLLWRAP"; then
6532 ac_ct_DLLWRAP=$DLLWRAP
6533 # Extract the first word of "dllwrap", so it can be a program name with args.
6534 set dummy dllwrap; ac_word=$2
6535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$ac_ct_DLLWRAP"; then
6541 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6561 if test -n "$ac_ct_DLLWRAP"; then
6562 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6563 $as_echo "$ac_ct_DLLWRAP" >&6; }
6565 { $as_echo "$as_me:$LINENO: result: no" >&5
6566 $as_echo "no" >&6; }
6569 if test "x$ac_ct_DLLWRAP" = x; then
6572 case $cross_compiling:$ac_tool_warned in
6574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 ac_tool_warned=yes ;;
6578 DLLWRAP=$ac_ct_DLLWRAP
6581 DLLWRAP="$ac_cv_prog_DLLWRAP"
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}windres; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_WINDRES+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$WINDRES"; then
6593 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 WINDRES=$ac_cv_prog_WINDRES
6613 if test -n "$WINDRES"; then
6614 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6615 $as_echo "$WINDRES" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6623 if test -z "$ac_cv_prog_WINDRES"; then
6624 ac_ct_WINDRES=$WINDRES
6625 # Extract the first word of "windres", so it can be a program name with args.
6626 set dummy windres; ac_word=$2
6627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_WINDRES"; then
6633 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_WINDRES="windres"
6643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6653 if test -n "$ac_ct_WINDRES"; then
6654 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6655 $as_echo "$ac_ct_WINDRES" >&6; }
6657 { $as_echo "$as_me:$LINENO: result: no" >&5
6658 $as_echo "no" >&6; }
6661 if test "x$ac_ct_WINDRES" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6670 WINDRES=$ac_ct_WINDRES
6673 WINDRES="$ac_cv_prog_WINDRES"
6678 # Extract the first word of "tar", so it can be a program name with args.
6679 set dummy tar; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_TAR+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6687 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 if test -n "$TAR"; then
6710 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6711 $as_echo "$TAR" >&6; }
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6718 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6719 $as_echo_n "checking whether ln -s works... " >&6; }
6721 if test "$LN_S" = "ln -s"; then
6722 { $as_echo "$as_me:$LINENO: result: yes" >&5
6723 $as_echo "yes" >&6; }
6725 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6726 $as_echo "no, using $LN_S" >&6; }
6729 for ac_prog in gawk mawk nawk awk
6731 # Extract the first word of "$ac_prog", so it can be a program name with args.
6732 set dummy $ac_prog; ac_word=$2
6733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_prog_AWK+set}" = set; then
6736 $as_echo_n "(cached) " >&6
6738 if test -n "$AWK"; then
6739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_AWK="$ac_prog"
6749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 if test -n "$AWK"; then
6760 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6761 $as_echo "$AWK" >&6; }
6763 { $as_echo "$as_me:$LINENO: result: no" >&5
6764 $as_echo "no" >&6; }
6768 test -n "$AWK" && break
6771 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6773 if test -z "$MKDIR_P"; then
6774 if test "${ac_cv_path_mkdir+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6781 test -z "$as_dir" && as_dir=.
6782 for ac_prog in mkdir gmkdir; do
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6786 'mkdir (GNU coreutils) '* | \
6787 'mkdir (coreutils) '* | \
6788 'mkdir (fileutils) '4.1*)
6789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6799 if test "${ac_cv_path_mkdir+set}" = set; then
6800 MKDIR_P="$ac_cv_path_mkdir -p"
6802 # As a last resort, use the slow shell script. Don't cache a
6803 # value for MKDIR_P within a source directory, because that will
6804 # break other packages using the cache if that directory is
6805 # removed, or if the value is a relative name.
6806 test -d ./--version && rmdir ./--version
6807 MKDIR_P="$ac_install_sh -d"
6810 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6811 $as_echo "$MKDIR_P" >&6; }
6813 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6814 # a relative path to it in each makefile where it subsitutes it. This clashes
6815 # with our Makefile.global concept. This workaround helps.
6817 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6820 # Let the user override the search
6821 if test -z "$BISON"; then
6822 for ac_prog in bison
6824 # Extract the first word of "$ac_prog", so it can be a program name with args.
6825 set dummy $ac_prog; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_path_BISON+set}" = set; then
6829 $as_echo_n "(cached) " >&6
6833 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 BISON=$ac_cv_path_BISON
6855 if test -n "$BISON"; then
6856 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6857 $as_echo "$BISON" >&6; }
6859 { $as_echo "$as_me:$LINENO: result: no" >&5
6860 $as_echo "no" >&6; }
6864 test -n "$BISON" && break
6869 if test "$BISON"; then
6870 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6871 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6872 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6873 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6875 { $as_echo "$as_me:$LINENO: WARNING:
6876 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6877 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6878 $as_echo "$as_me: WARNING:
6879 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6880 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6885 if test -z "$BISON"; then
6886 { $as_echo "$as_me:$LINENO: WARNING:
6887 *** Without Bison you will not be able to build PostgreSQL from Git nor
6888 *** change any of the parser definition files. You can obtain Bison from
6889 *** a GNU mirror site. (If you are using the official distribution of
6890 *** PostgreSQL then you do not need to worry about this, because the Bison
6891 *** output is pre-generated.)" >&5
6892 $as_echo "$as_me: WARNING:
6893 *** Without Bison you will not be able to build PostgreSQL from Git nor
6894 *** change any of the parser definition files. You can obtain Bison from
6895 *** a GNU mirror site. (If you are using the official distribution of
6896 *** PostgreSQL then you do not need to worry about this, because the Bison
6897 *** output is pre-generated.)" >&2;}
6899 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6902 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6903 $as_echo_n "checking for flex... " >&6; }
6904 if test "${pgac_cv_path_flex+set}" = set; then
6905 $as_echo_n "(cached) " >&6
6907 # Let the user override the test
6908 if test -n "$FLEX"; then
6909 pgac_cv_path_flex=$FLEX
6913 for pgac_dir in $PATH; do
6915 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6918 for pgac_prog in flex lex; do
6919 pgac_candidate="$pgac_dir/$pgac_prog"
6920 if test -f "$pgac_candidate" \
6921 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6923 echo '%%' > conftest.l
6924 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6925 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6926 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6928 pgac_cv_path_flex=$pgac_candidate
6931 { $as_echo "$as_me:$LINENO: WARNING:
6932 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6933 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6934 $as_echo "$as_me: WARNING:
6935 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6936 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6942 rm -f conftest.l lex.yy.c
6943 : ${pgac_cv_path_flex=no}
6947 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6948 $as_echo "$pgac_cv_path_flex" >&6; }
6949 if test x"$pgac_cv_path_flex" = x"no"; then
6950 { $as_echo "$as_me:$LINENO: WARNING:
6951 *** Without Flex you will not be able to build PostgreSQL from Git nor
6952 *** change any of the scanner definition files. You can obtain Flex from
6953 *** a GNU mirror site. (If you are using the official distribution of
6954 *** PostgreSQL then you do not need to worry about this because the Flex
6955 *** output is pre-generated.)" >&5
6956 $as_echo "$as_me: WARNING:
6957 *** Without Flex you will not be able to build PostgreSQL from Git nor
6958 *** change any of the scanner definition files. You can obtain Flex from
6959 *** a GNU mirror site. (If you are using the official distribution of
6960 *** PostgreSQL then you do not need to worry about this because the Flex
6961 *** output is pre-generated.)" >&2;}
6965 FLEX=$pgac_cv_path_flex
6966 pgac_flex_version=`$FLEX --version 2>/dev/null`
6967 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6968 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6975 # Let the user override the search
6976 if test -z "$PERL"; then
6977 # Extract the first word of "perl", so it can be a program name with args.
6978 set dummy perl; ac_word=$2
6979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if test "${ac_cv_path_PERL+set}" = set; then
6982 $as_echo_n "(cached) " >&6
6986 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 PERL=$ac_cv_path_PERL
7008 if test -n "$PERL"; then
7009 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7010 $as_echo "$PERL" >&6; }
7012 { $as_echo "$as_me:$LINENO: result: no" >&5
7013 $as_echo "no" >&6; }
7019 if test "$PERL"; then
7020 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7021 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7022 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7023 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7024 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7026 { $as_echo "$as_me:$LINENO: WARNING:
7027 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7028 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7029 $as_echo "$as_me: WARNING:
7030 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7031 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7036 if test -z "$PERL"; then
7037 { $as_echo "$as_me:$LINENO: WARNING:
7038 *** Without Perl you will not be able to build PostgreSQL from Git.
7039 *** You can obtain Perl from any CPAN mirror site.
7040 *** (If you are using the official distribution of PostgreSQL then you do not
7041 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7042 $as_echo "$as_me: WARNING:
7043 *** Without Perl you will not be able to build PostgreSQL from Git.
7044 *** You can obtain Perl from any CPAN mirror site.
7045 *** (If you are using the official distribution of PostgreSQL then you do not
7046 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7049 if test "$with_perl" = yes; then
7050 if test -z "$PERL"; then
7051 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7052 $as_echo "$as_me: error: Perl not found" >&2;}
7053 { (exit 1); exit 1; }; }
7056 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7057 $as_echo_n "checking for Perl archlibexp... " >&6; }
7058 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7059 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7060 $as_echo "$perl_archlibexp" >&6; }
7061 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7062 $as_echo_n "checking for Perl privlibexp... " >&6; }
7063 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7064 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7065 $as_echo "$perl_privlibexp" >&6; }
7066 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7067 $as_echo_n "checking for Perl useshrplib... " >&6; }
7068 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7069 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7070 $as_echo "$perl_useshrplib" >&6; }
7072 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7073 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7074 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7075 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7076 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7077 if test -z "$perl_embed_ldflags" ; then
7078 { $as_echo "$as_me:$LINENO: result: no" >&5
7079 $as_echo "no" >&6; }
7080 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7081 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7083 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7084 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7086 { (exit 1); exit 1; }; }
7088 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7089 $as_echo "$perl_embed_ldflags" >&6; }
7094 if test "$with_python" = yes; then
7095 # Extract the first word of "python", so it can be a program name with args.
7096 set dummy python; ac_word=$2
7097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_path_PYTHON+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7104 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 PYTHON=$ac_cv_path_PYTHON
7126 if test -n "$PYTHON"; then
7127 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7128 $as_echo "$PYTHON" >&6; }
7130 { $as_echo "$as_me:$LINENO: result: no" >&5
7131 $as_echo "no" >&6; }
7135 if test x"$PYTHON" = x""; then
7136 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7137 $as_echo "$as_me: error: Python not found" >&2;}
7138 { (exit 1); exit 1; }; }
7142 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7143 $as_echo_n "checking for Python distutils module... " >&6; }
7144 if "${PYTHON}" -c 'import distutils' 2>&5
7146 { $as_echo "$as_me:$LINENO: result: yes" >&5
7147 $as_echo "yes" >&6; }
7149 { $as_echo "$as_me:$LINENO: result: no" >&5
7150 $as_echo "no" >&6; }
7151 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7152 $as_echo "$as_me: error: distutils module not found" >&2;}
7153 { (exit 1); exit 1; }; }
7155 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7156 $as_echo_n "checking Python configuration directory... " >&6; }
7157 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7158 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7159 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'))"`
7160 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7162 # This should be enough of a message.
7163 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7164 $as_echo "$python_configdir" >&6; }
7167 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7168 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7170 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7171 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7172 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7173 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7175 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7177 # New way: use the official shared library
7178 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7179 python_libspec="-L${python_libdir} -l${ldlibrary}"
7181 # Old way: use libpython from python_configdir
7182 python_libdir="${python_configdir}"
7183 python_libspec="-L${python_libdir} -lpython${python_version}"
7186 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7188 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7189 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7192 # threaded python is not supported on bsd's
7193 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7194 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7195 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7196 if test "$pythreads" = "1"; then
7197 { $as_echo "$as_me:$LINENO: result: yes" >&5
7198 $as_echo "yes" >&6; }
7201 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7202 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7203 { (exit 1); exit 1; }; }
7207 { $as_echo "$as_me:$LINENO: result: no" >&5
7208 $as_echo "no" >&6; }
7214 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7215 # Extract the first word of "zic", so it can be a program name with args.
7216 set dummy zic; ac_word=$2
7217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if test "${ac_cv_path_ZIC+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7224 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 if test -n "$ZIC"; then
7247 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7248 $as_echo "$ZIC" >&6; }
7250 { $as_echo "$as_me:$LINENO: result: no" >&5
7251 $as_echo "no" >&6; }
7255 if test -z "$ZIC"; then
7256 { { $as_echo "$as_me:$LINENO: error:
7257 When cross-compiling, either use the option --with-system-tzdata to use
7258 existing time-zone data, or set the environment variable ZIC to a zic
7259 program to use during the build." >&5
7260 $as_echo "$as_me: error:
7261 When cross-compiling, either use the option --with-system-tzdata to use
7262 existing time-zone data, or set the environment variable ZIC to a zic
7263 program to use during the build." >&2;}
7264 { (exit 1); exit 1; }; }
7272 ## Most libraries are included only if they demonstrably provide a function
7273 ## we need, but libm is an exception: always include it, because there are
7274 ## too many compilers that play cute optimization games that will break
7275 ## probes for standard functions such as pow().
7279 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7280 $as_echo_n "checking for main in -lm... " >&6; }
7281 if test "${ac_cv_lib_m_main+set}" = set; then
7282 $as_echo_n "(cached) " >&6
7284 ac_check_lib_save_LIBS=$LIBS
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (ac_try="$ac_link"
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309 $as_echo "$ac_try_echo") >&5
7310 (eval "$ac_link") 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest$ac_exeext && {
7320 test "$cross_compiling" = yes ||
7321 $as_test_x conftest$ac_exeext
7323 ac_cv_lib_m_main=yes
7325 $as_echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7331 rm -rf conftest.dSYM
7332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7333 conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7337 $as_echo "$ac_cv_lib_m_main" >&6; }
7338 if test "x$ac_cv_lib_m_main" = x""yes; then
7339 cat >>confdefs.h <<_ACEOF
7347 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7348 $as_echo_n "checking for library containing setproctitle... " >&6; }
7349 if test "${ac_cv_search_setproctitle+set}" = set; then
7350 $as_echo_n "(cached) " >&6
7352 ac_func_search_save_LIBS=$LIBS
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any GCC internal prototype to avoid an error.
7361 Use char because int might match the return type of a GCC
7362 builtin and then its argument prototype would still apply. */
7366 char setproctitle ();
7370 return setproctitle ();
7375 for ac_lib in '' util; do
7376 if test -z "$ac_lib"; then
7377 ac_res="none required"
7380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (ac_try="$ac_link"
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7389 $as_echo "$ac_try_echo") >&5
7390 (eval "$ac_link") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest$ac_exeext && {
7400 test "$cross_compiling" = yes ||
7401 $as_test_x conftest$ac_exeext
7403 ac_cv_search_setproctitle=$ac_res
7405 $as_echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7411 rm -rf conftest.dSYM
7412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7414 if test "${ac_cv_search_setproctitle+set}" = set; then
7418 if test "${ac_cv_search_setproctitle+set}" = set; then
7421 ac_cv_search_setproctitle=no
7424 LIBS=$ac_func_search_save_LIBS
7426 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7427 $as_echo "$ac_cv_search_setproctitle" >&6; }
7428 ac_res=$ac_cv_search_setproctitle
7429 if test "$ac_res" != no; then
7430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7434 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7435 $as_echo_n "checking for library containing dlopen... " >&6; }
7436 if test "${ac_cv_search_dlopen+set}" = set; then
7437 $as_echo_n "(cached) " >&6
7439 ac_func_search_save_LIBS=$LIBS
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7447 /* Override any GCC internal prototype to avoid an error.
7448 Use char because int might match the return type of a GCC
7449 builtin and then its argument prototype would still apply. */
7462 for ac_lib in '' dl; do
7463 if test -z "$ac_lib"; then
7464 ac_res="none required"
7467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (ac_try="$ac_link"
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477 (eval "$ac_link") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest$ac_exeext && {
7487 test "$cross_compiling" = yes ||
7488 $as_test_x conftest$ac_exeext
7490 ac_cv_search_dlopen=$ac_res
7492 $as_echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7498 rm -rf conftest.dSYM
7499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7501 if test "${ac_cv_search_dlopen+set}" = set; then
7505 if test "${ac_cv_search_dlopen+set}" = set; then
7508 ac_cv_search_dlopen=no
7511 LIBS=$ac_func_search_save_LIBS
7513 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7514 $as_echo "$ac_cv_search_dlopen" >&6; }
7515 ac_res=$ac_cv_search_dlopen
7516 if test "$ac_res" != no; then
7517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7521 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7522 $as_echo_n "checking for library containing socket... " >&6; }
7523 if test "${ac_cv_search_socket+set}" = set; then
7524 $as_echo_n "(cached) " >&6
7526 ac_func_search_save_LIBS=$LIBS
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7534 /* Override any GCC internal prototype to avoid an error.
7535 Use char because int might match the return type of a GCC
7536 builtin and then its argument prototype would still apply. */
7549 for ac_lib in '' socket wsock32; do
7550 if test -z "$ac_lib"; then
7551 ac_res="none required"
7554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (ac_try="$ac_link"
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7563 $as_echo "$ac_try_echo") >&5
7564 (eval "$ac_link") 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest$ac_exeext && {
7574 test "$cross_compiling" = yes ||
7575 $as_test_x conftest$ac_exeext
7577 ac_cv_search_socket=$ac_res
7579 $as_echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7585 rm -rf conftest.dSYM
7586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7588 if test "${ac_cv_search_socket+set}" = set; then
7592 if test "${ac_cv_search_socket+set}" = set; then
7595 ac_cv_search_socket=no
7598 LIBS=$ac_func_search_save_LIBS
7600 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7601 $as_echo "$ac_cv_search_socket" >&6; }
7602 ac_res=$ac_cv_search_socket
7603 if test "$ac_res" != no; then
7604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7608 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7609 $as_echo_n "checking for library containing shl_load... " >&6; }
7610 if test "${ac_cv_search_shl_load+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7613 ac_func_search_save_LIBS=$LIBS
7614 cat >conftest.$ac_ext <<_ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7621 /* Override any GCC internal prototype to avoid an error.
7622 Use char because int might match the return type of a GCC
7623 builtin and then its argument prototype would still apply. */
7636 for ac_lib in '' dld; do
7637 if test -z "$ac_lib"; then
7638 ac_res="none required"
7641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (ac_try="$ac_link"
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7650 $as_echo "$ac_try_echo") >&5
7651 (eval "$ac_link") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest$ac_exeext && {
7661 test "$cross_compiling" = yes ||
7662 $as_test_x conftest$ac_exeext
7664 ac_cv_search_shl_load=$ac_res
7666 $as_echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7672 rm -rf conftest.dSYM
7673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7675 if test "${ac_cv_search_shl_load+set}" = set; then
7679 if test "${ac_cv_search_shl_load+set}" = set; then
7682 ac_cv_search_shl_load=no
7685 LIBS=$ac_func_search_save_LIBS
7687 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7688 $as_echo "$ac_cv_search_shl_load" >&6; }
7689 ac_res=$ac_cv_search_shl_load
7690 if test "$ac_res" != no; then
7691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7695 # We only use libld in port/dynloader/aix.c
7698 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7699 $as_echo_n "checking for library containing ldopen... " >&6; }
7700 if test "${ac_cv_search_ldopen+set}" = set; then
7701 $as_echo_n "(cached) " >&6
7703 ac_func_search_save_LIBS=$LIBS
7704 cat >conftest.$ac_ext <<_ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7711 /* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply. */
7726 for ac_lib in '' ld; do
7727 if test -z "$ac_lib"; then
7728 ac_res="none required"
7731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (ac_try="$ac_link"
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7740 $as_echo "$ac_try_echo") >&5
7741 (eval "$ac_link") 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest$ac_exeext && {
7751 test "$cross_compiling" = yes ||
7752 $as_test_x conftest$ac_exeext
7754 ac_cv_search_ldopen=$ac_res
7756 $as_echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7762 rm -rf conftest.dSYM
7763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7765 if test "${ac_cv_search_ldopen+set}" = set; then
7769 if test "${ac_cv_search_ldopen+set}" = set; then
7772 ac_cv_search_ldopen=no
7775 LIBS=$ac_func_search_save_LIBS
7777 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7778 $as_echo "$ac_cv_search_ldopen" >&6; }
7779 ac_res=$ac_cv_search_ldopen
7780 if test "$ac_res" != no; then
7781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7787 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7788 $as_echo_n "checking for library containing getopt_long... " >&6; }
7789 if test "${ac_cv_search_getopt_long+set}" = set; then
7790 $as_echo_n "(cached) " >&6
7792 ac_func_search_save_LIBS=$LIBS
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7800 /* Override any GCC internal prototype to avoid an error.
7801 Use char because int might match the return type of a GCC
7802 builtin and then its argument prototype would still apply. */
7806 char getopt_long ();
7810 return getopt_long ();
7815 for ac_lib in '' getopt gnugetopt; do
7816 if test -z "$ac_lib"; then
7817 ac_res="none required"
7820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest$ac_exeext
7843 ac_cv_search_getopt_long=$ac_res
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7854 if test "${ac_cv_search_getopt_long+set}" = set; then
7858 if test "${ac_cv_search_getopt_long+set}" = set; then
7861 ac_cv_search_getopt_long=no
7864 LIBS=$ac_func_search_save_LIBS
7866 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7867 $as_echo "$ac_cv_search_getopt_long" >&6; }
7868 ac_res=$ac_cv_search_getopt_long
7869 if test "$ac_res" != no; then
7870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7874 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7875 $as_echo_n "checking for library containing crypt... " >&6; }
7876 if test "${ac_cv_search_crypt+set}" = set; then
7877 $as_echo_n "(cached) " >&6
7879 ac_func_search_save_LIBS=$LIBS
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7887 /* Override any GCC internal prototype to avoid an error.
7888 Use char because int might match the return type of a GCC
7889 builtin and then its argument prototype would still apply. */
7902 for ac_lib in '' crypt; do
7903 if test -z "$ac_lib"; then
7904 ac_res="none required"
7907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7916 $as_echo "$ac_try_echo") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest$ac_exeext && {
7927 test "$cross_compiling" = yes ||
7928 $as_test_x conftest$ac_exeext
7930 ac_cv_search_crypt=$ac_res
7932 $as_echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7938 rm -rf conftest.dSYM
7939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941 if test "${ac_cv_search_crypt+set}" = set; then
7945 if test "${ac_cv_search_crypt+set}" = set; then
7948 ac_cv_search_crypt=no
7951 LIBS=$ac_func_search_save_LIBS
7953 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7954 $as_echo "$ac_cv_search_crypt" >&6; }
7955 ac_res=$ac_cv_search_crypt
7956 if test "$ac_res" != no; then
7957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7962 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7963 $as_echo_n "checking for library containing fdatasync... " >&6; }
7964 if test "${ac_cv_search_fdatasync+set}" = set; then
7965 $as_echo_n "(cached) " >&6
7967 ac_func_search_save_LIBS=$LIBS
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7975 /* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
7985 return fdatasync ();
7990 for ac_lib in '' rt posix4; do
7991 if test -z "$ac_lib"; then
7992 ac_res="none required"
7995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8004 $as_echo "$ac_try_echo") >&5
8005 (eval "$ac_link") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest$ac_exeext && {
8015 test "$cross_compiling" = yes ||
8016 $as_test_x conftest$ac_exeext
8018 ac_cv_search_fdatasync=$ac_res
8020 $as_echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8026 rm -rf conftest.dSYM
8027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 if test "${ac_cv_search_fdatasync+set}" = set; then
8033 if test "${ac_cv_search_fdatasync+set}" = set; then
8036 ac_cv_search_fdatasync=no
8039 LIBS=$ac_func_search_save_LIBS
8041 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8042 $as_echo "$ac_cv_search_fdatasync" >&6; }
8043 ac_res=$ac_cv_search_fdatasync
8044 if test "$ac_res" != no; then
8045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8049 # Required for thread_test.c on Solaris 2.5:
8050 # Other ports use it too (HP-UX) so test unconditionally
8051 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8052 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8053 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8056 ac_func_search_save_LIBS=$LIBS
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8064 /* Override any GCC internal prototype to avoid an error.
8065 Use char because int might match the return type of a GCC
8066 builtin and then its argument prototype would still apply. */
8070 char gethostbyname_r ();
8074 return gethostbyname_r ();
8079 for ac_lib in '' nsl; do
8080 if test -z "$ac_lib"; then
8081 ac_res="none required"
8084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext && {
8104 test "$cross_compiling" = yes ||
8105 $as_test_x conftest$ac_exeext
8107 ac_cv_search_gethostbyname_r=$ac_res
8109 $as_echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8115 rm -rf conftest.dSYM
8116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8122 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8125 ac_cv_search_gethostbyname_r=no
8128 LIBS=$ac_func_search_save_LIBS
8130 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8131 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8132 ac_res=$ac_cv_search_gethostbyname_r
8133 if test "$ac_res" != no; then
8134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8139 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8140 $as_echo_n "checking for library containing shmget... " >&6; }
8141 if test "${ac_cv_search_shmget+set}" = set; then
8142 $as_echo_n "(cached) " >&6
8144 ac_func_search_save_LIBS=$LIBS
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8152 /* Override any GCC internal prototype to avoid an error.
8153 Use char because int might match the return type of a GCC
8154 builtin and then its argument prototype would still apply. */
8167 for ac_lib in '' cygipc; do
8168 if test -z "$ac_lib"; then
8169 ac_res="none required"
8172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8181 $as_echo "$ac_try_echo") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest$ac_exeext && {
8192 test "$cross_compiling" = yes ||
8193 $as_test_x conftest$ac_exeext
8195 ac_cv_search_shmget=$ac_res
8197 $as_echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8203 rm -rf conftest.dSYM
8204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8206 if test "${ac_cv_search_shmget+set}" = set; then
8210 if test "${ac_cv_search_shmget+set}" = set; then
8213 ac_cv_search_shmget=no
8216 LIBS=$ac_func_search_save_LIBS
8218 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8219 $as_echo "$ac_cv_search_shmget" >&6; }
8220 ac_res=$ac_cv_search_shmget
8221 if test "$ac_res" != no; then
8222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8227 if test "$with_readline" = yes; then
8230 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8231 $as_echo_n "checking for library containing readline... " >&6; }
8232 if test "${pgac_cv_check_readline+set}" = set; then
8233 $as_echo_n "(cached) " >&6
8235 pgac_cv_check_readline=no
8236 pgac_save_LIBS=$LIBS
8237 if test x"$with_libedit_preferred" != x"yes"
8238 then READLINE_ORDER="-lreadline -ledit"
8239 else READLINE_ORDER="-ledit -lreadline"
8241 for pgac_rllib in $READLINE_ORDER ; do
8242 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8243 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 /* Override any GCC internal prototype to avoid an error.
8252 Use char because int might match the return type of a GCC
8253 builtin and then its argument prototype would still apply. */
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (ac_try="$ac_link"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274 (eval "$ac_link") 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest$ac_exeext && {
8284 test "$cross_compiling" = yes ||
8285 $as_test_x conftest$ac_exeext
8288 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8289 # recognize dependent libraries; assume curses is needed if we didn't
8290 # find any dependency.
8292 netbsd* | openbsd* | irix*)
8293 if test x"$pgac_lib" = x"" ; then
8294 pgac_lib=" -lcurses"
8298 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8302 $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8308 rm -rf conftest.dSYM
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8312 if test "$pgac_cv_check_readline" != no ; then
8316 LIBS=$pgac_save_LIBS
8319 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8320 $as_echo "$pgac_cv_check_readline" >&6; }
8321 if test "$pgac_cv_check_readline" != no ; then
8322 LIBS="$pgac_cv_check_readline $LIBS"
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_LIBREADLINE 1
8331 if test x"$pgac_cv_check_readline" = x"no"; then
8332 { { $as_echo "$as_me:$LINENO: error: readline library not found
8333 If you have readline already installed, see config.log for details on the
8334 failure. It is possible the compiler isn't looking in the proper directory.
8335 Use --without-readline to disable readline support." >&5
8336 $as_echo "$as_me: error: readline library not found
8337 If you have readline already installed, see config.log for details on the
8338 failure. It is possible the compiler isn't looking in the proper directory.
8339 Use --without-readline to disable readline support." >&2;}
8340 { (exit 1); exit 1; }; }
8344 if test "$with_zlib" = yes; then
8346 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8347 $as_echo_n "checking for inflate in -lz... " >&6; }
8348 if test "${ac_cv_lib_z_inflate+set}" = set; then
8349 $as_echo_n "(cached) " >&6
8351 ac_check_lib_save_LIBS=$LIBS
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8360 /* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382 $as_echo "$ac_try_echo") >&5
8383 (eval "$ac_link") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest$ac_exeext && {
8393 test "$cross_compiling" = yes ||
8394 $as_test_x conftest$ac_exeext
8396 ac_cv_lib_z_inflate=yes
8398 $as_echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_lib_z_inflate=no
8404 rm -rf conftest.dSYM
8405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8406 conftest$ac_exeext conftest.$ac_ext
8407 LIBS=$ac_check_lib_save_LIBS
8409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8410 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8411 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8412 cat >>confdefs.h <<_ACEOF
8419 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8420 If you have zlib already installed, see config.log for details on the
8421 failure. It is possible the compiler isn't looking in the proper directory.
8422 Use --without-zlib to disable zlib support." >&5
8423 $as_echo "$as_me: error: zlib library not found
8424 If you have zlib already installed, see config.log for details on the
8425 failure. It is possible the compiler isn't looking in the proper directory.
8426 Use --without-zlib to disable zlib support." >&2;}
8427 { (exit 1); exit 1; }; }
8432 if test "$enable_spinlocks" = yes; then
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_SPINLOCKS 1
8439 { $as_echo "$as_me:$LINENO: WARNING:
8440 *** Not using spinlocks will cause poor performance." >&5
8441 $as_echo "$as_me: WARNING:
8442 *** Not using spinlocks will cause poor performance." >&2;}
8445 if test "$with_gssapi" = yes ; then
8446 if test "$PORTNAME" != "win32"; then
8447 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8448 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8449 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8452 ac_func_search_save_LIBS=$LIBS
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8460 /* Override any GCC internal prototype to avoid an error.
8461 Use char because int might match the return type of a GCC
8462 builtin and then its argument prototype would still apply. */
8466 char gss_init_sec_context ();
8470 return gss_init_sec_context ();
8475 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8476 if test -z "$ac_lib"; then
8477 ac_res="none required"
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest$ac_exeext && {
8500 test "$cross_compiling" = yes ||
8501 $as_test_x conftest$ac_exeext
8503 ac_cv_search_gss_init_sec_context=$ac_res
8505 $as_echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8511 rm -rf conftest.dSYM
8512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8518 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8521 ac_cv_search_gss_init_sec_context=no
8524 LIBS=$ac_func_search_save_LIBS
8526 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8527 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8528 ac_res=$ac_cv_search_gss_init_sec_context
8529 if test "$ac_res" != no; then
8530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8534 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8535 { (exit 1); exit 1; }; }
8539 LIBS="$LIBS -lgssapi32"
8543 if test "$with_krb5" = yes ; then
8544 if test "$PORTNAME" != "win32"; then
8545 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8546 $as_echo_n "checking for library containing com_err... " >&6; }
8547 if test "${ac_cv_search_com_err+set}" = set; then
8548 $as_echo_n "(cached) " >&6
8550 ac_func_search_save_LIBS=$LIBS
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8573 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8587 $as_echo "$ac_try_echo") >&5
8588 (eval "$ac_link") 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest$ac_exeext && {
8598 test "$cross_compiling" = yes ||
8599 $as_test_x conftest$ac_exeext
8601 ac_cv_search_com_err=$ac_res
8603 $as_echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -rf conftest.dSYM
8610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 if test "${ac_cv_search_com_err+set}" = set; then
8616 if test "${ac_cv_search_com_err+set}" = set; then
8619 ac_cv_search_com_err=no
8622 LIBS=$ac_func_search_save_LIBS
8624 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8625 $as_echo "$ac_cv_search_com_err" >&6; }
8626 ac_res=$ac_cv_search_com_err
8627 if test "$ac_res" != no; then
8628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8631 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8632 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8633 { (exit 1); exit 1; }; }
8636 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8637 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8638 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8639 $as_echo_n "(cached) " >&6
8641 ac_func_search_save_LIBS=$LIBS
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8655 char krb5_sendauth ();
8659 return krb5_sendauth ();
8664 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8665 if test -z "$ac_lib"; then
8666 ac_res="none required"
8669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (ac_try="$ac_link"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_link") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest$ac_exeext && {
8689 test "$cross_compiling" = yes ||
8690 $as_test_x conftest$ac_exeext
8692 ac_cv_search_krb5_sendauth=$ac_res
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8700 rm -rf conftest.dSYM
8701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8703 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8707 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8710 ac_cv_search_krb5_sendauth=no
8713 LIBS=$ac_func_search_save_LIBS
8715 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8716 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8717 ac_res=$ac_cv_search_krb5_sendauth
8718 if test "$ac_res" != no; then
8719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8722 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8723 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8724 { (exit 1); exit 1; }; }
8728 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8729 $as_echo_n "checking for library containing com_err... " >&6; }
8730 if test "${ac_cv_search_com_err+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 ac_func_search_save_LIBS=$LIBS
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 /* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8756 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8757 if test -z "$ac_lib"; then
8758 ac_res="none required"
8761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8770 $as_echo "$ac_try_echo") >&5
8771 (eval "$ac_link") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest$ac_exeext && {
8781 test "$cross_compiling" = yes ||
8782 $as_test_x conftest$ac_exeext
8784 ac_cv_search_com_err=$ac_res
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8792 rm -rf conftest.dSYM
8793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8795 if test "${ac_cv_search_com_err+set}" = set; then
8799 if test "${ac_cv_search_com_err+set}" = set; then
8802 ac_cv_search_com_err=no
8805 LIBS=$ac_func_search_save_LIBS
8807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8808 $as_echo "$ac_cv_search_com_err" >&6; }
8809 ac_res=$ac_cv_search_com_err
8810 if test "$ac_res" != no; then
8811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8814 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8815 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8816 { (exit 1); exit 1; }; }
8822 if test "$with_openssl" = yes ; then
8823 if test "$PORTNAME" != "win32"; then
8825 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8826 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8827 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8828 $as_echo_n "(cached) " >&6
8830 ac_check_lib_save_LIBS=$LIBS
8831 LIBS="-lcrypto $LIBS"
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8845 char CRYPTO_new_ex_data ();
8849 return CRYPTO_new_ex_data ();
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (ac_try="$ac_link"
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861 $as_echo "$ac_try_echo") >&5
8862 (eval "$ac_link") 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && {
8869 test -z "$ac_c_werror_flag" ||
8870 test ! -s conftest.err
8871 } && test -s conftest$ac_exeext && {
8872 test "$cross_compiling" = yes ||
8873 $as_test_x conftest$ac_exeext
8875 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8877 $as_echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8883 rm -rf conftest.dSYM
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8889 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8890 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LIBCRYPTO 1
8895 LIBS="-lcrypto $LIBS"
8898 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8899 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8900 { (exit 1); exit 1; }; }
8904 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8905 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8906 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8907 $as_echo_n "(cached) " >&6
8909 ac_check_lib_save_LIBS=$LIBS
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8918 /* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
8924 char SSL_library_init ();
8928 return SSL_library_init ();
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8940 $as_echo "$ac_try_echo") >&5
8941 (eval "$ac_link") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest$ac_exeext && {
8951 test "$cross_compiling" = yes ||
8952 $as_test_x conftest$ac_exeext
8954 ac_cv_lib_ssl_SSL_library_init=yes
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_lib_ssl_SSL_library_init=no
8962 rm -rf conftest.dSYM
8963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LIBS=$ac_check_lib_save_LIBS
8967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8968 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8969 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_LIBSSL 1
8977 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8978 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8979 { (exit 1); exit 1; }; }
8984 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8985 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8986 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8987 $as_echo_n "(cached) " >&6
8989 ac_check_lib_save_LIBS=$LIBS
8990 LIBS="-leay32 $LIBS"
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8998 /* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9004 char CRYPTO_new_ex_data ();
9008 return CRYPTO_new_ex_data ();
9013 rm -f conftest.$ac_objext conftest$ac_exeext
9014 if { (ac_try="$ac_link"
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9020 $as_echo "$ac_try_echo") >&5
9021 (eval "$ac_link") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest$ac_exeext && {
9031 test "$cross_compiling" = yes ||
9032 $as_test_x conftest$ac_exeext
9034 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9036 $as_echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9042 rm -rf conftest.dSYM
9043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9048 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9049 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define HAVE_LIBEAY32 1
9054 LIBS="-leay32 $LIBS"
9057 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9058 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9059 { (exit 1); exit 1; }; }
9063 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9064 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9065 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9068 ac_check_lib_save_LIBS=$LIBS
9069 LIBS="-lssleay32 $LIBS"
9070 cat >conftest.$ac_ext <<_ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9077 /* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9083 char SSL_library_init ();
9087 return SSL_library_init ();
9092 rm -f conftest.$ac_objext conftest$ac_exeext
9093 if { (ac_try="$ac_link"
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9099 $as_echo "$ac_try_echo") >&5
9100 (eval "$ac_link") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest$ac_exeext && {
9110 test "$cross_compiling" = yes ||
9111 $as_test_x conftest$ac_exeext
9113 ac_cv_lib_ssleay32_SSL_library_init=yes
9115 $as_echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_lib_ssleay32_SSL_library_init=no
9121 rm -rf conftest.dSYM
9122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9127 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9128 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_LIBSSLEAY32 1
9133 LIBS="-lssleay32 $LIBS"
9136 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9137 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9138 { (exit 1); exit 1; }; }
9144 if test "$with_pam" = yes ; then
9146 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9147 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9148 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9149 $as_echo_n "(cached) " >&6
9151 ac_check_lib_save_LIBS=$LIBS
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9160 /* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9170 return pam_start ();
9175 rm -f conftest.$ac_objext conftest$ac_exeext
9176 if { (ac_try="$ac_link"
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9182 $as_echo "$ac_try_echo") >&5
9183 (eval "$ac_link") 2>conftest.er1
9185 grep -v '^ *+' conftest.er1 >conftest.err
9187 cat conftest.err >&5
9188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && {
9190 test -z "$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 } && test -s conftest$ac_exeext && {
9193 test "$cross_compiling" = yes ||
9194 $as_test_x conftest$ac_exeext
9196 ac_cv_lib_pam_pam_start=yes
9198 $as_echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_cv_lib_pam_pam_start=no
9204 rm -rf conftest.dSYM
9205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9206 conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9210 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9211 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_LIBPAM 1
9219 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9220 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9221 { (exit 1); exit 1; }; }
9226 if test "$with_libxml" = yes ; then
9228 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9229 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9230 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9233 ac_check_lib_save_LIBS=$LIBS
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9242 /* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
9248 char xmlSaveToBuffer ();
9252 return xmlSaveToBuffer ();
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (ac_try="$ac_link"
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_link") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest$ac_exeext && {
9275 test "$cross_compiling" = yes ||
9276 $as_test_x conftest$ac_exeext
9278 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9280 $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_cv_lib_xml2_xmlSaveToBuffer=no
9286 rm -rf conftest.dSYM
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 LIBS=$ac_check_lib_save_LIBS
9291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9292 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9293 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9294 cat >>confdefs.h <<_ACEOF
9295 #define HAVE_LIBXML2 1
9301 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9302 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9303 { (exit 1); exit 1; }; }
9308 if test "$with_libxslt" = yes ; then
9310 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9311 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9312 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9313 $as_echo_n "(cached) " >&6
9315 ac_check_lib_save_LIBS=$LIBS
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9330 char xsltCleanupGlobals ();
9334 return xsltCleanupGlobals ();
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346 $as_echo "$ac_try_echo") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext && {
9357 test "$cross_compiling" = yes ||
9358 $as_test_x conftest$ac_exeext
9360 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9362 $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_lib_xslt_xsltCleanupGlobals=no
9368 rm -rf conftest.dSYM
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9374 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9375 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_LIBXSLT 1
9383 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9384 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9385 { (exit 1); exit 1; }; }
9390 # for contrib/sepgsql
9391 if test "$with_selinux" = yes; then
9393 { $as_echo "$as_me:$LINENO: checking for getpeercon_raw in -lselinux" >&5
9394 $as_echo_n "checking for getpeercon_raw in -lselinux... " >&6; }
9395 if test "${ac_cv_lib_selinux_getpeercon_raw+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lselinux $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9413 char getpeercon_raw ();
9417 return getpeercon_raw ();
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_link") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext && {
9440 test "$cross_compiling" = yes ||
9441 $as_test_x conftest$ac_exeext
9443 ac_cv_lib_selinux_getpeercon_raw=yes
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_cv_lib_selinux_getpeercon_raw=no
9451 rm -rf conftest.dSYM
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_lib_save_LIBS
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getpeercon_raw" >&5
9457 $as_echo "$ac_cv_lib_selinux_getpeercon_raw" >&6; }
9458 if test "x$ac_cv_lib_selinux_getpeercon_raw" = x""yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define HAVE_LIBSELINUX 1
9463 LIBS="-lselinux $LIBS"
9466 { { $as_echo "$as_me:$LINENO: error: library 'libselinux' is required for SELinux support" >&5
9467 $as_echo "$as_me: error: library 'libselinux' is required for SELinux support" >&2;}
9468 { (exit 1); exit 1; }; }
9473 # for contrib/uuid-ossp
9474 if test "$with_ossp_uuid" = yes ; then
9475 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9476 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9477 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9478 $as_echo_n "(cached) " >&6
9480 ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-lossp-uuid $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9495 char uuid_export ();
9499 return uuid_export ();
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9511 $as_echo "$ac_try_echo") >&5
9512 (eval "$ac_link") 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest$ac_exeext && {
9522 test "$cross_compiling" = yes ||
9523 $as_test_x conftest$ac_exeext
9525 ac_cv_lib_ossp_uuid_uuid_export=yes
9527 $as_echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_cv_lib_ossp_uuid_uuid_export=no
9533 rm -rf conftest.dSYM
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9539 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9540 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9541 OSSP_UUID_LIBS="-lossp-uuid"
9543 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9544 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9545 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9546 $as_echo_n "(cached) " >&6
9548 ac_check_lib_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char uuid_export ();
9567 return uuid_export ();
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9579 $as_echo "$ac_try_echo") >&5
9580 (eval "$ac_link") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && {
9587 test -z "$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 } && test -s conftest$ac_exeext && {
9590 test "$cross_compiling" = yes ||
9591 $as_test_x conftest$ac_exeext
9593 ac_cv_lib_uuid_uuid_export=yes
9595 $as_echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_cv_lib_uuid_uuid_export=no
9601 rm -rf conftest.dSYM
9602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9603 conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9607 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9608 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9609 OSSP_UUID_LIBS="-luuid"
9611 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9612 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9613 { (exit 1); exit 1; }; }
9626 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9627 $as_echo_n "checking for ANSI C header files... " >&6; }
9628 if test "${ac_cv_header_stdc+set}" = set; then
9629 $as_echo_n "(cached) " >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9650 rm -f conftest.$ac_objext
9651 if { (ac_try="$ac_compile"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657 $as_echo "$ac_try_echo") >&5
9658 (eval "$ac_compile") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest.$ac_objext; then
9668 ac_cv_header_stdc=yes
9670 $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_header_stdc=no
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 if test $ac_cv_header_stdc = yes; then
9679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9690 $EGREP "memchr" >/dev/null 2>&1; then
9693 ac_cv_header_stdc=no
9699 if test $ac_cv_header_stdc = yes; then
9700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9711 $EGREP "free" >/dev/null 2>&1; then
9714 ac_cv_header_stdc=no
9720 if test $ac_cv_header_stdc = yes; then
9721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9722 if test "$cross_compiling" = yes; then
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9733 #if ((' ' & 0x0FF) == 0x020)
9734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9737 # define ISLOWER(c) \
9738 (('a' <= (c) && (c) <= 'i') \
9739 || ('j' <= (c) && (c) <= 'r') \
9740 || ('s' <= (c) && (c) <= 'z'))
9741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9749 for (i = 0; i < 256; i++)
9750 if (XOR (islower (i), ISLOWER (i))
9751 || toupper (i) != TOUPPER (i))
9756 rm -f conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9763 $as_echo "$ac_try_echo") >&5
9764 (eval "$ac_link") 2>&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_try") 2>&5
9776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9780 $as_echo "$as_me: program exited with status $ac_status" >&5
9781 $as_echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_cv_header_stdc=no
9787 rm -rf conftest.dSYM
9788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9794 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9795 $as_echo "$ac_cv_header_stdc" >&6; }
9796 if test $ac_cv_header_stdc = yes; then
9798 cat >>confdefs.h <<\_ACEOF
9799 #define STDC_HEADERS 1
9804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9815 inttypes.h stdint.h unistd.h
9817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9819 $as_echo_n "checking for $ac_header... " >&6; }
9820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9821 $as_echo_n "(cached) " >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9831 #include <$ac_header>
9833 rm -f conftest.$ac_objext
9834 if { (ac_try="$ac_compile"
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9840 $as_echo "$ac_try_echo") >&5
9841 (eval "$ac_compile") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest.$ac_objext; then
9851 eval "$as_ac_Header=yes"
9853 $as_echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_Header=no"
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 ac_res=`eval 'as_val=${'$as_ac_Header'}
9862 $as_echo "$as_val"'`
9863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9864 $as_echo "$ac_res" >&6; }
9865 as_val=`eval 'as_val=${'$as_ac_Header'}
9866 $as_echo "$as_val"'`
9867 if test "x$as_val" = x""yes; then
9868 cat >>confdefs.h <<_ACEOF
9869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9907 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9912 $as_echo_n "checking for $ac_header... " >&6; }
9913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9914 $as_echo_n "(cached) " >&6
9916 ac_res=`eval 'as_val=${'$as_ac_Header'}
9917 $as_echo "$as_val"'`
9918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9919 $as_echo "$ac_res" >&6; }
9921 # Is the header compilable?
9922 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9923 $as_echo_n "checking $ac_header usability... " >&6; }
9924 cat >conftest.$ac_ext <<_ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9930 $ac_includes_default
9931 #include <$ac_header>
9933 rm -f conftest.$ac_objext
9934 if { (ac_try="$ac_compile"
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9940 $as_echo "$ac_try_echo") >&5
9941 (eval "$ac_compile") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
9951 ac_header_compiler=yes
9953 $as_echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9956 ac_header_compiler=no
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9961 $as_echo "$ac_header_compiler" >&6; }
9963 # Is the header present?
9964 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9965 $as_echo_n "checking $ac_header presence... " >&6; }
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 #include <$ac_header>
9974 if { (ac_try="$ac_cpp conftest.$ac_ext"
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9980 $as_echo "$ac_try_echo") >&5
9981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } >/dev/null && {
9988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9991 ac_header_preproc=yes
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_header_preproc=no
9999 rm -f conftest.err conftest.$ac_ext
10000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10001 $as_echo "$ac_header_preproc" >&6; }
10003 # So? What about this header?
10004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10010 ac_header_preproc=yes
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10026 ## ---------------------------------------- ##
10027 ## Report this to pgsql-bugs@postgresql.org ##
10028 ## ---------------------------------------- ##
10030 ) | sed "s/^/$as_me: WARNING: /" >&2
10033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10034 $as_echo_n "checking for $ac_header... " >&6; }
10035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10036 $as_echo_n "(cached) " >&6
10038 eval "$as_ac_Header=\$ac_header_preproc"
10040 ac_res=`eval 'as_val=${'$as_ac_Header'}
10041 $as_echo "$as_val"'`
10042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10043 $as_echo "$ac_res" >&6; }
10046 as_val=`eval 'as_val=${'$as_ac_Header'}
10047 $as_echo "$as_val"'`
10048 if test "x$as_val" = x""yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10059 # is included first.
10061 for ac_header in net/if.h
10063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10065 $as_echo_n "checking for $ac_header... " >&6; }
10066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10067 $as_echo_n "(cached) " >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 #ifdef HAVE_SYS_SOCKET_H
10077 #include <sys/socket.h>
10081 #include <$ac_header>
10083 rm -f conftest.$ac_objext
10084 if { (ac_try="$ac_compile"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090 $as_echo "$ac_try_echo") >&5
10091 (eval "$ac_compile") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest.$ac_objext; then
10101 eval "$as_ac_Header=yes"
10103 $as_echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 eval "$as_ac_Header=no"
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111 ac_res=`eval 'as_val=${'$as_ac_Header'}
10112 $as_echo "$as_val"'`
10113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10114 $as_echo "$ac_res" >&6; }
10115 as_val=`eval 'as_val=${'$as_ac_Header'}
10116 $as_echo "$as_val"'`
10117 if test "x$as_val" = x""yes; then
10118 cat >>confdefs.h <<_ACEOF
10119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10127 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10128 # netinet/in.h is included first.
10130 for ac_header in netinet/in.h
10132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10135 $as_echo_n "checking for $ac_header... " >&6; }
10136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10137 $as_echo_n "(cached) " >&6
10139 ac_res=`eval 'as_val=${'$as_ac_Header'}
10140 $as_echo "$as_val"'`
10141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10142 $as_echo "$ac_res" >&6; }
10144 # Is the header compilable?
10145 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10146 $as_echo_n "checking $ac_header usability... " >&6; }
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 $ac_includes_default
10154 #include <$ac_header>
10156 rm -f conftest.$ac_objext
10157 if { (ac_try="$ac_compile"
10158 case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10163 $as_echo "$ac_try_echo") >&5
10164 (eval "$ac_compile") 2>conftest.er1
10166 grep -v '^ *+' conftest.er1 >conftest.err
10168 cat conftest.err >&5
10169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } && {
10171 test -z "$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 } && test -s conftest.$ac_objext; then
10174 ac_header_compiler=yes
10176 $as_echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 ac_header_compiler=no
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10184 $as_echo "$ac_header_compiler" >&6; }
10186 # Is the header present?
10187 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10188 $as_echo_n "checking $ac_header presence... " >&6; }
10189 cat >conftest.$ac_ext <<_ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 #include <$ac_header>
10197 if { (ac_try="$ac_cpp conftest.$ac_ext"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203 $as_echo "$ac_try_echo") >&5
10204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } >/dev/null && {
10211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10214 ac_header_preproc=yes
10216 $as_echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_header_preproc=no
10222 rm -f conftest.err conftest.$ac_ext
10223 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10224 $as_echo "$ac_header_preproc" >&6; }
10226 # So? What about this header?
10227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10233 ac_header_preproc=yes
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10243 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10247 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10249 ## ---------------------------------------- ##
10250 ## Report this to pgsql-bugs@postgresql.org ##
10251 ## ---------------------------------------- ##
10253 ) | sed "s/^/$as_me: WARNING: /" >&2
10256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10257 $as_echo_n "checking for $ac_header... " >&6; }
10258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10259 $as_echo_n "(cached) " >&6
10261 eval "$as_ac_Header=\$ac_header_preproc"
10263 ac_res=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10266 $as_echo "$ac_res" >&6; }
10269 as_val=`eval 'as_val=${'$as_ac_Header'}
10270 $as_echo "$as_val"'`
10271 if test "x$as_val" = x""yes; then
10272 cat >>confdefs.h <<_ACEOF
10273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 for ac_header in netinet/tcp.h
10283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10285 $as_echo_n "checking for $ac_header... " >&6; }
10286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 $as_echo_n "(cached) " >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10296 #ifdef HAVE_NETINET_IN_H
10297 #include <netinet/in.h>
10301 #include <$ac_header>
10303 rm -f conftest.$ac_objext
10304 if { (ac_try="$ac_compile"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest.$ac_objext; then
10321 eval "$as_ac_Header=yes"
10323 $as_echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 eval "$as_ac_Header=no"
10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 ac_res=`eval 'as_val=${'$as_ac_Header'}
10332 $as_echo "$as_val"'`
10333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10334 $as_echo "$ac_res" >&6; }
10335 as_val=`eval 'as_val=${'$as_ac_Header'}
10336 $as_echo "$as_val"'`
10337 if test "x$as_val" = x""yes; then
10338 cat >>confdefs.h <<_ACEOF
10339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10347 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10349 for ac_header in readline/readline.h
10351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10354 $as_echo_n "checking for $ac_header... " >&6; }
10355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10356 $as_echo_n "(cached) " >&6
10358 ac_res=`eval 'as_val=${'$as_ac_Header'}
10359 $as_echo "$as_val"'`
10360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10361 $as_echo "$ac_res" >&6; }
10363 # Is the header compilable?
10364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10365 $as_echo_n "checking $ac_header usability... " >&6; }
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10373 #include <$ac_header>
10375 rm -f conftest.$ac_objext
10376 if { (ac_try="$ac_compile"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10382 $as_echo "$ac_try_echo") >&5
10383 (eval "$ac_compile") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && {
10390 test -z "$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 } && test -s conftest.$ac_objext; then
10393 ac_header_compiler=yes
10395 $as_echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_header_compiler=no
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 $as_echo "$ac_header_compiler" >&6; }
10405 # Is the header present?
10406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 $as_echo_n "checking $ac_header presence... " >&6; }
10408 cat >conftest.$ac_ext <<_ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 #include <$ac_header>
10416 if { (ac_try="$ac_cpp conftest.$ac_ext"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10422 $as_echo "$ac_try_echo") >&5
10423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } >/dev/null && {
10430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10433 ac_header_preproc=yes
10435 $as_echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ac_header_preproc=no
10441 rm -f conftest.err conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 $as_echo "$ac_header_preproc" >&6; }
10445 # So? What about this header?
10446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10452 ac_header_preproc=yes
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10462 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10468 ## ---------------------------------------- ##
10469 ## Report this to pgsql-bugs@postgresql.org ##
10470 ## ---------------------------------------- ##
10472 ) | sed "s/^/$as_me: WARNING: /" >&2
10475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10476 $as_echo_n "checking for $ac_header... " >&6; }
10477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10478 $as_echo_n "(cached) " >&6
10480 eval "$as_ac_Header=\$ac_header_preproc"
10482 ac_res=`eval 'as_val=${'$as_ac_Header'}
10483 $as_echo "$as_val"'`
10484 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10485 $as_echo "$ac_res" >&6; }
10488 as_val=`eval 'as_val=${'$as_ac_Header'}
10489 $as_echo "$as_val"'`
10490 if test "x$as_val" = x""yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497 for ac_header in readline.h
10499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10502 $as_echo_n "checking for $ac_header... " >&6; }
10503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10504 $as_echo_n "(cached) " >&6
10506 ac_res=`eval 'as_val=${'$as_ac_Header'}
10507 $as_echo "$as_val"'`
10508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10509 $as_echo "$ac_res" >&6; }
10511 # Is the header compilable?
10512 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10513 $as_echo_n "checking $ac_header usability... " >&6; }
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <$ac_header>
10523 rm -f conftest.$ac_objext
10524 if { (ac_try="$ac_compile"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10530 $as_echo "$ac_try_echo") >&5
10531 (eval "$ac_compile") 2>conftest.er1
10533 grep -v '^ *+' conftest.er1 >conftest.err
10535 cat conftest.err >&5
10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest.$ac_objext; then
10541 ac_header_compiler=yes
10543 $as_echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_header_compiler=no
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10551 $as_echo "$ac_header_compiler" >&6; }
10553 # Is the header present?
10554 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10555 $as_echo_n "checking $ac_header presence... " >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <$ac_header>
10564 if { (ac_try="$ac_cpp conftest.$ac_ext"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null && {
10578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10581 ac_header_preproc=yes
10583 $as_echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_header_preproc=no
10589 rm -f conftest.err conftest.$ac_ext
10590 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 $as_echo "$ac_header_preproc" >&6; }
10593 # So? What about this header?
10594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10597 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10600 ac_header_preproc=yes
10603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10604 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10606 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10608 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10610 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10614 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10616 ## ---------------------------------------- ##
10617 ## Report this to pgsql-bugs@postgresql.org ##
10618 ## ---------------------------------------- ##
10620 ) | sed "s/^/$as_me: WARNING: /" >&2
10623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10624 $as_echo_n "checking for $ac_header... " >&6; }
10625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10626 $as_echo_n "(cached) " >&6
10628 eval "$as_ac_Header=\$ac_header_preproc"
10630 ac_res=`eval 'as_val=${'$as_ac_Header'}
10631 $as_echo "$as_val"'`
10632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10633 $as_echo "$ac_res" >&6; }
10636 as_val=`eval 'as_val=${'$as_ac_Header'}
10637 $as_echo "$as_val"'`
10638 if test "x$as_val" = x""yes; then
10639 cat >>confdefs.h <<_ACEOF
10640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644 { { $as_echo "$as_me:$LINENO: error: readline header not found
10645 If you have readline already installed, see config.log for details on the
10646 failure. It is possible the compiler isn't looking in the proper directory.
10647 Use --without-readline to disable readline support." >&5
10648 $as_echo "$as_me: error: readline header not found
10649 If you have readline already installed, see config.log for details on the
10650 failure. It is possible the compiler isn't looking in the proper directory.
10651 Use --without-readline to disable readline support." >&2;}
10652 { (exit 1); exit 1; }; }
10662 for ac_header in readline/history.h
10664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 $as_echo_n "checking for $ac_header... " >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 $as_echo_n "(cached) " >&6
10671 ac_res=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10674 $as_echo "$ac_res" >&6; }
10676 # Is the header compilable?
10677 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 $as_echo_n "checking $ac_header usability... " >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 #include <$ac_header>
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695 $as_echo "$ac_try_echo") >&5
10696 (eval "$ac_compile") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest.$ac_objext; then
10706 ac_header_compiler=yes
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_header_compiler=no
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716 $as_echo "$ac_header_compiler" >&6; }
10718 # Is the header present?
10719 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720 $as_echo_n "checking $ac_header presence... " >&6; }
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #include <$ac_header>
10729 if { (ac_try="$ac_cpp conftest.$ac_ext"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } >/dev/null && {
10743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10746 ac_header_preproc=yes
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_header_preproc=no
10754 rm -f conftest.err conftest.$ac_ext
10755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10756 $as_echo "$ac_header_preproc" >&6; }
10758 # So? What about this header?
10759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10765 ac_header_preproc=yes
10768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10773 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10775 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10779 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10781 ## ---------------------------------------- ##
10782 ## Report this to pgsql-bugs@postgresql.org ##
10783 ## ---------------------------------------- ##
10785 ) | sed "s/^/$as_me: WARNING: /" >&2
10788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10789 $as_echo_n "checking for $ac_header... " >&6; }
10790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10791 $as_echo_n "(cached) " >&6
10793 eval "$as_ac_Header=\$ac_header_preproc"
10795 ac_res=`eval 'as_val=${'$as_ac_Header'}
10796 $as_echo "$as_val"'`
10797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798 $as_echo "$ac_res" >&6; }
10801 as_val=`eval 'as_val=${'$as_ac_Header'}
10802 $as_echo "$as_val"'`
10803 if test "x$as_val" = x""yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 for ac_header in history.h
10812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10815 $as_echo_n "checking for $ac_header... " >&6; }
10816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10817 $as_echo_n "(cached) " >&6
10819 ac_res=`eval 'as_val=${'$as_ac_Header'}
10820 $as_echo "$as_val"'`
10821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10822 $as_echo "$ac_res" >&6; }
10824 # Is the header compilable?
10825 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10826 $as_echo_n "checking $ac_header usability... " >&6; }
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10834 #include <$ac_header>
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843 $as_echo "$ac_try_echo") >&5
10844 (eval "$ac_compile") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest.$ac_objext; then
10854 ac_header_compiler=yes
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_header_compiler=no
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10864 $as_echo "$ac_header_compiler" >&6; }
10866 # Is the header present?
10867 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10868 $as_echo_n "checking $ac_header presence... " >&6; }
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <$ac_header>
10877 if { (ac_try="$ac_cpp conftest.$ac_ext"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } >/dev/null && {
10891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10894 ac_header_preproc=yes
10896 $as_echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_preproc=no
10902 rm -f conftest.err conftest.$ac_ext
10903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904 $as_echo "$ac_header_preproc" >&6; }
10906 # So? What about this header?
10907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913 ac_header_preproc=yes
10916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10923 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929 ## ---------------------------------------- ##
10930 ## Report this to pgsql-bugs@postgresql.org ##
10931 ## ---------------------------------------- ##
10933 ) | sed "s/^/$as_me: WARNING: /" >&2
10936 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 $as_echo_n "checking for $ac_header... " >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 $as_echo_n "(cached) " >&6
10941 eval "$as_ac_Header=\$ac_header_preproc"
10943 ac_res=`eval 'as_val=${'$as_ac_Header'}
10944 $as_echo "$as_val"'`
10945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10946 $as_echo "$ac_res" >&6; }
10949 as_val=`eval 'as_val=${'$as_ac_Header'}
10950 $as_echo "$as_val"'`
10951 if test "x$as_val" = x""yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10957 { { $as_echo "$as_me:$LINENO: error: history header not found
10958 If you have readline already installed, see config.log for details on the
10959 failure. It is possible the compiler isn't looking in the proper directory.
10960 Use --without-readline to disable readline support." >&5
10961 $as_echo "$as_me: error: history header not found
10962 If you have readline already installed, see config.log for details on the
10963 failure. It is possible the compiler isn't looking in the proper directory.
10964 Use --without-readline to disable readline support." >&2;}
10965 { (exit 1); exit 1; }; }
10976 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10977 # Some installations of libedit usurp /usr/include/readline/, which seems
10978 # bad practice, since in combined installations readline will have its headers
10979 # there. We might have to resort to AC_EGREP checks to make sure we found
10980 # the proper header...
10982 for ac_header in editline/readline.h
10984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10987 $as_echo_n "checking for $ac_header... " >&6; }
10988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10989 $as_echo_n "(cached) " >&6
10991 ac_res=`eval 'as_val=${'$as_ac_Header'}
10992 $as_echo "$as_val"'`
10993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10994 $as_echo "$ac_res" >&6; }
10996 # Is the header compilable?
10997 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 $as_echo_n "checking $ac_header usability... " >&6; }
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005 $ac_includes_default
11006 #include <$ac_header>
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11015 $as_echo "$ac_try_echo") >&5
11016 (eval "$ac_compile") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest.$ac_objext; then
11026 ac_header_compiler=yes
11028 $as_echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_header_compiler=no
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11036 $as_echo "$ac_header_compiler" >&6; }
11038 # Is the header present?
11039 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11040 $as_echo_n "checking $ac_header presence... " >&6; }
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 #include <$ac_header>
11049 if { (ac_try="$ac_cpp conftest.$ac_ext"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11055 $as_echo "$ac_try_echo") >&5
11056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null && {
11063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11064 test ! -s conftest.err
11066 ac_header_preproc=yes
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_header_preproc=no
11074 rm -f conftest.err conftest.$ac_ext
11075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11076 $as_echo "$ac_header_preproc" >&6; }
11078 # So? What about this header?
11079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11082 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11085 ac_header_preproc=yes
11088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11089 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11091 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11093 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11095 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11099 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11101 ## ---------------------------------------- ##
11102 ## Report this to pgsql-bugs@postgresql.org ##
11103 ## ---------------------------------------- ##
11105 ) | sed "s/^/$as_me: WARNING: /" >&2
11108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 $as_echo_n "checking for $ac_header... " >&6; }
11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11111 $as_echo_n "(cached) " >&6
11113 eval "$as_ac_Header=\$ac_header_preproc"
11115 ac_res=`eval 'as_val=${'$as_ac_Header'}
11116 $as_echo "$as_val"'`
11117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11118 $as_echo "$ac_res" >&6; }
11121 as_val=`eval 'as_val=${'$as_ac_Header'}
11122 $as_echo "$as_val"'`
11123 if test "x$as_val" = x""yes; then
11124 cat >>confdefs.h <<_ACEOF
11125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11130 for ac_header in readline.h
11132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 $as_echo_n "checking for $ac_header... " >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 $as_echo_n "(cached) " >&6
11139 ac_res=`eval 'as_val=${'$as_ac_Header'}
11140 $as_echo "$as_val"'`
11141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11142 $as_echo "$ac_res" >&6; }
11144 # Is the header compilable?
11145 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 $as_echo_n "checking $ac_header usability... " >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <$ac_header>
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
11174 ac_header_compiler=yes
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_header_compiler=no
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184 $as_echo "$ac_header_compiler" >&6; }
11186 # Is the header present?
11187 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188 $as_echo_n "checking $ac_header presence... " >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 #include <$ac_header>
11197 if { (ac_try="$ac_cpp conftest.$ac_ext"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11203 $as_echo "$ac_try_echo") >&5
11204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } >/dev/null && {
11211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11214 ac_header_preproc=yes
11216 $as_echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_header_preproc=no
11222 rm -f conftest.err conftest.$ac_ext
11223 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 $as_echo "$ac_header_preproc" >&6; }
11226 # So? What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249 ## ---------------------------------------- ##
11250 ## Report this to pgsql-bugs@postgresql.org ##
11251 ## ---------------------------------------- ##
11253 ) | sed "s/^/$as_me: WARNING: /" >&2
11256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 $as_echo_n "checking for $ac_header... " >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 $as_echo_n "(cached) " >&6
11261 eval "$as_ac_Header=\$ac_header_preproc"
11263 ac_res=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11266 $as_echo "$ac_res" >&6; }
11269 as_val=`eval 'as_val=${'$as_ac_Header'}
11270 $as_echo "$as_val"'`
11271 if test "x$as_val" = x""yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278 for ac_header in readline/readline.h
11280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11283 $as_echo_n "checking for $ac_header... " >&6; }
11284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285 $as_echo_n "(cached) " >&6
11287 ac_res=`eval 'as_val=${'$as_ac_Header'}
11288 $as_echo "$as_val"'`
11289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11290 $as_echo "$ac_res" >&6; }
11292 # Is the header compilable?
11293 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 $as_echo_n "checking $ac_header usability... " >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 $ac_includes_default
11302 #include <$ac_header>
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11311 $as_echo "$ac_try_echo") >&5
11312 (eval "$ac_compile") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && {
11319 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest.$ac_objext; then
11322 ac_header_compiler=yes
11324 $as_echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 $as_echo "$ac_header_compiler" >&6; }
11334 # Is the header present?
11335 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 $as_echo_n "checking $ac_header presence... " >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <$ac_header>
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11351 $as_echo "$ac_try_echo") >&5
11352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null && {
11359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11362 ac_header_preproc=yes
11364 $as_echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_header_preproc=no
11370 rm -f conftest.err conftest.$ac_ext
11371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11372 $as_echo "$ac_header_preproc" >&6; }
11374 # So? What about this header?
11375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11378 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11380 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11381 ac_header_preproc=yes
11384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11385 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11387 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11389 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11391 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11393 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397 ## ---------------------------------------- ##
11398 ## Report this to pgsql-bugs@postgresql.org ##
11399 ## ---------------------------------------- ##
11401 ) | sed "s/^/$as_me: WARNING: /" >&2
11404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 $as_echo_n "checking for $ac_header... " >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 $as_echo_n "(cached) " >&6
11409 eval "$as_ac_Header=\$ac_header_preproc"
11411 ac_res=`eval 'as_val=${'$as_ac_Header'}
11412 $as_echo "$as_val"'`
11413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11414 $as_echo "$ac_res" >&6; }
11417 as_val=`eval 'as_val=${'$as_ac_Header'}
11418 $as_echo "$as_val"'`
11419 if test "x$as_val" = x""yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 { { $as_echo "$as_me:$LINENO: error: readline header not found
11426 If you have libedit already installed, see config.log for details on the
11427 failure. It is possible the compiler isn't looking in the proper directory.
11428 Use --without-readline to disable libedit support." >&5
11429 $as_echo "$as_me: error: readline header not found
11430 If you have libedit already installed, see config.log for details on the
11431 failure. It is possible the compiler isn't looking in the proper directory.
11432 Use --without-readline to disable libedit support." >&2;}
11433 { (exit 1); exit 1; }; }
11446 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11447 # not be there at all. Hence, don't complain if not found. We must check
11448 # though, since in yet other versions it is an independent header.
11450 for ac_header in editline/history.h
11452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 $as_echo_n "checking for $ac_header... " >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 $as_echo_n "(cached) " >&6
11459 ac_res=`eval 'as_val=${'$as_ac_Header'}
11460 $as_echo "$as_val"'`
11461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11462 $as_echo "$ac_res" >&6; }
11464 # Is the header compilable?
11465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 $as_echo_n "checking $ac_header usability... " >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header>
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483 $as_echo "$ac_try_echo") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest.$ac_objext; then
11494 ac_header_compiler=yes
11496 $as_echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 $as_echo "$ac_header_compiler" >&6; }
11506 # Is the header present?
11507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 $as_echo_n "checking $ac_header presence... " >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <$ac_header>
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11523 $as_echo "$ac_try_echo") >&5
11524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null && {
11531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11534 ac_header_preproc=yes
11536 $as_echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_header_preproc=no
11542 rm -f conftest.err conftest.$ac_ext
11543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11544 $as_echo "$ac_header_preproc" >&6; }
11546 # So? What about this header?
11547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11553 ac_header_preproc=yes
11556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11569 ## ---------------------------------------- ##
11570 ## Report this to pgsql-bugs@postgresql.org ##
11571 ## ---------------------------------------- ##
11573 ) | sed "s/^/$as_me: WARNING: /" >&2
11576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 $as_echo_n "checking for $ac_header... " >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 $as_echo_n "(cached) " >&6
11581 eval "$as_ac_Header=\$ac_header_preproc"
11583 ac_res=`eval 'as_val=${'$as_ac_Header'}
11584 $as_echo "$as_val"'`
11585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11586 $as_echo "$ac_res" >&6; }
11589 as_val=`eval 'as_val=${'$as_ac_Header'}
11590 $as_echo "$as_val"'`
11591 if test "x$as_val" = x""yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598 for ac_header in history.h
11600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 $as_echo_n "checking for $ac_header... " >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11605 $as_echo_n "(cached) " >&6
11607 ac_res=`eval 'as_val=${'$as_ac_Header'}
11608 $as_echo "$as_val"'`
11609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11610 $as_echo "$ac_res" >&6; }
11612 # Is the header compilable?
11613 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11614 $as_echo_n "checking $ac_header usability... " >&6; }
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 $ac_includes_default
11622 #include <$ac_header>
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631 $as_echo "$ac_try_echo") >&5
11632 (eval "$ac_compile") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest.$ac_objext; then
11642 ac_header_compiler=yes
11644 $as_echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_header_compiler=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 $as_echo "$ac_header_compiler" >&6; }
11654 # Is the header present?
11655 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656 $as_echo_n "checking $ac_header presence... " >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11665 if { (ac_try="$ac_cpp conftest.$ac_ext"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11671 $as_echo "$ac_try_echo") >&5
11672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } >/dev/null && {
11679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11682 ac_header_preproc=yes
11684 $as_echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_header_preproc=no
11690 rm -f conftest.err conftest.$ac_ext
11691 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 $as_echo "$ac_header_preproc" >&6; }
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11711 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11717 ## ---------------------------------------- ##
11718 ## Report this to pgsql-bugs@postgresql.org ##
11719 ## ---------------------------------------- ##
11721 ) | sed "s/^/$as_me: WARNING: /" >&2
11724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 $as_echo_n "checking for $ac_header... " >&6; }
11726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727 $as_echo_n "(cached) " >&6
11729 eval "$as_ac_Header=\$ac_header_preproc"
11731 ac_res=`eval 'as_val=${'$as_ac_Header'}
11732 $as_echo "$as_val"'`
11733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11734 $as_echo "$ac_res" >&6; }
11737 as_val=`eval 'as_val=${'$as_ac_Header'}
11738 $as_echo "$as_val"'`
11739 if test "x$as_val" = x""yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11746 for ac_header in readline/history.h
11748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 $as_echo_n "checking for $ac_header... " >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 $as_echo_n "(cached) " >&6
11755 ac_res=`eval 'as_val=${'$as_ac_Header'}
11756 $as_echo "$as_val"'`
11757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11758 $as_echo "$ac_res" >&6; }
11760 # Is the header compilable?
11761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762 $as_echo_n "checking $ac_header usability... " >&6; }
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <$ac_header>
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_header_compiler=yes
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_header_compiler=no
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 $as_echo "$ac_header_compiler" >&6; }
11802 # Is the header present?
11803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804 $as_echo_n "checking $ac_header presence... " >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <$ac_header>
11813 if { (ac_try="$ac_cpp conftest.$ac_ext"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819 $as_echo "$ac_try_echo") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev/null && {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11830 ac_header_preproc=yes
11832 $as_echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_header_preproc=no
11838 rm -f conftest.err conftest.$ac_ext
11839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 $as_echo "$ac_header_preproc" >&6; }
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc=yes
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865 ## ---------------------------------------- ##
11866 ## Report this to pgsql-bugs@postgresql.org ##
11867 ## ---------------------------------------- ##
11869 ) | sed "s/^/$as_me: WARNING: /" >&2
11872 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 $as_echo_n "checking for $ac_header... " >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 $as_echo_n "(cached) " >&6
11877 eval "$as_ac_Header=\$ac_header_preproc"
11879 ac_res=`eval 'as_val=${'$as_ac_Header'}
11880 $as_echo "$as_val"'`
11881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11882 $as_echo "$ac_res" >&6; }
11885 as_val=`eval 'as_val=${'$as_ac_Header'}
11886 $as_echo "$as_val"'`
11887 if test "x$as_val" = x""yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11906 if test "$with_zlib" = yes; then
11907 if test "${ac_cv_header_zlib_h+set}" = set; then
11908 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11909 $as_echo_n "checking for zlib.h... " >&6; }
11910 if test "${ac_cv_header_zlib_h+set}" = set; then
11911 $as_echo_n "(cached) " >&6
11913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11914 $as_echo "$ac_cv_header_zlib_h" >&6; }
11916 # Is the header compilable?
11917 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11918 $as_echo_n "checking zlib.h usability... " >&6; }
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11928 rm -f conftest.$ac_objext
11929 if { (ac_try="$ac_compile"
11930 case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11935 $as_echo "$ac_try_echo") >&5
11936 (eval "$ac_compile") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } && {
11943 test -z "$ac_c_werror_flag" ||
11944 test ! -s conftest.err
11945 } && test -s conftest.$ac_objext; then
11946 ac_header_compiler=yes
11948 $as_echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_header_compiler=no
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11956 $as_echo "$ac_header_compiler" >&6; }
11958 # Is the header present?
11959 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11960 $as_echo_n "checking zlib.h presence... " >&6; }
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11969 if { (ac_try="$ac_cpp conftest.$ac_ext"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } >/dev/null && {
11983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11986 ac_header_preproc=yes
11988 $as_echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_header_preproc=no
11994 rm -f conftest.err conftest.$ac_ext
11995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11996 $as_echo "$ac_header_preproc" >&6; }
11998 # So? What about this header?
11999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12001 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12002 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12003 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12004 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12005 ac_header_preproc=yes
12008 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12009 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12010 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12011 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12013 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12015 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12016 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12017 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12018 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12019 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12021 ## ---------------------------------------- ##
12022 ## Report this to pgsql-bugs@postgresql.org ##
12023 ## ---------------------------------------- ##
12025 ) | sed "s/^/$as_me: WARNING: /" >&2
12028 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12029 $as_echo_n "checking for zlib.h... " >&6; }
12030 if test "${ac_cv_header_zlib_h+set}" = set; then
12031 $as_echo_n "(cached) " >&6
12033 ac_cv_header_zlib_h=$ac_header_preproc
12035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12036 $as_echo "$ac_cv_header_zlib_h" >&6; }
12039 if test "x$ac_cv_header_zlib_h" = x""yes; then
12042 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12043 If you have zlib already installed, see config.log for details on the
12044 failure. It is possible the compiler isn't looking in the proper directory.
12045 Use --without-zlib to disable zlib support." >&5
12046 $as_echo "$as_me: error: zlib header not found
12047 If you have zlib already installed, see config.log for details on the
12048 failure. It is possible the compiler isn't looking in the proper directory.
12049 Use --without-zlib to disable zlib support." >&2;}
12050 { (exit 1); exit 1; }; }
12056 if test "$with_gssapi" = yes ; then
12058 for ac_header in gssapi/gssapi.h
12060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 $as_echo_n "checking for $ac_header... " >&6; }
12064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065 $as_echo_n "(cached) " >&6
12067 ac_res=`eval 'as_val=${'$as_ac_Header'}
12068 $as_echo "$as_val"'`
12069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12070 $as_echo "$ac_res" >&6; }
12072 # Is the header compilable?
12073 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12074 $as_echo_n "checking $ac_header usability... " >&6; }
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 $ac_includes_default
12082 #include <$ac_header>
12084 rm -f conftest.$ac_objext
12085 if { (ac_try="$ac_compile"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12091 $as_echo "$ac_try_echo") >&5
12092 (eval "$ac_compile") 2>conftest.er1
12094 grep -v '^ *+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && {
12099 test -z "$ac_c_werror_flag" ||
12100 test ! -s conftest.err
12101 } && test -s conftest.$ac_objext; then
12102 ac_header_compiler=yes
12104 $as_echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 ac_header_compiler=no
12110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 $as_echo "$ac_header_compiler" >&6; }
12114 # Is the header present?
12115 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 $as_echo_n "checking $ac_header presence... " >&6; }
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 #include <$ac_header>
12125 if { (ac_try="$ac_cpp conftest.$ac_ext"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12131 $as_echo "$ac_try_echo") >&5
12132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } >/dev/null && {
12139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12142 ac_header_preproc=yes
12144 $as_echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 ac_header_preproc=no
12150 rm -f conftest.err conftest.$ac_ext
12151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 $as_echo "$ac_header_preproc" >&6; }
12154 # So? What about this header?
12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12161 ac_header_preproc=yes
12164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12169 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12171 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12175 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12177 ## ---------------------------------------- ##
12178 ## Report this to pgsql-bugs@postgresql.org ##
12179 ## ---------------------------------------- ##
12181 ) | sed "s/^/$as_me: WARNING: /" >&2
12184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12185 $as_echo_n "checking for $ac_header... " >&6; }
12186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12187 $as_echo_n "(cached) " >&6
12189 eval "$as_ac_Header=\$ac_header_preproc"
12191 ac_res=`eval 'as_val=${'$as_ac_Header'}
12192 $as_echo "$as_val"'`
12193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12194 $as_echo "$ac_res" >&6; }
12197 as_val=`eval 'as_val=${'$as_ac_Header'}
12198 $as_echo "$as_val"'`
12199 if test "x$as_val" = x""yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12206 for ac_header in gssapi.h
12208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 $as_echo_n "checking for $ac_header... " >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 $as_echo_n "(cached) " >&6
12215 ac_res=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218 $as_echo "$ac_res" >&6; }
12220 # Is the header compilable?
12221 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12222 $as_echo_n "checking $ac_header usability... " >&6; }
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 $ac_includes_default
12230 #include <$ac_header>
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_header_compiler=yes
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_header_compiler=no
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12260 $as_echo "$ac_header_compiler" >&6; }
12262 # Is the header present?
12263 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12264 $as_echo_n "checking $ac_header presence... " >&6; }
12265 cat >conftest.$ac_ext <<_ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include <$ac_header>
12273 if { (ac_try="$ac_cpp conftest.$ac_ext"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } >/dev/null && {
12287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12290 ac_header_preproc=yes
12292 $as_echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 ac_header_preproc=no
12298 rm -f conftest.err conftest.$ac_ext
12299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12300 $as_echo "$ac_header_preproc" >&6; }
12302 # So? What about this header?
12303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12306 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12309 ac_header_preproc=yes
12312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12313 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12315 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12317 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12325 ## ---------------------------------------- ##
12326 ## Report this to pgsql-bugs@postgresql.org ##
12327 ## ---------------------------------------- ##
12329 ) | sed "s/^/$as_me: WARNING: /" >&2
12332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 $as_echo_n "checking for $ac_header... " >&6; }
12334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335 $as_echo_n "(cached) " >&6
12337 eval "$as_ac_Header=\$ac_header_preproc"
12339 ac_res=`eval 'as_val=${'$as_ac_Header'}
12340 $as_echo "$as_val"'`
12341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12342 $as_echo "$ac_res" >&6; }
12345 as_val=`eval 'as_val=${'$as_ac_Header'}
12346 $as_echo "$as_val"'`
12347 if test "x$as_val" = x""yes; then
12348 cat >>confdefs.h <<_ACEOF
12349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12353 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12354 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12355 { (exit 1); exit 1; }; }
12366 if test "$with_krb5" = yes ; then
12367 if test "${ac_cv_header_krb5_h+set}" = set; then
12368 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12369 $as_echo_n "checking for krb5.h... " >&6; }
12370 if test "${ac_cv_header_krb5_h+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12373 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12374 $as_echo "$ac_cv_header_krb5_h" >&6; }
12376 # Is the header compilable?
12377 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12378 $as_echo_n "checking krb5.h usability... " >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12388 rm -f conftest.$ac_objext
12389 if { (ac_try="$ac_compile"
12390 case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12395 $as_echo "$ac_try_echo") >&5
12396 (eval "$ac_compile") 2>conftest.er1
12398 grep -v '^ *+' conftest.er1 >conftest.err
12400 cat conftest.err >&5
12401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest.$ac_objext; then
12406 ac_header_compiler=yes
12408 $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_header_compiler=no
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12416 $as_echo "$ac_header_compiler" >&6; }
12418 # Is the header present?
12419 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12420 $as_echo_n "checking krb5.h presence... " >&6; }
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12429 if { (ac_try="$ac_cpp conftest.$ac_ext"
12430 case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12435 $as_echo "$ac_try_echo") >&5
12436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null && {
12443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12446 ac_header_preproc=yes
12448 $as_echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_header_preproc=no
12454 rm -f conftest.err conftest.$ac_ext
12455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 $as_echo "$ac_header_preproc" >&6; }
12458 # So? What about this header?
12459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12462 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12464 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12465 ac_header_preproc=yes
12468 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12469 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12471 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12473 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12475 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12477 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12478 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12479 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12481 ## ---------------------------------------- ##
12482 ## Report this to pgsql-bugs@postgresql.org ##
12483 ## ---------------------------------------- ##
12485 ) | sed "s/^/$as_me: WARNING: /" >&2
12488 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12489 $as_echo_n "checking for krb5.h... " >&6; }
12490 if test "${ac_cv_header_krb5_h+set}" = set; then
12491 $as_echo_n "(cached) " >&6
12493 ac_cv_header_krb5_h=$ac_header_preproc
12495 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12496 $as_echo "$ac_cv_header_krb5_h" >&6; }
12499 if test "x$ac_cv_header_krb5_h" = x""yes; then
12502 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12503 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12504 { (exit 1); exit 1; }; }
12510 if test "$with_openssl" = yes ; then
12511 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12512 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12513 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12514 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12515 $as_echo_n "(cached) " >&6
12517 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12518 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12520 # Is the header compilable?
12521 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12522 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12530 #include <openssl/ssl.h>
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12539 $as_echo "$ac_try_echo") >&5
12540 (eval "$ac_compile") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest.$ac_objext; then
12550 ac_header_compiler=yes
12552 $as_echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_header_compiler=no
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560 $as_echo "$ac_header_compiler" >&6; }
12562 # Is the header present?
12563 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12564 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #include <openssl/ssl.h>
12573 if { (ac_try="$ac_cpp conftest.$ac_ext"
12574 case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12579 $as_echo "$ac_try_echo") >&5
12580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev/null && {
12587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12590 ac_header_preproc=yes
12592 $as_echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_header_preproc=no
12598 rm -f conftest.err conftest.$ac_ext
12599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600 $as_echo "$ac_header_preproc" >&6; }
12602 # So? What about this header?
12603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12606 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12608 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12609 ac_header_preproc=yes
12612 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12613 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12614 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12615 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12616 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12617 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12619 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12620 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12621 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12623 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12625 ## ---------------------------------------- ##
12626 ## Report this to pgsql-bugs@postgresql.org ##
12627 ## ---------------------------------------- ##
12629 ) | sed "s/^/$as_me: WARNING: /" >&2
12632 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12633 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12634 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12635 $as_echo_n "(cached) " >&6
12637 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12640 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12643 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12646 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12647 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12648 { (exit 1); exit 1; }; }
12652 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12653 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12654 $as_echo_n "checking for openssl/err.h... " >&6; }
12655 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12656 $as_echo_n "(cached) " >&6
12658 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12659 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12661 # Is the header compilable?
12662 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12663 $as_echo_n "checking openssl/err.h usability... " >&6; }
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <openssl/err.h>
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
12691 ac_header_compiler=yes
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_header_compiler=no
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12701 $as_echo "$ac_header_compiler" >&6; }
12703 # Is the header present?
12704 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12705 $as_echo_n "checking openssl/err.h presence... " >&6; }
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 #include <openssl/err.h>
12714 if { (ac_try="$ac_cpp conftest.$ac_ext"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720 $as_echo "$ac_try_echo") >&5
12721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12723 grep -v '^ *+' conftest.er1 >conftest.err
12725 cat conftest.err >&5
12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } >/dev/null && {
12728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12729 test ! -s conftest.err
12731 ac_header_preproc=yes
12733 $as_echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_header_preproc=no
12739 rm -f conftest.err conftest.$ac_ext
12740 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 $as_echo "$ac_header_preproc" >&6; }
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12749 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12750 ac_header_preproc=yes
12753 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12754 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12755 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12756 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12757 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12758 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12759 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12760 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12762 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12763 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12764 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12766 ## ---------------------------------------- ##
12767 ## Report this to pgsql-bugs@postgresql.org ##
12768 ## ---------------------------------------- ##
12770 ) | sed "s/^/$as_me: WARNING: /" >&2
12773 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12774 $as_echo_n "checking for openssl/err.h... " >&6; }
12775 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12776 $as_echo_n "(cached) " >&6
12778 ac_cv_header_openssl_err_h=$ac_header_preproc
12780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12781 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12784 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12787 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12788 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12789 { (exit 1); exit 1; }; }
12794 for ac_func in ERR_set_mark
12796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12798 $as_echo_n "checking for $ac_func... " >&6; }
12799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12800 $as_echo_n "(cached) " >&6
12802 cat >conftest.$ac_ext <<_ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12810 #define $ac_func innocuous_$ac_func
12812 /* System header to define __stub macros and hopefully few prototypes,
12813 which can conflict with char $ac_func (); below.
12814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 <limits.h> exists even on freestanding compilers. */
12818 # include <limits.h>
12820 # include <assert.h>
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12832 /* The GNU C library defines this for functions which it implements
12833 to always fail with ENOSYS. Some functions are actually named
12834 something starting with __ and the normal name is an alias. */
12835 #if defined __stub_$ac_func || defined __stub___$ac_func
12842 return $ac_func ();
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (ac_try="$ac_link"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_link") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest$ac_exeext && {
12865 test "$cross_compiling" = yes ||
12866 $as_test_x conftest$ac_exeext
12868 eval "$as_ac_var=yes"
12870 $as_echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 eval "$as_ac_var=no"
12876 rm -rf conftest.dSYM
12877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12878 conftest$ac_exeext conftest.$ac_ext
12880 ac_res=`eval 'as_val=${'$as_ac_var'}
12881 $as_echo "$as_val"'`
12882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12883 $as_echo "$ac_res" >&6; }
12884 as_val=`eval 'as_val=${'$as_ac_var'}
12885 $as_echo "$as_val"'`
12886 if test "x$as_val" = x""yes; then
12887 cat >>confdefs.h <<_ACEOF
12888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12896 if test "$with_pam" = yes ; then
12898 for ac_header in security/pam_appl.h
12900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12903 $as_echo_n "checking for $ac_header... " >&6; }
12904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12905 $as_echo_n "(cached) " >&6
12907 ac_res=`eval 'as_val=${'$as_ac_Header'}
12908 $as_echo "$as_val"'`
12909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12910 $as_echo "$ac_res" >&6; }
12912 # Is the header compilable?
12913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12914 $as_echo_n "checking $ac_header usability... " >&6; }
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 $ac_includes_default
12922 #include <$ac_header>
12924 rm -f conftest.$ac_objext
12925 if { (ac_try="$ac_compile"
12926 case "(($ac_try" in
12927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12931 $as_echo "$ac_try_echo") >&5
12932 (eval "$ac_compile") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } && {
12939 test -z "$ac_c_werror_flag" ||
12940 test ! -s conftest.err
12941 } && test -s conftest.$ac_objext; then
12942 ac_header_compiler=yes
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_header_compiler=no
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12952 $as_echo "$ac_header_compiler" >&6; }
12954 # Is the header present?
12955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12956 $as_echo_n "checking $ac_header presence... " >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include <$ac_header>
12965 if { (ac_try="$ac_cpp conftest.$ac_ext"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } >/dev/null && {
12979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12982 ac_header_preproc=yes
12984 $as_echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_header_preproc=no
12990 rm -f conftest.err conftest.$ac_ext
12991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992 $as_echo "$ac_header_preproc" >&6; }
12994 # So? What about this header?
12995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13001 ac_header_preproc=yes
13004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13007 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13011 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13017 ## ---------------------------------------- ##
13018 ## Report this to pgsql-bugs@postgresql.org ##
13019 ## ---------------------------------------- ##
13021 ) | sed "s/^/$as_me: WARNING: /" >&2
13024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13025 $as_echo_n "checking for $ac_header... " >&6; }
13026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13027 $as_echo_n "(cached) " >&6
13029 eval "$as_ac_Header=\$ac_header_preproc"
13031 ac_res=`eval 'as_val=${'$as_ac_Header'}
13032 $as_echo "$as_val"'`
13033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13034 $as_echo "$ac_res" >&6; }
13037 as_val=`eval 'as_val=${'$as_ac_Header'}
13038 $as_echo "$as_val"'`
13039 if test "x$as_val" = x""yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13046 for ac_header in pam/pam_appl.h
13048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13051 $as_echo_n "checking for $ac_header... " >&6; }
13052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13053 $as_echo_n "(cached) " >&6
13055 ac_res=`eval 'as_val=${'$as_ac_Header'}
13056 $as_echo "$as_val"'`
13057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13058 $as_echo "$ac_res" >&6; }
13060 # Is the header compilable?
13061 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13062 $as_echo_n "checking $ac_header usability... " >&6; }
13063 cat >conftest.$ac_ext <<_ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13070 #include <$ac_header>
13072 rm -f conftest.$ac_objext
13073 if { (ac_try="$ac_compile"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13079 $as_echo "$ac_try_echo") >&5
13080 (eval "$ac_compile") 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } && {
13087 test -z "$ac_c_werror_flag" ||
13088 test ! -s conftest.err
13089 } && test -s conftest.$ac_objext; then
13090 ac_header_compiler=yes
13092 $as_echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 ac_header_compiler=no
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13100 $as_echo "$ac_header_compiler" >&6; }
13102 # Is the header present?
13103 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13104 $as_echo_n "checking $ac_header presence... " >&6; }
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 #include <$ac_header>
13113 if { (ac_try="$ac_cpp conftest.$ac_ext"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13119 $as_echo "$ac_try_echo") >&5
13120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } >/dev/null && {
13127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13130 ac_header_preproc=yes
13132 $as_echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_header_preproc=no
13138 rm -f conftest.err conftest.$ac_ext
13139 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13140 $as_echo "$ac_header_preproc" >&6; }
13142 # So? What about this header?
13143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13146 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13148 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13149 ac_header_preproc=yes
13152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13153 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13155 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13157 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13159 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13163 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13165 ## ---------------------------------------- ##
13166 ## Report this to pgsql-bugs@postgresql.org ##
13167 ## ---------------------------------------- ##
13169 ) | sed "s/^/$as_me: WARNING: /" >&2
13172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13173 $as_echo_n "checking for $ac_header... " >&6; }
13174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13175 $as_echo_n "(cached) " >&6
13177 eval "$as_ac_Header=\$ac_header_preproc"
13179 ac_res=`eval 'as_val=${'$as_ac_Header'}
13180 $as_echo "$as_val"'`
13181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13182 $as_echo "$ac_res" >&6; }
13185 as_val=`eval 'as_val=${'$as_ac_Header'}
13186 $as_echo "$as_val"'`
13187 if test "x$as_val" = x""yes; then
13188 cat >>confdefs.h <<_ACEOF
13189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13193 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13194 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13195 { (exit 1); exit 1; }; }
13206 if test "$with_libxml" = yes ; then
13207 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13208 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13209 $as_echo_n "checking for libxml/parser.h... " >&6; }
13210 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13214 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13216 # Is the header compilable?
13217 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13218 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13226 #include <libxml/parser.h>
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13235 $as_echo "$ac_try_echo") >&5
13236 (eval "$ac_compile") 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest.$ac_objext; then
13246 ac_header_compiler=yes
13248 $as_echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ac_header_compiler=no
13254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13256 $as_echo "$ac_header_compiler" >&6; }
13258 # Is the header present?
13259 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13260 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 #include <libxml/parser.h>
13269 if { (ac_try="$ac_cpp conftest.$ac_ext"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
13280 cat conftest.err >&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } >/dev/null && {
13283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13286 ac_header_preproc=yes
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_header_preproc=no
13294 rm -f conftest.err conftest.$ac_ext
13295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13296 $as_echo "$ac_header_preproc" >&6; }
13298 # So? What about this header?
13299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13301 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13302 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13304 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13305 ac_header_preproc=yes
13308 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13309 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13310 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13311 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13312 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13313 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13314 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13315 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13316 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13317 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13318 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13319 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13321 ## ---------------------------------------- ##
13322 ## Report this to pgsql-bugs@postgresql.org ##
13323 ## ---------------------------------------- ##
13325 ) | sed "s/^/$as_me: WARNING: /" >&2
13328 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13329 $as_echo_n "checking for libxml/parser.h... " >&6; }
13330 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13331 $as_echo_n "(cached) " >&6
13333 ac_cv_header_libxml_parser_h=$ac_header_preproc
13335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13336 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13339 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13342 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13343 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13344 { (exit 1); exit 1; }; }
13350 if test "$with_libxslt" = yes ; then
13351 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13352 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13353 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13354 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13355 $as_echo_n "(cached) " >&6
13357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13358 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13360 # Is the header compilable?
13361 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13362 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 #include <libxslt/xslt.h>
13372 rm -f conftest.$ac_objext
13373 if { (ac_try="$ac_compile"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13379 $as_echo "$ac_try_echo") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest.$ac_objext; then
13390 ac_header_compiler=yes
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_compiler=no
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13400 $as_echo "$ac_header_compiler" >&6; }
13402 # Is the header present?
13403 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13404 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <libxslt/xslt.h>
13413 if { (ac_try="$ac_cpp conftest.$ac_ext"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13419 $as_echo "$ac_try_echo") >&5
13420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } >/dev/null && {
13427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13430 ac_header_preproc=yes
13432 $as_echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ac_header_preproc=no
13438 rm -f conftest.err conftest.$ac_ext
13439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13440 $as_echo "$ac_header_preproc" >&6; }
13442 # So? What about this header?
13443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13445 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13446 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13447 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13448 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13449 ac_header_preproc=yes
13452 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13453 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13454 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13455 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13456 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13457 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13458 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13459 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13460 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13461 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13462 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13463 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13465 ## ---------------------------------------- ##
13466 ## Report this to pgsql-bugs@postgresql.org ##
13467 ## ---------------------------------------- ##
13469 ) | sed "s/^/$as_me: WARNING: /" >&2
13472 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13473 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13474 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13475 $as_echo_n "(cached) " >&6
13477 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13480 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13483 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13486 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13487 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13488 { (exit 1); exit 1; }; }
13494 if test "$with_ldap" = yes ; then
13495 if test "$PORTNAME" != "win32"; then
13497 for ac_header in ldap.h
13499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 $as_echo_n "checking for $ac_header... " >&6; }
13503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13504 $as_echo_n "(cached) " >&6
13506 ac_res=`eval 'as_val=${'$as_ac_Header'}
13507 $as_echo "$as_val"'`
13508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13509 $as_echo "$ac_res" >&6; }
13511 # Is the header compilable?
13512 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13513 $as_echo_n "checking $ac_header usability... " >&6; }
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 $ac_includes_default
13521 #include <$ac_header>
13523 rm -f conftest.$ac_objext
13524 if { (ac_try="$ac_compile"
13525 case "(($ac_try" in
13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527 *) ac_try_echo=$ac_try;;
13529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13530 $as_echo "$ac_try_echo") >&5
13531 (eval "$ac_compile") 2>conftest.er1
13533 grep -v '^ *+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } && {
13538 test -z "$ac_c_werror_flag" ||
13539 test ! -s conftest.err
13540 } && test -s conftest.$ac_objext; then
13541 ac_header_compiler=yes
13543 $as_echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13546 ac_header_compiler=no
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 $as_echo "$ac_header_compiler" >&6; }
13553 # Is the header present?
13554 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13555 $as_echo_n "checking $ac_header presence... " >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <$ac_header>
13564 if { (ac_try="$ac_cpp conftest.$ac_ext"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570 $as_echo "$ac_try_echo") >&5
13571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } >/dev/null && {
13578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13581 ac_header_preproc=yes
13583 $as_echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_header_preproc=no
13589 rm -f conftest.err conftest.$ac_ext
13590 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 $as_echo "$ac_header_preproc" >&6; }
13593 # So? What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13597 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13600 ac_header_preproc=yes
13603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13604 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13606 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13608 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13610 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13614 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13616 ## ---------------------------------------- ##
13617 ## Report this to pgsql-bugs@postgresql.org ##
13618 ## ---------------------------------------- ##
13620 ) | sed "s/^/$as_me: WARNING: /" >&2
13623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13624 $as_echo_n "checking for $ac_header... " >&6; }
13625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13626 $as_echo_n "(cached) " >&6
13628 eval "$as_ac_Header=\$ac_header_preproc"
13630 ac_res=`eval 'as_val=${'$as_ac_Header'}
13631 $as_echo "$as_val"'`
13632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13633 $as_echo "$ac_res" >&6; }
13636 as_val=`eval 'as_val=${'$as_ac_Header'}
13637 $as_echo "$as_val"'`
13638 if test "x$as_val" = x""yes; then
13639 cat >>confdefs.h <<_ACEOF
13640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13645 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13646 { (exit 1); exit 1; }; }
13653 for ac_header in winldap.h
13655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13657 $as_echo_n "checking for $ac_header... " >&6; }
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 $as_echo_n "(cached) " >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13668 #include <windows.h>
13671 #include <$ac_header>
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
13691 eval "$as_ac_Header=yes"
13693 $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 eval "$as_ac_Header=no"
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 ac_res=`eval 'as_val=${'$as_ac_Header'}
13702 $as_echo "$as_val"'`
13703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13704 $as_echo "$ac_res" >&6; }
13705 as_val=`eval 'as_val=${'$as_ac_Header'}
13706 $as_echo "$as_val"'`
13707 if test "x$as_val" = x""yes; then
13708 cat >>confdefs.h <<_ACEOF
13709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13713 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13714 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13715 { (exit 1); exit 1; }; }
13723 if test "$with_bonjour" = yes ; then
13724 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13725 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13726 $as_echo_n "checking for dns_sd.h... " >&6; }
13727 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13728 $as_echo_n "(cached) " >&6
13730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13731 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13733 # Is the header compilable?
13734 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13735 $as_echo_n "checking dns_sd.h usability... " >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 #include <dns_sd.h>
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13752 $as_echo "$ac_try_echo") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest.$ac_objext; then
13763 ac_header_compiler=yes
13765 $as_echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_header_compiler=no
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773 $as_echo "$ac_header_compiler" >&6; }
13775 # Is the header present?
13776 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13777 $as_echo_n "checking dns_sd.h presence... " >&6; }
13778 cat >conftest.$ac_ext <<_ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <dns_sd.h>
13786 if { (ac_try="$ac_cpp conftest.$ac_ext"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } >/dev/null && {
13800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13801 test ! -s conftest.err
13803 ac_header_preproc=yes
13805 $as_echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_header_preproc=no
13811 rm -f conftest.err conftest.$ac_ext
13812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813 $as_echo "$ac_header_preproc" >&6; }
13815 # So? What about this header?
13816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13818 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13819 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13821 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13822 ac_header_preproc=yes
13825 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13826 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13827 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13828 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13829 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13830 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13831 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13832 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13833 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13834 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13835 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13836 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13838 ## ---------------------------------------- ##
13839 ## Report this to pgsql-bugs@postgresql.org ##
13840 ## ---------------------------------------- ##
13842 ) | sed "s/^/$as_me: WARNING: /" >&2
13845 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13846 $as_echo_n "checking for dns_sd.h... " >&6; }
13847 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13848 $as_echo_n "(cached) " >&6
13850 ac_cv_header_dns_sd_h=$ac_header_preproc
13852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13853 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13856 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13859 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13860 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13861 { (exit 1); exit 1; }; }
13867 # for contrib/uuid-ossp
13868 if test "$with_ossp_uuid" = yes ; then
13870 for ac_header in ossp/uuid.h
13872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13875 $as_echo_n "checking for $ac_header... " >&6; }
13876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13877 $as_echo_n "(cached) " >&6
13879 ac_res=`eval 'as_val=${'$as_ac_Header'}
13880 $as_echo "$as_val"'`
13881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13882 $as_echo "$ac_res" >&6; }
13884 # Is the header compilable?
13885 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13886 $as_echo_n "checking $ac_header usability... " >&6; }
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $ac_includes_default
13894 #include <$ac_header>
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13903 $as_echo "$ac_try_echo") >&5
13904 (eval "$ac_compile") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest.$ac_objext; then
13914 ac_header_compiler=yes
13916 $as_echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_header_compiler=no
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13924 $as_echo "$ac_header_compiler" >&6; }
13926 # Is the header present?
13927 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13928 $as_echo_n "checking $ac_header presence... " >&6; }
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #include <$ac_header>
13937 if { (ac_try="$ac_cpp conftest.$ac_ext"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } >/dev/null && {
13951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13954 ac_header_preproc=yes
13956 $as_echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_preproc=no
13962 rm -f conftest.err conftest.$ac_ext
13963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13964 $as_echo "$ac_header_preproc" >&6; }
13966 # So? What about this header?
13967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13970 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13973 ac_header_preproc=yes
13976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13977 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13979 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13981 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13983 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13987 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13989 ## ---------------------------------------- ##
13990 ## Report this to pgsql-bugs@postgresql.org ##
13991 ## ---------------------------------------- ##
13993 ) | sed "s/^/$as_me: WARNING: /" >&2
13996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13997 $as_echo_n "checking for $ac_header... " >&6; }
13998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13999 $as_echo_n "(cached) " >&6
14001 eval "$as_ac_Header=\$ac_header_preproc"
14003 ac_res=`eval 'as_val=${'$as_ac_Header'}
14004 $as_echo "$as_val"'`
14005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14006 $as_echo "$ac_res" >&6; }
14009 as_val=`eval 'as_val=${'$as_ac_Header'}
14010 $as_echo "$as_val"'`
14011 if test "x$as_val" = x""yes; then
14012 cat >>confdefs.h <<_ACEOF
14013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 for ac_header in uuid.h
14021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14024 $as_echo_n "checking for $ac_header... " >&6; }
14025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14026 $as_echo_n "(cached) " >&6
14028 ac_res=`eval 'as_val=${'$as_ac_Header'}
14029 $as_echo "$as_val"'`
14030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14031 $as_echo "$ac_res" >&6; }
14033 # Is the header compilable?
14034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14035 $as_echo_n "checking $ac_header usability... " >&6; }
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 $ac_includes_default
14043 #include <$ac_header>
14045 rm -f conftest.$ac_objext
14046 if { (ac_try="$ac_compile"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14052 $as_echo "$ac_try_echo") >&5
14053 (eval "$ac_compile") 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest.$ac_objext; then
14063 ac_header_compiler=yes
14065 $as_echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_header_compiler=no
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14073 $as_echo "$ac_header_compiler" >&6; }
14075 # Is the header present?
14076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14077 $as_echo_n "checking $ac_header presence... " >&6; }
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <$ac_header>
14086 if { (ac_try="$ac_cpp conftest.$ac_ext"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14092 $as_echo "$ac_try_echo") >&5
14093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } >/dev/null && {
14100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14101 test ! -s conftest.err
14103 ac_header_preproc=yes
14105 $as_echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_header_preproc=no
14111 rm -f conftest.err conftest.$ac_ext
14112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14113 $as_echo "$ac_header_preproc" >&6; }
14115 # So? What about this header?
14116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14122 ac_header_preproc=yes
14125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14128 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14132 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14138 ## ---------------------------------------- ##
14139 ## Report this to pgsql-bugs@postgresql.org ##
14140 ## ---------------------------------------- ##
14142 ) | sed "s/^/$as_me: WARNING: /" >&2
14145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14146 $as_echo_n "checking for $ac_header... " >&6; }
14147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14148 $as_echo_n "(cached) " >&6
14150 eval "$as_ac_Header=\$ac_header_preproc"
14152 ac_res=`eval 'as_val=${'$as_ac_Header'}
14153 $as_echo "$as_val"'`
14154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14155 $as_echo "$ac_res" >&6; }
14158 as_val=`eval 'as_val=${'$as_ac_Header'}
14159 $as_echo "$as_val"'`
14160 if test "x$as_val" = x""yes; then
14161 cat >>confdefs.h <<_ACEOF
14162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14166 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14167 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14168 { (exit 1); exit 1; }; }
14181 ## Types, structures, compiler characteristics
14185 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14186 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14187 if test "${ac_cv_c_bigendian+set}" = set; then
14188 $as_echo_n "(cached) " >&6
14190 ac_cv_c_bigendian=unknown
14191 # See if we're dealing with a universal compiler.
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #ifndef __APPLE_CC__
14199 not a universal capable compiler
14204 rm -f conftest.$ac_objext
14205 if { (ac_try="$ac_compile"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14211 $as_echo "$ac_try_echo") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest.$ac_objext; then
14223 # Check for potential -arch flags. It is not universal unless
14224 # there are some -arch flags. Note that *ppc* also matches
14225 # ppc64. This check is also rather less than ideal.
14226 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14227 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14230 $as_echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 if test $ac_cv_c_bigendian = unknown; then
14238 # See if sys/param.h defines the BYTE_ORDER macro.
14239 cat >conftest.$ac_ext <<_ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 #include <sys/types.h>
14246 #include <sys/param.h>
14251 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14252 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14254 bogus endian macros
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest.$ac_objext; then
14279 # It does; now see whether it defined to BIG_ENDIAN or not.
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14287 #include <sys/param.h>
14292 #if BYTE_ORDER != BIG_ENDIAN
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14307 $as_echo "$ac_try_echo") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest.$ac_objext; then
14318 ac_cv_c_bigendian=yes
14320 $as_echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14323 ac_cv_c_bigendian=no
14326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 if test $ac_cv_c_bigendian = unknown; then
14337 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <limits.h>
14349 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14350 bogus endian macros
14357 rm -f conftest.$ac_objext
14358 if { (ac_try="$ac_compile"
14359 case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14364 $as_echo "$ac_try_echo") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1 >conftest.err
14369 cat conftest.err >&5
14370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest.$ac_objext; then
14375 # It does; now see whether it defined to _BIG_ENDIAN or not.
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #include <limits.h>
14387 #ifndef _BIG_ENDIAN
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14402 $as_echo "$ac_try_echo") >&5
14403 (eval "$ac_compile") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest.$ac_objext; then
14413 ac_cv_c_bigendian=yes
14415 $as_echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_cv_c_bigendian=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 $as_echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 if test $ac_cv_c_bigendian = unknown; then
14432 # Compile a test program.
14433 if test "$cross_compiling" = yes; then
14434 # Try to guess by grepping values from an object file.
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 short int ascii_mm[] =
14442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14443 short int ascii_ii[] =
14444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14445 int use_ascii (int i) {
14446 return ascii_mm[i] + ascii_ii[i];
14448 short int ebcdic_ii[] =
14449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14450 short int ebcdic_mm[] =
14451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14452 int use_ebcdic (int i) {
14453 return ebcdic_mm[i] + ebcdic_ii[i];
14460 return use_ascii (foo) == use_ebcdic (foo);
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14472 $as_echo "$ac_try_echo") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest.$ac_objext; then
14483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14484 ac_cv_c_bigendian=yes
14486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14487 if test "$ac_cv_c_bigendian" = unknown; then
14488 ac_cv_c_bigendian=no
14490 # finding both strings is unlikely to happen, but who knows?
14491 ac_cv_c_bigendian=unknown
14495 $as_echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14514 /* Are we little or big endian? From Harbison&Steele. */
14518 char c[sizeof (long int)];
14521 return u.c[sizeof (long int) - 1] == 1;
14527 rm -f conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534 $as_echo "$ac_try_echo") >&5
14535 (eval "$ac_link") 2>&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14539 { (case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14544 $as_echo "$ac_try_echo") >&5
14545 (eval "$ac_try") 2>&5
14547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_c_bigendian=no
14551 $as_echo "$as_me: program exited with status $ac_status" >&5
14552 $as_echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ( exit $ac_status )
14556 ac_cv_c_bigendian=yes
14558 rm -rf conftest.dSYM
14559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14565 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14566 $as_echo "$ac_cv_c_bigendian" >&6; }
14567 case $ac_cv_c_bigendian in #(
14569 cat >>confdefs.h <<\_ACEOF
14570 #define WORDS_BIGENDIAN 1
14577 cat >>confdefs.h <<\_ACEOF
14578 #define AC_APPLE_UNIVERSAL_BUILD 1
14583 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14585 $as_echo "$as_me: error: unknown endianness
14586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14587 { (exit 1); exit 1; }; } ;;
14590 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14591 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14592 if test "${ac_cv_c_const+set}" = set; then
14593 $as_echo_n "(cached) " >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14605 /* FIXME: Include the comments suggested by Paul. */
14606 #ifndef __cplusplus
14607 /* Ultrix mips cc rejects this. */
14608 typedef int charset[2];
14610 /* SunOS 4.1.1 cc rejects this. */
14611 char const *const *pcpcc;
14613 /* NEC SVR4.0.2 mips cc rejects this. */
14614 struct point {int x, y;};
14615 static struct point const zero = {0,0};
14616 /* AIX XL C 1.02.0.0 rejects this.
14617 It does not let you subtract one const X* pointer from another in
14618 an arm of an if-expression whose if-part is not a constant
14620 const char *g = "string";
14621 pcpcc = &g + (g ? g-g : 0);
14622 /* HPUX 7.0 cc rejects these. */
14624 ppc = (char**) pcpcc;
14625 pcpcc = (char const *const *) ppc;
14626 { /* SCO 3.2v4 cc rejects this. */
14628 char const *s = 0 ? (char *) 0 : (char const *) 0;
14633 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14634 int x[] = {25, 17};
14635 const int *foo = &x[0];
14638 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14639 typedef const int *iptr;
14643 { /* AIX XL C 1.02.0.0 rejects this saying
14644 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14645 struct s { int j; const int *ap[3]; };
14646 struct s *b; b->j = 5;
14648 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14649 const int foo = 10;
14650 if (!foo) return 0;
14652 return !cs[0] && !zero.x;
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14666 $as_echo "$ac_try_echo") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
14679 $as_echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14688 $as_echo "$ac_cv_c_const" >&6; }
14689 if test $ac_cv_c_const = no; then
14691 cat >>confdefs.h <<\_ACEOF
14697 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14698 $as_echo_n "checking for inline... " >&6; }
14699 if test "${ac_cv_c_inline+set}" = set; then
14700 $as_echo_n "(cached) " >&6
14703 for ac_kw in inline __inline__ __inline; do
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #ifndef __cplusplus
14712 static $ac_kw foo_t static_foo () {return 0; }
14713 $ac_kw foo_t foo () {return 0; }
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.$ac_objext; then
14735 ac_cv_c_inline=$ac_kw
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 test "$ac_cv_c_inline" != no && break
14748 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14749 $as_echo "$ac_cv_c_inline" >&6; }
14752 case $ac_cv_c_inline in
14755 case $ac_cv_c_inline in
14757 *) ac_val=$ac_cv_c_inline;;
14759 cat >>confdefs.h <<_ACEOF
14760 #ifndef __cplusplus
14761 #define inline $ac_val
14767 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14768 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14769 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14770 $as_echo_n "(cached) " >&6
14772 pgac_cv_c_inline_quietly=no
14773 if test "$ac_cv_c_inline" != no; then
14774 pgac_c_inline_save_werror=$ac_c_werror_flag
14775 ac_c_werror_flag=yes
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 static inline int fun () {return 0;}
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (ac_try="$ac_link"
14793 case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14798 $as_echo "$ac_try_echo") >&5
14799 (eval "$ac_link") 2>conftest.er1
14801 grep -v '^ *+' conftest.er1 >conftest.err
14803 cat conftest.err >&5
14804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } && {
14806 test -z "$ac_c_werror_flag" ||
14807 test ! -s conftest.err
14808 } && test -s conftest$ac_exeext && {
14809 test "$cross_compiling" = yes ||
14810 $as_test_x conftest$ac_exeext
14812 pgac_cv_c_inline_quietly=yes
14814 $as_echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14820 rm -rf conftest.dSYM
14821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14822 conftest$ac_exeext conftest.$ac_ext
14823 ac_c_werror_flag=$pgac_c_inline_save_werror
14826 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14827 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14828 if test "$pgac_cv_c_inline_quietly" != no; then
14830 cat >>confdefs.h <<_ACEOF
14831 #define USE_INLINE 1
14836 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14837 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14838 if test "${ac_cv_c_stringize+set}" = set; then
14839 $as_echo_n "(cached) " >&6
14841 cat >conftest.$ac_ext <<_ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14849 char *s = x(teststring);
14851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14852 $EGREP "#teststring" >/dev/null 2>&1; then
14853 ac_cv_c_stringize=no
14855 ac_cv_c_stringize=yes
14860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14861 $as_echo "$ac_cv_c_stringize" >&6; }
14862 if test $ac_cv_c_stringize = yes; then
14864 cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_STRINGIZE 1
14870 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14871 $as_echo_n "checking for signed types... " >&6; }
14872 if test "${pgac_cv_c_signed+set}" = set; then
14873 $as_echo_n "(cached) " >&6
14875 cat >conftest.$ac_ext <<_ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14885 signed char c; signed short s; signed int i;
14890 rm -f conftest.$ac_objext
14891 if { (ac_try="$ac_compile"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14897 $as_echo "$ac_try_echo") >&5
14898 (eval "$ac_compile") 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest.$ac_objext; then
14908 pgac_cv_c_signed=yes
14910 $as_echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 pgac_cv_c_signed=no
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14919 $as_echo "$pgac_cv_c_signed" >&6; }
14920 if test x"$pgac_cv_c_signed" = xno ; then
14922 cat >>confdefs.h <<\_ACEOF
14923 #define signed /**/
14927 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14928 $as_echo_n "checking for working volatile... " >&6; }
14929 if test "${ac_cv_c_volatile+set}" = set; then
14930 $as_echo_n "(cached) " >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14944 int * volatile y = (int *) 0;
14950 rm -f conftest.$ac_objext
14951 if { (ac_try="$ac_compile"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14957 $as_echo "$ac_try_echo") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } && {
14965 test -z "$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 } && test -s conftest.$ac_objext; then
14968 ac_cv_c_volatile=yes
14970 $as_echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_cv_c_volatile=no
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14979 $as_echo "$ac_cv_c_volatile" >&6; }
14980 if test $ac_cv_c_volatile = no; then
14982 cat >>confdefs.h <<\_ACEOF
14983 #define volatile /**/
14988 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14989 $as_echo_n "checking for __func__... " >&6; }
14990 if test "${pgac_cv_funcname_func_support+set}" = set; then
14991 $as_echo_n "(cached) " >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15003 printf("%s\n", __func__);
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && {
15023 test -z "$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15025 } && test -s conftest.$ac_objext; then
15026 pgac_cv_funcname_func_support=yes
15028 $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 pgac_cv_funcname_func_support=no
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15037 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15038 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15040 cat >>confdefs.h <<\_ACEOF
15041 #define HAVE_FUNCNAME__FUNC 1
15045 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15046 $as_echo_n "checking for __FUNCTION__... " >&6; }
15047 if test "${pgac_cv_funcname_function_support+set}" = set; then
15048 $as_echo_n "(cached) " >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15060 printf("%s\n", __FUNCTION__);
15065 rm -f conftest.$ac_objext
15066 if { (ac_try="$ac_compile"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15072 $as_echo "$ac_try_echo") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest.$ac_objext; then
15083 pgac_cv_funcname_function_support=yes
15085 $as_echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 pgac_cv_funcname_function_support=no
15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15094 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15095 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_FUNCNAME__FUNCTION 1
15103 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15104 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15105 if test "${ac_cv_struct_tm+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <sys/types.h>
15121 int *p = &tm.tm_sec;
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134 $as_echo "$ac_try_echo") >&5
15135 (eval "$ac_compile") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest.$ac_objext; then
15145 ac_cv_struct_tm=time.h
15147 $as_echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_struct_tm=sys/time.h
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15156 $as_echo "$ac_cv_struct_tm" >&6; }
15157 if test $ac_cv_struct_tm = sys/time.h; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define TM_IN_SYS_TIME 1
15165 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15166 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15167 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15168 $as_echo_n "(cached) " >&6
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 #include <sys/types.h>
15177 #include <$ac_cv_struct_tm>
15183 static struct tm ac_aggr;
15184 if (ac_aggr.tm_zone)
15190 rm -f conftest.$ac_objext
15191 if { (ac_try="$ac_compile"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15197 $as_echo "$ac_try_echo") >&5
15198 (eval "$ac_compile") 2>conftest.er1
15200 grep -v '^ *+' conftest.er1 >conftest.err
15202 cat conftest.err >&5
15203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } && {
15205 test -z "$ac_c_werror_flag" ||
15206 test ! -s conftest.err
15207 } && test -s conftest.$ac_objext; then
15208 ac_cv_member_struct_tm_tm_zone=yes
15210 $as_echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <sys/types.h>
15220 #include <$ac_cv_struct_tm>
15226 static struct tm ac_aggr;
15227 if (sizeof ac_aggr.tm_zone)
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15240 $as_echo "$ac_try_echo") >&5
15241 (eval "$ac_compile") 2>conftest.er1
15243 grep -v '^ *+' conftest.er1 >conftest.err
15245 cat conftest.err >&5
15246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } && {
15248 test -z "$ac_c_werror_flag" ||
15249 test ! -s conftest.err
15250 } && test -s conftest.$ac_objext; then
15251 ac_cv_member_struct_tm_tm_zone=yes
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_cv_member_struct_tm_tm_zone=no
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15265 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15266 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15268 cat >>confdefs.h <<_ACEOF
15269 #define HAVE_STRUCT_TM_TM_ZONE 1
15275 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_TM_ZONE 1
15282 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15283 $as_echo_n "checking for tzname... " >&6; }
15284 if test "${ac_cv_var_tzname+set}" = set; then
15285 $as_echo_n "(cached) " >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 #ifndef tzname /* For SGI. */
15295 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (ac_try="$ac_link"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15313 $as_echo "$ac_try_echo") >&5
15314 (eval "$ac_link") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && {
15321 test -z "$ac_c_werror_flag" ||
15322 test ! -s conftest.err
15323 } && test -s conftest$ac_exeext && {
15324 test "$cross_compiling" = yes ||
15325 $as_test_x conftest$ac_exeext
15327 ac_cv_var_tzname=yes
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_var_tzname=no
15335 rm -rf conftest.dSYM
15336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15337 conftest$ac_exeext conftest.$ac_ext
15339 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15340 $as_echo "$ac_cv_var_tzname" >&6; }
15341 if test $ac_cv_var_tzname = yes; then
15343 cat >>confdefs.h <<\_ACEOF
15344 #define HAVE_TZNAME 1
15349 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15350 $as_echo_n "checking for union semun... " >&6; }
15351 if test "${ac_cv_type_union_semun+set}" = set; then
15352 $as_echo_n "(cached) " >&6
15354 ac_cv_type_union_semun=no
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #include <sys/types.h>
15362 #include <sys/ipc.h>
15363 #include <sys/sem.h>
15368 if (sizeof (union semun))
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15381 $as_echo "$ac_try_echo") >&5
15382 (eval "$ac_compile") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } && {
15389 test -z "$ac_c_werror_flag" ||
15390 test ! -s conftest.err
15391 } && test -s conftest.$ac_objext; then
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15399 #include <sys/ipc.h>
15400 #include <sys/sem.h>
15405 if (sizeof ((union semun)))
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15418 $as_echo "$ac_try_echo") >&5
15419 (eval "$ac_compile") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest.$ac_objext; then
15431 $as_echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_cv_type_union_semun=yes
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 $as_echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15448 $as_echo "$ac_cv_type_union_semun" >&6; }
15449 if test "x$ac_cv_type_union_semun" = x""yes; then
15451 cat >>confdefs.h <<_ACEOF
15452 #define HAVE_UNION_SEMUN 1
15458 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15459 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15460 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15461 $as_echo_n "(cached) " >&6
15463 ac_cv_type_struct_sockaddr_un=no
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <sys/types.h>
15471 #ifdef HAVE_SYS_UN_H
15472 #include <sys/un.h>
15479 if (sizeof (struct sockaddr_un))
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15492 $as_echo "$ac_try_echo") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest.$ac_objext; then
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <sys/types.h>
15510 #ifdef HAVE_SYS_UN_H
15511 #include <sys/un.h>
15518 if (sizeof ((struct sockaddr_un)))
15524 rm -f conftest.$ac_objext
15525 if { (ac_try="$ac_compile"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15531 $as_echo "$ac_try_echo") >&5
15532 (eval "$ac_compile") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } && {
15539 test -z "$ac_c_werror_flag" ||
15540 test ! -s conftest.err
15541 } && test -s conftest.$ac_objext; then
15544 $as_echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_type_struct_sockaddr_un=yes
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 $as_echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15561 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15562 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_STRUCT_SOCKADDR_UN 1
15569 cat >>confdefs.h <<\_ACEOF
15570 #define HAVE_UNIX_SOCKETS 1
15575 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15576 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15577 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15580 ac_cv_type_struct_sockaddr_storage=no
15581 cat >conftest.$ac_ext <<_ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15596 if (sizeof (struct sockaddr_storage))
15602 rm -f conftest.$ac_objext
15603 if { (ac_try="$ac_compile"
15604 case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15609 $as_echo "$ac_try_echo") >&5
15610 (eval "$ac_compile") 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } && {
15617 test -z "$ac_c_werror_flag" ||
15618 test ! -s conftest.err
15619 } && test -s conftest.$ac_objext; then
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <sys/types.h>
15627 #ifdef HAVE_SYS_SOCKET_H
15628 #include <sys/socket.h>
15635 if (sizeof ((struct sockaddr_storage)))
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15648 $as_echo "$ac_try_echo") >&5
15649 (eval "$ac_compile") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } && {
15656 test -z "$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15658 } && test -s conftest.$ac_objext; then
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_cv_type_struct_sockaddr_storage=yes
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15678 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15679 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15688 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15689 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15690 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15691 $as_echo_n "(cached) " >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <sys/types.h>
15700 #ifdef HAVE_SYS_SOCKET_H
15701 #include <sys/socket.h>
15708 static struct sockaddr_storage ac_aggr;
15709 if (ac_aggr.ss_family)
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_compile") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest.$ac_objext; then
15733 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15735 $as_echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 cat >conftest.$ac_ext <<_ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <sys/types.h>
15745 #ifdef HAVE_SYS_SOCKET_H
15746 #include <sys/socket.h>
15753 static struct sockaddr_storage ac_aggr;
15754 if (sizeof ac_aggr.ss_family)
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_cv_member_struct_sockaddr_storage_ss_family=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15792 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15793 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15801 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15802 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15803 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15804 $as_echo_n "(cached) " >&6
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <sys/types.h>
15813 #ifdef HAVE_SYS_SOCKET_H
15814 #include <sys/socket.h>
15821 static struct sockaddr_storage ac_aggr;
15822 if (ac_aggr.__ss_family)
15828 rm -f conftest.$ac_objext
15829 if { (ac_try="$ac_compile"
15830 case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15835 $as_echo "$ac_try_echo") >&5
15836 (eval "$ac_compile") 2>conftest.er1
15838 grep -v '^ *+' conftest.er1 >conftest.err
15840 cat conftest.err >&5
15841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } && {
15843 test -z "$ac_c_werror_flag" ||
15844 test ! -s conftest.err
15845 } && test -s conftest.$ac_objext; then
15846 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15848 $as_echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <sys/types.h>
15858 #ifdef HAVE_SYS_SOCKET_H
15859 #include <sys/socket.h>
15866 static struct sockaddr_storage ac_aggr;
15867 if (sizeof ac_aggr.__ss_family)
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881 (eval "$ac_compile") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest.$ac_objext; then
15891 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_cv_member_struct_sockaddr_storage___ss_family=no
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15905 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15906 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15908 cat >>confdefs.h <<_ACEOF
15909 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15914 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15915 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15916 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15917 $as_echo_n "(cached) " >&6
15919 cat >conftest.$ac_ext <<_ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <sys/types.h>
15926 #ifdef HAVE_SYS_SOCKET_H
15927 #include <sys/socket.h>
15934 static struct sockaddr_storage ac_aggr;
15935 if (ac_aggr.ss_len)
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15948 $as_echo "$ac_try_echo") >&5
15949 (eval "$ac_compile") 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && {
15956 test -z "$ac_c_werror_flag" ||
15957 test ! -s conftest.err
15958 } && test -s conftest.$ac_objext; then
15959 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15961 $as_echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 #include <sys/types.h>
15971 #ifdef HAVE_SYS_SOCKET_H
15972 #include <sys/socket.h>
15979 static struct sockaddr_storage ac_aggr;
15980 if (sizeof ac_aggr.ss_len)
15986 rm -f conftest.$ac_objext
15987 if { (ac_try="$ac_compile"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15993 $as_echo "$ac_try_echo") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest.$ac_objext; then
16004 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16006 $as_echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_cv_member_struct_sockaddr_storage_ss_len=no
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16018 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16019 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16027 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16028 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16029 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16030 $as_echo_n "(cached) " >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 #include <sys/types.h>
16039 #ifdef HAVE_SYS_SOCKET_H
16040 #include <sys/socket.h>
16047 static struct sockaddr_storage ac_aggr;
16048 if (ac_aggr.__ss_len)
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16061 $as_echo "$ac_try_echo") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest.$ac_objext; then
16072 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16074 $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <sys/types.h>
16084 #ifdef HAVE_SYS_SOCKET_H
16085 #include <sys/socket.h>
16092 static struct sockaddr_storage ac_aggr;
16093 if (sizeof ac_aggr.__ss_len)
16099 rm -f conftest.$ac_objext
16100 if { (ac_try="$ac_compile"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16106 $as_echo "$ac_try_echo") >&5
16107 (eval "$ac_compile") 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest.$ac_objext; then
16117 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16119 $as_echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_cv_member_struct_sockaddr_storage___ss_len=no
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16131 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16132 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16140 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16141 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16142 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16143 $as_echo_n "(cached) " >&6
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <sys/types.h>
16152 #ifdef HAVE_SYS_SOCKET_H
16153 #include <sys/socket.h>
16160 static struct sockaddr ac_aggr;
16161 if (ac_aggr.sa_len)
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174 $as_echo "$ac_try_echo") >&5
16175 (eval "$ac_compile") 2>conftest.er1
16177 grep -v '^ *+' conftest.er1 >conftest.err
16179 cat conftest.err >&5
16180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && {
16182 test -z "$ac_c_werror_flag" ||
16183 test ! -s conftest.err
16184 } && test -s conftest.$ac_objext; then
16185 ac_cv_member_struct_sockaddr_sa_len=yes
16187 $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <sys/types.h>
16197 #ifdef HAVE_SYS_SOCKET_H
16198 #include <sys/socket.h>
16205 static struct sockaddr ac_aggr;
16206 if (sizeof ac_aggr.sa_len)
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16230 ac_cv_member_struct_sockaddr_sa_len=yes
16232 $as_echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_cv_member_struct_sockaddr_sa_len=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16244 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16245 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16254 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16255 $as_echo_n "checking for struct addrinfo... " >&6; }
16256 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16257 $as_echo_n "(cached) " >&6
16259 ac_cv_type_struct_addrinfo=no
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 #include <sys/types.h>
16267 #include <sys/socket.h>
16274 if (sizeof (struct addrinfo))
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287 $as_echo "$ac_try_echo") >&5
16288 (eval "$ac_compile") 2>conftest.er1
16290 grep -v '^ *+' conftest.er1 >conftest.err
16292 cat conftest.err >&5
16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest.$ac_objext; then
16298 cat >conftest.$ac_ext <<_ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #include <sys/types.h>
16305 #include <sys/socket.h>
16312 if (sizeof ((struct addrinfo)))
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325 $as_echo "$ac_try_echo") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16328 grep -v '^ *+' conftest.er1 >conftest.err
16330 cat conftest.err >&5
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16338 $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ac_cv_type_struct_addrinfo=yes
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 $as_echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16355 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16356 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define HAVE_STRUCT_ADDRINFO 1
16366 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16367 $as_echo_n "checking for intptr_t... " >&6; }
16368 if test "${ac_cv_type_intptr_t+set}" = set; then
16369 $as_echo_n "(cached) " >&6
16371 ac_cv_type_intptr_t=no
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16382 if (sizeof (intptr_t))
16388 rm -f conftest.$ac_objext
16389 if { (ac_try="$ac_compile"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_compile") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest.$ac_objext; then
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 $ac_includes_default
16416 if (sizeof ((intptr_t)))
16422 rm -f conftest.$ac_objext
16423 if { (ac_try="$ac_compile"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16429 $as_echo "$ac_try_echo") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest.$ac_objext; then
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 ac_cv_type_intptr_t=yes
16448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16459 $as_echo "$ac_cv_type_intptr_t" >&6; }
16460 if test "x$ac_cv_type_intptr_t" = x""yes; then
16462 cat >>confdefs.h <<\_ACEOF
16463 #define HAVE_INTPTR_T 1
16467 for ac_type in 'int' 'long int' 'long long int'; do
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16478 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16492 $as_echo "$ac_try_echo") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16495 grep -v '^ *+' conftest.er1 >conftest.err
16497 cat conftest.err >&5
16498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } && {
16500 test -z "$ac_c_werror_flag" ||
16501 test ! -s conftest.err
16502 } && test -s conftest.$ac_objext; then
16504 cat >>confdefs.h <<_ACEOF
16505 #define intptr_t $ac_type
16510 $as_echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 test -z "$ac_type" && break
16523 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16524 $as_echo_n "checking for uintptr_t... " >&6; }
16525 if test "${ac_cv_type_uintptr_t+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16528 ac_cv_type_uintptr_t=no
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 $ac_includes_default
16539 if (sizeof (uintptr_t))
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16552 $as_echo "$ac_try_echo") >&5
16553 (eval "$ac_compile") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && {
16560 test -z "$ac_c_werror_flag" ||
16561 test ! -s conftest.err
16562 } && test -s conftest.$ac_objext; then
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 $ac_includes_default
16573 if (sizeof ((uintptr_t)))
16579 rm -f conftest.$ac_objext
16580 if { (ac_try="$ac_compile"
16581 case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16586 $as_echo "$ac_try_echo") >&5
16587 (eval "$ac_compile") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest.$ac_objext; then
16599 $as_echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_type_uintptr_t=yes
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 $as_echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16616 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16617 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16619 cat >>confdefs.h <<\_ACEOF
16620 #define HAVE_UINTPTR_T 1
16624 for ac_type in 'unsigned int' 'unsigned long int' \
16625 'unsigned long long int'; do
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 $ac_includes_default
16636 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest.$ac_objext; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define uintptr_t $ac_type
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 test -z "$ac_type" && break
16681 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16682 $as_echo_n "checking for long long int... " >&6; }
16683 if test "${ac_cv_type_long_long_int+set}" = set; then
16684 $as_echo_n "(cached) " >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* For now, do not test the preprocessor; as of 2007 there are too many
16694 implementations with broken preprocessors. Perhaps this can
16695 be revisited in 2012. In the meantime, code should not expect
16696 #if to work with literals wider than 32 bits. */
16697 /* Test literals. */
16698 long long int ll = 9223372036854775807ll;
16699 long long int nll = -9223372036854775807LL;
16700 unsigned long long int ull = 18446744073709551615ULL;
16701 /* Test constant expressions. */
16702 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16704 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16710 /* Test availability of runtime routines for shift and division. */
16711 long long int llmax = 9223372036854775807ll;
16712 unsigned long long int ullmax = 18446744073709551615ull;
16713 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16714 | (llmax / ll) | (llmax % ll)
16715 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16716 | (ullmax / ull) | (ullmax % ull));
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730 (eval "$ac_link") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext && {
16740 test "$cross_compiling" = yes ||
16741 $as_test_x conftest$ac_exeext
16743 if test "$cross_compiling" = yes; then
16744 ac_cv_type_long_long_int=yes
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <limits.h>
16755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16756 # define LLONG_MAX (HALF - 1 + HALF)
16761 long long int n = 1;
16765 long long int m = n << i;
16768 if (LLONG_MAX / 2 < m)
16776 rm -f conftest$ac_exeext
16777 if { (ac_try="$ac_link"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16783 $as_echo "$ac_try_echo") >&5
16784 (eval "$ac_link") 2>&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16793 $as_echo "$ac_try_echo") >&5
16794 (eval "$ac_try") 2>&5
16796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_type_long_long_int=yes
16800 $as_echo "$as_me: program exited with status $ac_status" >&5
16801 $as_echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ( exit $ac_status )
16805 ac_cv_type_long_long_int=no
16807 rm -rf conftest.dSYM
16808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16813 $as_echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_type_long_long_int=no
16819 rm -rf conftest.dSYM
16820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16821 conftest$ac_exeext conftest.$ac_ext
16823 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16824 $as_echo "$ac_cv_type_long_long_int" >&6; }
16825 if test $ac_cv_type_long_long_int = yes; then
16827 cat >>confdefs.h <<\_ACEOF
16828 #define HAVE_LONG_LONG_INT 1
16834 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16835 $as_echo_n "checking for locale_t... " >&6; }
16836 if test "${pgac_cv_type_locale_t+set}" = set; then
16837 $as_echo_n "(cached) " >&6
16839 cat >conftest.$ac_ext <<_ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 #include <locale.h>
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.$ac_objext; then
16873 pgac_cv_type_locale_t=yes
16875 $as_echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 #include <xlocale.h>
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16901 $as_echo "$ac_try_echo") >&5
16902 (eval "$ac_compile") 2>conftest.er1
16904 grep -v '^ *+' conftest.er1 >conftest.err
16906 cat conftest.err >&5
16907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } && {
16909 test -z "$ac_c_werror_flag" ||
16910 test ! -s conftest.err
16911 } && test -s conftest.$ac_objext; then
16912 pgac_cv_type_locale_t='yes (in xlocale.h)'
16914 $as_echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 pgac_cv_type_locale_t=no
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
16926 $as_echo "$pgac_cv_type_locale_t" >&6; }
16927 if test "$pgac_cv_type_locale_t" != no; then
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_LOCALE_T 1
16934 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
16936 cat >>confdefs.h <<\_ACEOF
16937 #define LOCALE_T_IN_XLOCALE 1
16942 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16943 $as_echo_n "checking for struct cmsgcred... " >&6; }
16944 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16945 $as_echo_n "(cached) " >&6
16947 ac_cv_type_struct_cmsgcred=no
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 #include <sys/param.h>
16955 #include <sys/types.h>
16956 #include <sys/socket.h>
16957 #include <sys/ucred.h>
16962 if (sizeof (struct cmsgcred))
16968 rm -f conftest.$ac_objext
16969 if { (ac_try="$ac_compile"
16970 case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16975 $as_echo "$ac_try_echo") >&5
16976 (eval "$ac_compile") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest.$ac_objext; then
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 #include <sys/param.h>
16993 #include <sys/types.h>
16994 #include <sys/socket.h>
16995 #include <sys/ucred.h>
17000 if (sizeof ((struct cmsgcred)))
17006 rm -f conftest.$ac_objext
17007 if { (ac_try="$ac_compile"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_compile") 2>conftest.er1
17016 grep -v '^ *+' conftest.er1 >conftest.err
17018 cat conftest.err >&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest.$ac_objext; then
17026 $as_echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_type_struct_cmsgcred=yes
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 $as_echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17043 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17044 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17046 cat >>confdefs.h <<_ACEOF
17047 #define HAVE_STRUCT_CMSGCRED 1
17052 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
17053 $as_echo_n "checking for struct fcred... " >&6; }
17054 if test "${ac_cv_type_struct_fcred+set}" = set; then
17055 $as_echo_n "(cached) " >&6
17057 ac_cv_type_struct_fcred=no
17058 cat >conftest.$ac_ext <<_ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 #include <sys/param.h>
17065 #include <sys/types.h>
17066 #include <sys/socket.h>
17067 #include <sys/ucred.h>
17072 if (sizeof (struct fcred))
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest.$ac_objext; then
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 #include <sys/param.h>
17103 #include <sys/types.h>
17104 #include <sys/socket.h>
17105 #include <sys/ucred.h>
17110 if (sizeof ((struct fcred)))
17116 rm -f conftest.$ac_objext
17117 if { (ac_try="$ac_compile"
17118 case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17123 $as_echo "$ac_try_echo") >&5
17124 (eval "$ac_compile") 2>conftest.er1
17126 grep -v '^ *+' conftest.er1 >conftest.err
17128 cat conftest.err >&5
17129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest.$ac_objext; then
17136 $as_echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ac_cv_type_struct_fcred=yes
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 $as_echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
17153 $as_echo "$ac_cv_type_struct_fcred" >&6; }
17154 if test "x$ac_cv_type_struct_fcred" = x""yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define HAVE_STRUCT_FCRED 1
17162 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
17163 $as_echo_n "checking for struct sockcred... " >&6; }
17164 if test "${ac_cv_type_struct_sockcred+set}" = set; then
17165 $as_echo_n "(cached) " >&6
17167 ac_cv_type_struct_sockcred=no
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 #include <sys/param.h>
17175 #include <sys/types.h>
17176 #include <sys/socket.h>
17177 #include <sys/ucred.h>
17182 if (sizeof (struct sockcred))
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <sys/param.h>
17213 #include <sys/types.h>
17214 #include <sys/socket.h>
17215 #include <sys/ucred.h>
17220 if (sizeof ((struct sockcred)))
17226 rm -f conftest.$ac_objext
17227 if { (ac_try="$ac_compile"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17233 $as_echo "$ac_try_echo") >&5
17234 (eval "$ac_compile") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest.$ac_objext; then
17246 $as_echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_type_struct_sockcred=yes
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 $as_echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
17263 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
17264 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
17266 cat >>confdefs.h <<_ACEOF
17267 #define HAVE_STRUCT_SOCKCRED 1
17274 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17275 $as_echo_n "checking for struct option... " >&6; }
17276 if test "${ac_cv_type_struct_option+set}" = set; then
17277 $as_echo_n "(cached) " >&6
17279 ac_cv_type_struct_option=no
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 #ifdef HAVE_GETOPT_H
17287 #include <getopt.h>
17293 if (sizeof (struct option))
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307 (eval "$ac_compile") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest.$ac_objext; then
17317 cat >conftest.$ac_ext <<_ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17323 #ifdef HAVE_GETOPT_H
17324 #include <getopt.h>
17330 if (sizeof ((struct option)))
17336 rm -f conftest.$ac_objext
17337 if { (ac_try="$ac_compile"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17343 $as_echo "$ac_try_echo") >&5
17344 (eval "$ac_compile") 2>conftest.er1
17346 grep -v '^ *+' conftest.er1 >conftest.err
17348 cat conftest.err >&5
17349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest.$ac_objext; then
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_cv_type_struct_option=yes
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 $as_echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17373 $as_echo "$ac_cv_type_struct_option" >&6; }
17374 if test "x$ac_cv_type_struct_option" = x""yes; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define HAVE_STRUCT_OPTION 1
17384 if test "$with_zlib" = yes; then
17385 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17386 # did not). While we could work around the lack of z_streamp, it
17387 # seems unwise to encourage people to use such old zlib versions...
17388 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17389 $as_echo_n "checking for z_streamp... " >&6; }
17390 if test "${ac_cv_type_z_streamp+set}" = set; then
17391 $as_echo_n "(cached) " >&6
17393 ac_cv_type_z_streamp=no
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17405 if (sizeof (z_streamp))
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17440 if (sizeof ((z_streamp)))
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest.$ac_objext; then
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_type_z_streamp=yes
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474 $as_echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17483 $as_echo "$ac_cv_type_z_streamp" >&6; }
17484 if test "x$ac_cv_type_z_streamp" = x""yes; then
17487 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17488 Use --without-zlib to disable zlib support." >&5
17489 $as_echo "$as_me: error: zlib version is too old
17490 Use --without-zlib to disable zlib support." >&2;}
17491 { (exit 1); exit 1; }; }
17496 if test "$with_krb5" = yes; then
17497 # Check for differences between MIT and Heimdal (KTH) releases
17498 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17499 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17500 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17501 $as_echo_n "(cached) " >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17514 static krb5_ticket ac_aggr;
17515 if (ac_aggr.enc_part2)
17521 rm -f conftest.$ac_objext
17522 if { (ac_try="$ac_compile"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17528 $as_echo "$ac_try_echo") >&5
17529 (eval "$ac_compile") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest.$ac_objext; then
17539 ac_cv_member_krb5_ticket_enc_part2=yes
17541 $as_echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17555 static krb5_ticket ac_aggr;
17556 if (sizeof ac_aggr.enc_part2)
17562 rm -f conftest.$ac_objext
17563 if { (ac_try="$ac_compile"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569 $as_echo "$ac_try_echo") >&5
17570 (eval "$ac_compile") 2>conftest.er1
17572 grep -v '^ *+' conftest.er1 >conftest.err
17574 cat conftest.err >&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest.$ac_objext; then
17580 ac_cv_member_krb5_ticket_enc_part2=yes
17582 $as_echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 ac_cv_member_krb5_ticket_enc_part2=no
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17594 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17595 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define HAVE_KRB5_TICKET_ENC_PART2 1
17603 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17604 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17605 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17606 $as_echo_n "(cached) " >&6
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17619 static krb5_ticket ac_aggr;
17620 if (ac_aggr.client)
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17633 $as_echo "$ac_try_echo") >&5
17634 (eval "$ac_compile") 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest.$ac_objext; then
17644 ac_cv_member_krb5_ticket_client=yes
17646 $as_echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17660 static krb5_ticket ac_aggr;
17661 if (sizeof ac_aggr.client)
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17674 $as_echo "$ac_try_echo") >&5
17675 (eval "$ac_compile") 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest.$ac_objext; then
17685 ac_cv_member_krb5_ticket_client=yes
17687 $as_echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_member_krb5_ticket_client=no
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17699 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17700 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17702 cat >>confdefs.h <<_ACEOF
17703 #define HAVE_KRB5_TICKET_CLIENT 1
17708 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17709 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17710 { (exit 1); exit 1; }; }
17715 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17716 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17717 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17731 static krb5_error ac_aggr;
17732 if (ac_aggr.text.data)
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest.$ac_objext; then
17756 ac_cv_member_krb5_error_text_data=yes
17758 $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17772 static krb5_error ac_aggr;
17773 if (sizeof ac_aggr.text.data)
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17786 $as_echo "$ac_try_echo") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } && {
17794 test -z "$ac_c_werror_flag" ||
17795 test ! -s conftest.err
17796 } && test -s conftest.$ac_objext; then
17797 ac_cv_member_krb5_error_text_data=yes
17799 $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_cv_member_krb5_error_text_data=no
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17811 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17812 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17820 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17821 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17822 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17823 $as_echo_n "(cached) " >&6
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17836 static krb5_error ac_aggr;
17837 if (ac_aggr.e_data)
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17850 $as_echo "$ac_try_echo") >&5
17851 (eval "$ac_compile") 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } && {
17858 test -z "$ac_c_werror_flag" ||
17859 test ! -s conftest.err
17860 } && test -s conftest.$ac_objext; then
17861 ac_cv_member_krb5_error_e_data=yes
17863 $as_echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17877 static krb5_error ac_aggr;
17878 if (sizeof ac_aggr.e_data)
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_cv_member_krb5_error_e_data=yes
17904 $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_member_krb5_error_e_data=no
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17916 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17917 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_KRB5_ERROR_E_DATA 1
17925 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17926 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17927 { (exit 1); exit 1; }; }
17933 # Win32 requires headers to be loaded for __stdcall, so can't use
17934 # AC_CHECK_FUNCS here.
17935 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17936 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17947 krb5_free_unparsed_name(NULL,NULL);
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17959 $as_echo "$ac_try_echo") >&5
17960 (eval "$ac_link") 2>conftest.er1
17962 grep -v '^ *+' conftest.er1 >conftest.err
17964 cat conftest.err >&5
17965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && {
17967 test -z "$ac_c_werror_flag" ||
17968 test ! -s conftest.err
17969 } && test -s conftest$ac_exeext && {
17970 test "$cross_compiling" = yes ||
17971 $as_test_x conftest$ac_exeext
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17978 { $as_echo "$as_me:$LINENO: result: yes" >&5
17979 $as_echo "yes" >&6; }
17981 $as_echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 { $as_echo "$as_me:$LINENO: result: no" >&5
17985 $as_echo "no" >&6; }
17988 rm -rf conftest.dSYM
17989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext conftest.$ac_ext
17993 # Check largefile support. You might think this is a system service not a
17994 # compiler characteristic, but you'd be wrong. We must check this before
17995 # probing existence of related functions such as fseeko, since the largefile
17996 # defines can affect what is generated for that.
17997 # Check whether --enable-largefile was given.
17998 if test "${enable_largefile+set}" = set; then
17999 enableval=$enable_largefile;
18002 if test "$enable_largefile" != no; then
18004 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18005 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18006 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18007 $as_echo_n "(cached) " >&6
18009 ac_cv_sys_largefile_CC=no
18010 if test "$GCC" != yes; then
18013 # IRIX 6.2 and later do not support large files by default,
18014 # so use the C compiler's -n32 option if that helps.
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include <sys/types.h>
18022 /* Check that off_t can represent 2**63 - 1 correctly.
18023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18024 since some C++ compilers masquerading as C compilers
18025 incorrectly reject 9223372036854775807. */
18026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18028 && LARGE_OFF_T % 2147483647 == 1)
18038 rm -f conftest.$ac_objext
18039 if { (ac_try="$ac_compile"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18045 $as_echo "$ac_try_echo") >&5
18046 (eval "$ac_compile") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest.$ac_objext; then
18058 $as_echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18064 rm -f core conftest.err conftest.$ac_objext
18066 rm -f conftest.$ac_objext
18067 if { (ac_try="$ac_compile"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18073 $as_echo "$ac_try_echo") >&5
18074 (eval "$ac_compile") 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } && {
18081 test -z "$ac_c_werror_flag" ||
18082 test ! -s conftest.err
18083 } && test -s conftest.$ac_objext; then
18084 ac_cv_sys_largefile_CC=' -n32'; break
18086 $as_echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18092 rm -f core conftest.err conftest.$ac_objext
18096 rm -f conftest.$ac_ext
18099 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18100 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18101 if test "$ac_cv_sys_largefile_CC" != no; then
18102 CC=$CC$ac_cv_sys_largefile_CC
18105 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18106 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18107 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18108 $as_echo_n "(cached) " >&6
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 #include <sys/types.h>
18118 /* Check that off_t can represent 2**63 - 1 correctly.
18119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18120 since some C++ compilers masquerading as C compilers
18121 incorrectly reject 9223372036854775807. */
18122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18124 && LARGE_OFF_T % 2147483647 == 1)
18134 rm -f conftest.$ac_objext
18135 if { (ac_try="$ac_compile"
18136 case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18141 $as_echo "$ac_try_echo") >&5
18142 (eval "$ac_compile") 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_c_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest.$ac_objext; then
18152 ac_cv_sys_file_offset_bits=no; break
18154 $as_echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 #define _FILE_OFFSET_BITS 64
18168 #include <sys/types.h>
18169 /* Check that off_t can represent 2**63 - 1 correctly.
18170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18171 since some C++ compilers masquerading as C compilers
18172 incorrectly reject 9223372036854775807. */
18173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18175 && LARGE_OFF_T % 2147483647 == 1)
18185 rm -f conftest.$ac_objext
18186 if { (ac_try="$ac_compile"
18187 case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18192 $as_echo "$ac_try_echo") >&5
18193 (eval "$ac_compile") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest.$ac_objext; then
18203 ac_cv_sys_file_offset_bits=64; break
18205 $as_echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212 ac_cv_sys_file_offset_bits=unknown
18216 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18217 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18218 case $ac_cv_sys_file_offset_bits in #(
18221 cat >>confdefs.h <<_ACEOF
18222 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18227 if test $ac_cv_sys_file_offset_bits = unknown; then
18228 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18229 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18230 if test "${ac_cv_sys_large_files+set}" = set; then
18231 $as_echo_n "(cached) " >&6
18234 cat >conftest.$ac_ext <<_ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <sys/types.h>
18241 /* Check that off_t can represent 2**63 - 1 correctly.
18242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18243 since some C++ compilers masquerading as C compilers
18244 incorrectly reject 9223372036854775807. */
18245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18247 && LARGE_OFF_T % 2147483647 == 1)
18257 rm -f conftest.$ac_objext
18258 if { (ac_try="$ac_compile"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18264 $as_echo "$ac_try_echo") >&5
18265 (eval "$ac_compile") 2>conftest.er1
18267 grep -v '^ *+' conftest.er1 >conftest.err
18269 cat conftest.err >&5
18270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest.$ac_objext; then
18275 ac_cv_sys_large_files=no; break
18277 $as_echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 #define _LARGE_FILES 1
18291 #include <sys/types.h>
18292 /* Check that off_t can represent 2**63 - 1 correctly.
18293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18294 since some C++ compilers masquerading as C compilers
18295 incorrectly reject 9223372036854775807. */
18296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18298 && LARGE_OFF_T % 2147483647 == 1)
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18315 $as_echo "$ac_try_echo") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && {
18323 test -z "$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 } && test -s conftest.$ac_objext; then
18326 ac_cv_sys_large_files=1; break
18328 $as_echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 ac_cv_sys_large_files=unknown
18339 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18340 $as_echo "$ac_cv_sys_large_files" >&6; }
18341 case $ac_cv_sys_large_files in #(
18344 cat >>confdefs.h <<_ACEOF
18345 #define _LARGE_FILES $ac_cv_sys_large_files
18354 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18355 # The cast to long int works around a bug in the HP C Compiler
18356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18358 # This bug is HP SR number 8606223364.
18359 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18360 $as_echo_n "checking size of off_t... " >&6; }
18361 if test "${ac_cv_sizeof_off_t+set}" = set; then
18362 $as_echo_n "(cached) " >&6
18364 if test "$cross_compiling" = yes; then
18365 # Depending upon the size, compute the lo and hi bounds.
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18376 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18390 $as_echo "$ac_try_echo") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 $ac_includes_default
18413 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18420 rm -f conftest.$ac_objext
18421 if { (ac_try="$ac_compile"
18422 case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18427 $as_echo "$ac_try_echo") >&5
18428 (eval "$ac_compile") 2>conftest.er1
18430 grep -v '^ *+' conftest.er1 >conftest.err
18432 cat conftest.err >&5
18433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } && {
18435 test -z "$ac_c_werror_flag" ||
18436 test ! -s conftest.err
18437 } && test -s conftest.$ac_objext; then
18438 ac_hi=$ac_mid; break
18440 $as_echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_lo=`expr $ac_mid + 1`
18444 if test $ac_lo -le $ac_mid; then
18448 ac_mid=`expr 2 '*' $ac_mid + 1`
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 $as_echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18463 $ac_includes_default
18467 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18474 rm -f conftest.$ac_objext
18475 if { (ac_try="$ac_compile"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_compile") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest.$ac_objext; then
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 $ac_includes_default
18504 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18511 rm -f conftest.$ac_objext
18512 if { (ac_try="$ac_compile"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18518 $as_echo "$ac_try_echo") >&5
18519 (eval "$ac_compile") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest.$ac_objext; then
18529 ac_lo=$ac_mid; break
18531 $as_echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ac_hi=`expr '(' $ac_mid ')' - 1`
18535 if test $ac_mid -le $ac_hi; then
18539 ac_mid=`expr 2 '*' $ac_mid`
18542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545 $as_echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555 # Binary search between lo and hi bounds.
18556 while test "x$ac_lo" != "x$ac_hi"; do
18557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 $ac_includes_default
18568 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18575 rm -f conftest.$ac_objext
18576 if { (ac_try="$ac_compile"
18577 case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18582 $as_echo "$ac_try_echo") >&5
18583 (eval "$ac_compile") 2>conftest.er1
18585 grep -v '^ *+' conftest.er1 >conftest.err
18587 cat conftest.err >&5
18588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } && {
18590 test -z "$ac_c_werror_flag" ||
18591 test ! -s conftest.err
18592 } && test -s conftest.$ac_objext; then
18595 $as_echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_lo=`expr '(' $ac_mid ')' + 1`
18601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18605 '') if test "$ac_cv_type_off_t" = yes; then
18606 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18608 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18609 See \`config.log' for more details." >&5
18610 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18611 See \`config.log' for more details." >&2;}
18612 { (exit 77); exit 77; }; }; }
18614 ac_cv_sizeof_off_t=0
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 $ac_includes_default
18625 static long int longval () { return (long int) (sizeof (off_t)); }
18626 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18628 #include <stdlib.h>
18633 FILE *f = fopen ("conftest.val", "w");
18636 if (((long int) (sizeof (off_t))) < 0)
18638 long int i = longval ();
18639 if (i != ((long int) (sizeof (off_t))))
18641 fprintf (f, "%ld", i);
18645 unsigned long int i = ulongval ();
18646 if (i != ((long int) (sizeof (off_t))))
18648 fprintf (f, "%lu", i);
18650 /* Do not output a trailing newline, as this causes \r\n confusion
18651 on some platforms. */
18652 return ferror (f) || fclose (f) != 0;
18658 rm -f conftest$ac_exeext
18659 if { (ac_try="$ac_link"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18665 $as_echo "$ac_try_echo") >&5
18666 (eval "$ac_link") 2>&5
18668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18675 $as_echo "$ac_try_echo") >&5
18676 (eval "$ac_try") 2>&5
18678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_sizeof_off_t=`cat conftest.val`
18682 $as_echo "$as_me: program exited with status $ac_status" >&5
18683 $as_echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ( exit $ac_status )
18687 if test "$ac_cv_type_off_t" = yes; then
18688 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18690 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18691 See \`config.log' for more details." >&5
18692 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18693 See \`config.log' for more details." >&2;}
18694 { (exit 77); exit 77; }; }; }
18696 ac_cv_sizeof_off_t=0
18699 rm -rf conftest.dSYM
18700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18704 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18705 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18709 cat >>confdefs.h <<_ACEOF
18710 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18715 # If we don't have largefile support, can't handle segsize >= 2GB.
18716 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18717 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18718 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18719 { (exit 1); exit 1; }; }
18724 ## Functions, global variables
18727 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18728 $as_echo_n "checking for int timezone... " >&6; }
18729 if test "${pgac_cv_var_int_timezone+set}" = set; then
18730 $as_echo_n "(cached) " >&6
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18744 res = timezone / 60;
18746 res = _timezone / 60;
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (ac_try="$ac_link"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18759 $as_echo "$ac_try_echo") >&5
18760 (eval "$ac_link") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && {
18767 test -z "$ac_c_werror_flag" ||
18768 test ! -s conftest.err
18769 } && test -s conftest$ac_exeext && {
18770 test "$cross_compiling" = yes ||
18771 $as_test_x conftest$ac_exeext
18773 pgac_cv_var_int_timezone=yes
18775 $as_echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 pgac_cv_var_int_timezone=no
18781 rm -rf conftest.dSYM
18782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783 conftest$ac_exeext conftest.$ac_ext
18785 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18786 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18787 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18789 cat >>confdefs.h <<\_ACEOF
18790 #define HAVE_INT_TIMEZONE /**/
18794 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18795 $as_echo_n "checking types of arguments for accept()... " >&6; }
18796 if test "${ac_cv_func_accept_return+set}" = set; then
18797 $as_echo_n "(cached) " >&6
18799 if test "${ac_cv_func_accept_arg1+set}" = set; then
18800 $as_echo_n "(cached) " >&6
18802 if test "${ac_cv_func_accept_arg2+set}" = set; then
18803 $as_echo_n "(cached) " >&6
18805 if test "${ac_cv_func_accept_arg3+set}" = set; then
18806 $as_echo_n "(cached) " >&6
18808 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18809 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18810 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18811 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818 #ifdef HAVE_SYS_TYPES_H
18819 #include <sys/types.h>
18821 #ifdef HAVE_SYS_SOCKET_H
18822 #include <sys/socket.h>
18824 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18840 $as_echo "$ac_try_echo") >&5
18841 (eval "$ac_compile") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest.$ac_objext; then
18851 ac_not_found=no; break 4
18853 $as_echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 if test "$ac_not_found" = yes; then
18865 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18866 $as_echo "$as_me: error: could not determine argument types" >&2;}
18867 { (exit 1); exit 1; }; }
18869 if test "$ac_cv_func_accept_arg3" = "void"; then
18870 ac_cv_func_accept_arg3=int
18880 { $as_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
18881 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18883 cat >>confdefs.h <<_ACEOF
18884 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18888 cat >>confdefs.h <<_ACEOF
18889 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18893 cat >>confdefs.h <<_ACEOF
18894 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18898 cat >>confdefs.h <<_ACEOF
18899 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18903 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18904 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18905 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18906 $as_echo_n "(cached) " >&6
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <sys/time.h>
18918 struct timeval *tp;
18919 struct timezone *tzp;
18920 gettimeofday(tp,tzp);
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18932 $as_echo "$ac_try_echo") >&5
18933 (eval "$ac_compile") 2>conftest.er1
18935 grep -v '^ *+' conftest.er1 >conftest.err
18937 cat conftest.err >&5
18938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && {
18940 test -z "$ac_c_werror_flag" ||
18941 test ! -s conftest.err
18942 } && test -s conftest.$ac_objext; then
18943 pgac_cv_func_gettimeofday_1arg=no
18945 $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 pgac_cv_func_gettimeofday_1arg=yes
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18953 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18954 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18955 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define GETTIMEOFDAY_1ARG /**/
18989 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18993 $as_echo_n "checking for $ac_func... " >&6; }
18994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18995 $as_echo_n "(cached) " >&6
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19005 #define $ac_func innocuous_$ac_func
19007 /* System header to define __stub macros and hopefully few prototypes,
19008 which can conflict with char $ac_func (); below.
19009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19010 <limits.h> exists even on freestanding compilers. */
19013 # include <limits.h>
19015 # include <assert.h>
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined __stub_$ac_func || defined __stub___$ac_func
19037 return $ac_func ();
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19049 $as_echo "$ac_try_echo") >&5
19050 (eval "$ac_link") 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } && {
19057 test -z "$ac_c_werror_flag" ||
19058 test ! -s conftest.err
19059 } && test -s conftest$ac_exeext && {
19060 test "$cross_compiling" = yes ||
19061 $as_test_x conftest$ac_exeext
19063 eval "$as_ac_var=yes"
19065 $as_echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 eval "$as_ac_var=no"
19071 rm -rf conftest.dSYM
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19075 ac_res=`eval 'as_val=${'$as_ac_var'}
19076 $as_echo "$as_val"'`
19077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19078 $as_echo "$ac_res" >&6; }
19079 as_val=`eval 'as_val=${'$as_ac_var'}
19080 $as_echo "$as_val"'`
19081 if test "x$as_val" = x""yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19091 for ac_func in fseeko
19093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19094 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19095 $as_echo_n "checking for $ac_func... " >&6; }
19096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19097 $as_echo_n "(cached) " >&6
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19107 #define $ac_func innocuous_$ac_func
19109 /* System header to define __stub macros and hopefully few prototypes,
19110 which can conflict with char $ac_func (); below.
19111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19112 <limits.h> exists even on freestanding compilers. */
19115 # include <limits.h>
19117 # include <assert.h>
19122 /* Override any GCC internal prototype to avoid an error.
19123 Use char because int might match the return type of a GCC
19124 builtin and then its argument prototype would still apply. */
19129 /* The GNU C library defines this for functions which it implements
19130 to always fail with ENOSYS. Some functions are actually named
19131 something starting with __ and the normal name is an alias. */
19132 #if defined __stub_$ac_func || defined __stub___$ac_func
19139 return $ac_func ();
19144 rm -f conftest.$ac_objext conftest$ac_exeext
19145 if { (ac_try="$ac_link"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152 (eval "$ac_link") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest$ac_exeext && {
19162 test "$cross_compiling" = yes ||
19163 $as_test_x conftest$ac_exeext
19165 eval "$as_ac_var=yes"
19167 $as_echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 eval "$as_ac_var=no"
19173 rm -rf conftest.dSYM
19174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19175 conftest$ac_exeext conftest.$ac_ext
19177 ac_res=`eval 'as_val=${'$as_ac_var'}
19178 $as_echo "$as_val"'`
19179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19180 $as_echo "$ac_res" >&6; }
19181 as_val=`eval 'as_val=${'$as_ac_var'}
19182 $as_echo "$as_val"'`
19183 if test "x$as_val" = x""yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19189 case " $LIBOBJS " in
19190 *" $ac_func.$ac_objext "* ) ;;
19191 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19200 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19201 # Mingw uses macros to access Win32 API calls
19202 bsdi*|netbsd*|mingw*)
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_FSEEKO 1
19208 ac_cv_func_fseeko=yes;;
19210 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19211 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19212 if test "${ac_cv_sys_largefile_source+set}" = set; then
19213 $as_echo_n "(cached) " >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 #include <sys/types.h> /* for off_t */
19227 int (*fp) (FILE *, off_t, int) = fseeko;
19228 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (ac_try="$ac_link"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19240 $as_echo "$ac_try_echo") >&5
19241 (eval "$ac_link") 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest$ac_exeext && {
19251 test "$cross_compiling" = yes ||
19252 $as_test_x conftest$ac_exeext
19254 ac_cv_sys_largefile_source=no; break
19256 $as_echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19262 rm -rf conftest.dSYM
19263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19264 conftest$ac_exeext conftest.$ac_ext
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #define _LARGEFILE_SOURCE 1
19272 #include <sys/types.h> /* for off_t */
19277 int (*fp) (FILE *, off_t, int) = fseeko;
19278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_link") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest$ac_exeext && {
19301 test "$cross_compiling" = yes ||
19302 $as_test_x conftest$ac_exeext
19304 ac_cv_sys_largefile_source=1; break
19306 $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19312 rm -rf conftest.dSYM
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19315 ac_cv_sys_largefile_source=unknown
19319 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19320 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19321 case $ac_cv_sys_largefile_source in #(
19324 cat >>confdefs.h <<_ACEOF
19325 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19331 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19332 # in glibc 2.1.3, but that breaks too many other things.
19333 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19334 if test $ac_cv_sys_largefile_source != unknown; then
19336 cat >>confdefs.h <<\_ACEOF
19337 #define HAVE_FSEEKO 1
19344 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19345 # by calling it, 2009-04-02
19346 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19347 if test "$PORTNAME" != "solaris"; then
19349 for ac_func in posix_fadvise
19351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19353 $as_echo_n "checking for $ac_func... " >&6; }
19354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19355 $as_echo_n "(cached) " >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19365 #define $ac_func innocuous_$ac_func
19367 /* System header to define __stub macros and hopefully few prototypes,
19368 which can conflict with char $ac_func (); below.
19369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19370 <limits.h> exists even on freestanding compilers. */
19373 # include <limits.h>
19375 # include <assert.h>
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19387 /* The GNU C library defines this for functions which it implements
19388 to always fail with ENOSYS. Some functions are actually named
19389 something starting with __ and the normal name is an alias. */
19390 #if defined __stub_$ac_func || defined __stub___$ac_func
19397 return $ac_func ();
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext && {
19420 test "$cross_compiling" = yes ||
19421 $as_test_x conftest$ac_exeext
19423 eval "$as_ac_var=yes"
19425 $as_echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 eval "$as_ac_var=no"
19431 rm -rf conftest.dSYM
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19435 ac_res=`eval 'as_val=${'$as_ac_var'}
19436 $as_echo "$as_val"'`
19437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19438 $as_echo "$ac_res" >&6; }
19439 as_val=`eval 'as_val=${'$as_ac_var'}
19440 $as_echo "$as_val"'`
19441 if test "x$as_val" = x""yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19449 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19450 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19451 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19452 $as_echo_n "(cached) " >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19465 #ifndef posix_fadvise
19466 (void) posix_fadvise;
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19480 $as_echo "$ac_try_echo") >&5
19481 (eval "$ac_compile") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest.$ac_objext; then
19491 ac_cv_have_decl_posix_fadvise=yes
19493 $as_echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 ac_cv_have_decl_posix_fadvise=no
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19502 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19503 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_DECL_POSIX_FADVISE 1
19511 cat >>confdefs.h <<_ACEOF
19512 #define HAVE_DECL_POSIX_FADVISE 0
19521 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19522 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19523 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19524 $as_echo_n "(cached) " >&6
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 #include <unistd.h>
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19552 $as_echo "$ac_try_echo") >&5
19553 (eval "$ac_compile") 2>conftest.er1
19555 grep -v '^ *+' conftest.er1 >conftest.err
19557 cat conftest.err >&5
19558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest.$ac_objext; then
19563 ac_cv_have_decl_fdatasync=yes
19565 $as_echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_have_decl_fdatasync=no
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19574 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19575 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE_DECL_FDATASYNC 1
19583 cat >>confdefs.h <<_ACEOF
19584 #define HAVE_DECL_FDATASYNC 0
19591 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19592 $as_echo_n "checking whether strlcat is declared... " >&6; }
19593 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19594 $as_echo_n "(cached) " >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 $ac_includes_default
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19621 $as_echo "$ac_try_echo") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_have_decl_strlcat=yes
19634 $as_echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_have_decl_strlcat=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19643 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19644 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_DECL_STRLCAT 1
19652 cat >>confdefs.h <<_ACEOF
19653 #define HAVE_DECL_STRLCAT 0
19658 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19659 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19660 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19661 $as_echo_n "(cached) " >&6
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 $ac_includes_default
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688 $as_echo "$ac_try_echo") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_cv_have_decl_strlcpy=yes
19701 $as_echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_cv_have_decl_strlcpy=no
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19710 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19711 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19713 cat >>confdefs.h <<_ACEOF
19714 #define HAVE_DECL_STRLCPY 1
19719 cat >>confdefs.h <<_ACEOF
19720 #define HAVE_DECL_STRLCPY 0
19727 # This is probably only present on Darwin, but may as well check always
19728 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19729 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19730 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19731 $as_echo_n "(cached) " >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19744 #ifndef F_FULLFSYNC
19745 (void) F_FULLFSYNC;
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19759 $as_echo "$ac_try_echo") >&5
19760 (eval "$ac_compile") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } && {
19767 test -z "$ac_c_werror_flag" ||
19768 test ! -s conftest.err
19769 } && test -s conftest.$ac_objext; then
19770 ac_cv_have_decl_F_FULLFSYNC=yes
19772 $as_echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_cv_have_decl_F_FULLFSYNC=no
19778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19781 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19782 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19784 cat >>confdefs.h <<_ACEOF
19785 #define HAVE_DECL_F_FULLFSYNC 1
19790 cat >>confdefs.h <<_ACEOF
19791 #define HAVE_DECL_F_FULLFSYNC 0
19800 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19801 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19802 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19803 $as_echo_n "(cached) " >&6
19805 ac_cv_type_struct_sockaddr_in6=no
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 $ac_includes_default
19813 #include <netinet/in.h>
19818 if (sizeof (struct sockaddr_in6))
19824 rm -f conftest.$ac_objext
19825 if { (ac_try="$ac_compile"
19826 case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19831 $as_echo "$ac_try_echo") >&5
19832 (eval "$ac_compile") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest.$ac_objext; then
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 $ac_includes_default
19849 #include <netinet/in.h>
19854 if (sizeof ((struct sockaddr_in6)))
19860 rm -f conftest.$ac_objext
19861 if { (ac_try="$ac_compile"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19867 $as_echo "$ac_try_echo") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest.$ac_objext; then
19880 $as_echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_cv_type_struct_sockaddr_in6=yes
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19897 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19898 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_IPV6 1
19909 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19910 $as_echo_n "checking for PS_STRINGS... " >&6; }
19911 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19912 $as_echo_n "(cached) " >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <machine/vmparam.h>
19921 #include <sys/exec.h>
19926 PS_STRINGS->ps_nargvstr = 1;
19927 PS_STRINGS->ps_argvstr = "foo";
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest$ac_exeext && {
19950 test "$cross_compiling" = yes ||
19951 $as_test_x conftest$ac_exeext
19953 pgac_cv_var_PS_STRINGS=yes
19955 $as_echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 pgac_cv_var_PS_STRINGS=no
19961 rm -rf conftest.dSYM
19962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19963 conftest$ac_exeext conftest.$ac_ext
19965 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19966 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19967 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19969 cat >>confdefs.h <<\_ACEOF
19970 #define HAVE_PS_STRINGS /**/
19976 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19977 # is missing. Yes, there are machines that have only one. We may
19978 # also decide to use snprintf.c if snprintf() is present but does not
19979 # have all the features we need --- see below.
19981 if test "$PORTNAME" = "win32"; then
19982 # Win32 gets snprintf.c built unconditionally.
19984 # To properly translate all NLS languages strings, we must support the
19985 # *printf() %$ format, which allows *printf() arguments to be selected
19986 # by position in the translated string.
19988 # libintl versions < 0.13 use the native *printf() functions, and Win32
19989 # *printf() doesn't understand %$, so we must use our /port versions,
19990 # which do understand %$. libintl versions >= 0.13 include their own
19991 # *printf versions on Win32. The libintl 0.13 release note text is:
19993 # C format strings with positions, as they arise when a translator
19994 # needs to reorder a sentence, are now supported on all platforms.
19995 # On those few platforms (NetBSD and Woe32) for which the native
19996 # printf()/fprintf()/... functions don't support such format
19997 # strings, replacements are provided through <libintl.h>.
19999 # We could use libintl >= 0.13's *printf() if we were sure that we had
20000 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20001 # to guarantee that, it is best to just use our own, so we are sure to
20002 # get %$ support. In include/port.h we disable the *printf() macros
20003 # that might have been defined by libintl.
20005 # We do this unconditionally whether NLS is used or not so we are sure
20006 # that all Win32 libraries and binaries behave the same.
20007 pgac_need_repl_snprintf=yes
20009 pgac_need_repl_snprintf=no
20011 for ac_func in snprintf
20013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20014 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20015 $as_echo_n "checking for $ac_func... " >&6; }
20016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20017 $as_echo_n "(cached) " >&6
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20027 #define $ac_func innocuous_$ac_func
20029 /* System header to define __stub macros and hopefully few prototypes,
20030 which can conflict with char $ac_func (); below.
20031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20032 <limits.h> exists even on freestanding compilers. */
20035 # include <limits.h>
20037 # include <assert.h>
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20049 /* The GNU C library defines this for functions which it implements
20050 to always fail with ENOSYS. Some functions are actually named
20051 something starting with __ and the normal name is an alias. */
20052 #if defined __stub_$ac_func || defined __stub___$ac_func
20059 return $ac_func ();
20064 rm -f conftest.$ac_objext conftest$ac_exeext
20065 if { (ac_try="$ac_link"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20071 $as_echo "$ac_try_echo") >&5
20072 (eval "$ac_link") 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest$ac_exeext && {
20082 test "$cross_compiling" = yes ||
20083 $as_test_x conftest$ac_exeext
20085 eval "$as_ac_var=yes"
20087 $as_echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 eval "$as_ac_var=no"
20093 rm -rf conftest.dSYM
20094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 conftest$ac_exeext conftest.$ac_ext
20097 ac_res=`eval 'as_val=${'$as_ac_var'}
20098 $as_echo "$as_val"'`
20099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20100 $as_echo "$ac_res" >&6; }
20101 as_val=`eval 'as_val=${'$as_ac_var'}
20102 $as_echo "$as_val"'`
20103 if test "x$as_val" = x""yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20109 pgac_need_repl_snprintf=yes
20114 for ac_func in vsnprintf
20116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20118 $as_echo_n "checking for $ac_func... " >&6; }
20119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20120 $as_echo_n "(cached) " >&6
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20130 #define $ac_func innocuous_$ac_func
20132 /* System header to define __stub macros and hopefully few prototypes,
20133 which can conflict with char $ac_func (); below.
20134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20135 <limits.h> exists even on freestanding compilers. */
20138 # include <limits.h>
20140 # include <assert.h>
20145 /* Override any GCC internal prototype to avoid an error.
20146 Use char because int might match the return type of a GCC
20147 builtin and then its argument prototype would still apply. */
20152 /* The GNU C library defines this for functions which it implements
20153 to always fail with ENOSYS. Some functions are actually named
20154 something starting with __ and the normal name is an alias. */
20155 #if defined __stub_$ac_func || defined __stub___$ac_func
20162 return $ac_func ();
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (ac_try="$ac_link"
20169 case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20174 $as_echo "$ac_try_echo") >&5
20175 (eval "$ac_link") 2>conftest.er1
20177 grep -v '^ *+' conftest.er1 >conftest.err
20179 cat conftest.err >&5
20180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } && {
20182 test -z "$ac_c_werror_flag" ||
20183 test ! -s conftest.err
20184 } && test -s conftest$ac_exeext && {
20185 test "$cross_compiling" = yes ||
20186 $as_test_x conftest$ac_exeext
20188 eval "$as_ac_var=yes"
20190 $as_echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 eval "$as_ac_var=no"
20196 rm -rf conftest.dSYM
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20200 ac_res=`eval 'as_val=${'$as_ac_var'}
20201 $as_echo "$as_val"'`
20202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20203 $as_echo "$ac_res" >&6; }
20204 as_val=`eval 'as_val=${'$as_ac_var'}
20205 $as_echo "$as_val"'`
20206 if test "x$as_val" = x""yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20212 pgac_need_repl_snprintf=yes
20219 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20220 # include/c.h will provide declarations. Note this is a separate test
20221 # from whether the functions exist in the C library --- there are
20222 # systems that have the functions but don't bother to declare them :-(
20224 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20225 $as_echo_n "checking whether snprintf is declared... " >&6; }
20226 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20227 $as_echo_n "(cached) " >&6
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20247 rm -f conftest.$ac_objext
20248 if { (ac_try="$ac_compile"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20254 $as_echo "$ac_try_echo") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20257 grep -v '^ *+' conftest.er1 >conftest.err
20259 cat conftest.err >&5
20260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } && {
20262 test -z "$ac_c_werror_flag" ||
20263 test ! -s conftest.err
20264 } && test -s conftest.$ac_objext; then
20265 ac_cv_have_decl_snprintf=yes
20267 $as_echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_have_decl_snprintf=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20276 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20277 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20279 cat >>confdefs.h <<_ACEOF
20280 #define HAVE_DECL_SNPRINTF 1
20285 cat >>confdefs.h <<_ACEOF
20286 #define HAVE_DECL_SNPRINTF 0
20291 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20292 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20293 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20294 $as_echo_n "(cached) " >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 $ac_includes_default
20314 rm -f conftest.$ac_objext
20315 if { (ac_try="$ac_compile"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20321 $as_echo "$ac_try_echo") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_cv_have_decl_vsnprintf=yes
20334 $as_echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_have_decl_vsnprintf=no
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20343 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20344 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_DECL_VSNPRINTF 1
20352 cat >>confdefs.h <<_ACEOF
20353 #define HAVE_DECL_VSNPRINTF 0
20362 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20363 $as_echo_n "checking for isinf... " >&6; }
20364 if test "${ac_cv_func_isinf+set}" = set; then
20365 $as_echo_n "(cached) " >&6
20367 cat >conftest.$ac_ext <<_ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20375 double glob_double;
20380 return isinf(glob_double) ? 0 : 1;
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392 $as_echo "$ac_try_echo") >&5
20393 (eval "$ac_link") 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest$ac_exeext && {
20403 test "$cross_compiling" = yes ||
20404 $as_test_x conftest$ac_exeext
20406 ac_cv_func_isinf=yes
20408 $as_echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_func_isinf=no
20414 rm -rf conftest.dSYM
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416 conftest$ac_exeext conftest.$ac_ext
20418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20419 $as_echo "$ac_cv_func_isinf" >&6; }
20421 if test $ac_cv_func_isinf = yes ; then
20423 cat >>confdefs.h <<\_ACEOF
20424 #define HAVE_ISINF 1
20428 case " $LIBOBJS " in
20429 *" isinf.$ac_objext "* ) ;;
20430 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20434 # Look for a way to implement a substitute for isinf()
20439 for ac_func in fpclass fp_class fp_class_d class
20441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20443 $as_echo_n "checking for $ac_func... " >&6; }
20444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20445 $as_echo_n "(cached) " >&6
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20455 #define $ac_func innocuous_$ac_func
20457 /* System header to define __stub macros and hopefully few prototypes,
20458 which can conflict with char $ac_func (); below.
20459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20460 <limits.h> exists even on freestanding compilers. */
20463 # include <limits.h>
20465 # include <assert.h>
20470 /* Override any GCC internal prototype to avoid an error.
20471 Use char because int might match the return type of a GCC
20472 builtin and then its argument prototype would still apply. */
20477 /* The GNU C library defines this for functions which it implements
20478 to always fail with ENOSYS. Some functions are actually named
20479 something starting with __ and the normal name is an alias. */
20480 #if defined __stub_$ac_func || defined __stub___$ac_func
20487 return $ac_func ();
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20499 $as_echo "$ac_try_echo") >&5
20500 (eval "$ac_link") 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } && {
20507 test -z "$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20509 } && test -s conftest$ac_exeext && {
20510 test "$cross_compiling" = yes ||
20511 $as_test_x conftest$ac_exeext
20513 eval "$as_ac_var=yes"
20515 $as_echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20518 eval "$as_ac_var=no"
20521 rm -rf conftest.dSYM
20522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20523 conftest$ac_exeext conftest.$ac_ext
20525 ac_res=`eval 'as_val=${'$as_ac_var'}
20526 $as_echo "$as_val"'`
20527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20528 $as_echo "$ac_res" >&6; }
20529 as_val=`eval 'as_val=${'$as_ac_var'}
20530 $as_echo "$as_val"'`
20531 if test "x$as_val" = x""yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20541 # Some versions of libedit contain strlcpy(); so disregard that library while
20542 # checking for these standard libc functions.
20543 pgac_save_LIBS="$LIBS"
20544 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20560 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 $as_echo_n "checking for $ac_func... " >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566 $as_echo_n "(cached) " >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576 #define $ac_func innocuous_$ac_func
20578 /* System header to define __stub macros and hopefully few prototypes,
20579 which can conflict with char $ac_func (); below.
20580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581 <limits.h> exists even on freestanding compilers. */
20584 # include <limits.h>
20586 # include <assert.h>
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20608 return $ac_func ();
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest$ac_exeext && {
20631 test "$cross_compiling" = yes ||
20632 $as_test_x conftest$ac_exeext
20634 eval "$as_ac_var=yes"
20636 $as_echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 eval "$as_ac_var=no"
20642 rm -rf conftest.dSYM
20643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20644 conftest$ac_exeext conftest.$ac_ext
20646 ac_res=`eval 'as_val=${'$as_ac_var'}
20647 $as_echo "$as_val"'`
20648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20649 $as_echo "$ac_res" >&6; }
20650 as_val=`eval 'as_val=${'$as_ac_var'}
20651 $as_echo "$as_val"'`
20652 if test "x$as_val" = x""yes; then
20653 cat >>confdefs.h <<_ACEOF
20654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20658 case " $LIBOBJS " in
20659 *" $ac_func.$ac_objext "* ) ;;
20660 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20671 # Windows uses a specialised env handler
20674 cat >>confdefs.h <<\_ACEOF
20675 #define HAVE_UNSETENV 1
20678 ac_cv_func_unsetenv=yes;;
20681 for ac_func in unsetenv
20683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20685 $as_echo_n "checking for $ac_func... " >&6; }
20686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20687 $as_echo_n "(cached) " >&6
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20697 #define $ac_func innocuous_$ac_func
20699 /* System header to define __stub macros and hopefully few prototypes,
20700 which can conflict with char $ac_func (); below.
20701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20702 <limits.h> exists even on freestanding compilers. */
20705 # include <limits.h>
20707 # include <assert.h>
20712 /* Override any GCC internal prototype to avoid an error.
20713 Use char because int might match the return type of a GCC
20714 builtin and then its argument prototype would still apply. */
20719 /* The GNU C library defines this for functions which it implements
20720 to always fail with ENOSYS. Some functions are actually named
20721 something starting with __ and the normal name is an alias. */
20722 #if defined __stub_$ac_func || defined __stub___$ac_func
20729 return $ac_func ();
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20741 $as_echo "$ac_try_echo") >&5
20742 (eval "$ac_link") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest$ac_exeext && {
20752 test "$cross_compiling" = yes ||
20753 $as_test_x conftest$ac_exeext
20755 eval "$as_ac_var=yes"
20757 $as_echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 eval "$as_ac_var=no"
20763 rm -rf conftest.dSYM
20764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20765 conftest$ac_exeext conftest.$ac_ext
20767 ac_res=`eval 'as_val=${'$as_ac_var'}
20768 $as_echo "$as_val"'`
20769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20770 $as_echo "$ac_res" >&6; }
20771 as_val=`eval 'as_val=${'$as_ac_var'}
20772 $as_echo "$as_val"'`
20773 if test "x$as_val" = x""yes; then
20774 cat >>confdefs.h <<_ACEOF
20775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20779 case " $LIBOBJS " in
20780 *" $ac_func.$ac_objext "* ) ;;
20781 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20793 LIBS="$pgac_save_LIBS"
20795 # System's version of getaddrinfo(), if any, may be used only if we found
20796 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20797 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20798 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20799 # because we want to use our own getaddrinfo.c on Windows anyway.)
20800 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20802 for ac_func in getaddrinfo
20804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20805 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20806 $as_echo_n "checking for $ac_func... " >&6; }
20807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20808 $as_echo_n "(cached) " >&6
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20818 #define $ac_func innocuous_$ac_func
20820 /* System header to define __stub macros and hopefully few prototypes,
20821 which can conflict with char $ac_func (); below.
20822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20823 <limits.h> exists even on freestanding compilers. */
20826 # include <limits.h>
20828 # include <assert.h>
20833 /* Override any GCC internal prototype to avoid an error.
20834 Use char because int might match the return type of a GCC
20835 builtin and then its argument prototype would still apply. */
20840 /* The GNU C library defines this for functions which it implements
20841 to always fail with ENOSYS. Some functions are actually named
20842 something starting with __ and the normal name is an alias. */
20843 #if defined __stub_$ac_func || defined __stub___$ac_func
20850 return $ac_func ();
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (ac_try="$ac_link"
20857 case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20862 $as_echo "$ac_try_echo") >&5
20863 (eval "$ac_link") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest$ac_exeext && {
20873 test "$cross_compiling" = yes ||
20874 $as_test_x conftest$ac_exeext
20876 eval "$as_ac_var=yes"
20878 $as_echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 eval "$as_ac_var=no"
20884 rm -rf conftest.dSYM
20885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20886 conftest$ac_exeext conftest.$ac_ext
20888 ac_res=`eval 'as_val=${'$as_ac_var'}
20889 $as_echo "$as_val"'`
20890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20891 $as_echo "$ac_res" >&6; }
20892 as_val=`eval 'as_val=${'$as_ac_var'}
20893 $as_echo "$as_val"'`
20894 if test "x$as_val" = x""yes; then
20895 cat >>confdefs.h <<_ACEOF
20896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20900 case " $LIBOBJS " in
20901 *" $ac_func.$ac_objext "* ) ;;
20902 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20911 case " $LIBOBJS " in
20912 *" getaddrinfo.$ac_objext "* ) ;;
20913 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20919 # Similarly, use system's getopt_long() only if system provides struct option.
20920 if test x"$ac_cv_type_struct_option" = xyes ; then
20922 for ac_func in getopt_long
20924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20925 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20926 $as_echo_n "checking for $ac_func... " >&6; }
20927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20928 $as_echo_n "(cached) " >&6
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20938 #define $ac_func innocuous_$ac_func
20940 /* System header to define __stub macros and hopefully few prototypes,
20941 which can conflict with char $ac_func (); below.
20942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20943 <limits.h> exists even on freestanding compilers. */
20946 # include <limits.h>
20948 # include <assert.h>
20953 /* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20960 /* The GNU C library defines this for functions which it implements
20961 to always fail with ENOSYS. Some functions are actually named
20962 something starting with __ and the normal name is an alias. */
20963 #if defined __stub_$ac_func || defined __stub___$ac_func
20970 return $ac_func ();
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983 (eval "$ac_link") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest$ac_exeext && {
20993 test "$cross_compiling" = yes ||
20994 $as_test_x conftest$ac_exeext
20996 eval "$as_ac_var=yes"
20998 $as_echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 eval "$as_ac_var=no"
21004 rm -rf conftest.dSYM
21005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21006 conftest$ac_exeext conftest.$ac_ext
21008 ac_res=`eval 'as_val=${'$as_ac_var'}
21009 $as_echo "$as_val"'`
21010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21011 $as_echo "$ac_res" >&6; }
21012 as_val=`eval 'as_val=${'$as_ac_var'}
21013 $as_echo "$as_val"'`
21014 if test "x$as_val" = x""yes; then
21015 cat >>confdefs.h <<_ACEOF
21016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21020 case " $LIBOBJS " in
21021 *" $ac_func.$ac_objext "* ) ;;
21022 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21031 case " $LIBOBJS " in
21032 *" getopt_long.$ac_objext "* ) ;;
21033 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21039 # Solaris' getopt() doesn't do what we want for long options, so always use
21040 # our version on that platform.
21041 if test "$PORTNAME" = "solaris"; then
21042 case " $LIBOBJS " in
21043 *" getopt.$ac_objext "* ) ;;
21044 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21050 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21051 # so always use our version on Windows.
21052 if test "$PORTNAME" = "win32"; then
21053 case " $LIBOBJS " in
21054 *" getopt.$ac_objext "* ) ;;
21055 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21059 case " $LIBOBJS " in
21060 *" getopt_long.$ac_objext "* ) ;;
21061 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21067 # Cygwin's erand48() is broken (always returns zero) in some releases,
21068 # so force use of ours.
21069 if test "$PORTNAME" = "cygwin"; then
21070 case " $LIBOBJS " in
21071 *" erand48.$ac_objext "* ) ;;
21072 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
21079 if test "$PORTNAME" = "win32"; then
21081 for ac_func in gettimeofday
21083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21085 $as_echo_n "checking for $ac_func... " >&6; }
21086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21087 $as_echo_n "(cached) " >&6
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21097 #define $ac_func innocuous_$ac_func
21099 /* System header to define __stub macros and hopefully few prototypes,
21100 which can conflict with char $ac_func (); below.
21101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21102 <limits.h> exists even on freestanding compilers. */
21105 # include <limits.h>
21107 # include <assert.h>
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21119 /* The GNU C library defines this for functions which it implements
21120 to always fail with ENOSYS. Some functions are actually named
21121 something starting with __ and the normal name is an alias. */
21122 #if defined __stub_$ac_func || defined __stub___$ac_func
21129 return $ac_func ();
21134 rm -f conftest.$ac_objext conftest$ac_exeext
21135 if { (ac_try="$ac_link"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21141 $as_echo "$ac_try_echo") >&5
21142 (eval "$ac_link") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest$ac_exeext && {
21152 test "$cross_compiling" = yes ||
21153 $as_test_x conftest$ac_exeext
21155 eval "$as_ac_var=yes"
21157 $as_echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 eval "$as_ac_var=no"
21163 rm -rf conftest.dSYM
21164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21165 conftest$ac_exeext conftest.$ac_ext
21167 ac_res=`eval 'as_val=${'$as_ac_var'}
21168 $as_echo "$as_val"'`
21169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21170 $as_echo "$ac_res" >&6; }
21171 as_val=`eval 'as_val=${'$as_ac_var'}
21172 $as_echo "$as_val"'`
21173 if test "x$as_val" = x""yes; then
21174 cat >>confdefs.h <<_ACEOF
21175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21179 case " $LIBOBJS " in
21180 *" $ac_func.$ac_objext "* ) ;;
21181 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21189 case " $LIBOBJS " in
21190 *" kill.$ac_objext "* ) ;;
21191 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21195 case " $LIBOBJS " in
21196 *" open.$ac_objext "* ) ;;
21197 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21201 case " $LIBOBJS " in
21202 *" win32env.$ac_objext "* ) ;;
21203 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21207 case " $LIBOBJS " in
21208 *" win32error.$ac_objext "* ) ;;
21209 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_SYMLINK 1
21218 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21219 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21220 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21221 $as_echo_n "(cached) " >&6
21223 ac_cv_type_MINIDUMP_TYPE=no
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 #define WIN32_LEAN_AND_MEAN
21232 #include <windows.h>
21233 #include <string.h>
21234 #include <dbghelp.h>
21239 if (sizeof (MINIDUMP_TYPE))
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21252 $as_echo "$ac_try_echo") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest.$ac_objext; then
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21270 #define WIN32_LEAN_AND_MEAN
21271 #include <windows.h>
21272 #include <string.h>
21273 #include <dbghelp.h>
21278 if (sizeof ((MINIDUMP_TYPE)))
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291 $as_echo "$ac_try_echo") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21304 $as_echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_cv_type_MINIDUMP_TYPE=yes
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 $as_echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21321 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21322 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21324 cat >>confdefs.h <<_ACEOF
21325 #define HAVE_MINIDUMP_TYPE 1
21328 pgac_minidump_type=yes
21330 pgac_minidump_type=no
21334 if test x"$pgac_minidump_type" = x"yes" ; then
21335 have_win32_dbghelp=yes
21338 have_win32_dbghelp=no
21342 if test "$with_readline" = yes; then
21343 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21344 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21345 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21346 $as_echo_n "(cached) " >&6
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21355 #ifdef HAVE_READLINE_READLINE_H
21356 # include <readline/readline.h>
21357 #elif defined(HAVE_READLINE_H)
21358 # include <readline.h>
21364 rl_completion_append_character = 'x';
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (ac_try="$ac_link"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21376 $as_echo "$ac_try_echo") >&5
21377 (eval "$ac_link") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest$ac_exeext && {
21387 test "$cross_compiling" = yes ||
21388 $as_test_x conftest$ac_exeext
21390 pgac_cv_var_rl_completion_append_character=yes
21392 $as_echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 pgac_cv_var_rl_completion_append_character=no
21398 rm -rf conftest.dSYM
21399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21400 conftest$ac_exeext conftest.$ac_ext
21402 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21403 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21404 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21413 for ac_func in rl_completion_matches rl_filename_completion_function
21415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21417 $as_echo_n "checking for $ac_func... " >&6; }
21418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21419 $as_echo_n "(cached) " >&6
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21429 #define $ac_func innocuous_$ac_func
21431 /* System header to define __stub macros and hopefully few prototypes,
21432 which can conflict with char $ac_func (); below.
21433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21434 <limits.h> exists even on freestanding compilers. */
21437 # include <limits.h>
21439 # include <assert.h>
21444 /* Override any GCC internal prototype to avoid an error.
21445 Use char because int might match the return type of a GCC
21446 builtin and then its argument prototype would still apply. */
21451 /* The GNU C library defines this for functions which it implements
21452 to always fail with ENOSYS. Some functions are actually named
21453 something starting with __ and the normal name is an alias. */
21454 #if defined __stub_$ac_func || defined __stub___$ac_func
21461 return $ac_func ();
21466 rm -f conftest.$ac_objext conftest$ac_exeext
21467 if { (ac_try="$ac_link"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21473 $as_echo "$ac_try_echo") >&5
21474 (eval "$ac_link") 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext && {
21484 test "$cross_compiling" = yes ||
21485 $as_test_x conftest$ac_exeext
21487 eval "$as_ac_var=yes"
21489 $as_echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 eval "$as_ac_var=no"
21495 rm -rf conftest.dSYM
21496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21499 ac_res=`eval 'as_val=${'$as_ac_var'}
21500 $as_echo "$as_val"'`
21501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21502 $as_echo "$ac_res" >&6; }
21503 as_val=`eval 'as_val=${'$as_ac_var'}
21504 $as_echo "$as_val"'`
21505 if test "x$as_val" = x""yes; then
21506 cat >>confdefs.h <<_ACEOF
21507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21515 for ac_func in append_history history_truncate_file
21517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21519 $as_echo_n "checking for $ac_func... " >&6; }
21520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21521 $as_echo_n "(cached) " >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21531 #define $ac_func innocuous_$ac_func
21533 /* System header to define __stub macros and hopefully few prototypes,
21534 which can conflict with char $ac_func (); below.
21535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21536 <limits.h> exists even on freestanding compilers. */
21539 # include <limits.h>
21541 # include <assert.h>
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21553 /* The GNU C library defines this for functions which it implements
21554 to always fail with ENOSYS. Some functions are actually named
21555 something starting with __ and the normal name is an alias. */
21556 #if defined __stub_$ac_func || defined __stub___$ac_func
21563 return $ac_func ();
21568 rm -f conftest.$ac_objext conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21575 $as_echo "$ac_try_echo") >&5
21576 (eval "$ac_link") 2>conftest.er1
21578 grep -v '^ *+' conftest.er1 >conftest.err
21580 cat conftest.err >&5
21581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } && {
21583 test -z "$ac_c_werror_flag" ||
21584 test ! -s conftest.err
21585 } && test -s conftest$ac_exeext && {
21586 test "$cross_compiling" = yes ||
21587 $as_test_x conftest$ac_exeext
21589 eval "$as_ac_var=yes"
21591 $as_echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 eval "$as_ac_var=no"
21597 rm -rf conftest.dSYM
21598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21599 conftest$ac_exeext conftest.$ac_ext
21601 ac_res=`eval 'as_val=${'$as_ac_var'}
21602 $as_echo "$as_val"'`
21603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21604 $as_echo "$ac_res" >&6; }
21605 as_val=`eval 'as_val=${'$as_ac_var'}
21606 $as_echo "$as_val"'`
21607 if test "x$as_val" = x""yes; then
21608 cat >>confdefs.h <<_ACEOF
21609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21618 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21619 $as_echo_n "checking for sigsetjmp... " >&6; }
21620 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21621 $as_echo_n "(cached) " >&6
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 #include <setjmp.h>
21633 sigjmp_buf x; sigsetjmp(x, 1);
21638 rm -f conftest.$ac_objext conftest$ac_exeext
21639 if { (ac_try="$ac_link"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21645 $as_echo "$ac_try_echo") >&5
21646 (eval "$ac_link") 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest$ac_exeext && {
21656 test "$cross_compiling" = yes ||
21657 $as_test_x conftest$ac_exeext
21659 pgac_cv_func_sigsetjmp=yes
21661 $as_echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 pgac_cv_func_sigsetjmp=no
21667 rm -rf conftest.dSYM
21668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21669 conftest$ac_exeext conftest.$ac_ext
21671 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21672 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21673 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21675 cat >>confdefs.h <<\_ACEOF
21676 #define HAVE_SIGSETJMP 1
21681 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21682 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21683 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 #include <signal.h>
21693 /* NetBSD declares sys_siglist in unistd.h. */
21694 #ifdef HAVE_UNISTD_H
21695 # include <unistd.h>
21702 #ifndef sys_siglist
21703 (void) sys_siglist;
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21717 $as_echo "$ac_try_echo") >&5
21718 (eval "$ac_compile") 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest.$ac_objext; then
21728 ac_cv_have_decl_sys_siglist=yes
21730 $as_echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_cv_have_decl_sys_siglist=no
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21739 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21740 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21742 cat >>confdefs.h <<_ACEOF
21743 #define HAVE_DECL_SYS_SIGLIST 1
21748 cat >>confdefs.h <<_ACEOF
21749 #define HAVE_DECL_SYS_SIGLIST 0
21758 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21759 $as_echo_n "checking for syslog... " >&6; }
21760 if test "${ac_cv_func_syslog+set}" = set; then
21761 $as_echo_n "(cached) " >&6
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21771 #define syslog innocuous_syslog
21773 /* System header to define __stub macros and hopefully few prototypes,
21774 which can conflict with char syslog (); below.
21775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21776 <limits.h> exists even on freestanding compilers. */
21779 # include <limits.h>
21781 # include <assert.h>
21786 /* Override any GCC internal prototype to avoid an error.
21787 Use char because int might match the return type of a GCC
21788 builtin and then its argument prototype would still apply. */
21793 /* The GNU C library defines this for functions which it implements
21794 to always fail with ENOSYS. Some functions are actually named
21795 something starting with __ and the normal name is an alias. */
21796 #if defined __stub_syslog || defined __stub___syslog
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (ac_try="$ac_link"
21810 case "(($ac_try" in
21811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21812 *) ac_try_echo=$ac_try;;
21814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21815 $as_echo "$ac_try_echo") >&5
21816 (eval "$ac_link") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest$ac_exeext && {
21826 test "$cross_compiling" = yes ||
21827 $as_test_x conftest$ac_exeext
21829 ac_cv_func_syslog=yes
21831 $as_echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21834 ac_cv_func_syslog=no
21837 rm -rf conftest.dSYM
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839 conftest$ac_exeext conftest.$ac_ext
21841 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21842 $as_echo "$ac_cv_func_syslog" >&6; }
21843 if test "x$ac_cv_func_syslog" = x""yes; then
21844 if test "${ac_cv_header_syslog_h+set}" = set; then
21845 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21846 $as_echo_n "checking for syslog.h... " >&6; }
21847 if test "${ac_cv_header_syslog_h+set}" = set; then
21848 $as_echo_n "(cached) " >&6
21850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21851 $as_echo "$ac_cv_header_syslog_h" >&6; }
21853 # Is the header compilable?
21854 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21855 $as_echo_n "checking syslog.h usability... " >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 $ac_includes_default
21863 #include <syslog.h>
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21872 $as_echo "$ac_try_echo") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && {
21880 test -z "$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 } && test -s conftest.$ac_objext; then
21883 ac_header_compiler=yes
21885 $as_echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_compiler=no
21891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21893 $as_echo "$ac_header_compiler" >&6; }
21895 # Is the header present?
21896 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21897 $as_echo_n "checking syslog.h presence... " >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #include <syslog.h>
21906 if { (ac_try="$ac_cpp conftest.$ac_ext"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21912 $as_echo "$ac_try_echo") >&5
21913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } >/dev/null && {
21920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21923 ac_header_preproc=yes
21925 $as_echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_header_preproc=no
21931 rm -f conftest.err conftest.$ac_ext
21932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21933 $as_echo "$ac_header_preproc" >&6; }
21935 # So? What about this header?
21936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21938 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21939 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21940 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21941 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21942 ac_header_preproc=yes
21945 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21946 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21947 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21948 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21949 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21950 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21951 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21952 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21953 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21954 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21955 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21956 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21958 ## ---------------------------------------- ##
21959 ## Report this to pgsql-bugs@postgresql.org ##
21960 ## ---------------------------------------- ##
21962 ) | sed "s/^/$as_me: WARNING: /" >&2
21965 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21966 $as_echo_n "checking for syslog.h... " >&6; }
21967 if test "${ac_cv_header_syslog_h+set}" = set; then
21968 $as_echo_n "(cached) " >&6
21970 ac_cv_header_syslog_h=$ac_header_preproc
21972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21973 $as_echo "$ac_cv_header_syslog_h" >&6; }
21976 if test "x$ac_cv_header_syslog_h" = x""yes; then
21978 cat >>confdefs.h <<\_ACEOF
21979 #define HAVE_SYSLOG 1
21988 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21989 $as_echo_n "checking for opterr... " >&6; }
21990 if test "${pgac_cv_var_int_opterr+set}" = set; then
21991 $as_echo_n "(cached) " >&6
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 #include <unistd.h>
22003 extern int opterr; opterr = 1;
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (ac_try="$ac_link"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22015 $as_echo "$ac_try_echo") >&5
22016 (eval "$ac_link") 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } && {
22023 test -z "$ac_c_werror_flag" ||
22024 test ! -s conftest.err
22025 } && test -s conftest$ac_exeext && {
22026 test "$cross_compiling" = yes ||
22027 $as_test_x conftest$ac_exeext
22029 pgac_cv_var_int_opterr=yes
22031 $as_echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22034 pgac_cv_var_int_opterr=no
22037 rm -rf conftest.dSYM
22038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22039 conftest$ac_exeext conftest.$ac_ext
22041 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22042 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22043 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_INT_OPTERR 1
22051 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22052 $as_echo_n "checking for optreset... " >&6; }
22053 if test "${pgac_cv_var_int_optreset+set}" = set; then
22054 $as_echo_n "(cached) " >&6
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 #include <unistd.h>
22066 extern int optreset; optreset = 1;
22071 rm -f conftest.$ac_objext conftest$ac_exeext
22072 if { (ac_try="$ac_link"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22078 $as_echo "$ac_try_echo") >&5
22079 (eval "$ac_link") 2>conftest.er1
22081 grep -v '^ *+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext && {
22089 test "$cross_compiling" = yes ||
22090 $as_test_x conftest$ac_exeext
22092 pgac_cv_var_int_optreset=yes
22094 $as_echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 pgac_cv_var_int_optreset=no
22100 rm -rf conftest.dSYM
22101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22102 conftest$ac_exeext conftest.$ac_ext
22104 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22105 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22106 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_INT_OPTRESET 1
22116 for ac_func in strtoll strtoq
22118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22119 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22120 $as_echo_n "checking for $ac_func... " >&6; }
22121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22122 $as_echo_n "(cached) " >&6
22124 cat >conftest.$ac_ext <<_ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22132 #define $ac_func innocuous_$ac_func
22134 /* System header to define __stub macros and hopefully few prototypes,
22135 which can conflict with char $ac_func (); below.
22136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22137 <limits.h> exists even on freestanding compilers. */
22140 # include <limits.h>
22142 # include <assert.h>
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22154 /* The GNU C library defines this for functions which it implements
22155 to always fail with ENOSYS. Some functions are actually named
22156 something starting with __ and the normal name is an alias. */
22157 #if defined __stub_$ac_func || defined __stub___$ac_func
22164 return $ac_func ();
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_link") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext && {
22187 test "$cross_compiling" = yes ||
22188 $as_test_x conftest$ac_exeext
22190 eval "$as_ac_var=yes"
22192 $as_echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 eval "$as_ac_var=no"
22198 rm -rf conftest.dSYM
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22202 ac_res=`eval 'as_val=${'$as_ac_var'}
22203 $as_echo "$as_val"'`
22204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22205 $as_echo "$ac_res" >&6; }
22206 as_val=`eval 'as_val=${'$as_ac_var'}
22207 $as_echo "$as_val"'`
22208 if test "x$as_val" = x""yes; then
22209 cat >>confdefs.h <<_ACEOF
22210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 for ac_func in strtoull strtouq
22220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 $as_echo_n "checking for $ac_func... " >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224 $as_echo_n "(cached) " >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22234 #define $ac_func innocuous_$ac_func
22236 /* System header to define __stub macros and hopefully few prototypes,
22237 which can conflict with char $ac_func (); below.
22238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239 <limits.h> exists even on freestanding compilers. */
22242 # include <limits.h>
22244 # include <assert.h>
22249 /* Override any GCC internal prototype to avoid an error.
22250 Use char because int might match the return type of a GCC
22251 builtin and then its argument prototype would still apply. */
22256 /* The GNU C library defines this for functions which it implements
22257 to always fail with ENOSYS. Some functions are actually named
22258 something starting with __ and the normal name is an alias. */
22259 #if defined __stub_$ac_func || defined __stub___$ac_func
22266 return $ac_func ();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279 (eval "$ac_link") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest$ac_exeext && {
22289 test "$cross_compiling" = yes ||
22290 $as_test_x conftest$ac_exeext
22292 eval "$as_ac_var=yes"
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 eval "$as_ac_var=no"
22300 rm -rf conftest.dSYM
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_res=`eval 'as_val=${'$as_ac_var'}
22305 $as_echo "$as_val"'`
22306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22307 $as_echo "$ac_res" >&6; }
22308 as_val=`eval 'as_val=${'$as_ac_var'}
22309 $as_echo "$as_val"'`
22310 if test "x$as_val" = x""yes; then
22311 cat >>confdefs.h <<_ACEOF
22312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22319 # Check for one of atexit() or on_exit()
22321 for ac_func in atexit
22323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22325 $as_echo_n "checking for $ac_func... " >&6; }
22326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22327 $as_echo_n "(cached) " >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22337 #define $ac_func innocuous_$ac_func
22339 /* System header to define __stub macros and hopefully few prototypes,
22340 which can conflict with char $ac_func (); below.
22341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22342 <limits.h> exists even on freestanding compilers. */
22345 # include <limits.h>
22347 # include <assert.h>
22352 /* Override any GCC internal prototype to avoid an error.
22353 Use char because int might match the return type of a GCC
22354 builtin and then its argument prototype would still apply. */
22359 /* The GNU C library defines this for functions which it implements
22360 to always fail with ENOSYS. Some functions are actually named
22361 something starting with __ and the normal name is an alias. */
22362 #if defined __stub_$ac_func || defined __stub___$ac_func
22369 return $ac_func ();
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (ac_try="$ac_link"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_link") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest$ac_exeext && {
22392 test "$cross_compiling" = yes ||
22393 $as_test_x conftest$ac_exeext
22395 eval "$as_ac_var=yes"
22397 $as_echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 eval "$as_ac_var=no"
22403 rm -rf conftest.dSYM
22404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22405 conftest$ac_exeext conftest.$ac_ext
22407 ac_res=`eval 'as_val=${'$as_ac_var'}
22408 $as_echo "$as_val"'`
22409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22410 $as_echo "$ac_res" >&6; }
22411 as_val=`eval 'as_val=${'$as_ac_var'}
22412 $as_echo "$as_val"'`
22413 if test "x$as_val" = x""yes; then
22414 cat >>confdefs.h <<_ACEOF
22415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22420 for ac_func in on_exit
22422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22423 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22424 $as_echo_n "checking for $ac_func... " >&6; }
22425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22426 $as_echo_n "(cached) " >&6
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22436 #define $ac_func innocuous_$ac_func
22438 /* System header to define __stub macros and hopefully few prototypes,
22439 which can conflict with char $ac_func (); below.
22440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22441 <limits.h> exists even on freestanding compilers. */
22444 # include <limits.h>
22446 # include <assert.h>
22451 /* Override any GCC internal prototype to avoid an error.
22452 Use char because int might match the return type of a GCC
22453 builtin and then its argument prototype would still apply. */
22458 /* The GNU C library defines this for functions which it implements
22459 to always fail with ENOSYS. Some functions are actually named
22460 something starting with __ and the normal name is an alias. */
22461 #if defined __stub_$ac_func || defined __stub___$ac_func
22468 return $ac_func ();
22473 rm -f conftest.$ac_objext conftest$ac_exeext
22474 if { (ac_try="$ac_link"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480 $as_echo "$ac_try_echo") >&5
22481 (eval "$ac_link") 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest$ac_exeext && {
22491 test "$cross_compiling" = yes ||
22492 $as_test_x conftest$ac_exeext
22494 eval "$as_ac_var=yes"
22496 $as_echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 eval "$as_ac_var=no"
22502 rm -rf conftest.dSYM
22503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22504 conftest$ac_exeext conftest.$ac_ext
22506 ac_res=`eval 'as_val=${'$as_ac_var'}
22507 $as_echo "$as_val"'`
22508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22509 $as_echo "$ac_res" >&6; }
22510 as_val=`eval 'as_val=${'$as_ac_var'}
22511 $as_echo "$as_val"'`
22512 if test "x$as_val" = x""yes; then
22513 cat >>confdefs.h <<_ACEOF
22514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22518 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22519 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22520 { (exit 1); exit 1; }; }
22532 # For each platform, we need to know about any special compile and link
22533 # libraries, and whether the normal C function names are thread-safe.
22534 # See the comment at the top of src/port/thread.c for more information.
22535 # WIN32 doesn't need the pthread tests; it always uses threads
22536 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22541 ac_cpp='$CPP $CPPFLAGS'
22542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22548 # We used to check for pthread.h first, but this fails if pthread.h
22549 # requires special compiler flags (e.g. on True64 or Sequent).
22550 # It gets checked for in the link test anyway.
22552 # First of all, check if the user has set any of the PTHREAD_LIBS,
22553 # etcetera environment variables, and if threads linking works using
22555 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22556 save_CFLAGS="$CFLAGS"
22557 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22559 LIBS="$PTHREAD_LIBS $LIBS"
22560 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22561 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22569 /* Override any GCC internal prototype to avoid an error.
22570 Use char because int might match the return type of a GCC
22571 builtin and then its argument prototype would still apply. */
22575 char pthread_join ();
22579 return pthread_join ();
22584 rm -f conftest.$ac_objext conftest$ac_exeext
22585 if { (ac_try="$ac_link"
22586 case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22591 $as_echo "$ac_try_echo") >&5
22592 (eval "$ac_link") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest$ac_exeext && {
22602 test "$cross_compiling" = yes ||
22603 $as_test_x conftest$ac_exeext
22607 $as_echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22613 rm -rf conftest.dSYM
22614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22615 conftest$ac_exeext conftest.$ac_ext
22616 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22617 $as_echo "$acx_pthread_ok" >&6; }
22618 if test x"$acx_pthread_ok" = xno; then
22623 CFLAGS="$save_CFLAGS"
22626 # We must check for the threads library under a number of different
22627 # names; the ordering is very important because some systems
22628 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22629 # libraries is broken (non-POSIX).
22631 # Create a list of thread flags to try. Items starting with a "-" are
22632 # C compiler flags, and other items are library names, except for "none"
22633 # which indicates that we try without any flags at all, and "pthread-config"
22634 # which is a program returning the flags for the Pth emulation library.
22636 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22638 # The ordering *is* (sometimes) important. Some notes on the
22639 # individual items follow:
22641 # pthreads: AIX (must check this before -lpthread)
22642 # none: in case threads are in libc; should be tried before -Kthread and
22643 # other compiler flags to prevent continual compiler warnings
22644 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22645 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22646 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22647 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22648 # -pthreads: Solaris/gcc
22649 # -mthreads: Mingw32/gcc, Lynx/gcc
22650 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22651 # doesn't hurt to check since this sometimes defines pthreads too;
22652 # also defines -D_REENTRANT)
22653 # pthread: Linux, etcetera
22654 # --thread-safe: KAI C++
22655 # pthread-config: use pthread-config program (for GNU Pth library)
22657 case "${host_cpu}-${host_os}" in
22660 # On Solaris (at least, for some versions), libc contains stubbed
22661 # (non-functional) versions of the pthreads routines, so link-based
22662 # tests will erroneously succeed. (We need to link with -pthread or
22663 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22664 # a function called by this macro, so we could check for that, but
22665 # who knows whether they'll stub that too in a future libc.) So,
22666 # we'll just look for -pthreads and -lpthread first:
22668 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22672 if test x"$acx_pthread_ok" = xno; then
22673 for flag in $acx_pthread_flags; do
22675 tryPTHREAD_CFLAGS=""
22679 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22680 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22684 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22685 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22686 tryPTHREAD_CFLAGS="$flag"
22690 # skip this if we already have flags defined, for PostgreSQL
22691 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22692 # Extract the first word of "pthread-config", so it can be a program name with args.
22693 set dummy pthread-config; ac_word=$2
22694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22695 $as_echo_n "checking for $ac_word... " >&6; }
22696 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22697 $as_echo_n "(cached) " >&6
22699 if test -n "$acx_pthread_config"; then
22700 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22703 for as_dir in $PATH
22706 test -z "$as_dir" && as_dir=.
22707 for ac_exec_ext in '' $ac_executable_extensions; do
22708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22709 ac_cv_prog_acx_pthread_config="yes"
22710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22717 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22720 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22721 if test -n "$acx_pthread_config"; then
22722 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22723 $as_echo "$acx_pthread_config" >&6; }
22725 { $as_echo "$as_me:$LINENO: result: no" >&5
22726 $as_echo "no" >&6; }
22730 if test x"$acx_pthread_config" = xno; then continue; fi
22731 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22732 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22736 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22737 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22738 tryPTHREAD_LIBS="-l$flag"
22743 save_CFLAGS="$CFLAGS"
22744 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22745 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22747 # Check for various functions. We must include pthread.h,
22748 # since some functions may be macros. (On the Sequent, we
22749 # need a special flag -Kthread to make this header compile.)
22750 # We check for pthread_join because it is in -lpthread on IRIX
22751 # while pthread_create is in libc. We check for pthread_attr_init
22752 # due to DEC craziness with -lpthreads. We check for
22753 # pthread_cleanup_push because it is one of the few pthread
22754 # functions on Solaris that doesn't have a non-functional libc stub.
22755 # We try pthread_create on general principles.
22756 cat >conftest.$ac_ext <<_ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 #include <pthread.h>
22766 pthread_t th; pthread_join(th, 0);
22767 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22768 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22780 $as_echo "$ac_try_echo") >&5
22781 (eval "$ac_link") 2>conftest.er1
22783 grep -v '^ *+' conftest.er1 >conftest.err
22785 cat conftest.err >&5
22786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest$ac_exeext && {
22791 test "$cross_compiling" = yes ||
22792 $as_test_x conftest$ac_exeext
22796 $as_echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22802 rm -rf conftest.dSYM
22803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22804 conftest$ac_exeext conftest.$ac_ext
22806 if test "x$acx_pthread_ok" = xyes; then
22807 # Don't use options that are ignored by the compiler.
22808 # We find them by checking stderror.
22809 cat >conftest.$ac_ext <<_ACEOF
22811 main (int argc, char **argv)
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 # Check both linking and compiling, because they might tolerate different options.
22820 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22821 # we continue with more flags because Linux needs -lpthread
22822 # for libpq builds on PostgreSQL. The test above only
22823 # tests for building binaries, not shared libraries.
22824 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22825 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22826 else acx_pthread_ok=no
22831 CFLAGS="$save_CFLAGS"
22833 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22834 $as_echo "$acx_pthread_ok" >&6; }
22838 # Various other checks:
22839 if test "x$acx_pthread_ok" = xyes; then
22841 LIBS="$PTHREAD_LIBS $LIBS"
22842 save_CFLAGS="$CFLAGS"
22843 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22845 # Detect AIX lossage: threads are created detached by default
22846 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22847 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22848 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 #include <pthread.h>
22859 int attr=PTHREAD_CREATE_JOINABLE;
22864 rm -f conftest.$ac_objext conftest$ac_exeext
22865 if { (ac_try="$ac_link"
22866 case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22871 $as_echo "$ac_try_echo") >&5
22872 (eval "$ac_link") 2>conftest.er1
22874 grep -v '^ *+' conftest.er1 >conftest.err
22876 cat conftest.err >&5
22877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest$ac_exeext && {
22882 test "$cross_compiling" = yes ||
22883 $as_test_x conftest$ac_exeext
22885 ok=PTHREAD_CREATE_JOINABLE
22887 $as_echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22893 rm -rf conftest.dSYM
22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22895 conftest$ac_exeext conftest.$ac_ext
22896 if test x"$ok" = xunknown; then
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <pthread.h>
22907 int attr=PTHREAD_CREATE_UNDETACHED;
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22919 $as_echo "$ac_try_echo") >&5
22920 (eval "$ac_link") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext && {
22930 test "$cross_compiling" = yes ||
22931 $as_test_x conftest$ac_exeext
22933 ok=PTHREAD_CREATE_UNDETACHED
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22941 rm -rf conftest.dSYM
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22945 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22947 cat >>confdefs.h <<\_ACEOF
22948 #define PTHREAD_CREATE_JOINABLE $ok
22952 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22953 $as_echo "${ok}" >&6; }
22954 if test x"$ok" = xunknown; then
22955 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22956 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22959 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22960 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22962 # We always add these in PostgreSQL
22963 # case "${host_cpu}-${host_os}" in
22964 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22965 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22967 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22968 $as_echo "${flag}" >&6; }
22969 if test "x$flag" != xno; then
22970 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22974 CFLAGS="$save_CFLAGS"
22976 # Supporting cc_r would require a special CC in all places that
22977 # use libpq, and that is ugly, so we don't do it. Users can still
22978 # define their compiler as cc_r to do thread builds of everything.
22979 # More AIX lossage: must compile with cc_r
22980 # Extract the first word of "cc_r", so it can be a program name with args.
22981 set dummy cc_r; ac_word=$2
22982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22983 $as_echo_n "checking for $ac_word... " >&6; }
22984 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22985 $as_echo_n "(cached) " >&6
22987 if test -n "$PTHREAD_CC"; then
22988 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991 for as_dir in $PATH
22994 test -z "$as_dir" && as_dir=.
22995 for ac_exec_ext in '' $ac_executable_extensions; do
22996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22997 ac_cv_prog_PTHREAD_CC="cc_r"
22998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23005 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23008 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23009 if test -n "$PTHREAD_CC"; then
23010 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23011 $as_echo "$PTHREAD_CC" >&6; }
23013 { $as_echo "$as_me:$LINENO: result: no" >&5
23014 $as_echo "no" >&6; }
23026 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23027 if test x"$acx_pthread_ok" = xyes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_PTHREAD 1
23039 ac_cpp='$CPP $CPPFLAGS'
23040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23046 # Some platforms use these, so just define them. They can't hurt if they
23047 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23048 # enables 5-arg getpwuid_r, among other things.
23049 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23052 # At this point, we don't want to muck with the compiler name for threading.
23053 # Let's see who fails, perhaps AIX. 2004-04-23
23054 if test "$PTHREAD_CC" != "$CC"; then
23055 { { $as_echo "$as_me:$LINENO: error:
23056 PostgreSQL does not support platforms that require a special compiler
23057 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23058 $as_echo "$as_me: error:
23059 PostgreSQL does not support platforms that require a special compiler
23060 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23061 { (exit 1); exit 1; }; }
23064 # Check for *_r functions
23067 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23068 LIBS="$LIBS $PTHREAD_LIBS"
23070 if test "$PORTNAME" != "win32"; then
23071 if test "${ac_cv_header_pthread_h+set}" = set; then
23072 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23073 $as_echo_n "checking for pthread.h... " >&6; }
23074 if test "${ac_cv_header_pthread_h+set}" = set; then
23075 $as_echo_n "(cached) " >&6
23077 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23078 $as_echo "$ac_cv_header_pthread_h" >&6; }
23080 # Is the header compilable?
23081 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23082 $as_echo_n "checking pthread.h usability... " >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 #include <pthread.h>
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_compile") 2>conftest.er1
23102 grep -v '^ *+' conftest.er1 >conftest.err
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest.$ac_objext; then
23110 ac_header_compiler=yes
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_header_compiler=no
23118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23120 $as_echo "$ac_header_compiler" >&6; }
23122 # Is the header present?
23123 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23124 $as_echo_n "checking pthread.h presence... " >&6; }
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 #include <pthread.h>
23133 if { (ac_try="$ac_cpp conftest.$ac_ext"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23139 $as_echo "$ac_try_echo") >&5
23140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23142 grep -v '^ *+' conftest.er1 >conftest.err
23144 cat conftest.err >&5
23145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } >/dev/null && {
23147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23148 test ! -s conftest.err
23150 ac_header_preproc=yes
23152 $as_echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 ac_header_preproc=no
23158 rm -f conftest.err conftest.$ac_ext
23159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23160 $as_echo "$ac_header_preproc" >&6; }
23162 # So? What about this header?
23163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23165 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23166 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23167 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23168 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23169 ac_header_preproc=yes
23172 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23173 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23174 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23175 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23177 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23179 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23181 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23183 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23185 ## ---------------------------------------- ##
23186 ## Report this to pgsql-bugs@postgresql.org ##
23187 ## ---------------------------------------- ##
23189 ) | sed "s/^/$as_me: WARNING: /" >&2
23192 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23193 $as_echo_n "checking for pthread.h... " >&6; }
23194 if test "${ac_cv_header_pthread_h+set}" = set; then
23195 $as_echo_n "(cached) " >&6
23197 ac_cv_header_pthread_h=$ac_header_preproc
23199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23200 $as_echo "$ac_cv_header_pthread_h" >&6; }
23203 if test "x$ac_cv_header_pthread_h" = x""yes; then
23206 { { $as_echo "$as_me:$LINENO: error:
23207 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23208 $as_echo "$as_me: error:
23209 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23210 { (exit 1); exit 1; }; }
23219 for ac_func in strerror_r getpwuid_r gethostbyname_r
23221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23222 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23223 $as_echo_n "checking for $ac_func... " >&6; }
23224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23225 $as_echo_n "(cached) " >&6
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23235 #define $ac_func innocuous_$ac_func
23237 /* System header to define __stub macros and hopefully few prototypes,
23238 which can conflict with char $ac_func (); below.
23239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240 <limits.h> exists even on freestanding compilers. */
23243 # include <limits.h>
23245 # include <assert.h>
23250 /* Override any GCC internal prototype to avoid an error.
23251 Use char because int might match the return type of a GCC
23252 builtin and then its argument prototype would still apply. */
23257 /* The GNU C library defines this for functions which it implements
23258 to always fail with ENOSYS. Some functions are actually named
23259 something starting with __ and the normal name is an alias. */
23260 #if defined __stub_$ac_func || defined __stub___$ac_func
23267 return $ac_func ();
23272 rm -f conftest.$ac_objext conftest$ac_exeext
23273 if { (ac_try="$ac_link"
23274 case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23279 $as_echo "$ac_try_echo") >&5
23280 (eval "$ac_link") 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest$ac_exeext && {
23290 test "$cross_compiling" = yes ||
23291 $as_test_x conftest$ac_exeext
23293 eval "$as_ac_var=yes"
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 eval "$as_ac_var=no"
23301 rm -rf conftest.dSYM
23302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23303 conftest$ac_exeext conftest.$ac_ext
23305 ac_res=`eval 'as_val=${'$as_ac_var'}
23306 $as_echo "$as_val"'`
23307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23308 $as_echo "$ac_res" >&6; }
23309 as_val=`eval 'as_val=${'$as_ac_var'}
23310 $as_echo "$as_val"'`
23311 if test "x$as_val" = x""yes; then
23312 cat >>confdefs.h <<_ACEOF
23313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23320 # Do test here with the proper thread flags
23321 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23322 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23323 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23324 $as_echo_n "(cached) " >&6
23326 cat >conftest.$ac_ext <<_ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 #include <sys/types.h>
23338 struct passwd *space;
23341 struct passwd **result;
23342 getpwuid_r(uid, space, buf, bufsize, result);
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23354 $as_echo "$ac_try_echo") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1 >conftest.err
23359 cat conftest.err >&5
23360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 pgac_cv_func_getpwuid_r_5arg=yes
23367 $as_echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 pgac_cv_func_getpwuid_r_5arg=no
23373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23376 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23377 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23379 cat >>confdefs.h <<\_ACEOF
23380 #define GETPWUID_R_5ARG /**/
23385 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23386 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23387 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23388 $as_echo_n "(cached) " >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 #include <string.h>
23401 int strerror_r(int, char *, size_t);
23403 /* Older AIX has 'int' for the third argument so we don't test the args. */
23410 rm -f conftest.$ac_objext
23411 if { (ac_try="$ac_compile"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23417 $as_echo "$ac_try_echo") >&5
23418 (eval "$ac_compile") 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest.$ac_objext; then
23428 pgac_cv_func_strerror_r_int=yes
23430 $as_echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 pgac_cv_func_strerror_r_int=no
23436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23439 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23440 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23442 cat >>confdefs.h <<\_ACEOF
23443 #define STRERROR_R_INT /**/
23453 # do not use values from template file
23462 # We can test for libldap_r only after we know PTHREAD_LIBS
23463 if test "$with_ldap" = yes ; then
23465 if test "$PORTNAME" != "win32"; then
23467 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23468 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23469 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23470 $as_echo_n "(cached) " >&6
23472 ac_check_lib_save_LIBS=$LIBS
23473 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23474 cat >conftest.$ac_ext <<_ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23481 /* Override any GCC internal prototype to avoid an error.
23482 Use char because int might match the return type of a GCC
23483 builtin and then its argument prototype would still apply. */
23491 return ldap_bind ();
23496 rm -f conftest.$ac_objext conftest$ac_exeext
23497 if { (ac_try="$ac_link"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503 $as_echo "$ac_try_echo") >&5
23504 (eval "$ac_link") 2>conftest.er1
23506 grep -v '^ *+' conftest.er1 >conftest.err
23508 cat conftest.err >&5
23509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } && {
23511 test -z "$ac_c_werror_flag" ||
23512 test ! -s conftest.err
23513 } && test -s conftest$ac_exeext && {
23514 test "$cross_compiling" = yes ||
23515 $as_test_x conftest$ac_exeext
23517 ac_cv_lib_ldap_ldap_bind=yes
23519 $as_echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 ac_cv_lib_ldap_ldap_bind=no
23525 rm -rf conftest.dSYM
23526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23527 conftest$ac_exeext conftest.$ac_ext
23528 LIBS=$ac_check_lib_save_LIBS
23530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23531 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23532 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23533 cat >>confdefs.h <<_ACEOF
23534 #define HAVE_LIBLDAP 1
23537 LIBS="-lldap $LIBS"
23540 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23541 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23542 { (exit 1); exit 1; }; }
23545 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23546 if test "$enable_thread_safety" = yes; then
23547 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23549 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23550 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23551 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23552 $as_echo_n "(cached) " >&6
23554 ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23556 cat >conftest.$ac_ext <<_ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23563 /* Override any GCC internal prototype to avoid an error.
23564 Use char because int might match the return type of a GCC
23565 builtin and then its argument prototype would still apply. */
23569 char ldap_simple_bind ();
23573 return ldap_simple_bind ();
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23585 $as_echo "$ac_try_echo") >&5
23586 (eval "$ac_link") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1 >conftest.err
23590 cat conftest.err >&5
23591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest$ac_exeext && {
23596 test "$cross_compiling" = yes ||
23597 $as_test_x conftest$ac_exeext
23599 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23601 $as_echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 ac_cv_lib_ldap_r_ldap_simple_bind=no
23607 rm -rf conftest.dSYM
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609 conftest$ac_exeext conftest.$ac_ext
23610 LIBS=$ac_check_lib_save_LIBS
23612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23613 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23614 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_LIBLDAP_R 1
23619 LIBS="-lldap_r $LIBS"
23622 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23623 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23624 { (exit 1); exit 1; }; }
23627 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23629 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23633 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23634 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23635 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23636 $as_echo_n "(cached) " >&6
23638 ac_check_lib_save_LIBS=$LIBS
23639 LIBS="-lwldap32 $LIBS"
23640 cat >conftest.$ac_ext <<_ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h. */
23647 /* Override any GCC internal prototype to avoid an error.
23648 Use char because int might match the return type of a GCC
23649 builtin and then its argument prototype would still apply. */
23657 return ldap_bind ();
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670 (eval "$ac_link") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest$ac_exeext && {
23680 test "$cross_compiling" = yes ||
23681 $as_test_x conftest$ac_exeext
23683 ac_cv_lib_wldap32_ldap_bind=yes
23685 $as_echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ac_cv_lib_wldap32_ldap_bind=no
23691 rm -rf conftest.dSYM
23692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23693 conftest$ac_exeext conftest.$ac_ext
23694 LIBS=$ac_check_lib_save_LIBS
23696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23697 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23698 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_LIBWLDAP32 1
23703 LIBS="-lwldap32 $LIBS"
23706 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23707 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23708 { (exit 1); exit 1; }; }
23711 LDAP_LIBS_FE="-lwldap32"
23712 LDAP_LIBS_BE="-lwldap32"
23720 # This test makes sure that run tests work at all. Sometimes a shared
23721 # library is found by the linker, but the runtime linker can't find it.
23722 # This check should come after all modifications of compiler or linker
23723 # variables, and before any other run tests.
23724 { $as_echo "$as_me:$LINENO: checking test program" >&5
23725 $as_echo_n "checking test program... " >&6; }
23726 if test "$cross_compiling" = yes; then
23727 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23728 $as_echo "cross-compiling" >&6; }
23730 cat >conftest.$ac_ext <<_ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 int main() { return 0; }
23738 rm -f conftest$ac_exeext
23739 if { (ac_try="$ac_link"
23740 case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746 (eval "$ac_link") 2>&5
23748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23750 { (case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756 (eval "$ac_try") 2>&5
23758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; }; then
23760 { $as_echo "$as_me:$LINENO: result: ok" >&5
23761 $as_echo "ok" >&6; }
23763 $as_echo "$as_me: program exited with status $ac_status" >&5
23764 $as_echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23767 ( exit $ac_status )
23768 { $as_echo "$as_me:$LINENO: result: failed" >&5
23769 $as_echo "failed" >&6; }
23770 { { $as_echo "$as_me:$LINENO: error:
23771 Could not execute a simple test program. This may be a problem
23772 related to locating shared libraries. Check the file 'config.log'
23773 for the exact reason." >&5
23774 $as_echo "$as_me: error:
23775 Could not execute a simple test program. This may be a problem
23776 related to locating shared libraries. Check the file 'config.log'
23777 for the exact reason." >&2;}
23778 { (exit 1); exit 1; }; }
23780 rm -rf conftest.dSYM
23781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23786 # --------------------
23787 # Run tests below here
23788 # --------------------
23790 # Force use of our snprintf if system's doesn't do arg control
23791 # See comment above at snprintf test for details.
23792 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23793 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23794 $as_echo_n "checking whether printf supports argument control... " >&6; }
23795 if test "${pgac_cv_printf_arg_control+set}" = set; then
23796 $as_echo_n "(cached) " >&6
23798 if test "$cross_compiling" = yes; then
23799 pgac_cv_printf_arg_control=cross
23801 cat >conftest.$ac_ext <<_ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23808 #include <string.h>
23814 /* can it swap arguments? */
23815 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23816 if (strcmp(buf, "4 3") != 0)
23821 rm -f conftest$ac_exeext
23822 if { (ac_try="$ac_link"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23828 $as_echo "$ac_try_echo") >&5
23829 (eval "$ac_link") 2>&5
23831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23833 { (case "(($ac_try" in
23834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835 *) ac_try_echo=$ac_try;;
23837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23838 $as_echo "$ac_try_echo") >&5
23839 (eval "$ac_try") 2>&5
23841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 pgac_cv_printf_arg_control=yes
23845 $as_echo "$as_me: program exited with status $ac_status" >&5
23846 $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ( exit $ac_status )
23850 pgac_cv_printf_arg_control=no
23852 rm -rf conftest.dSYM
23853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23859 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23860 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23862 if test $pgac_cv_printf_arg_control != yes ; then
23863 pgac_need_repl_snprintf=yes
23870 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23871 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23872 if test "${pgac_cv_type_long_int_64+set}" = set; then
23873 $as_echo_n "(cached) " >&6
23875 if test "$cross_compiling" = yes; then
23876 # If cross-compiling, check the size reported by the compiler and
23877 # trust that the arithmetic works.
23878 cat >conftest.$ac_ext <<_ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23888 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23895 rm -f conftest.$ac_objext
23896 if { (ac_try="$ac_compile"
23897 case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23913 pgac_cv_type_long_int_64=yes
23915 $as_echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 pgac_cv_type_long_int_64=no
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 cat >conftest.$ac_ext <<_ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 typedef long int ac_int64;
23932 * These are globals to discourage the compiler from folding all the
23933 * arithmetic tests down to compile-time constants.
23935 ac_int64 a = 20000001;
23936 ac_int64 b = 40000005;
23938 int does_int64_work()
23942 if (sizeof(ac_int64) != 8)
23943 return 0; /* definitely not the right size */
23945 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23953 exit(! does_int64_work());
23956 rm -f conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23963 $as_echo "$ac_try_echo") >&5
23964 (eval "$ac_link") 2>&5
23966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23968 { (case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23973 $as_echo "$ac_try_echo") >&5
23974 (eval "$ac_try") 2>&5
23976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 pgac_cv_type_long_int_64=yes
23980 $as_echo "$as_me: program exited with status $ac_status" >&5
23981 $as_echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ( exit $ac_status )
23985 pgac_cv_type_long_int_64=no
23987 rm -rf conftest.dSYM
23988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23993 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23994 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23996 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23997 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23999 cat >>confdefs.h <<\_ACEOF
24000 #define HAVE_LONG_INT_64 1
24006 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24007 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24008 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24009 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24010 $as_echo_n "(cached) " >&6
24012 if test "$cross_compiling" = yes; then
24013 # If cross-compiling, check the size reported by the compiler and
24014 # trust that the arithmetic works.
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24025 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24039 $as_echo "$ac_try_echo") >&5
24040 (eval "$ac_compile") 2>conftest.er1
24042 grep -v '^ *+' conftest.er1 >conftest.err
24044 cat conftest.err >&5
24045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } && {
24047 test -z "$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24049 } && test -s conftest.$ac_objext; then
24050 pgac_cv_type_long_long_int_64=yes
24052 $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 pgac_cv_type_long_long_int_64=no
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 typedef long long int ac_int64;
24069 * These are globals to discourage the compiler from folding all the
24070 * arithmetic tests down to compile-time constants.
24072 ac_int64 a = 20000001;
24073 ac_int64 b = 40000005;
24075 int does_int64_work()
24079 if (sizeof(ac_int64) != 8)
24080 return 0; /* definitely not the right size */
24082 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24090 exit(! does_int64_work());
24093 rm -f conftest$ac_exeext
24094 if { (ac_try="$ac_link"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24100 $as_echo "$ac_try_echo") >&5
24101 (eval "$ac_link") 2>&5
24103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24105 { (case "(($ac_try" in
24106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107 *) ac_try_echo=$ac_try;;
24109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24110 $as_echo "$ac_try_echo") >&5
24111 (eval "$ac_try") 2>&5
24113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 pgac_cv_type_long_long_int_64=yes
24117 $as_echo "$as_me: program exited with status $ac_status" >&5
24118 $as_echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ( exit $ac_status )
24122 pgac_cv_type_long_long_int_64=no
24124 rm -rf conftest.dSYM
24125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24130 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24131 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24133 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24134 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24136 cat >>confdefs.h <<\_ACEOF
24137 #define HAVE_LONG_LONG_INT_64 1
24142 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24143 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24144 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24145 { (exit 1); exit 1; }; }
24151 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24159 #define INT64CONST(x) x##LL
24160 long long int foo = INT64CONST(0x1234567890123456);
24170 rm -f conftest.$ac_objext
24171 if { (ac_try="$ac_compile"
24172 case "(($ac_try" in
24173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174 *) ac_try_echo=$ac_try;;
24176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24177 $as_echo "$ac_try_echo") >&5
24178 (eval "$ac_compile") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && {
24185 test -z "$ac_c_werror_flag" ||
24186 test ! -s conftest.err
24187 } && test -s conftest.$ac_objext; then
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_LL_CONSTANTS 1
24194 $as_echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 # If we found "long int" is 64 bits, assume snprintf handles it. If
24205 # we found we need to use "long long int", better check. We cope with
24206 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24207 # work, fall back to our own snprintf emulation (which we know uses %lld).
24209 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24210 if test $pgac_need_repl_snprintf = no; then
24211 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24212 $as_echo_n "checking snprintf format for long long int... " >&6; }
24213 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24214 $as_echo_n "(cached) " >&6
24216 for pgac_format in '%lld' '%qd' '%I64d'; do
24217 if test "$cross_compiling" = yes; then
24218 pgac_cv_snprintf_long_long_int_format=cross; break
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24227 typedef long long int ac_int64;
24228 #define INT64_FORMAT "$pgac_format"
24230 ac_int64 a = 20000001;
24231 ac_int64 b = 40000005;
24233 int does_int64_snprintf_work()
24238 if (sizeof(ac_int64) != 8)
24239 return 0; /* doesn't look like the right size */
24242 snprintf(buf, 100, INT64_FORMAT, c);
24243 if (strcmp(buf, "800000140000005") != 0)
24244 return 0; /* either multiply or snprintf is busted */
24248 exit(! does_int64_snprintf_work());
24251 rm -f conftest$ac_exeext
24252 if { (ac_try="$ac_link"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24258 $as_echo "$ac_try_echo") >&5
24259 (eval "$ac_link") 2>&5
24261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263 { (case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24268 $as_echo "$ac_try_echo") >&5
24269 (eval "$ac_try") 2>&5
24271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24275 $as_echo "$as_me: program exited with status $ac_status" >&5
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24280 rm -rf conftest.dSYM
24281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24288 LONG_LONG_INT_FORMAT=''
24290 case $pgac_cv_snprintf_long_long_int_format in
24291 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24292 $as_echo "cannot test (not on host machine)" >&6; };;
24293 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24294 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24295 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24296 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24297 $as_echo "none" >&6; };;
24299 if test "$LONG_LONG_INT_FORMAT" = ""; then
24300 # Force usage of our own snprintf, since system snprintf is broken
24301 pgac_need_repl_snprintf=yes
24302 LONG_LONG_INT_FORMAT='%lld'
24305 # Here if we previously decided we needed to use our own snprintf
24306 LONG_LONG_INT_FORMAT='%lld'
24308 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24309 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24310 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24312 # Here if we are not using 'long long int' at all
24313 INT64_FORMAT='"%ld"'
24314 UINT64_FORMAT='"%lu"'
24318 cat >>confdefs.h <<_ACEOF
24319 #define INT64_FORMAT $INT64_FORMAT
24324 cat >>confdefs.h <<_ACEOF
24325 #define UINT64_FORMAT $UINT64_FORMAT
24329 # Now we have checked all the reasons to replace snprintf
24330 if test $pgac_need_repl_snprintf = yes; then
24332 cat >>confdefs.h <<\_ACEOF
24333 #define USE_REPL_SNPRINTF 1
24336 case " $LIBOBJS " in
24337 *" snprintf.$ac_objext "* ) ;;
24338 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24344 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24345 # The cast to long int works around a bug in the HP C Compiler
24346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24348 # This bug is HP SR number 8606223364.
24349 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24350 $as_echo_n "checking size of void *... " >&6; }
24351 if test "${ac_cv_sizeof_void_p+set}" = set; then
24352 $as_echo_n "(cached) " >&6
24354 if test "$cross_compiling" = yes; then
24355 # Depending upon the size, compute the lo and hi bounds.
24356 cat >conftest.$ac_ext <<_ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h. */
24362 $ac_includes_default
24366 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24373 rm -f conftest.$ac_objext
24374 if { (ac_try="$ac_compile"
24375 case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24380 $as_echo "$ac_try_echo") >&5
24381 (eval "$ac_compile") 2>conftest.er1
24383 grep -v '^ *+' conftest.er1 >conftest.err
24385 cat conftest.err >&5
24386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); } && {
24388 test -z "$ac_c_werror_flag" ||
24389 test ! -s conftest.err
24390 } && test -s conftest.$ac_objext; then
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24399 $ac_includes_default
24403 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24417 $as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24420 grep -v '^ *+' conftest.er1 >conftest.err
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_hi=$ac_mid; break
24430 $as_echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24433 ac_lo=`expr $ac_mid + 1`
24434 if test $ac_lo -le $ac_mid; then
24438 ac_mid=`expr 2 '*' $ac_mid + 1`
24441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444 $as_echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 $ac_includes_default
24457 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24464 rm -f conftest.$ac_objext
24465 if { (ac_try="$ac_compile"
24466 case "(($ac_try" in
24467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468 *) ac_try_echo=$ac_try;;
24470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24471 $as_echo "$ac_try_echo") >&5
24472 (eval "$ac_compile") 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && {
24479 test -z "$ac_c_werror_flag" ||
24480 test ! -s conftest.err
24481 } && test -s conftest.$ac_objext; then
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24494 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24508 $as_echo "$ac_try_echo") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest.$ac_objext; then
24519 ac_lo=$ac_mid; break
24521 $as_echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24524 ac_hi=`expr '(' $ac_mid ')' - 1`
24525 if test $ac_mid -le $ac_hi; then
24529 ac_mid=`expr 2 '*' $ac_mid`
24532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535 $as_echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 # Binary search between lo and hi bounds.
24546 while test "x$ac_lo" != "x$ac_hi"; do
24547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 $ac_includes_default
24558 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24565 rm -f conftest.$ac_objext
24566 if { (ac_try="$ac_compile"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24572 $as_echo "$ac_try_echo") >&5
24573 (eval "$ac_compile") 2>conftest.er1
24575 grep -v '^ *+' conftest.er1 >conftest.err
24577 cat conftest.err >&5
24578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } && {
24580 test -z "$ac_c_werror_flag" ||
24581 test ! -s conftest.err
24582 } && test -s conftest.$ac_objext; then
24585 $as_echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ac_lo=`expr '(' $ac_mid ')' + 1`
24591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24595 '') if test "$ac_cv_type_void_p" = yes; then
24596 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24598 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24599 See \`config.log' for more details." >&5
24600 $as_echo "$as_me: error: cannot compute sizeof (void *)
24601 See \`config.log' for more details." >&2;}
24602 { (exit 77); exit 77; }; }; }
24604 ac_cv_sizeof_void_p=0
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 $ac_includes_default
24615 static long int longval () { return (long int) (sizeof (void *)); }
24616 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24618 #include <stdlib.h>
24623 FILE *f = fopen ("conftest.val", "w");
24626 if (((long int) (sizeof (void *))) < 0)
24628 long int i = longval ();
24629 if (i != ((long int) (sizeof (void *))))
24631 fprintf (f, "%ld", i);
24635 unsigned long int i = ulongval ();
24636 if (i != ((long int) (sizeof (void *))))
24638 fprintf (f, "%lu", i);
24640 /* Do not output a trailing newline, as this causes \r\n confusion
24641 on some platforms. */
24642 return ferror (f) || fclose (f) != 0;
24648 rm -f conftest$ac_exeext
24649 if { (ac_try="$ac_link"
24650 case "(($ac_try" in
24651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652 *) ac_try_echo=$ac_try;;
24654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24655 $as_echo "$ac_try_echo") >&5
24656 (eval "$ac_link") 2>&5
24658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24660 { (case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24665 $as_echo "$ac_try_echo") >&5
24666 (eval "$ac_try") 2>&5
24668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 ac_cv_sizeof_void_p=`cat conftest.val`
24672 $as_echo "$as_me: program exited with status $ac_status" >&5
24673 $as_echo "$as_me: failed program was:" >&5
24674 sed 's/^/| /' conftest.$ac_ext >&5
24676 ( exit $ac_status )
24677 if test "$ac_cv_type_void_p" = yes; then
24678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24680 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24681 See \`config.log' for more details." >&5
24682 $as_echo "$as_me: error: cannot compute sizeof (void *)
24683 See \`config.log' for more details." >&2;}
24684 { (exit 77); exit 77; }; }; }
24686 ac_cv_sizeof_void_p=0
24689 rm -rf conftest.dSYM
24690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24694 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24695 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24699 cat >>confdefs.h <<_ACEOF
24700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24704 # The cast to long int works around a bug in the HP C Compiler
24705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24707 # This bug is HP SR number 8606223364.
24708 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24709 $as_echo_n "checking size of size_t... " >&6; }
24710 if test "${ac_cv_sizeof_size_t+set}" = set; then
24711 $as_echo_n "(cached) " >&6
24713 if test "$cross_compiling" = yes; then
24714 # Depending upon the size, compute the lo and hi bounds.
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 $ac_includes_default
24725 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24732 rm -f conftest.$ac_objext
24733 if { (ac_try="$ac_compile"
24734 case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1 >conftest.err
24744 cat conftest.err >&5
24745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.$ac_objext; then
24752 cat >conftest.$ac_ext <<_ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 $ac_includes_default
24762 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24776 $as_echo "$ac_try_echo") >&5
24777 (eval "$ac_compile") 2>conftest.er1
24779 grep -v '^ *+' conftest.er1 >conftest.err
24781 cat conftest.err >&5
24782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } && {
24784 test -z "$ac_c_werror_flag" ||
24785 test ! -s conftest.err
24786 } && test -s conftest.$ac_objext; then
24787 ac_hi=$ac_mid; break
24789 $as_echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24792 ac_lo=`expr $ac_mid + 1`
24793 if test $ac_lo -le $ac_mid; then
24797 ac_mid=`expr 2 '*' $ac_mid + 1`
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803 $as_echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 cat >conftest.$ac_ext <<_ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 $ac_includes_default
24816 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24823 rm -f conftest.$ac_objext
24824 if { (ac_try="$ac_compile"
24825 case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24830 $as_echo "$ac_try_echo") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24833 grep -v '^ *+' conftest.er1 >conftest.err
24835 cat conftest.err >&5
24836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24843 cat >conftest.$ac_ext <<_ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h. */
24849 $ac_includes_default
24853 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24867 $as_echo "$ac_try_echo") >&5
24868 (eval "$ac_compile") 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } && {
24875 test -z "$ac_c_werror_flag" ||
24876 test ! -s conftest.err
24877 } && test -s conftest.$ac_objext; then
24878 ac_lo=$ac_mid; break
24880 $as_echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24883 ac_hi=`expr '(' $ac_mid ')' - 1`
24884 if test $ac_mid -le $ac_hi; then
24888 ac_mid=`expr 2 '*' $ac_mid`
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894 $as_echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904 # Binary search between lo and hi bounds.
24905 while test "x$ac_lo" != "x$ac_hi"; do
24906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24907 cat >conftest.$ac_ext <<_ACEOF
24910 cat confdefs.h >>conftest.$ac_ext
24911 cat >>conftest.$ac_ext <<_ACEOF
24912 /* end confdefs.h. */
24913 $ac_includes_default
24917 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24924 rm -f conftest.$ac_objext
24925 if { (ac_try="$ac_compile"
24926 case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24931 $as_echo "$ac_try_echo") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24934 grep -v '^ *+' conftest.er1 >conftest.err
24936 cat conftest.err >&5
24937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest.$ac_objext; then
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24947 ac_lo=`expr '(' $ac_mid ')' + 1`
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24954 '') if test "$ac_cv_type_size_t" = yes; then
24955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24957 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24958 See \`config.log' for more details." >&5
24959 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24960 See \`config.log' for more details." >&2;}
24961 { (exit 77); exit 77; }; }; }
24963 ac_cv_sizeof_size_t=0
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24974 static long int longval () { return (long int) (sizeof (size_t)); }
24975 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24977 #include <stdlib.h>
24982 FILE *f = fopen ("conftest.val", "w");
24985 if (((long int) (sizeof (size_t))) < 0)
24987 long int i = longval ();
24988 if (i != ((long int) (sizeof (size_t))))
24990 fprintf (f, "%ld", i);
24994 unsigned long int i = ulongval ();
24995 if (i != ((long int) (sizeof (size_t))))
24997 fprintf (f, "%lu", i);
24999 /* Do not output a trailing newline, as this causes \r\n confusion
25000 on some platforms. */
25001 return ferror (f) || fclose (f) != 0;
25007 rm -f conftest$ac_exeext
25008 if { (ac_try="$ac_link"
25009 case "(($ac_try" in
25010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011 *) ac_try_echo=$ac_try;;
25013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25014 $as_echo "$ac_try_echo") >&5
25015 (eval "$ac_link") 2>&5
25017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25019 { (case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25024 $as_echo "$ac_try_echo") >&5
25025 (eval "$ac_try") 2>&5
25027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; }; then
25029 ac_cv_sizeof_size_t=`cat conftest.val`
25031 $as_echo "$as_me: program exited with status $ac_status" >&5
25032 $as_echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ( exit $ac_status )
25036 if test "$ac_cv_type_size_t" = yes; then
25037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25039 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25040 See \`config.log' for more details." >&5
25041 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25042 See \`config.log' for more details." >&2;}
25043 { (exit 77); exit 77; }; }; }
25045 ac_cv_sizeof_size_t=0
25048 rm -rf conftest.dSYM
25049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25053 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25054 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25058 cat >>confdefs.h <<_ACEOF
25059 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25063 # The cast to long int works around a bug in the HP C Compiler
25064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25066 # This bug is HP SR number 8606223364.
25067 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25068 $as_echo_n "checking size of long... " >&6; }
25069 if test "${ac_cv_sizeof_long+set}" = set; then
25070 $as_echo_n "(cached) " >&6
25072 if test "$cross_compiling" = yes; then
25073 # Depending upon the size, compute the lo and hi bounds.
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 $ac_includes_default
25084 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25091 rm -f conftest.$ac_objext
25092 if { (ac_try="$ac_compile"
25093 case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25098 $as_echo "$ac_try_echo") >&5
25099 (eval "$ac_compile") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && {
25106 test -z "$ac_c_werror_flag" ||
25107 test ! -s conftest.err
25108 } && test -s conftest.$ac_objext; then
25111 cat >conftest.$ac_ext <<_ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h. */
25117 $ac_includes_default
25121 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25128 rm -f conftest.$ac_objext
25129 if { (ac_try="$ac_compile"
25130 case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25135 $as_echo "$ac_try_echo") >&5
25136 (eval "$ac_compile") 2>conftest.er1
25138 grep -v '^ *+' conftest.er1 >conftest.err
25140 cat conftest.err >&5
25141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && {
25143 test -z "$ac_c_werror_flag" ||
25144 test ! -s conftest.err
25145 } && test -s conftest.$ac_objext; then
25146 ac_hi=$ac_mid; break
25148 $as_echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25151 ac_lo=`expr $ac_mid + 1`
25152 if test $ac_lo -le $ac_mid; then
25156 ac_mid=`expr 2 '*' $ac_mid + 1`
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 $as_echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25165 cat >conftest.$ac_ext <<_ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25171 $ac_includes_default
25175 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25182 rm -f conftest.$ac_objext
25183 if { (ac_try="$ac_compile"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25189 $as_echo "$ac_try_echo") >&5
25190 (eval "$ac_compile") 2>conftest.er1
25192 grep -v '^ *+' conftest.er1 >conftest.err
25194 cat conftest.err >&5
25195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && {
25197 test -z "$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 } && test -s conftest.$ac_objext; then
25202 cat >conftest.$ac_ext <<_ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25208 $ac_includes_default
25212 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25219 rm -f conftest.$ac_objext
25220 if { (ac_try="$ac_compile"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25226 $as_echo "$ac_try_echo") >&5
25227 (eval "$ac_compile") 2>conftest.er1
25229 grep -v '^ *+' conftest.er1 >conftest.err
25231 cat conftest.err >&5
25232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } && {
25234 test -z "$ac_c_werror_flag" ||
25235 test ! -s conftest.err
25236 } && test -s conftest.$ac_objext; then
25237 ac_lo=$ac_mid; break
25239 $as_echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25242 ac_hi=`expr '(' $ac_mid ')' - 1`
25243 if test $ac_mid -le $ac_hi; then
25247 ac_mid=`expr 2 '*' $ac_mid`
25250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253 $as_echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25263 # Binary search between lo and hi bounds.
25264 while test "x$ac_lo" != "x$ac_hi"; do
25265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25266 cat >conftest.$ac_ext <<_ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25276 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25283 rm -f conftest.$ac_objext
25284 if { (ac_try="$ac_compile"
25285 case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25290 $as_echo "$ac_try_echo") >&5
25291 (eval "$ac_compile") 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } && {
25298 test -z "$ac_c_werror_flag" ||
25299 test ! -s conftest.err
25300 } && test -s conftest.$ac_objext; then
25303 $as_echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ac_lo=`expr '(' $ac_mid ')' + 1`
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25312 ?*) ac_cv_sizeof_long=$ac_lo;;
25313 '') if test "$ac_cv_type_long" = yes; then
25314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25316 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25317 See \`config.log' for more details." >&5
25318 $as_echo "$as_me: error: cannot compute sizeof (long)
25319 See \`config.log' for more details." >&2;}
25320 { (exit 77); exit 77; }; }; }
25322 ac_cv_sizeof_long=0
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 $ac_includes_default
25333 static long int longval () { return (long int) (sizeof (long)); }
25334 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25336 #include <stdlib.h>
25341 FILE *f = fopen ("conftest.val", "w");
25344 if (((long int) (sizeof (long))) < 0)
25346 long int i = longval ();
25347 if (i != ((long int) (sizeof (long))))
25349 fprintf (f, "%ld", i);
25353 unsigned long int i = ulongval ();
25354 if (i != ((long int) (sizeof (long))))
25356 fprintf (f, "%lu", i);
25358 /* Do not output a trailing newline, as this causes \r\n confusion
25359 on some platforms. */
25360 return ferror (f) || fclose (f) != 0;
25366 rm -f conftest$ac_exeext
25367 if { (ac_try="$ac_link"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25373 $as_echo "$ac_try_echo") >&5
25374 (eval "$ac_link") 2>&5
25376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25378 { (case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383 $as_echo "$ac_try_echo") >&5
25384 (eval "$ac_try") 2>&5
25386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_sizeof_long=`cat conftest.val`
25390 $as_echo "$as_me: program exited with status $ac_status" >&5
25391 $as_echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25394 ( exit $ac_status )
25395 if test "$ac_cv_type_long" = yes; then
25396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25398 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25399 See \`config.log' for more details." >&5
25400 $as_echo "$as_me: error: cannot compute sizeof (long)
25401 See \`config.log' for more details." >&2;}
25402 { (exit 77); exit 77; }; }; }
25404 ac_cv_sizeof_long=0
25407 rm -rf conftest.dSYM
25408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25412 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25413 $as_echo "$ac_cv_sizeof_long" >&6; }
25417 cat >>confdefs.h <<_ACEOF
25418 #define SIZEOF_LONG $ac_cv_sizeof_long
25423 # Decide whether float4 is passed by value: user-selectable, enabled by default
25424 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25425 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25428 # Check whether --enable-float4-byval was given.
25429 if test "${enable_float4_byval+set}" = set; then
25430 enableval=$enable_float4_byval;
25434 cat >>confdefs.h <<\_ACEOF
25435 #define USE_FLOAT4_BYVAL 1
25438 float4passbyval=true
25441 float4passbyval=false
25444 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25445 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25446 { (exit 1); exit 1; }; }
25451 enable_float4_byval=yes
25453 cat >>confdefs.h <<\_ACEOF
25454 #define USE_FLOAT4_BYVAL 1
25457 float4passbyval=true
25461 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25462 $as_echo "$enable_float4_byval" >&6; }
25464 cat >>confdefs.h <<_ACEOF
25465 #define FLOAT4PASSBYVAL $float4passbyval
25469 # Decide whether float8 is passed by value.
25470 # Note: this setting also controls int8 and related types such as timestamp.
25471 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25472 # If not, trying to select it is an error.
25473 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25474 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25475 if test $ac_cv_sizeof_void_p -ge 8 ; then
25478 # Check whether --enable-float8-byval was given.
25479 if test "${enable_float8_byval+set}" = set; then
25480 enableval=$enable_float8_byval;
25489 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25490 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25491 { (exit 1); exit 1; }; }
25496 enable_float8_byval=yes
25504 # Check whether --enable-float8-byval was given.
25505 if test "${enable_float8_byval+set}" = set; then
25506 enableval=$enable_float8_byval;
25515 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25516 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25517 { (exit 1); exit 1; }; }
25522 enable_float8_byval=no
25527 if test "$enable_float8_byval" = yes ; then
25528 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25529 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25530 { (exit 1); exit 1; }; }
25533 if test "$enable_float8_byval" = yes ; then
25535 cat >>confdefs.h <<\_ACEOF
25536 #define USE_FLOAT8_BYVAL 1
25539 float8passbyval=true
25541 float8passbyval=false
25543 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25544 $as_echo "$enable_float8_byval" >&6; }
25546 cat >>confdefs.h <<_ACEOF
25547 #define FLOAT8PASSBYVAL $float8passbyval
25551 # Determine memory alignment requirements for the basic C data types.
25553 # The cast to long int works around a bug in the HP C Compiler,
25554 # see AC_CHECK_SIZEOF for more information.
25555 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25556 $as_echo_n "checking alignment of short... " >&6; }
25557 if test "${ac_cv_alignof_short+set}" = set; then
25558 $as_echo_n "(cached) " >&6
25560 if test "$cross_compiling" = yes; then
25561 # Depending upon the size, compute the lo and hi bounds.
25562 cat >conftest.$ac_ext <<_ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25568 $ac_includes_default
25570 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25572 typedef struct { char x; short y; } ac__type_alignof_;
25576 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25590 $as_echo "$ac_try_echo") >&5
25591 (eval "$ac_compile") 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && {
25598 test -z "$ac_c_werror_flag" ||
25599 test ! -s conftest.err
25600 } && test -s conftest.$ac_objext; then
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25609 $ac_includes_default
25611 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25613 typedef struct { char x; short y; } ac__type_alignof_;
25617 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25624 rm -f conftest.$ac_objext
25625 if { (ac_try="$ac_compile"
25626 case "(($ac_try" in
25627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628 *) ac_try_echo=$ac_try;;
25630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25631 $as_echo "$ac_try_echo") >&5
25632 (eval "$ac_compile") 2>conftest.er1
25634 grep -v '^ *+' conftest.er1 >conftest.err
25636 cat conftest.err >&5
25637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest.$ac_objext; then
25642 ac_hi=$ac_mid; break
25644 $as_echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25647 ac_lo=`expr $ac_mid + 1`
25648 if test $ac_lo -le $ac_mid; then
25652 ac_mid=`expr 2 '*' $ac_mid + 1`
25655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658 $as_echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 cat >conftest.$ac_ext <<_ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 $ac_includes_default
25669 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25671 typedef struct { char x; short y; } ac__type_alignof_;
25675 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25682 rm -f conftest.$ac_objext
25683 if { (ac_try="$ac_compile"
25684 case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25689 $as_echo "$ac_try_echo") >&5
25690 (eval "$ac_compile") 2>conftest.er1
25692 grep -v '^ *+' conftest.er1 >conftest.err
25694 cat conftest.err >&5
25695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } && {
25697 test -z "$ac_c_werror_flag" ||
25698 test ! -s conftest.err
25699 } && test -s conftest.$ac_objext; then
25702 cat >conftest.$ac_ext <<_ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 $ac_includes_default
25710 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25712 typedef struct { char x; short y; } ac__type_alignof_;
25716 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25723 rm -f conftest.$ac_objext
25724 if { (ac_try="$ac_compile"
25725 case "(($ac_try" in
25726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25730 $as_echo "$ac_try_echo") >&5
25731 (eval "$ac_compile") 2>conftest.er1
25733 grep -v '^ *+' conftest.er1 >conftest.err
25735 cat conftest.err >&5
25736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } && {
25738 test -z "$ac_c_werror_flag" ||
25739 test ! -s conftest.err
25740 } && test -s conftest.$ac_objext; then
25741 ac_lo=$ac_mid; break
25743 $as_echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ac_hi=`expr '(' $ac_mid ')' - 1`
25747 if test $ac_mid -le $ac_hi; then
25751 ac_mid=`expr 2 '*' $ac_mid`
25754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 $as_echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 # Binary search between lo and hi bounds.
25768 while test "x$ac_lo" != "x$ac_hi"; do
25769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25778 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25780 typedef struct { char x; short y; } ac__type_alignof_;
25784 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25791 rm -f conftest.$ac_objext
25792 if { (ac_try="$ac_compile"
25793 case "(($ac_try" in
25794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795 *) ac_try_echo=$ac_try;;
25797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25798 $as_echo "$ac_try_echo") >&5
25799 (eval "$ac_compile") 2>conftest.er1
25801 grep -v '^ *+' conftest.er1 >conftest.err
25803 cat conftest.err >&5
25804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); } && {
25806 test -z "$ac_c_werror_flag" ||
25807 test ! -s conftest.err
25808 } && test -s conftest.$ac_objext; then
25811 $as_echo "$as_me: failed program was:" >&5
25812 sed 's/^/| /' conftest.$ac_ext >&5
25814 ac_lo=`expr '(' $ac_mid ')' + 1`
25817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 ?*) ac_cv_alignof_short=$ac_lo;;
25821 '') if test "$ac_cv_type_short" = yes; then
25822 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25824 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25825 See \`config.log' for more details." >&5
25826 $as_echo "$as_me: error: cannot compute alignment of short
25827 See \`config.log' for more details." >&2;}
25828 { (exit 77); exit 77; }; }; }
25830 ac_cv_alignof_short=0
25834 cat >conftest.$ac_ext <<_ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 $ac_includes_default
25842 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25844 typedef struct { char x; short y; } ac__type_alignof_;
25845 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25846 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25848 #include <stdlib.h>
25853 FILE *f = fopen ("conftest.val", "w");
25856 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25858 long int i = longval ();
25859 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25861 fprintf (f, "%ld", i);
25865 unsigned long int i = ulongval ();
25866 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25868 fprintf (f, "%lu", i);
25870 /* Do not output a trailing newline, as this causes \r\n confusion
25871 on some platforms. */
25872 return ferror (f) || fclose (f) != 0;
25878 rm -f conftest$ac_exeext
25879 if { (ac_try="$ac_link"
25880 case "(($ac_try" in
25881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882 *) ac_try_echo=$ac_try;;
25884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25885 $as_echo "$ac_try_echo") >&5
25886 (eval "$ac_link") 2>&5
25888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25890 { (case "(($ac_try" in
25891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892 *) ac_try_echo=$ac_try;;
25894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25895 $as_echo "$ac_try_echo") >&5
25896 (eval "$ac_try") 2>&5
25898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ac_cv_alignof_short=`cat conftest.val`
25902 $as_echo "$as_me: program exited with status $ac_status" >&5
25903 $as_echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ( exit $ac_status )
25907 if test "$ac_cv_type_short" = yes; then
25908 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25910 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25911 See \`config.log' for more details." >&5
25912 $as_echo "$as_me: error: cannot compute alignment of short
25913 See \`config.log' for more details." >&2;}
25914 { (exit 77); exit 77; }; }; }
25916 ac_cv_alignof_short=0
25919 rm -rf conftest.dSYM
25920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25924 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25925 $as_echo "$ac_cv_alignof_short" >&6; }
25929 cat >>confdefs.h <<_ACEOF
25930 #define ALIGNOF_SHORT $ac_cv_alignof_short
25934 # The cast to long int works around a bug in the HP C Compiler,
25935 # see AC_CHECK_SIZEOF for more information.
25936 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25937 $as_echo_n "checking alignment of int... " >&6; }
25938 if test "${ac_cv_alignof_int+set}" = set; then
25939 $as_echo_n "(cached) " >&6
25941 if test "$cross_compiling" = yes; then
25942 # Depending upon the size, compute the lo and hi bounds.
25943 cat >conftest.$ac_ext <<_ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25953 typedef struct { char x; int y; } ac__type_alignof_;
25957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25964 rm -f conftest.$ac_objext
25965 if { (ac_try="$ac_compile"
25966 case "(($ac_try" in
25967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968 *) ac_try_echo=$ac_try;;
25970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25971 $as_echo "$ac_try_echo") >&5
25972 (eval "$ac_compile") 2>conftest.er1
25974 grep -v '^ *+' conftest.er1 >conftest.err
25976 cat conftest.err >&5
25977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && {
25979 test -z "$ac_c_werror_flag" ||
25980 test ! -s conftest.err
25981 } && test -s conftest.$ac_objext; then
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 $ac_includes_default
25992 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25994 typedef struct { char x; int y; } ac__type_alignof_;
25998 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26005 rm -f conftest.$ac_objext
26006 if { (ac_try="$ac_compile"
26007 case "(($ac_try" in
26008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009 *) ac_try_echo=$ac_try;;
26011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26012 $as_echo "$ac_try_echo") >&5
26013 (eval "$ac_compile") 2>conftest.er1
26015 grep -v '^ *+' conftest.er1 >conftest.err
26017 cat conftest.err >&5
26018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } && {
26020 test -z "$ac_c_werror_flag" ||
26021 test ! -s conftest.err
26022 } && test -s conftest.$ac_objext; then
26023 ac_hi=$ac_mid; break
26025 $as_echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 ac_lo=`expr $ac_mid + 1`
26029 if test $ac_lo -le $ac_mid; then
26033 ac_mid=`expr 2 '*' $ac_mid + 1`
26036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26039 $as_echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26048 $ac_includes_default
26050 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26052 typedef struct { char x; int y; } ac__type_alignof_;
26056 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26063 rm -f conftest.$ac_objext
26064 if { (ac_try="$ac_compile"
26065 case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26070 $as_echo "$ac_try_echo") >&5
26071 (eval "$ac_compile") 2>conftest.er1
26073 grep -v '^ *+' conftest.er1 >conftest.err
26075 cat conftest.err >&5
26076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); } && {
26078 test -z "$ac_c_werror_flag" ||
26079 test ! -s conftest.err
26080 } && test -s conftest.$ac_objext; then
26083 cat >conftest.$ac_ext <<_ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h. */
26089 $ac_includes_default
26091 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26093 typedef struct { char x; int y; } ac__type_alignof_;
26097 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26104 rm -f conftest.$ac_objext
26105 if { (ac_try="$ac_compile"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26111 $as_echo "$ac_try_echo") >&5
26112 (eval "$ac_compile") 2>conftest.er1
26114 grep -v '^ *+' conftest.er1 >conftest.err
26116 cat conftest.err >&5
26117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } && {
26119 test -z "$ac_c_werror_flag" ||
26120 test ! -s conftest.err
26121 } && test -s conftest.$ac_objext; then
26122 ac_lo=$ac_mid; break
26124 $as_echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.$ac_ext >&5
26127 ac_hi=`expr '(' $ac_mid ')' - 1`
26128 if test $ac_mid -le $ac_hi; then
26132 ac_mid=`expr 2 '*' $ac_mid`
26135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26138 $as_echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26148 # Binary search between lo and hi bounds.
26149 while test "x$ac_lo" != "x$ac_hi"; do
26150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26151 cat >conftest.$ac_ext <<_ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 $ac_includes_default
26159 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26161 typedef struct { char x; int y; } ac__type_alignof_;
26165 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26172 rm -f conftest.$ac_objext
26173 if { (ac_try="$ac_compile"
26174 case "(($ac_try" in
26175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176 *) ac_try_echo=$ac_try;;
26178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26179 $as_echo "$ac_try_echo") >&5
26180 (eval "$ac_compile") 2>conftest.er1
26182 grep -v '^ *+' conftest.er1 >conftest.err
26184 cat conftest.err >&5
26185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } && {
26187 test -z "$ac_c_werror_flag" ||
26188 test ! -s conftest.err
26189 } && test -s conftest.$ac_objext; then
26192 $as_echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26195 ac_lo=`expr '(' $ac_mid ')' + 1`
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201 ?*) ac_cv_alignof_int=$ac_lo;;
26202 '') if test "$ac_cv_type_int" = yes; then
26203 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26205 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26206 See \`config.log' for more details." >&5
26207 $as_echo "$as_me: error: cannot compute alignment of int
26208 See \`config.log' for more details." >&2;}
26209 { (exit 77); exit 77; }; }; }
26211 ac_cv_alignof_int=0
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 $ac_includes_default
26223 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26225 typedef struct { char x; int y; } ac__type_alignof_;
26226 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26227 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26229 #include <stdlib.h>
26234 FILE *f = fopen ("conftest.val", "w");
26237 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26239 long int i = longval ();
26240 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26242 fprintf (f, "%ld", i);
26246 unsigned long int i = ulongval ();
26247 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26249 fprintf (f, "%lu", i);
26251 /* Do not output a trailing newline, as this causes \r\n confusion
26252 on some platforms. */
26253 return ferror (f) || fclose (f) != 0;
26259 rm -f conftest$ac_exeext
26260 if { (ac_try="$ac_link"
26261 case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26266 $as_echo "$ac_try_echo") >&5
26267 (eval "$ac_link") 2>&5
26269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26271 { (case "(($ac_try" in
26272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273 *) ac_try_echo=$ac_try;;
26275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26276 $as_echo "$ac_try_echo") >&5
26277 (eval "$ac_try") 2>&5
26279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; }; then
26281 ac_cv_alignof_int=`cat conftest.val`
26283 $as_echo "$as_me: program exited with status $ac_status" >&5
26284 $as_echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ( exit $ac_status )
26288 if test "$ac_cv_type_int" = yes; then
26289 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26291 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26292 See \`config.log' for more details." >&5
26293 $as_echo "$as_me: error: cannot compute alignment of int
26294 See \`config.log' for more details." >&2;}
26295 { (exit 77); exit 77; }; }; }
26297 ac_cv_alignof_int=0
26300 rm -rf conftest.dSYM
26301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26305 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26306 $as_echo "$ac_cv_alignof_int" >&6; }
26310 cat >>confdefs.h <<_ACEOF
26311 #define ALIGNOF_INT $ac_cv_alignof_int
26315 # The cast to long int works around a bug in the HP C Compiler,
26316 # see AC_CHECK_SIZEOF for more information.
26317 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26318 $as_echo_n "checking alignment of long... " >&6; }
26319 if test "${ac_cv_alignof_long+set}" = set; then
26320 $as_echo_n "(cached) " >&6
26322 if test "$cross_compiling" = yes; then
26323 # Depending upon the size, compute the lo and hi bounds.
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26330 $ac_includes_default
26332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26334 typedef struct { char x; long y; } ac__type_alignof_;
26338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26345 rm -f conftest.$ac_objext
26346 if { (ac_try="$ac_compile"
26347 case "(($ac_try" in
26348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349 *) ac_try_echo=$ac_try;;
26351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26352 $as_echo "$ac_try_echo") >&5
26353 (eval "$ac_compile") 2>conftest.er1
26355 grep -v '^ *+' conftest.er1 >conftest.err
26357 cat conftest.err >&5
26358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } && {
26360 test -z "$ac_c_werror_flag" ||
26361 test ! -s conftest.err
26362 } && test -s conftest.$ac_objext; then
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 $ac_includes_default
26373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26375 typedef struct { char x; long y; } ac__type_alignof_;
26379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26393 $as_echo "$ac_try_echo") >&5
26394 (eval "$ac_compile") 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } && {
26401 test -z "$ac_c_werror_flag" ||
26402 test ! -s conftest.err
26403 } && test -s conftest.$ac_objext; then
26404 ac_hi=$ac_mid; break
26406 $as_echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_lo=`expr $ac_mid + 1`
26410 if test $ac_lo -le $ac_mid; then
26414 ac_mid=`expr 2 '*' $ac_mid + 1`
26417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420 $as_echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26429 $ac_includes_default
26431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26433 typedef struct { char x; long y; } ac__type_alignof_;
26437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26444 rm -f conftest.$ac_objext
26445 if { (ac_try="$ac_compile"
26446 case "(($ac_try" in
26447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448 *) ac_try_echo=$ac_try;;
26450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26451 $as_echo "$ac_try_echo") >&5
26452 (eval "$ac_compile") 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest.$ac_objext; then
26464 cat >conftest.$ac_ext <<_ACEOF
26467 cat confdefs.h >>conftest.$ac_ext
26468 cat >>conftest.$ac_ext <<_ACEOF
26469 /* end confdefs.h. */
26470 $ac_includes_default
26472 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26474 typedef struct { char x; long y; } ac__type_alignof_;
26478 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26485 rm -f conftest.$ac_objext
26486 if { (ac_try="$ac_compile"
26487 case "(($ac_try" in
26488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489 *) ac_try_echo=$ac_try;;
26491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26492 $as_echo "$ac_try_echo") >&5
26493 (eval "$ac_compile") 2>conftest.er1
26495 grep -v '^ *+' conftest.er1 >conftest.err
26497 cat conftest.err >&5
26498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } && {
26500 test -z "$ac_c_werror_flag" ||
26501 test ! -s conftest.err
26502 } && test -s conftest.$ac_objext; then
26503 ac_lo=$ac_mid; break
26505 $as_echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26508 ac_hi=`expr '(' $ac_mid ')' - 1`
26509 if test $ac_mid -le $ac_hi; then
26513 ac_mid=`expr 2 '*' $ac_mid`
26516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 $as_echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 # Binary search between lo and hi bounds.
26530 while test "x$ac_lo" != "x$ac_hi"; do
26531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26532 cat >conftest.$ac_ext <<_ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26538 $ac_includes_default
26540 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26542 typedef struct { char x; long y; } ac__type_alignof_;
26546 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26553 rm -f conftest.$ac_objext
26554 if { (ac_try="$ac_compile"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26560 $as_echo "$ac_try_echo") >&5
26561 (eval "$ac_compile") 2>conftest.er1
26563 grep -v '^ *+' conftest.er1 >conftest.err
26565 cat conftest.err >&5
26566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } && {
26568 test -z "$ac_c_werror_flag" ||
26569 test ! -s conftest.err
26570 } && test -s conftest.$ac_objext; then
26573 $as_echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 ac_lo=`expr '(' $ac_mid ')' + 1`
26579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26582 ?*) ac_cv_alignof_long=$ac_lo;;
26583 '') if test "$ac_cv_type_long" = yes; then
26584 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26586 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26587 See \`config.log' for more details." >&5
26588 $as_echo "$as_me: error: cannot compute alignment of long
26589 See \`config.log' for more details." >&2;}
26590 { (exit 77); exit 77; }; }; }
26592 ac_cv_alignof_long=0
26596 cat >conftest.$ac_ext <<_ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h. */
26602 $ac_includes_default
26604 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26606 typedef struct { char x; long y; } ac__type_alignof_;
26607 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26608 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26610 #include <stdlib.h>
26615 FILE *f = fopen ("conftest.val", "w");
26618 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26620 long int i = longval ();
26621 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26623 fprintf (f, "%ld", i);
26627 unsigned long int i = ulongval ();
26628 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26630 fprintf (f, "%lu", i);
26632 /* Do not output a trailing newline, as this causes \r\n confusion
26633 on some platforms. */
26634 return ferror (f) || fclose (f) != 0;
26640 rm -f conftest$ac_exeext
26641 if { (ac_try="$ac_link"
26642 case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647 $as_echo "$ac_try_echo") >&5
26648 (eval "$ac_link") 2>&5
26650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26652 { (case "(($ac_try" in
26653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654 *) ac_try_echo=$ac_try;;
26656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26657 $as_echo "$ac_try_echo") >&5
26658 (eval "$ac_try") 2>&5
26660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; }; then
26662 ac_cv_alignof_long=`cat conftest.val`
26664 $as_echo "$as_me: program exited with status $ac_status" >&5
26665 $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 ( exit $ac_status )
26669 if test "$ac_cv_type_long" = yes; then
26670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26672 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26673 See \`config.log' for more details." >&5
26674 $as_echo "$as_me: error: cannot compute alignment of long
26675 See \`config.log' for more details." >&2;}
26676 { (exit 77); exit 77; }; }; }
26678 ac_cv_alignof_long=0
26681 rm -rf conftest.dSYM
26682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26686 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26687 $as_echo "$ac_cv_alignof_long" >&6; }
26691 cat >>confdefs.h <<_ACEOF
26692 #define ALIGNOF_LONG $ac_cv_alignof_long
26696 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26697 # The cast to long int works around a bug in the HP C Compiler,
26698 # see AC_CHECK_SIZEOF for more information.
26699 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26700 $as_echo_n "checking alignment of long long int... " >&6; }
26701 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26702 $as_echo_n "(cached) " >&6
26704 if test "$cross_compiling" = yes; then
26705 # Depending upon the size, compute the lo and hi bounds.
26706 cat >conftest.$ac_ext <<_ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h. */
26712 $ac_includes_default
26714 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26716 typedef struct { char x; long long int y; } ac__type_alignof_;
26720 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26727 rm -f conftest.$ac_objext
26728 if { (ac_try="$ac_compile"
26729 case "(($ac_try" in
26730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731 *) ac_try_echo=$ac_try;;
26733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26734 $as_echo "$ac_try_echo") >&5
26735 (eval "$ac_compile") 2>conftest.er1
26737 grep -v '^ *+' conftest.er1 >conftest.err
26739 cat conftest.err >&5
26740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } && {
26742 test -z "$ac_c_werror_flag" ||
26743 test ! -s conftest.err
26744 } && test -s conftest.$ac_objext; then
26747 cat >conftest.$ac_ext <<_ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h. */
26753 $ac_includes_default
26755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26757 typedef struct { char x; long long int y; } ac__type_alignof_;
26761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26768 rm -f conftest.$ac_objext
26769 if { (ac_try="$ac_compile"
26770 case "(($ac_try" in
26771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26772 *) ac_try_echo=$ac_try;;
26774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26775 $as_echo "$ac_try_echo") >&5
26776 (eval "$ac_compile") 2>conftest.er1
26778 grep -v '^ *+' conftest.er1 >conftest.err
26780 cat conftest.err >&5
26781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } && {
26783 test -z "$ac_c_werror_flag" ||
26784 test ! -s conftest.err
26785 } && test -s conftest.$ac_objext; then
26786 ac_hi=$ac_mid; break
26788 $as_echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26791 ac_lo=`expr $ac_mid + 1`
26792 if test $ac_lo -le $ac_mid; then
26796 ac_mid=`expr 2 '*' $ac_mid + 1`
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 $as_echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 cat >conftest.$ac_ext <<_ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h. */
26811 $ac_includes_default
26813 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26815 typedef struct { char x; long long int y; } ac__type_alignof_;
26819 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26833 $as_echo "$ac_try_echo") >&5
26834 (eval "$ac_compile") 2>conftest.er1
26836 grep -v '^ *+' conftest.er1 >conftest.err
26838 cat conftest.err >&5
26839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); } && {
26841 test -z "$ac_c_werror_flag" ||
26842 test ! -s conftest.err
26843 } && test -s conftest.$ac_objext; then
26846 cat >conftest.$ac_ext <<_ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26852 $ac_includes_default
26854 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26856 typedef struct { char x; long long int y; } ac__type_alignof_;
26860 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26867 rm -f conftest.$ac_objext
26868 if { (ac_try="$ac_compile"
26869 case "(($ac_try" in
26870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871 *) ac_try_echo=$ac_try;;
26873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26874 $as_echo "$ac_try_echo") >&5
26875 (eval "$ac_compile") 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } && {
26882 test -z "$ac_c_werror_flag" ||
26883 test ! -s conftest.err
26884 } && test -s conftest.$ac_objext; then
26885 ac_lo=$ac_mid; break
26887 $as_echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26890 ac_hi=`expr '(' $ac_mid ')' - 1`
26891 if test $ac_mid -le $ac_hi; then
26895 ac_mid=`expr 2 '*' $ac_mid`
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 $as_echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 # Binary search between lo and hi bounds.
26912 while test "x$ac_lo" != "x$ac_hi"; do
26913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26922 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26924 typedef struct { char x; long long int y; } ac__type_alignof_;
26928 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26935 rm -f conftest.$ac_objext
26936 if { (ac_try="$ac_compile"
26937 case "(($ac_try" in
26938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939 *) ac_try_echo=$ac_try;;
26941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26942 $as_echo "$ac_try_echo") >&5
26943 (eval "$ac_compile") 2>conftest.er1
26945 grep -v '^ *+' conftest.er1 >conftest.err
26947 cat conftest.err >&5
26948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } && {
26950 test -z "$ac_c_werror_flag" ||
26951 test ! -s conftest.err
26952 } && test -s conftest.$ac_objext; then
26955 $as_echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ac_lo=`expr '(' $ac_mid ')' + 1`
26961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26965 '') if test "$ac_cv_type_long_long_int" = yes; then
26966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26968 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26969 See \`config.log' for more details." >&5
26970 $as_echo "$as_me: error: cannot compute alignment of long long int
26971 See \`config.log' for more details." >&2;}
26972 { (exit 77); exit 77; }; }; }
26974 ac_cv_alignof_long_long_int=0
26978 cat >conftest.$ac_ext <<_ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h. */
26984 $ac_includes_default
26986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26988 typedef struct { char x; long long int y; } ac__type_alignof_;
26989 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26990 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26992 #include <stdlib.h>
26997 FILE *f = fopen ("conftest.val", "w");
27000 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27002 long int i = longval ();
27003 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27005 fprintf (f, "%ld", i);
27009 unsigned long int i = ulongval ();
27010 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27012 fprintf (f, "%lu", i);
27014 /* Do not output a trailing newline, as this causes \r\n confusion
27015 on some platforms. */
27016 return ferror (f) || fclose (f) != 0;
27022 rm -f conftest$ac_exeext
27023 if { (ac_try="$ac_link"
27024 case "(($ac_try" in
27025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27026 *) ac_try_echo=$ac_try;;
27028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27029 $as_echo "$ac_try_echo") >&5
27030 (eval "$ac_link") 2>&5
27032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27034 { (case "(($ac_try" in
27035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036 *) ac_try_echo=$ac_try;;
27038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27039 $as_echo "$ac_try_echo") >&5
27040 (eval "$ac_try") 2>&5
27042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 ac_cv_alignof_long_long_int=`cat conftest.val`
27046 $as_echo "$as_me: program exited with status $ac_status" >&5
27047 $as_echo "$as_me: failed program was:" >&5
27048 sed 's/^/| /' conftest.$ac_ext >&5
27050 ( exit $ac_status )
27051 if test "$ac_cv_type_long_long_int" = yes; then
27052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27054 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27055 See \`config.log' for more details." >&5
27056 $as_echo "$as_me: error: cannot compute alignment of long long int
27057 See \`config.log' for more details." >&2;}
27058 { (exit 77); exit 77; }; }; }
27060 ac_cv_alignof_long_long_int=0
27063 rm -rf conftest.dSYM
27064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27068 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27069 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27073 cat >>confdefs.h <<_ACEOF
27074 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27079 # The cast to long int works around a bug in the HP C Compiler,
27080 # see AC_CHECK_SIZEOF for more information.
27081 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27082 $as_echo_n "checking alignment of double... " >&6; }
27083 if test "${ac_cv_alignof_double+set}" = set; then
27084 $as_echo_n "(cached) " >&6
27086 if test "$cross_compiling" = yes; then
27087 # Depending upon the size, compute the lo and hi bounds.
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 $ac_includes_default
27096 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27098 typedef struct { char x; double y; } ac__type_alignof_;
27102 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27109 rm -f conftest.$ac_objext
27110 if { (ac_try="$ac_compile"
27111 case "(($ac_try" in
27112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27113 *) ac_try_echo=$ac_try;;
27115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27116 $as_echo "$ac_try_echo") >&5
27117 (eval "$ac_compile") 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } && {
27124 test -z "$ac_c_werror_flag" ||
27125 test ! -s conftest.err
27126 } && test -s conftest.$ac_objext; then
27129 cat >conftest.$ac_ext <<_ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h. */
27135 $ac_includes_default
27137 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27139 typedef struct { char x; double y; } ac__type_alignof_;
27143 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27150 rm -f conftest.$ac_objext
27151 if { (ac_try="$ac_compile"
27152 case "(($ac_try" in
27153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27154 *) ac_try_echo=$ac_try;;
27156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27157 $as_echo "$ac_try_echo") >&5
27158 (eval "$ac_compile") 2>conftest.er1
27160 grep -v '^ *+' conftest.er1 >conftest.err
27162 cat conftest.err >&5
27163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); } && {
27165 test -z "$ac_c_werror_flag" ||
27166 test ! -s conftest.err
27167 } && test -s conftest.$ac_objext; then
27168 ac_hi=$ac_mid; break
27170 $as_echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27173 ac_lo=`expr $ac_mid + 1`
27174 if test $ac_lo -le $ac_mid; then
27178 ac_mid=`expr 2 '*' $ac_mid + 1`
27181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27184 $as_echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27187 cat >conftest.$ac_ext <<_ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h. */
27193 $ac_includes_default
27195 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27197 typedef struct { char x; double y; } ac__type_alignof_;
27201 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27208 rm -f conftest.$ac_objext
27209 if { (ac_try="$ac_compile"
27210 case "(($ac_try" in
27211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27212 *) ac_try_echo=$ac_try;;
27214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27215 $as_echo "$ac_try_echo") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27218 grep -v '^ *+' conftest.er1 >conftest.err
27220 cat conftest.err >&5
27221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } && {
27223 test -z "$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27225 } && test -s conftest.$ac_objext; then
27228 cat >conftest.$ac_ext <<_ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27234 $ac_includes_default
27236 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27238 typedef struct { char x; double y; } ac__type_alignof_;
27242 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27249 rm -f conftest.$ac_objext
27250 if { (ac_try="$ac_compile"
27251 case "(($ac_try" in
27252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253 *) ac_try_echo=$ac_try;;
27255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27256 $as_echo "$ac_try_echo") >&5
27257 (eval "$ac_compile") 2>conftest.er1
27259 grep -v '^ *+' conftest.er1 >conftest.err
27261 cat conftest.err >&5
27262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest.$ac_objext; then
27267 ac_lo=$ac_mid; break
27269 $as_echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27272 ac_hi=`expr '(' $ac_mid ')' - 1`
27273 if test $ac_mid -le $ac_hi; then
27277 ac_mid=`expr 2 '*' $ac_mid`
27280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27283 $as_echo "$as_me: failed program was:" >&5
27284 sed 's/^/| /' conftest.$ac_ext >&5
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293 # Binary search between lo and hi bounds.
27294 while test "x$ac_lo" != "x$ac_hi"; do
27295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27296 cat >conftest.$ac_ext <<_ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h. */
27302 $ac_includes_default
27304 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27306 typedef struct { char x; double y; } ac__type_alignof_;
27310 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27317 rm -f conftest.$ac_objext
27318 if { (ac_try="$ac_compile"
27319 case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324 $as_echo "$ac_try_echo") >&5
27325 (eval "$ac_compile") 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } && {
27332 test -z "$ac_c_werror_flag" ||
27333 test ! -s conftest.err
27334 } && test -s conftest.$ac_objext; then
27337 $as_echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 ac_lo=`expr '(' $ac_mid ')' + 1`
27343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27346 ?*) ac_cv_alignof_double=$ac_lo;;
27347 '') if test "$ac_cv_type_double" = yes; then
27348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27350 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27351 See \`config.log' for more details." >&5
27352 $as_echo "$as_me: error: cannot compute alignment of double
27353 See \`config.log' for more details." >&2;}
27354 { (exit 77); exit 77; }; }; }
27356 ac_cv_alignof_double=0
27360 cat >conftest.$ac_ext <<_ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h. */
27366 $ac_includes_default
27368 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27370 typedef struct { char x; double y; } ac__type_alignof_;
27371 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27372 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27374 #include <stdlib.h>
27379 FILE *f = fopen ("conftest.val", "w");
27382 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27384 long int i = longval ();
27385 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27387 fprintf (f, "%ld", i);
27391 unsigned long int i = ulongval ();
27392 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27394 fprintf (f, "%lu", i);
27396 /* Do not output a trailing newline, as this causes \r\n confusion
27397 on some platforms. */
27398 return ferror (f) || fclose (f) != 0;
27404 rm -f conftest$ac_exeext
27405 if { (ac_try="$ac_link"
27406 case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27411 $as_echo "$ac_try_echo") >&5
27412 (eval "$ac_link") 2>&5
27414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27421 $as_echo "$ac_try_echo") >&5
27422 (eval "$ac_try") 2>&5
27424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 ac_cv_alignof_double=`cat conftest.val`
27428 $as_echo "$as_me: program exited with status $ac_status" >&5
27429 $as_echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 ( exit $ac_status )
27433 if test "$ac_cv_type_double" = yes; then
27434 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27436 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27437 See \`config.log' for more details." >&5
27438 $as_echo "$as_me: error: cannot compute alignment of double
27439 See \`config.log' for more details." >&2;}
27440 { (exit 77); exit 77; }; }; }
27442 ac_cv_alignof_double=0
27445 rm -rf conftest.dSYM
27446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27450 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27451 $as_echo "$ac_cv_alignof_double" >&6; }
27455 cat >>confdefs.h <<_ACEOF
27456 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27461 # Compute maximum alignment of any basic type.
27462 # We assume long's alignment is at least as strong as char, short, or int;
27463 # but we must check long long (if it exists) and double.
27465 MAX_ALIGNOF=$ac_cv_alignof_long
27466 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27467 MAX_ALIGNOF=$ac_cv_alignof_double
27469 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27470 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27473 cat >>confdefs.h <<_ACEOF
27474 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27479 # Some platforms predefine the types int8, int16, etc. Only check
27480 # a (hopefully) representative subset.
27481 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27482 $as_echo_n "checking for int8... " >&6; }
27483 if test "${ac_cv_type_int8+set}" = set; then
27484 $as_echo_n "(cached) " >&6
27487 cat >conftest.$ac_ext <<_ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h. */
27494 #ifdef HAVE_SUPPORTDEFS_H
27495 #include <SupportDefs.h>
27507 rm -f conftest.$ac_objext
27508 if { (ac_try="$ac_compile"
27509 case "(($ac_try" in
27510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27511 *) ac_try_echo=$ac_try;;
27513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27514 $as_echo "$ac_try_echo") >&5
27515 (eval "$ac_compile") 2>conftest.er1
27517 grep -v '^ *+' conftest.er1 >conftest.err
27519 cat conftest.err >&5
27520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } && {
27522 test -z "$ac_c_werror_flag" ||
27523 test ! -s conftest.err
27524 } && test -s conftest.$ac_objext; then
27525 cat >conftest.$ac_ext <<_ACEOF
27528 cat confdefs.h >>conftest.$ac_ext
27529 cat >>conftest.$ac_ext <<_ACEOF
27530 /* end confdefs.h. */
27532 #ifdef HAVE_SUPPORTDEFS_H
27533 #include <SupportDefs.h>
27539 if (sizeof ((int8)))
27545 rm -f conftest.$ac_objext
27546 if { (ac_try="$ac_compile"
27547 case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27552 $as_echo "$ac_try_echo") >&5
27553 (eval "$ac_compile") 2>conftest.er1
27555 grep -v '^ *+' conftest.er1 >conftest.err
27557 cat conftest.err >&5
27558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } && {
27560 test -z "$ac_c_werror_flag" ||
27561 test ! -s conftest.err
27562 } && test -s conftest.$ac_objext; then
27565 $as_echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27568 ac_cv_type_int8=yes
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27573 $as_echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27581 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27582 $as_echo "$ac_cv_type_int8" >&6; }
27583 if test "x$ac_cv_type_int8" = x""yes; then
27585 cat >>confdefs.h <<_ACEOF
27586 #define HAVE_INT8 1
27591 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27592 $as_echo_n "checking for uint8... " >&6; }
27593 if test "${ac_cv_type_uint8+set}" = set; then
27594 $as_echo_n "(cached) " >&6
27596 ac_cv_type_uint8=no
27597 cat >conftest.$ac_ext <<_ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27604 #ifdef HAVE_SUPPORTDEFS_H
27605 #include <SupportDefs.h>
27611 if (sizeof (uint8))
27617 rm -f conftest.$ac_objext
27618 if { (ac_try="$ac_compile"
27619 case "(($ac_try" in
27620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621 *) ac_try_echo=$ac_try;;
27623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27624 $as_echo "$ac_try_echo") >&5
27625 (eval "$ac_compile") 2>conftest.er1
27627 grep -v '^ *+' conftest.er1 >conftest.err
27629 cat conftest.err >&5
27630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); } && {
27632 test -z "$ac_c_werror_flag" ||
27633 test ! -s conftest.err
27634 } && test -s conftest.$ac_objext; then
27635 cat >conftest.$ac_ext <<_ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27642 #ifdef HAVE_SUPPORTDEFS_H
27643 #include <SupportDefs.h>
27649 if (sizeof ((uint8)))
27655 rm -f conftest.$ac_objext
27656 if { (ac_try="$ac_compile"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27662 $as_echo "$ac_try_echo") >&5
27663 (eval "$ac_compile") 2>conftest.er1
27665 grep -v '^ *+' conftest.er1 >conftest.err
27667 cat conftest.err >&5
27668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); } && {
27670 test -z "$ac_c_werror_flag" ||
27671 test ! -s conftest.err
27672 } && test -s conftest.$ac_objext; then
27675 $as_echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 ac_cv_type_uint8=yes
27681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27683 $as_echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27692 $as_echo "$ac_cv_type_uint8" >&6; }
27693 if test "x$ac_cv_type_uint8" = x""yes; then
27695 cat >>confdefs.h <<_ACEOF
27696 #define HAVE_UINT8 1
27701 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27702 $as_echo_n "checking for int64... " >&6; }
27703 if test "${ac_cv_type_int64+set}" = set; then
27704 $as_echo_n "(cached) " >&6
27706 ac_cv_type_int64=no
27707 cat >conftest.$ac_ext <<_ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27714 #ifdef HAVE_SUPPORTDEFS_H
27715 #include <SupportDefs.h>
27721 if (sizeof (int64))
27727 rm -f conftest.$ac_objext
27728 if { (ac_try="$ac_compile"
27729 case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27734 $as_echo "$ac_try_echo") >&5
27735 (eval "$ac_compile") 2>conftest.er1
27737 grep -v '^ *+' conftest.er1 >conftest.err
27739 cat conftest.err >&5
27740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } && {
27742 test -z "$ac_c_werror_flag" ||
27743 test ! -s conftest.err
27744 } && test -s conftest.$ac_objext; then
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27752 #ifdef HAVE_SUPPORTDEFS_H
27753 #include <SupportDefs.h>
27759 if (sizeof ((int64)))
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27772 $as_echo "$ac_try_echo") >&5
27773 (eval "$ac_compile") 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } && {
27780 test -z "$ac_c_werror_flag" ||
27781 test ! -s conftest.err
27782 } && test -s conftest.$ac_objext; then
27785 $as_echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27788 ac_cv_type_int64=yes
27791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27793 $as_echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27802 $as_echo "$ac_cv_type_int64" >&6; }
27803 if test "x$ac_cv_type_int64" = x""yes; then
27805 cat >>confdefs.h <<_ACEOF
27806 #define HAVE_INT64 1
27811 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27812 $as_echo_n "checking for uint64... " >&6; }
27813 if test "${ac_cv_type_uint64+set}" = set; then
27814 $as_echo_n "(cached) " >&6
27816 ac_cv_type_uint64=no
27817 cat >conftest.$ac_ext <<_ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h. */
27824 #ifdef HAVE_SUPPORTDEFS_H
27825 #include <SupportDefs.h>
27831 if (sizeof (uint64))
27837 rm -f conftest.$ac_objext
27838 if { (ac_try="$ac_compile"
27839 case "(($ac_try" in
27840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27841 *) ac_try_echo=$ac_try;;
27843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27844 $as_echo "$ac_try_echo") >&5
27845 (eval "$ac_compile") 2>conftest.er1
27847 grep -v '^ *+' conftest.er1 >conftest.err
27849 cat conftest.err >&5
27850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); } && {
27852 test -z "$ac_c_werror_flag" ||
27853 test ! -s conftest.err
27854 } && test -s conftest.$ac_objext; then
27855 cat >conftest.$ac_ext <<_ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h. */
27862 #ifdef HAVE_SUPPORTDEFS_H
27863 #include <SupportDefs.h>
27869 if (sizeof ((uint64)))
27875 rm -f conftest.$ac_objext
27876 if { (ac_try="$ac_compile"
27877 case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27882 $as_echo "$ac_try_echo") >&5
27883 (eval "$ac_compile") 2>conftest.er1
27885 grep -v '^ *+' conftest.er1 >conftest.err
27887 cat conftest.err >&5
27888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); } && {
27890 test -z "$ac_c_werror_flag" ||
27891 test ! -s conftest.err
27892 } && test -s conftest.$ac_objext; then
27895 $as_echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 ac_cv_type_uint64=yes
27901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27903 $as_echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27912 $as_echo "$ac_cv_type_uint64" >&6; }
27913 if test "x$ac_cv_type_uint64" = x""yes; then
27915 cat >>confdefs.h <<_ACEOF
27916 #define HAVE_UINT64 1
27923 # We also check for sig_atomic_t, which *should* be defined per ANSI
27924 # C, but is missing on some old platforms.
27925 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27926 $as_echo_n "checking for sig_atomic_t... " >&6; }
27927 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27928 $as_echo_n "(cached) " >&6
27930 ac_cv_type_sig_atomic_t=no
27931 cat >conftest.$ac_ext <<_ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27937 #include <signal.h>
27942 if (sizeof (sig_atomic_t))
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956 (eval "$ac_compile") 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } && {
27963 test -z "$ac_c_werror_flag" ||
27964 test ! -s conftest.err
27965 } && test -s conftest.$ac_objext; then
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27972 #include <signal.h>
27977 if (sizeof ((sig_atomic_t)))
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27990 $as_echo "$ac_try_echo") >&5
27991 (eval "$ac_compile") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } && {
27998 test -z "$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 } && test -s conftest.$ac_objext; then
28003 $as_echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 ac_cv_type_sig_atomic_t=yes
28009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011 $as_echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28020 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28021 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28023 cat >>confdefs.h <<_ACEOF
28024 #define HAVE_SIG_ATOMIC_T 1
28032 if test "$PORTNAME" != "win32"
28034 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28035 $as_echo_n "checking for POSIX signal interface... " >&6; }
28036 if test "${pgac_cv_func_posix_signals+set}" = set; then
28037 $as_echo_n "(cached) " >&6
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 #include <signal.h>
28050 struct sigaction act, oact;
28051 sigemptyset(&act.sa_mask);
28052 act.sa_flags = SA_RESTART;
28053 sigaction(0, &act, &oact);
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28065 $as_echo "$ac_try_echo") >&5
28066 (eval "$ac_link") 2>conftest.er1
28068 grep -v '^ *+' conftest.er1 >conftest.err
28070 cat conftest.err >&5
28071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } && {
28073 test -z "$ac_c_werror_flag" ||
28074 test ! -s conftest.err
28075 } && test -s conftest$ac_exeext && {
28076 test "$cross_compiling" = yes ||
28077 $as_test_x conftest$ac_exeext
28079 pgac_cv_func_posix_signals=yes
28081 $as_echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084 pgac_cv_func_posix_signals=no
28087 rm -rf conftest.dSYM
28088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28089 conftest$ac_exeext conftest.$ac_ext
28091 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28092 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28093 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28095 cat >>confdefs.h <<\_ACEOF
28096 #define HAVE_POSIX_SIGNALS /**/
28100 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28102 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28103 { { $as_echo "$as_me:$LINENO: error:
28104 Thread-safety requires POSIX signals, which are not supported by this
28105 operating system; use --disable-thread-safety to disable thread safety." >&5
28106 $as_echo "$as_me: error:
28107 Thread-safety requires POSIX signals, which are not supported by this
28108 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28109 { (exit 1); exit 1; }; }
28113 # SunOS doesn't handle negative byte comparisons properly with +/- return
28114 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28115 $as_echo_n "checking for working memcmp... " >&6; }
28116 if test "${ac_cv_func_memcmp_working+set}" = set; then
28117 $as_echo_n "(cached) " >&6
28119 if test "$cross_compiling" = yes; then
28120 ac_cv_func_memcmp_working=no
28122 cat >conftest.$ac_ext <<_ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 $ac_includes_default
28133 /* Some versions of memcmp are not 8-bit clean. */
28134 char c0 = '\100', c1 = '\200', c2 = '\201';
28135 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28138 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28139 or more and with at least one buffer not starting on a 4-byte boundary.
28140 William Lewis provided this test program. */
28145 for (i = 0; i < 4; i++)
28149 strcpy (a, "--------01111111");
28150 strcpy (b, "--------10000000");
28151 if (memcmp (a, b, 16) >= 0)
28161 rm -f conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28168 $as_echo "$ac_try_echo") >&5
28169 (eval "$ac_link") 2>&5
28171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28178 $as_echo "$ac_try_echo") >&5
28179 (eval "$ac_try") 2>&5
28181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 ac_cv_func_memcmp_working=yes
28185 $as_echo "$as_me: program exited with status $ac_status" >&5
28186 $as_echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 ( exit $ac_status )
28190 ac_cv_func_memcmp_working=no
28192 rm -rf conftest.dSYM
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28198 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28199 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28200 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28201 *" memcmp.$ac_objext "* ) ;;
28202 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28209 # Select semaphore implementation type.
28210 if test "$PORTNAME" != "win32"; then
28211 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28213 cat >>confdefs.h <<\_ACEOF
28214 #define USE_NAMED_POSIX_SEMAPHORES 1
28217 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28219 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28221 cat >>confdefs.h <<\_ACEOF
28222 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28225 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28228 cat >>confdefs.h <<\_ACEOF
28229 #define USE_SYSV_SEMAPHORES 1
28232 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28237 cat >>confdefs.h <<\_ACEOF
28238 #define USE_WIN32_SEMAPHORES 1
28241 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28245 # Select shared-memory implementation type.
28246 if test "$PORTNAME" != "win32"; then
28248 cat >>confdefs.h <<\_ACEOF
28249 #define USE_SYSV_SHARED_MEMORY 1
28252 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28255 cat >>confdefs.h <<\_ACEOF
28256 #define USE_WIN32_SHARED_MEMORY 1
28259 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28262 # Select latch implementation type.
28263 if test "$PORTNAME" != "win32"; then
28264 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28266 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28269 # If not set in template file, set bytes to use libc memset()
28270 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28271 MEMSET_LOOP_LIMIT=1024
28274 cat >>confdefs.h <<_ACEOF
28275 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28280 if test "$enable_nls" = yes ; then
28282 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28283 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28284 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28285 $as_echo_n "(cached) " >&6
28287 ac_func_search_save_LIBS=$LIBS
28288 cat >conftest.$ac_ext <<_ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28301 char bind_textdomain_codeset ();
28305 return bind_textdomain_codeset ();
28310 for ac_lib in '' intl; do
28311 if test -z "$ac_lib"; then
28312 ac_res="none required"
28315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28324 $as_echo "$ac_try_echo") >&5
28325 (eval "$ac_link") 2>conftest.er1
28327 grep -v '^ *+' conftest.er1 >conftest.err
28329 cat conftest.err >&5
28330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } && {
28332 test -z "$ac_c_werror_flag" ||
28333 test ! -s conftest.err
28334 } && test -s conftest$ac_exeext && {
28335 test "$cross_compiling" = yes ||
28336 $as_test_x conftest$ac_exeext
28338 ac_cv_search_bind_textdomain_codeset=$ac_res
28340 $as_echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28346 rm -rf conftest.dSYM
28347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28349 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28353 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28356 ac_cv_search_bind_textdomain_codeset=no
28358 rm conftest.$ac_ext
28359 LIBS=$ac_func_search_save_LIBS
28361 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28362 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28363 ac_res=$ac_cv_search_bind_textdomain_codeset
28364 if test "$ac_res" != no; then
28365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28368 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28369 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28370 { (exit 1); exit 1; }; }
28373 if test "${ac_cv_header_libintl_h+set}" = set; then
28374 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28375 $as_echo_n "checking for libintl.h... " >&6; }
28376 if test "${ac_cv_header_libintl_h+set}" = set; then
28377 $as_echo_n "(cached) " >&6
28379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28380 $as_echo "$ac_cv_header_libintl_h" >&6; }
28382 # Is the header compilable?
28383 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28384 $as_echo_n "checking libintl.h usability... " >&6; }
28385 cat >conftest.$ac_ext <<_ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391 $ac_includes_default
28392 #include <libintl.h>
28394 rm -f conftest.$ac_objext
28395 if { (ac_try="$ac_compile"
28396 case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28401 $as_echo "$ac_try_echo") >&5
28402 (eval "$ac_compile") 2>conftest.er1
28404 grep -v '^ *+' conftest.er1 >conftest.err
28406 cat conftest.err >&5
28407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } && {
28409 test -z "$ac_c_werror_flag" ||
28410 test ! -s conftest.err
28411 } && test -s conftest.$ac_objext; then
28412 ac_header_compiler=yes
28414 $as_echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28417 ac_header_compiler=no
28420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28422 $as_echo "$ac_header_compiler" >&6; }
28424 # Is the header present?
28425 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28426 $as_echo_n "checking libintl.h presence... " >&6; }
28427 cat >conftest.$ac_ext <<_ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h. */
28433 #include <libintl.h>
28435 if { (ac_try="$ac_cpp conftest.$ac_ext"
28436 case "(($ac_try" in
28437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438 *) ac_try_echo=$ac_try;;
28440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28441 $as_echo "$ac_try_echo") >&5
28442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28444 grep -v '^ *+' conftest.er1 >conftest.err
28446 cat conftest.err >&5
28447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } >/dev/null && {
28449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28450 test ! -s conftest.err
28452 ac_header_preproc=yes
28454 $as_echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28457 ac_header_preproc=no
28460 rm -f conftest.err conftest.$ac_ext
28461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28462 $as_echo "$ac_header_preproc" >&6; }
28464 # So? What about this header?
28465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28467 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28468 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28469 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28470 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28471 ac_header_preproc=yes
28474 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28475 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28476 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28477 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28478 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28479 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28480 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28481 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28482 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28483 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28484 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28485 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28487 ## ---------------------------------------- ##
28488 ## Report this to pgsql-bugs@postgresql.org ##
28489 ## ---------------------------------------- ##
28491 ) | sed "s/^/$as_me: WARNING: /" >&2
28494 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28495 $as_echo_n "checking for libintl.h... " >&6; }
28496 if test "${ac_cv_header_libintl_h+set}" = set; then
28497 $as_echo_n "(cached) " >&6
28499 ac_cv_header_libintl_h=$ac_header_preproc
28501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28502 $as_echo "$ac_cv_header_libintl_h" >&6; }
28505 if test "x$ac_cv_header_libintl_h" = x""yes; then
28508 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28509 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28510 { (exit 1); exit 1; }; }
28514 for ac_prog in msgfmt
28516 # Extract the first word of "$ac_prog", so it can be a program name with args.
28517 set dummy $ac_prog; ac_word=$2
28518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28519 $as_echo_n "checking for $ac_word... " >&6; }
28520 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28521 $as_echo_n "(cached) " >&6
28523 if test -n "$MSGFMT"; then
28524 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28527 for as_dir in $PATH
28530 test -z "$as_dir" && as_dir=.
28531 for ac_exec_ext in '' $ac_executable_extensions; do
28532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28533 ac_cv_prog_MSGFMT="$ac_prog"
28534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28543 MSGFMT=$ac_cv_prog_MSGFMT
28544 if test -n "$MSGFMT"; then
28545 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28546 $as_echo "$MSGFMT" >&6; }
28548 { $as_echo "$as_me:$LINENO: result: no" >&5
28549 $as_echo "no" >&6; }
28553 test -n "$MSGFMT" && break
28556 if test -z "$MSGFMT"; then
28557 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28558 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28559 { (exit 1); exit 1; }; }
28561 for ac_prog in msgmerge
28563 # Extract the first word of "$ac_prog", so it can be a program name with args.
28564 set dummy $ac_prog; ac_word=$2
28565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28566 $as_echo_n "checking for $ac_word... " >&6; }
28567 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28568 $as_echo_n "(cached) " >&6
28570 if test -n "$MSGMERGE"; then
28571 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28574 for as_dir in $PATH
28577 test -z "$as_dir" && as_dir=.
28578 for ac_exec_ext in '' $ac_executable_extensions; do
28579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28580 ac_cv_prog_MSGMERGE="$ac_prog"
28581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28590 MSGMERGE=$ac_cv_prog_MSGMERGE
28591 if test -n "$MSGMERGE"; then
28592 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28593 $as_echo "$MSGMERGE" >&6; }
28595 { $as_echo "$as_me:$LINENO: result: no" >&5
28596 $as_echo "no" >&6; }
28600 test -n "$MSGMERGE" && break
28603 for ac_prog in xgettext
28605 # Extract the first word of "$ac_prog", so it can be a program name with args.
28606 set dummy $ac_prog; ac_word=$2
28607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28608 $as_echo_n "checking for $ac_word... " >&6; }
28609 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28610 $as_echo_n "(cached) " >&6
28612 if test -n "$XGETTEXT"; then
28613 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28616 for as_dir in $PATH
28619 test -z "$as_dir" && as_dir=.
28620 for ac_exec_ext in '' $ac_executable_extensions; do
28621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28622 ac_cv_prog_XGETTEXT="$ac_prog"
28623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28632 XGETTEXT=$ac_cv_prog_XGETTEXT
28633 if test -n "$XGETTEXT"; then
28634 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28635 $as_echo "$XGETTEXT" >&6; }
28637 { $as_echo "$as_me:$LINENO: result: no" >&5
28638 $as_echo "no" >&6; }
28642 test -n "$XGETTEXT" && break
28648 # Check for Tcl configuration script tclConfig.sh
28649 if test "$with_tcl" = yes; then
28650 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28652 # Extract the first word of "$ac_prog", so it can be a program name with args.
28653 set dummy $ac_prog; ac_word=$2
28654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28655 $as_echo_n "checking for $ac_word... " >&6; }
28656 if test "${ac_cv_path_TCLSH+set}" = set; then
28657 $as_echo_n "(cached) " >&6
28661 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28665 for as_dir in $PATH
28668 test -z "$as_dir" && as_dir=.
28669 for ac_exec_ext in '' $ac_executable_extensions; do
28670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28671 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28682 TCLSH=$ac_cv_path_TCLSH
28683 if test -n "$TCLSH"; then
28684 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28685 $as_echo "$TCLSH" >&6; }
28687 { $as_echo "$as_me:$LINENO: result: no" >&5
28688 $as_echo "no" >&6; }
28692 test -n "$TCLSH" && break
28695 if test x"$TCLSH" = x""; then
28696 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28697 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28698 { (exit 1); exit 1; }; }
28701 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28702 $as_echo_n "checking for tclConfig.sh... " >&6; }
28703 # Let user override test
28704 if test -z "$TCL_CONFIG_SH"; then
28705 pgac_test_dirs="$with_tclconfig"
28707 set X $pgac_test_dirs; shift
28708 if test $# -eq 0; then
28709 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28710 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28711 { (exit 1); exit 1; }; }
28712 set X `echo 'puts $auto_path' | $TCLSH`; shift
28716 if test -r "$pgac_dir/tclConfig.sh"; then
28717 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28723 if test -z "$TCL_CONFIG_SH"; then
28724 { $as_echo "$as_me:$LINENO: result: no" >&5
28725 $as_echo "no" >&6; }
28726 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28727 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28728 { (exit 1); exit 1; }; }
28730 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28731 $as_echo "$TCL_CONFIG_SH" >&6; }
28737 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28738 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28739 eval TCL_LIBS=\"$TCL_LIBS\"
28740 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28741 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28743 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28744 ac_save_CPPFLAGS=$CPPFLAGS
28745 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28746 if test "${ac_cv_header_tcl_h+set}" = set; then
28747 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28748 $as_echo_n "checking for tcl.h... " >&6; }
28749 if test "${ac_cv_header_tcl_h+set}" = set; then
28750 $as_echo_n "(cached) " >&6
28752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28753 $as_echo "$ac_cv_header_tcl_h" >&6; }
28755 # Is the header compilable?
28756 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28757 $as_echo_n "checking tcl.h usability... " >&6; }
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 $ac_includes_default
28767 rm -f conftest.$ac_objext
28768 if { (ac_try="$ac_compile"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28774 $as_echo "$ac_try_echo") >&5
28775 (eval "$ac_compile") 2>conftest.er1
28777 grep -v '^ *+' conftest.er1 >conftest.err
28779 cat conftest.err >&5
28780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } && {
28782 test -z "$ac_c_werror_flag" ||
28783 test ! -s conftest.err
28784 } && test -s conftest.$ac_objext; then
28785 ac_header_compiler=yes
28787 $as_echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 ac_header_compiler=no
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795 $as_echo "$ac_header_compiler" >&6; }
28797 # Is the header present?
28798 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28799 $as_echo_n "checking tcl.h presence... " >&6; }
28800 cat >conftest.$ac_ext <<_ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28808 if { (ac_try="$ac_cpp conftest.$ac_ext"
28809 case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28814 $as_echo "$ac_try_echo") >&5
28815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28817 grep -v '^ *+' conftest.er1 >conftest.err
28819 cat conftest.err >&5
28820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } >/dev/null && {
28822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28823 test ! -s conftest.err
28825 ac_header_preproc=yes
28827 $as_echo "$as_me: failed program was:" >&5
28828 sed 's/^/| /' conftest.$ac_ext >&5
28830 ac_header_preproc=no
28833 rm -f conftest.err conftest.$ac_ext
28834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28835 $as_echo "$ac_header_preproc" >&6; }
28837 # So? What about this header?
28838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28840 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28841 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28842 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28843 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28844 ac_header_preproc=yes
28847 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28848 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28849 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28850 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28851 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28852 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28853 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28854 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28855 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28856 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28857 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28858 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28860 ## ---------------------------------------- ##
28861 ## Report this to pgsql-bugs@postgresql.org ##
28862 ## ---------------------------------------- ##
28864 ) | sed "s/^/$as_me: WARNING: /" >&2
28867 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28868 $as_echo_n "checking for tcl.h... " >&6; }
28869 if test "${ac_cv_header_tcl_h+set}" = set; then
28870 $as_echo_n "(cached) " >&6
28872 ac_cv_header_tcl_h=$ac_header_preproc
28874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28875 $as_echo "$ac_cv_header_tcl_h" >&6; }
28878 if test "x$ac_cv_header_tcl_h" = x""yes; then
28881 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28882 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28883 { (exit 1); exit 1; }; }
28887 CPPFLAGS=$ac_save_CPPFLAGS
28890 # check for <Python.h>
28891 if test "$with_python" = yes; then
28892 ac_save_CPPFLAGS=$CPPFLAGS
28893 CPPFLAGS="$python_includespec $CPPFLAGS"
28894 if test "${ac_cv_header_Python_h+set}" = set; then
28895 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28896 $as_echo_n "checking for Python.h... " >&6; }
28897 if test "${ac_cv_header_Python_h+set}" = set; then
28898 $as_echo_n "(cached) " >&6
28900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28901 $as_echo "$ac_cv_header_Python_h" >&6; }
28903 # Is the header compilable?
28904 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28905 $as_echo_n "checking Python.h usability... " >&6; }
28906 cat >conftest.$ac_ext <<_ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h. */
28912 $ac_includes_default
28913 #include <Python.h>
28915 rm -f conftest.$ac_objext
28916 if { (ac_try="$ac_compile"
28917 case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28922 $as_echo "$ac_try_echo") >&5
28923 (eval "$ac_compile") 2>conftest.er1
28925 grep -v '^ *+' conftest.er1 >conftest.err
28927 cat conftest.err >&5
28928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); } && {
28930 test -z "$ac_c_werror_flag" ||
28931 test ! -s conftest.err
28932 } && test -s conftest.$ac_objext; then
28933 ac_header_compiler=yes
28935 $as_echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28938 ac_header_compiler=no
28941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28943 $as_echo "$ac_header_compiler" >&6; }
28945 # Is the header present?
28946 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
28947 $as_echo_n "checking Python.h presence... " >&6; }
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28954 #include <Python.h>
28956 if { (ac_try="$ac_cpp conftest.$ac_ext"
28957 case "(($ac_try" in
28958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28959 *) ac_try_echo=$ac_try;;
28961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28962 $as_echo "$ac_try_echo") >&5
28963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } >/dev/null && {
28970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28971 test ! -s conftest.err
28973 ac_header_preproc=yes
28975 $as_echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28978 ac_header_preproc=no
28981 rm -f conftest.err conftest.$ac_ext
28982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28983 $as_echo "$ac_header_preproc" >&6; }
28985 # So? What about this header?
28986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28988 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
28989 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28990 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
28991 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
28992 ac_header_preproc=yes
28995 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
28996 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
28997 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
28998 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
28999 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29000 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29001 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29002 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29003 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29004 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29005 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29006 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29008 ## ---------------------------------------- ##
29009 ## Report this to pgsql-bugs@postgresql.org ##
29010 ## ---------------------------------------- ##
29012 ) | sed "s/^/$as_me: WARNING: /" >&2
29015 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29016 $as_echo_n "checking for Python.h... " >&6; }
29017 if test "${ac_cv_header_Python_h+set}" = set; then
29018 $as_echo_n "(cached) " >&6
29020 ac_cv_header_Python_h=$ac_header_preproc
29022 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29023 $as_echo "$ac_cv_header_Python_h" >&6; }
29026 if test "x$ac_cv_header_Python_h" = x""yes; then
29029 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29030 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29031 { (exit 1); exit 1; }; }
29035 CPPFLAGS=$ac_save_CPPFLAGS
29039 # Check for DocBook and tools
29041 for ac_prog in onsgmls nsgmls
29043 # Extract the first word of "$ac_prog", so it can be a program name with args.
29044 set dummy $ac_prog; ac_word=$2
29045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29046 $as_echo_n "checking for $ac_word... " >&6; }
29047 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29048 $as_echo_n "(cached) " >&6
29050 if test -n "$NSGMLS"; then
29051 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29054 for as_dir in $PATH
29057 test -z "$as_dir" && as_dir=.
29058 for ac_exec_ext in '' $ac_executable_extensions; do
29059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29060 ac_cv_prog_NSGMLS="$ac_prog"
29061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29070 NSGMLS=$ac_cv_prog_NSGMLS
29071 if test -n "$NSGMLS"; then
29072 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29073 $as_echo "$NSGMLS" >&6; }
29075 { $as_echo "$as_me:$LINENO: result: no" >&5
29076 $as_echo "no" >&6; }
29080 test -n "$NSGMLS" && break
29083 for ac_prog in openjade jade
29085 # Extract the first word of "$ac_prog", so it can be a program name with args.
29086 set dummy $ac_prog; ac_word=$2
29087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29088 $as_echo_n "checking for $ac_word... " >&6; }
29089 if test "${ac_cv_prog_JADE+set}" = set; then
29090 $as_echo_n "(cached) " >&6
29092 if test -n "$JADE"; then
29093 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29096 for as_dir in $PATH
29099 test -z "$as_dir" && as_dir=.
29100 for ac_exec_ext in '' $ac_executable_extensions; do
29101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29102 ac_cv_prog_JADE="$ac_prog"
29103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29112 JADE=$ac_cv_prog_JADE
29113 if test -n "$JADE"; then
29114 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29115 $as_echo "$JADE" >&6; }
29117 { $as_echo "$as_me:$LINENO: result: no" >&5
29118 $as_echo "no" >&6; }
29122 test -n "$JADE" && break
29126 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29127 $as_echo_n "checking for DocBook V4.2... " >&6; }
29128 if test "${pgac_cv_check_docbook+set}" = set; then
29129 $as_echo_n "(cached) " >&6
29131 cat >conftest.sgml <<EOF
29132 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29134 <title>test</title>
29136 <title>random</title>
29138 <title>testsect</title>
29145 pgac_cv_check_docbook=no
29147 if test -n "$NSGMLS"; then
29148 $NSGMLS -s conftest.sgml 1>&5 2>&1
29149 if test $? -eq 0; then
29150 pgac_cv_check_docbook=yes
29153 rm -f conftest.sgml
29155 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29156 $as_echo "$pgac_cv_check_docbook" >&6; }
29158 have_docbook=$pgac_cv_check_docbook
29161 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29162 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29163 if test "${pgac_cv_path_stylesheets+set}" = set; then
29164 $as_echo_n "(cached) " >&6
29166 if test -n "$DOCBOOKSTYLE"; then
29167 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29169 for pgac_prefix in /usr /usr/local /opt /sw; do
29170 for pgac_infix in share lib; do
29171 for pgac_postfix in \
29172 sgml/stylesheets/nwalsh-modular \
29173 sgml/stylesheets/docbook \
29174 sgml/stylesheets/dsssl/docbook \
29175 sgml/docbook-dsssl \
29176 sgml/docbook/dsssl/modular \
29177 sgml/docbook/stylesheet/dsssl/modular \
29178 sgml/docbook/dsssl-stylesheets \
29179 sgml/dsssl/docbook-dsssl-nwalsh
29181 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29182 if test -r "$pgac_candidate/html/docbook.dsl" \
29183 && test -r "$pgac_candidate/print/docbook.dsl"
29185 pgac_cv_path_stylesheets=$pgac_candidate
29194 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29196 if test -n "$DOCBOOKSTYLE"; then
29197 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29198 $as_echo "$DOCBOOKSTYLE" >&6; }
29200 { $as_echo "$as_me:$LINENO: result: no" >&5
29201 $as_echo "no" >&6; }
29203 if test -n "$DOCBOOKSTYLE"; then
29204 for ac_prog in collateindex.pl
29206 # Extract the first word of "$ac_prog", so it can be a program name with args.
29207 set dummy $ac_prog; ac_word=$2
29208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29209 $as_echo_n "checking for $ac_word... " >&6; }
29210 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29211 $as_echo_n "(cached) " >&6
29213 case $COLLATEINDEX in
29215 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29219 for as_dir in $DOCBOOKSTYLE/bin $PATH
29222 test -z "$as_dir" && as_dir=.
29223 for ac_exec_ext in '' $ac_executable_extensions; do
29224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29225 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29236 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29237 if test -n "$COLLATEINDEX"; then
29238 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29239 $as_echo "$COLLATEINDEX" >&6; }
29241 { $as_echo "$as_me:$LINENO: result: no" >&5
29242 $as_echo "no" >&6; }
29246 test -n "$COLLATEINDEX" && break
29250 for ac_prog in collateindex.pl
29252 # Extract the first word of "$ac_prog", so it can be a program name with args.
29253 set dummy $ac_prog; ac_word=$2
29254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29255 $as_echo_n "checking for $ac_word... " >&6; }
29256 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29257 $as_echo_n "(cached) " >&6
29259 case $COLLATEINDEX in
29261 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29265 for as_dir in $PATH
29268 test -z "$as_dir" && as_dir=.
29269 for ac_exec_ext in '' $ac_executable_extensions; do
29270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29271 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29282 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29283 if test -n "$COLLATEINDEX"; then
29284 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29285 $as_echo "$COLLATEINDEX" >&6; }
29287 { $as_echo "$as_me:$LINENO: result: no" >&5
29288 $as_echo "no" >&6; }
29292 test -n "$COLLATEINDEX" && break
29296 for ac_prog in xsltproc
29298 # Extract the first word of "$ac_prog", so it can be a program name with args.
29299 set dummy $ac_prog; ac_word=$2
29300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29301 $as_echo_n "checking for $ac_word... " >&6; }
29302 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29303 $as_echo_n "(cached) " >&6
29305 if test -n "$XSLTPROC"; then
29306 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29309 for as_dir in $PATH
29312 test -z "$as_dir" && as_dir=.
29313 for ac_exec_ext in '' $ac_executable_extensions; do
29314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29315 ac_cv_prog_XSLTPROC="$ac_prog"
29316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29325 XSLTPROC=$ac_cv_prog_XSLTPROC
29326 if test -n "$XSLTPROC"; then
29327 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29328 $as_echo "$XSLTPROC" >&6; }
29330 { $as_echo "$as_me:$LINENO: result: no" >&5
29331 $as_echo "no" >&6; }
29335 test -n "$XSLTPROC" && break
29338 for ac_prog in osx sgml2xml sx
29340 # Extract the first word of "$ac_prog", so it can be a program name with args.
29341 set dummy $ac_prog; ac_word=$2
29342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29343 $as_echo_n "checking for $ac_word... " >&6; }
29344 if test "${ac_cv_prog_OSX+set}" = set; then
29345 $as_echo_n "(cached) " >&6
29347 if test -n "$OSX"; then
29348 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29351 for as_dir in $PATH
29354 test -z "$as_dir" && as_dir=.
29355 for ac_exec_ext in '' $ac_executable_extensions; do
29356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29357 ac_cv_prog_OSX="$ac_prog"
29358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29367 OSX=$ac_cv_prog_OSX
29368 if test -n "$OSX"; then
29369 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29370 $as_echo "$OSX" >&6; }
29372 { $as_echo "$as_me:$LINENO: result: no" >&5
29373 $as_echo "no" >&6; }
29377 test -n "$OSX" && break
29383 # We have to run the thread test near the end so we have all our symbols
29384 # defined. Cross compiling throws a warning.
29386 if test "$enable_thread_safety" = yes; then
29387 if test "$PORTNAME" != "win32"
29389 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29390 $as_echo_n "checking thread safety of required library functions... " >&6; }
29394 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29395 LIBS="$LIBS $PTHREAD_LIBS"
29396 if test "$cross_compiling" = yes; then
29397 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29398 $as_echo "maybe" >&6; }
29399 { $as_echo "$as_me:$LINENO: WARNING:
29400 *** Skipping thread test program because of cross-compile build.
29401 *** Run the program in src/test/thread on the target machine.
29403 $as_echo "$as_me: WARNING:
29404 *** Skipping thread test program because of cross-compile build.
29405 *** Run the program in src/test/thread on the target machine.
29408 cat >conftest.$ac_ext <<_ACEOF
29411 cat confdefs.h >>conftest.$ac_ext
29412 cat >>conftest.$ac_ext <<_ACEOF
29413 /* end confdefs.h. */
29414 #include "$srcdir/src/test/thread/thread_test.c"
29416 rm -f conftest$ac_exeext
29417 if { (ac_try="$ac_link"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29423 $as_echo "$ac_try_echo") >&5
29424 (eval "$ac_link") 2>&5
29426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29428 { (case "(($ac_try" in
29429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430 *) ac_try_echo=$ac_try;;
29432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29433 $as_echo "$ac_try_echo") >&5
29434 (eval "$ac_try") 2>&5
29436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); }; }; then
29438 { $as_echo "$as_me:$LINENO: result: yes" >&5
29439 $as_echo "yes" >&6; }
29441 $as_echo "$as_me: program exited with status $ac_status" >&5
29442 $as_echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ( exit $ac_status )
29446 { $as_echo "$as_me:$LINENO: result: no" >&5
29447 $as_echo "no" >&6; }
29448 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29449 This platform is not thread-safe. Check the file 'config.log' or compile
29450 and run src/test/thread/thread_test for the exact reason.
29451 Use --disable-thread-safety to disable thread safety." >&5
29452 $as_echo "$as_me: error: thread test program failed
29453 This platform is not thread-safe. Check the file 'config.log' or compile
29454 and run src/test/thread/thread_test for the exact reason.
29455 Use --disable-thread-safety to disable thread safety." >&2;}
29456 { (exit 1); exit 1; }; }
29458 rm -rf conftest.dSYM
29459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29466 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29467 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29471 # If compiler will take -Wl,--as-needed (or various platform-specific
29472 # spellings thereof) then add that to LDFLAGS. This is much easier than
29473 # trying to filter LIBS to the minimum for each executable.
29474 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29475 # libreadline; therefore we postpone testing it until we know what library
29476 # dependencies readline has. The test code will try to link with $LIBS.
29477 if test "$with_readline" = yes; then
29478 link_test_func=readline
29480 link_test_func=exit
29483 if test "$PORTNAME" = "darwin"; then
29484 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29485 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29486 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29487 $as_echo_n "(cached) " >&6
29489 pgac_save_LDFLAGS=$LDFLAGS
29490 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29491 if test "$cross_compiling" = yes; then
29492 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29494 cat >conftest.$ac_ext <<_ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h. */
29500 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29509 rm -f conftest$ac_exeext
29510 if { (ac_try="$ac_link"
29511 case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29516 $as_echo "$ac_try_echo") >&5
29517 (eval "$ac_link") 2>&5
29519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29521 { (case "(($ac_try" in
29522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523 *) ac_try_echo=$ac_try;;
29525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29526 $as_echo "$ac_try_echo") >&5
29527 (eval "$ac_try") 2>&5
29529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); }; }; then
29531 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29533 $as_echo "$as_me: program exited with status $ac_status" >&5
29534 $as_echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ( exit $ac_status )
29538 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29540 rm -rf conftest.dSYM
29541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29545 LDFLAGS="$pgac_save_LDFLAGS"
29547 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29548 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29549 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29550 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29553 elif test "$PORTNAME" = "openbsd"; then
29554 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29555 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29556 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29557 $as_echo_n "(cached) " >&6
29559 pgac_save_LDFLAGS=$LDFLAGS
29560 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29561 if test "$cross_compiling" = yes; then
29562 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29564 cat >conftest.$ac_ext <<_ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29579 rm -f conftest$ac_exeext
29580 if { (ac_try="$ac_link"
29581 case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29586 $as_echo "$ac_try_echo") >&5
29587 (eval "$ac_link") 2>&5
29589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29591 { (case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597 (eval "$ac_try") 2>&5
29599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29603 $as_echo "$as_me: program exited with status $ac_status" >&5
29604 $as_echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29607 ( exit $ac_status )
29608 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29610 rm -rf conftest.dSYM
29611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29615 LDFLAGS="$pgac_save_LDFLAGS"
29617 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29618 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29619 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29620 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29624 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29625 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29626 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29627 $as_echo_n "(cached) " >&6
29629 pgac_save_LDFLAGS=$LDFLAGS
29630 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29631 if test "$cross_compiling" = yes; then
29632 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29634 cat >conftest.$ac_ext <<_ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29649 rm -f conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29656 $as_echo "$ac_try_echo") >&5
29657 (eval "$ac_link") 2>&5
29659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29661 { (case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29666 $as_echo "$ac_try_echo") >&5
29667 (eval "$ac_try") 2>&5
29669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29673 $as_echo "$as_me: program exited with status $ac_status" >&5
29674 $as_echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ( exit $ac_status )
29678 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29680 rm -rf conftest.dSYM
29681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29685 LDFLAGS="$pgac_save_LDFLAGS"
29687 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29688 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29689 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29690 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29696 # Begin output steps
29698 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29699 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29700 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29701 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29702 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29703 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29705 # Create compiler version string
29706 if test x"$GCC" = x"yes" ; then
29707 cc_string="GCC `${CC} --version | sed q`"
29708 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29709 cc_string=`${CC} -V 2>&1 | sed q`
29715 cat >>confdefs.h <<_ACEOF
29716 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29720 # Supply a numeric version string for use by 3rd party add-ons
29721 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29722 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29724 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29726 cat >>confdefs.h <<_ACEOF
29727 #define PG_VERSION_NUM $PG_VERSION_NUM
29732 # prepare build tree if outside source tree
29733 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29734 # Note 2: /bin/pwd might be better than shell's built-in at getting
29735 # a symlink-free name.
29736 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29740 if test "$no_create" != yes; then
29741 $as_echo_n "preparing build tree... " >&6
29742 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29743 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29744 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29745 $as_echo "$as_me: error: failed" >&2;}
29746 { (exit 1); exit 1; }; }
29747 { $as_echo "$as_me:$LINENO: result: done" >&5
29748 $as_echo "done" >&6; }
29754 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29757 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/backend/port/pg_latch.c:${LATCH_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}"
29760 if test "$PORTNAME" = "win32"; then
29761 ac_config_commands="$ac_config_commands check_win32_symlinks"
29765 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29768 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29771 cat >confcache <<\_ACEOF
29772 # This file is a shell script that caches the results of configure
29773 # tests run on this system so they can be shared between configure
29774 # scripts and configure runs, see configure's option --config-cache.
29775 # It is not useful on other systems. If it contains results you don't
29776 # want to keep, you may remove or edit it.
29778 # config.status only pays attention to the cache file if you give it
29779 # the --recheck option to rerun configure.
29781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29783 # following values.
29787 # The following way of writing the cache mishandles newlines in values,
29788 # but we know of no workaround that is simple, portable, and efficient.
29789 # So, we kill variables containing newlines.
29790 # Ultrix sh set writes to stderr and can't be redirected directly,
29791 # and sets the high bit in the cache file unless we assign to the vars.
29793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29794 eval ac_val=\$$ac_var
29798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29802 _ | IFS | as_nl) ;; #(
29803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29804 *) $as_unset $ac_var ;;
29810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29811 *${as_nl}ac_space=\ *)
29812 # `set' does not quote correctly, so add quotes (double-quote
29813 # substitution turns \\\\ into \\, and sed turns \\ into \).
29816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29819 # `set' quotes correctly as required by POSIX, so do not add quotes.
29820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29834 if test -w "$cache_file"; then
29835 test "x$cache_file" != "x/dev/null" &&
29836 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29837 $as_echo "$as_me: updating cache $cache_file" >&6;}
29838 cat confcache >$cache_file
29840 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29847 # Let make expand exec_prefix.
29848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29850 DEFS=-DHAVE_CONFIG_H
29854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29855 # 1. Remove the extension, and $U if already installed.
29856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29859 # will be set to the directory where LIBOBJS objects are built.
29860 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29861 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29863 LIBOBJS=$ac_libobjs
29865 LTLIBOBJS=$ac_ltlibobjs
29870 : ${CONFIG_STATUS=./config.status}
29872 ac_clean_files_save=$ac_clean_files
29873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29874 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29876 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29878 # Generated by $as_me.
29879 # Run this file to recreate the current configuration.
29880 # Compiler output produced by configure, useful for debugging
29881 # configure, is in config.log if it exists.
29884 ac_cs_recheck=false
29886 SHELL=\${CONFIG_SHELL-$SHELL}
29889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29890 ## --------------------- ##
29891 ## M4sh Initialization. ##
29892 ## --------------------- ##
29894 # Be more Bourne compatible
29895 DUALCASE=1; export DUALCASE # for MKS sh
29896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29900 # is contrary to our usage. Disable this feature.
29901 alias -g '${1+"$@"}'='"$@"'
29902 setopt NO_GLOB_SUBST
29904 case `(set -o) 2>/dev/null` in
29905 *posix*) set -o posix ;;
29914 # Avoid depending upon Character Ranges.
29915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29918 as_cr_digits='0123456789'
29919 as_cr_alnum=$as_cr_Letters$as_cr_digits
29924 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29925 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29928 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29929 as_echo='printf %s\n'
29930 as_echo_n='printf %s'
29932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29934 as_echo_n='/usr/ucb/echo -n'
29936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29937 as_echo_n_body='eval
29941 expr "X$arg" : "X\\(.*\\)$as_nl";
29942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29946 export as_echo_n_body
29947 as_echo_n='sh -c $as_echo_n_body as_echo'
29949 export as_echo_body
29950 as_echo='sh -c $as_echo_body as_echo'
29953 # The user is always right.
29954 if test "${PATH_SEPARATOR+set}" != set; then
29956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29962 # Support unset when possible.
29963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29971 # We need space, tab and new line, in precisely that order. Quoting is
29972 # there to prevent editors from complaining about space-tab.
29973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29974 # splitting by setting IFS to empty value.)
29977 # Find who we are. Look in the path if we contain no directory separator.
29979 *[\\/]* ) as_myself=$0 ;;
29980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29981 for as_dir in $PATH
29984 test -z "$as_dir" && as_dir=.
29985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29991 # We did not find ourselves, most probably we were run as `sh COMMAND'
29992 # in which case we are not to be found in the path.
29993 if test "x$as_myself" = x; then
29996 if test ! -f "$as_myself"; then
29997 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29998 { (exit 1); exit 1; }
30001 # Work around bugs in pre-3.0 UWIN ksh.
30002 for as_var in ENV MAIL MAILPATH
30003 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30015 # Required to use basename.
30016 if expr a : '\(a\)' >/dev/null 2>&1 &&
30017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30024 as_basename=basename
30030 # Name of the executable.
30031 as_me=`$as_basename -- "$0" ||
30032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30033 X"$0" : 'X\(//\)$' \| \
30034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30036 sed '/^.*\/\([^/][^/]*\)\/*$/{
30055 as_lineno_1=$LINENO
30056 as_lineno_2=$LINENO
30057 test "x$as_lineno_1" != "x$as_lineno_2" &&
30058 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30060 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30061 # uniformly replaced by the line number. The first 'sed' inserts a
30062 # line-number line after each line using $LINENO; the second 'sed'
30063 # does the real work. The second script uses 'N' to pair each
30064 # line-number line with the line containing $LINENO, and appends
30065 # trailing '-' during substitution so that $LINENO is not a special
30066 # case at line end.
30067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30068 # scripts with optimization help from Paolo Bonzini. Blame Lee
30069 # E. McMahon (1931-1989) for sed's syntax. :-)
30081 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30084 ' >$as_me.lineno &&
30085 chmod +x "$as_me.lineno" ||
30086 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30087 { (exit 1); exit 1; }; }
30089 # Don't try to exec as it changes $[0], causing all sort of problems
30090 # (the dirname of $[0] is not the place where we might find the
30091 # original and so on. Autoconf is especially sensitive to this).
30092 . "./$as_me.lineno"
30093 # Exit status is that of the last command.
30098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30104 ECHO_C= ECHO_N= ECHO_T=
30105 case `echo -n x` in
30107 case `echo 'x\c'` in
30108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30114 if expr a : '\(a\)' >/dev/null 2>&1 &&
30115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30121 rm -f conf$$ conf$$.exe conf$$.file
30122 if test -d conf$$.dir; then
30123 rm -f conf$$.dir/conf$$.file
30126 mkdir conf$$.dir 2>/dev/null
30128 if (echo >conf$$.file) 2>/dev/null; then
30129 if ln -s conf$$.file conf$$ 2>/dev/null; then
30131 # ... but there are two gotchas:
30132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30134 # In both cases, we have to default to `cp -p'.
30135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30137 elif ln conf$$.file conf$$ 2>/dev/null; then
30145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30146 rmdir conf$$.dir 2>/dev/null
30148 if mkdir -p . 2>/dev/null; then
30151 test -d ./-p && rmdir ./-p
30155 if test -x / >/dev/null 2>&1; then
30156 as_test_x='test -x'
30158 if ls -dL / >/dev/null 2>&1; then
30165 if test -d "$1"; then
30171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30172 ???[sx]*):;;*)false;;esac;fi
30176 as_executable_p=$as_test_x
30178 # Sed expression to map a string onto a valid CPP name.
30179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30181 # Sed expression to map a string onto a valid variable name.
30182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30187 # Save the log message, to keep $[0] and so on meaningful, and to
30188 # report actual input values of CONFIG_FILES etc. instead of their
30189 # values after options handling.
30191 This file was extended by PostgreSQL $as_me 9.1devel, which was
30192 generated by GNU Autoconf 2.63. Invocation command line was
30194 CONFIG_FILES = $CONFIG_FILES
30195 CONFIG_HEADERS = $CONFIG_HEADERS
30196 CONFIG_LINKS = $CONFIG_LINKS
30197 CONFIG_COMMANDS = $CONFIG_COMMANDS
30200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30205 case $ac_config_files in *"
30206 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30209 case $ac_config_headers in *"
30210 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30215 # Files that config.status was made for.
30216 config_files="$ac_config_files"
30217 config_headers="$ac_config_headers"
30218 config_links="$ac_config_links"
30219 config_commands="$ac_config_commands"
30223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30225 \`$as_me' instantiates files from templates according to the
30226 current configuration.
30228 Usage: $0 [OPTION]... [FILE]...
30230 -h, --help print this help, then exit
30231 -V, --version print version number and configuration settings, then exit
30232 -q, --quiet, --silent
30233 do not print progress messages
30234 -d, --debug don't remove temporary files
30235 --recheck update $as_me by reconfiguring in the same conditions
30236 --file=FILE[:TEMPLATE]
30237 instantiate the configuration file FILE
30238 --header=FILE[:TEMPLATE]
30239 instantiate the configuration header FILE
30241 Configuration files:
30244 Configuration headers:
30247 Configuration links:
30250 Configuration commands:
30253 Report bugs to <bug-autoconf@gnu.org>."
30256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30258 PostgreSQL config.status 9.1devel
30259 configured by $0, generated by GNU Autoconf 2.63,
30260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30262 Copyright (C) 2008 Free Software Foundation, Inc.
30263 This config.status script is free software; the Free Software Foundation
30264 gives unlimited permission to copy, distribute and modify it."
30270 test -n "\$AWK" || AWK=awk
30273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30274 # The default lists apply if the user does not specify any file.
30280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30292 # Handling of the options.
30293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30296 $as_echo "$ac_cs_version"; exit ;;
30297 --debug | --debu | --deb | --de | --d | -d )
30299 --file | --fil | --fi | --f )
30302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30304 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30305 ac_need_defaults=false;;
30306 --header | --heade | --head | --hea )
30309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30311 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30312 ac_need_defaults=false;;
30314 # Conflict between --help and --header
30315 { $as_echo "$as_me: error: ambiguous option: $1
30316 Try \`$0 --help' for more information." >&2
30317 { (exit 1); exit 1; }; };;
30318 --help | --hel | -h )
30319 $as_echo "$ac_cs_usage"; exit ;;
30320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30324 # This is an error.
30325 -*) { $as_echo "$as_me: error: unrecognized option: $1
30326 Try \`$0 --help' for more information." >&2
30327 { (exit 1); exit 1; }; } ;;
30329 *) ac_config_targets="$ac_config_targets $1"
30330 ac_need_defaults=false ;;
30336 ac_configure_extra_args=
30338 if $ac_cs_silent; then
30340 ac_configure_extra_args="$ac_configure_extra_args --silent"
30344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30345 if \$ac_cs_recheck; then
30346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30349 CONFIG_SHELL='$SHELL'
30350 export CONFIG_SHELL
30355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30360 ## Running $as_me. ##
30366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30371 # Handling of arguments.
30372 for ac_config_target in $ac_config_targets
30374 case $ac_config_target in
30375 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30376 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30377 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30378 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30379 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30380 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30381 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30382 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30383 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30384 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30385 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30386 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30387 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30389 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30390 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30391 { (exit 1); exit 1; }; };;
30396 # If the user did not use the arguments to specify the items to instantiate,
30397 # then the envvar interface is used. Set only those that are not.
30398 # We use the long form for the default assignment because of an extremely
30399 # bizarre bug on SunOS 4.1.3.
30400 if $ac_need_defaults; then
30401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30403 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30407 # Have a temporary directory for convenience. Make it in the build tree
30408 # simply because there is no reason against having it here, and in addition,
30409 # creating and moving files from /tmp can sometimes cause problems.
30410 # Hook for its removal unless debugging.
30411 # Note that there is a small window in which the directory will not be cleaned:
30412 # after its creation but before its name has been assigned to `$tmp'.
30416 trap 'exit_status=$?
30417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30419 trap '{ (exit 1); exit 1; }' 1 2 13 15
30421 # Create a (secure) tmp directory for tmp files.
30424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30425 test -n "$tmp" && test -d "$tmp"
30428 tmp=./conf$$-$RANDOM
30429 (umask 077 && mkdir "$tmp")
30432 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30433 { (exit 1); exit 1; }
30436 # Set up the scripts for CONFIG_FILES section.
30437 # No need to generate them if there are no CONFIG_FILES.
30438 # This happens for instance with `./config.status config.h'.
30439 if test -n "$CONFIG_FILES"; then
30443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30447 ac_cs_awk_cr=$ac_cr
30450 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30455 echo "cat >conf$$subs.awk <<_ACEOF" &&
30456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30458 } >conf$$subs.sh ||
30459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30460 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30461 { (exit 1); exit 1; }; }
30462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30464 for ac_last_try in false false false false false :; do
30465 . ./conf$$subs.sh ||
30466 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30467 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30468 { (exit 1); exit 1; }; }
30470 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30471 if test $ac_delim_n = $ac_delim_num; then
30473 elif $ac_last_try; then
30474 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30475 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30476 { (exit 1); exit 1; }; }
30478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30481 rm -f conf$$subs.sh
30483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30484 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30488 s/^/S["/; s/!.*/"]=/
30498 s/\(.\{148\}\).*/\1/
30500 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30512 s/\(.\{148\}\).*/\1/
30514 s/["\\]/\\&/g; s/^/"/; s/$/"/
30518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30523 ' <conf$$subs.awk | sed '
30528 ' >>$CONFIG_STATUS || ac_write_fail=1
30529 rm -f conf$$subs.awk
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30532 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30533 for (key in S) S_is_set[key] = 1
30539 nfields = split(line, field, "@")
30541 len = length(field[1])
30542 for (i = 2; i < nfields; i++) {
30544 keylen = length(key)
30545 if (S_is_set[key]) {
30547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30548 len += length(value) + length(field[++i])
30559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30564 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30565 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30566 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30567 { (exit 1); exit 1; }; }
30570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30572 # trailing colons and then remove the whole line if VPATH becomes empty
30573 # (actually we leave an empty line to preserve line numbers).
30574 if test "x$srcdir" = x.; then
30575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30576 s/:*\$(srcdir):*/:/
30577 s/:*\${srcdir}:*/:/
30579 s/^\([^=]*=[ ]*\):*/\1/
30585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30586 fi # test -n "$CONFIG_FILES"
30588 # Set up the scripts for CONFIG_HEADERS section.
30589 # No need to generate them if there are no CONFIG_HEADERS.
30590 # This happens for instance with `./config.status Makefile'.
30591 if test -n "$CONFIG_HEADERS"; then
30592 cat >"$tmp/defines.awk" <<\_ACAWK ||
30596 # Transform confdefs.h into an awk script `defines.awk', embedded as
30597 # here-document in config.status, that substitutes the proper values into
30598 # config.h.in to produce config.h.
30600 # Create a delimiter string that does not exist in confdefs.h, to ease
30601 # handling of long lines.
30603 for ac_last_try in false false :; do
30604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30605 if test -z "$ac_t"; then
30607 elif $ac_last_try; then
30608 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30609 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30610 { (exit 1); exit 1; }; }
30612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30616 # For the awk script, D is an array of macro values keyed by name,
30617 # likewise P contains macro parameters if any. Preserve backslash
30618 # newline sequences.
30620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30622 s/.\{148\}/&'"$ac_delim"'/g
30625 s/^[ ]*#[ ]*define[ ][ ]*/ /
30632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30634 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30639 D["\1"]=" \3\\\\\\n"\\/p
30641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30646 s/.\{148\}/&'"$ac_delim"'/g
30651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30656 ' <confdefs.h | sed '
30657 s/'"$ac_delim"'/"\\\
30658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30661 for (key in D) D_is_set[key] = 1
30664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30666 split(line, arg, " ")
30667 if (arg[1] == "#") {
30671 defundef = substr(arg[1], 2)
30674 split(mac1, mac2, "(") #)
30676 prefix = substr(line, 1, index(line, defundef) - 1)
30677 if (D_is_set[macro]) {
30678 # Preserve the white space surrounding the "#".
30679 print prefix "define", macro P[macro] D[macro]
30682 # Replace #undef with comments. This is necessary, for example,
30683 # in the case of _POSIX_SOURCE, which is predefined and required
30684 # on some systems where configure will not decide to define it.
30685 if (defundef == "undef") {
30686 print "/*", prefix defundef, macro, "*/"
30694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30695 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30696 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30697 { (exit 1); exit 1; }; }
30698 fi # test -n "$CONFIG_HEADERS"
30701 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30706 :[FHLC]) ac_mode=$ac_tag; continue;;
30708 case $ac_mode$ac_tag in
30710 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30711 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30712 { (exit 1); exit 1; }; };;
30713 :[FH]-) ac_tag=-:-;;
30714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30731 -) ac_f="$tmp/stdin";;
30732 *) # Look for the file first in the build tree, then in the source tree
30733 # (if the path is not absolute). The absolute path cannot be DOS-style,
30734 # because $ac_f cannot contain `:'.
30738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30740 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30741 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30742 { (exit 1); exit 1; }; };;
30744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30745 ac_file_inputs="$ac_file_inputs '$ac_f'"
30748 # Let's still pretend it is `configure' which instantiates (i.e., don't
30749 # use $as_me), people would be surprised to read:
30750 # /* config.h. Generated by config.status. */
30751 configure_input='Generated from '`
30752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30754 if test x"$ac_file" != x-; then
30755 configure_input="$ac_file. $configure_input"
30756 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30757 $as_echo "$as_me: creating $ac_file" >&6;}
30759 # Neutralize special characters interpreted by sed in replacement strings.
30760 case $configure_input in #(
30761 *\&* | *\|* | *\\* )
30762 ac_sed_conf_input=`$as_echo "$configure_input" |
30763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30764 *) ac_sed_conf_input=$configure_input;;
30768 *:-:* | *:-) cat >"$tmp/stdin" \
30769 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30770 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30771 { (exit 1); exit 1; }; } ;;
30776 ac_dir=`$as_dirname -- "$ac_file" ||
30777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30778 X"$ac_file" : 'X\(//\)[^/]' \| \
30779 X"$ac_file" : 'X\(//\)$' \| \
30780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30781 $as_echo X"$ac_file" |
30782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30786 /^X\(\/\/\)[^/].*/{
30801 -*) as_dir=./$as_dir;;
30803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30808 *) as_qdir=$as_dir;;
30810 as_dirs="'$as_qdir' $as_dirs"
30811 as_dir=`$as_dirname -- "$as_dir" ||
30812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30813 X"$as_dir" : 'X\(//\)[^/]' \| \
30814 X"$as_dir" : 'X\(//\)$' \| \
30815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30816 $as_echo X"$as_dir" |
30817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30821 /^X\(\/\/\)[^/].*/{
30834 test -d "$as_dir" && break
30836 test -z "$as_dirs" || eval "mkdir $as_dirs"
30837 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30838 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30839 { (exit 1); exit 1; }; }; }
30843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30846 # A ".." for each directory in $ac_dir_suffix.
30847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30848 case $ac_top_builddir_sub in
30849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30853 ac_abs_top_builddir=$ac_pwd
30854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30855 # for backward compatibility:
30856 ac_top_builddir=$ac_top_build_prefix
30859 .) # We are building in place.
30861 ac_top_srcdir=$ac_top_builddir_sub
30862 ac_abs_top_srcdir=$ac_pwd ;;
30863 [\\/]* | ?:[\\/]* ) # Absolute name.
30864 ac_srcdir=$srcdir$ac_dir_suffix;
30865 ac_top_srcdir=$srcdir
30866 ac_abs_top_srcdir=$srcdir ;;
30867 *) # Relative name.
30868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30869 ac_top_srcdir=$ac_top_build_prefix$srcdir
30870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30881 ac_MKDIR_P=$MKDIR_P
30883 [\\/$]* | ?:[\\/]* ) ;;
30884 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30889 # If the template does not know about datarootdir, expand it.
30890 # FIXME: This hack should be removed a few years after 2.60.
30891 ac_datarootdir_hack=; ac_datarootdir_seen=
30904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30905 *datarootdir*) ac_datarootdir_seen=yes;;
30906 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30907 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30911 ac_datarootdir_hack='
30912 s&@datadir@&$datadir&g
30913 s&@docdir@&$docdir&g
30914 s&@infodir@&$infodir&g
30915 s&@localedir@&$localedir&g
30916 s&@mandir@&$mandir&g
30917 s&\\\${datarootdir}&$datarootdir&g' ;;
30921 # Neutralize VPATH when `$srcdir' = `.'.
30922 # Shell code in configure.ac might set extrasub.
30923 # FIXME: do we really want to maintain this feature?
30924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30925 ac_sed_extra="$ac_vpsub
30928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30931 s|@configure_input@|$ac_sed_conf_input|;t t
30932 s&@top_builddir@&$ac_top_builddir_sub&;t t
30933 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30934 s&@srcdir@&$ac_srcdir&;t t
30935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30936 s&@top_srcdir@&$ac_top_srcdir&;t t
30937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30938 s&@builddir@&$ac_builddir&;t t
30939 s&@abs_builddir@&$ac_abs_builddir&;t t
30940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30941 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30942 $ac_datarootdir_hack
30944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30947 { (exit 1); exit 1; }; }
30949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30950 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30952 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30953 which seems to be undefined. Please make sure it is defined." >&5
30954 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30955 which seems to be undefined. Please make sure it is defined." >&2;}
30959 -) cat "$tmp/out" && rm -f "$tmp/out";;
30960 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30962 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30963 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30964 { (exit 1); exit 1; }; }
30970 if test x"$ac_file" != x-; then
30972 $as_echo "/* $configure_input */" \
30973 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30974 } >"$tmp/config.h" \
30975 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30976 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30977 { (exit 1); exit 1; }; }
30978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30979 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30983 mv "$tmp/config.h" "$ac_file" \
30984 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30985 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30986 { (exit 1); exit 1; }; }
30989 $as_echo "/* $configure_input */" \
30990 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30991 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30992 $as_echo "$as_me: error: could not create -" >&2;}
30993 { (exit 1); exit 1; }; }
31001 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31004 # Prefer the file from the source tree if names are identical.
31005 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31006 ac_source=$srcdir/$ac_source
31009 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31010 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31012 if test ! -r "$ac_source"; then
31013 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31014 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31015 { (exit 1); exit 1; }; }
31019 # Try a relative symlink, then a hard link, then a copy.
31021 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31022 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31024 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31025 ln "$ac_source" "$ac_file" 2>/dev/null ||
31026 cp -p "$ac_source" "$ac_file" ||
31027 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31028 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31029 { (exit 1); exit 1; }; }
31032 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31033 $as_echo "$as_me: executing $ac_file commands" >&6;}
31038 case $ac_file$ac_mode in
31039 "check_win32_symlinks":C)
31040 # Links sometimes fail undetected on Mingw -
31041 # so here we detect it and warn the user
31042 for FILE in $CONFIG_LINKS
31044 # test -e works for symlinks in the MinGW console
31045 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31046 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31049 "src/include/pg_config.h":H)
31050 # Update timestamp for pg_config.h (see Makefile.global)
31051 echo >src/include/stamp-h
31053 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31059 { (exit 0); exit 0; }
31061 chmod +x $CONFIG_STATUS
31062 ac_clean_files=$ac_clean_files_save
31064 test $ac_write_fail = 0 ||
31065 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31066 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31067 { (exit 1); exit 1; }; }
31070 # configure is writing to config.log, and then calls config.status.
31071 # config.status does its own redirection, appending to config.log.
31072 # Unfortunately, on DOS this fails, as config.log is still kept open
31073 # by configure, so config.status won't be able to write to it; its
31074 # output is simply discarded. So we exec the FD to /dev/null,
31075 # effectively closing config.log, so it can be properly (re)opened and
31076 # appended to by config.status. When coming back to configure, we
31077 # need to make the FD available again.
31078 if test "$no_create" != yes; then
31080 ac_config_status_args=
31081 test "$silent" = yes &&
31082 ac_config_status_args="$ac_config_status_args --quiet"
31084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31087 # would make configure fail if this is the last instruction.
31088 $ac_cs_success || { (exit 1); exit 1; }
31090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31091 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}