2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
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-2012, 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.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
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.2devel 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.2devel:";;
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 build contrib/uuid-ossp, requires OSSP UUID library
1543 --with-libxml build with XML support
1544 --with-libxslt use XSLT support when building contrib/xml2
1545 --with-system-tzdata=DIR
1546 use system time zone data in DIR
1547 --without-zlib do not use Zlib
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 LDFLAGS_EX extra linker flags for linking executables only
1560 LDFLAGS_SL extra linker flags for linking shared libraries only
1562 location of DocBook stylesheets
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1638 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 $as_echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 $as_echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 $as_echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 $as_echo "$as_me: caught signal $ac_signal"
1841 $as_echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889 ac_site_file1=$prefix/share/config.site
1890 ac_site_file2=$prefix/etc/config.site
1892 ac_site_file1=$ac_default_prefix/share/config.site
1893 ac_site_file2=$ac_default_prefix/etc/config.site
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1897 test "x$ac_site_file" = xNONE && continue
1898 if test -r "$ac_site_file"; then
1899 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 # differences in whitespace do not lead to failure.
1944 ac_old_val_w=`echo x $ac_old_val`
1945 ac_new_val_w=`echo x $ac_new_val`
1946 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 ac_cache_corrupted=:
1951 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953 eval $ac_var=\$ac_old_val
1955 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1956 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1957 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 *) ac_arg=$ac_var=$ac_new_val ;;
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973 if $ac_cache_corrupted; then
1974 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 for ac_dir in config "$srcdir"/config; do
2020 if test -f "$ac_dir/install-sh"; then
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2024 elif test -f "$ac_dir/install.sh"; then
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2028 elif test -f "$ac_dir/shtool"; then
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 if test -z "$ac_aux_dir"; then
2035 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037 { (exit 1); exit 1; }; }
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050 configure_args=$ac_configure_args
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070 { (exit 1); exit 1; }; }
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075 $as_echo_n "(cached) " >&6
2077 ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083 { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096 { (exit 1); exit 1; }; };;
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test "x$host_alias" = x; then
2118 ac_cv_host=$ac_cv_build
2120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123 { (exit 1); exit 1; }; }
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133 { (exit 1); exit 1; }; };;
2136 ac_save_IFS=$IFS; IFS='-'
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159 withval=$with_template;
2162 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169 { (exit 1); exit 1; }; }
2174 list) echo; ls "$srcdir/src/template"; exit;;
2175 *) if test -f "$srcdir/src/template/$with_template" ; then
2178 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180 { (exit 1); exit 1; }; }
2189 # --with-template not given
2192 aix*) template=aix ;;
2193 bsdi*) template=bsdi ;;
2194 cygwin*) template=cygwin ;;
2195 darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197 dgux*) template=dgux ;;
2198 freebsd*) template=freebsd ;;
2199 hpux*) template=hpux ;;
2200 irix*) template=irix ;;
2201 linux*|gnu*|k*bsd*-gnu)
2203 mingw*) template=win32 ;;
2204 netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206 openbsd*) template=openbsd ;;
2207 osf*) template=osf ;;
2208 sco*) template=sco ;;
2209 solaris*) template=solaris ;;
2210 sunos*) template=sunos4 ;;
2212 case $host_vendor in
2213 univel) template=univel ;;
2215 sysv4*) template=svr4 ;;
2216 sysv5*) template=unixware ;;
2217 ultrix*) template=ultrix4 ;;
2220 if test x"$template" = x"" ; then
2221 { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this. Include the above 'checking host system type...'
2230 *******************************************************************
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this. Include the above 'checking host system type...'
2241 *******************************************************************
2243 { (exit 1); exit 1; }; }
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set). This can be overridden by the template file
2259 # when it's executed.
2266 ## Command line options
2270 # Add non-standard directories to the include path
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277 withval=$with_includes;
2280 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282 { (exit 1); exit 1; }; }
2285 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287 { (exit 1); exit 1; }; }
2300 # Add non-standard directories to the library search path
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307 withval=$with_libraries;
2310 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312 { (exit 1); exit 1; }; }
2315 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 LIBRARY_DIRS=$withval
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2336 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338 { (exit 1); exit 1; }; }
2341 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343 { (exit 1); exit 1; }; }
2346 LIBRARY_DIRS=$withval
2356 # 64-bit integer date/time storage: enabled by default.
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364 enableval=$enable_integer_datetimes;
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2377 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379 { (exit 1); exit 1; }; }
2384 enable_integer_datetimes=yes
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406 enableval=$enable_nls;
2416 WANTED_LANGUAGES=$enableval
2426 if test "$enable_nls" = yes; then
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2440 # Default port number (--with-pgport), default 5432
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449 withval=$with_pgport;
2452 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454 { (exit 1); exit 1; }; }
2457 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459 { (exit 1); exit 1; }; }
2462 default_port=$withval
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2487 # Option to disable shared libraries
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493 enableval=$enable_shared;
2502 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504 { (exit 1); exit 1; }; }
2517 # '-rpath'-like feature can be disabled
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523 enableval=$enable_rpath;
2532 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534 { (exit 1); exit 1; }; }
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553 enableval=$enable_spinlocks;
2562 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564 { (exit 1); exit 1; }; }
2569 enable_spinlocks=yes
2576 # --enable-debug adds -g to compiler flags
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582 enableval=$enable_debug;
2591 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593 { (exit 1); exit 1; }; }
2606 # --enable-profiling enables gcc profiling
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612 enableval=$enable_profiling;
2621 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623 { (exit 1); exit 1; }; }
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642 enableval=$enable_coverage;
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$GCOV"; then
2655 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_GCOV="$ac_prog"
2665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2679 { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$GCOV" && break
2687 if test -z "$GCOV"; then
2688 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690 { (exit 1); exit 1; }; }
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$LCOV"; then
2702 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_LCOV="$ac_prog"
2712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2726 { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2731 test -n "$LCOV" && break
2734 if test -z "$LCOV"; then
2735 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737 { (exit 1); exit 1; }; }
2739 for ac_prog in genhtml
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$GENHTML"; then
2749 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_GENHTML="$ac_prog"
2759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2773 { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2778 test -n "$GENHTML" && break
2781 if test -z "$GENHTML"; then
2782 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784 { (exit 1); exit 1; }; }
2791 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793 { (exit 1); exit 1; }; }
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812 enableval=$enable_dtrace;
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2820 for ac_prog in dtrace
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$DTRACE"; then
2830 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_DTRACE="$ac_prog"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$DTRACE" && break
2862 if test -z "$DTRACE"; then
2863 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865 { (exit 1); exit 1; }; }
2873 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875 { (exit 1); exit 1; }; }
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897 withval=$with_blocksize;
2900 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902 { (exit 1); exit 1; }; }
2905 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907 { (exit 1); exit 1; }; }
2919 case ${blocksize} in
2926 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928 { (exit 1); exit 1; }; }
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2940 # Relation segment size
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949 withval=$with_segsize;
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959 { (exit 1); exit 1; }; }
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994 withval=$with_wal_blocksize;
2997 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999 { (exit 1); exit 1; }; }
3002 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004 { (exit 1); exit 1; }; }
3007 wal_blocksize=$withval
3016 case ${wal_blocksize} in
3017 1) XLOG_BLCKSZ=1024;;
3018 2) XLOG_BLCKSZ=2048;;
3019 4) XLOG_BLCKSZ=4096;;
3020 8) XLOG_BLCKSZ=8192;;
3021 16) XLOG_BLCKSZ=16384;;
3022 32) XLOG_BLCKSZ=32768;;
3023 64) XLOG_BLCKSZ=65536;;
3024 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026 { (exit 1); exit 1; }; }
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047 withval=$with_wal_segsize;
3050 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052 { (exit 1); exit 1; }; }
3055 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057 { (exit 1); exit 1; }; }
3060 wal_segsize=$withval
3069 case ${wal_segsize} in
3077 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079 { (exit 1); exit 1; }; }
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3105 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107 { (exit 1); exit 1; }; }
3110 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112 { (exit 1); exit 1; }; }
3124 aix) pgac_cc_list="gcc xlc";;
3125 irix) pgac_cc_list="cc";; # no gcc
3126 *) pgac_cc_list="gcc cc";;
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in $pgac_cc_list
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3177 if test -z "$CC"; then
3179 for ac_prog in $pgac_cc_list
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3221 if test "x$ac_ct_CC" = x; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }; }
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3247 { (ac_try="$ac_compiler --version >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compiler --version >&5") 2>&5
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compiler -v >&5") 2>&5
3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compiler -V >&5") 2>&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { (ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377 { (exit 77); exit 77; }; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389 if { ac_try='./$ac_file'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }; }
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_link") 2>&5
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462 { (exit 1); exit 1; }; }; }
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500 (eval "$ac_compile") 2>&5
3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest.$ac_objext; then
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3742 if test "$GCC" = yes; then
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751 $as_echo_n "(cached) " >&6
3753 ac_cv_prog_cc_c89=no
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3779 s = g (p, va_arg (v,int));
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3785 function prototypes and stuff, but not '\xHH' hex character constants.
3786 These don't provoke an error unfortunately, instead are silently treated
3787 as 'x'. The following induces an error, until -std is added to get
3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3789 array size at least. It's necessary to write '\x00'==0 to get something
3790 that's true only with -std. */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794 inside strings and character constants. */
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 CC="$ac_save_CC $ac_arg"
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_cv_prog_cc_c89=$ac_arg
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c89" in
3852 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c89"
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own. We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3885 #ifndef __INTEL_COMPILER
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 . "$srcdir/src/template/$template" || exit
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else: If the template file set something, that is used.
3979 # else: If coverage was enabled, don't set anything.
3980 # else: If the compiler is GCC, then we use -O2.
3981 # else: If the compiler is something else, then we use -O, unless debugging.
3983 if test "$ac_env_CFLAGS_set" = set; then
3984 CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986 : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988 : # no optimization by default
3989 elif test "$GCC" = yes; then
3992 # if the user selected debug mode, don't use -O
3993 if test "$enable_debug" != yes; then
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own. Also check other compiler-specific flags here.
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005 # These work in some but not all gcc versions
4006 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009 $as_echo_n "(cached) " >&6
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4050 $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4066 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4071 pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 pgac_cv_prog_cc_cflags__Wendif_labels=no
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123 CFLAGS="$CFLAGS -Wendif-labels"
4126 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4131 pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4168 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4186 # This was included in -Wall/-Wformat in older GCC versions
4187 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 pgac_cv_prog_cc_cflags__Wformat_security=yes
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 pgac_cv_prog_cc_cflags__Wformat_security=no
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244 CFLAGS="$CFLAGS -Wformat-security"
4247 # Disable strict-aliasing rules; needed for gcc 3.3+
4248 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4253 pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305 CFLAGS="$CFLAGS -fno-strict-aliasing"
4308 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 pgac_cv_prog_cc_cflags__fwrapv=yes
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 pgac_cv_prog_cc_cflags__fwrapv=no
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366 CFLAGS="$CFLAGS -fwrapv"
4369 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4370 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4371 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4372 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4375 pgac_save_CFLAGS=$CFLAGS
4376 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4401 $as_echo "$ac_try_echo") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4414 $as_echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 CFLAGS="$pgac_save_CFLAGS"
4424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4425 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4426 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4427 CFLAGS="$CFLAGS -fexcess-precision=standard"
4430 elif test "$ICC" = yes; then
4431 # Intel's compiler has a bug/misoptimization in checking for
4432 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4433 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4434 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -mp1"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 pgac_cv_prog_cc_cflags__mp1=yes
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 pgac_cv_prog_cc_cflags__mp1=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4490 CFLAGS="$CFLAGS -mp1"
4493 # Make sure strict aliasing is off (though this is said to be the default)
4494 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4495 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4496 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4497 $as_echo_n "(cached) " >&6
4499 pgac_save_CFLAGS=$CFLAGS
4500 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4501 ac_save_c_werror_flag=$ac_c_werror_flag
4502 ac_c_werror_flag=yes
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4525 $as_echo "$ac_try_echo") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest.$ac_objext; then
4536 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4538 $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="$pgac_save_CFLAGS"
4548 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4549 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4550 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4551 CFLAGS="$CFLAGS -fno-strict-aliasing"
4554 elif test "$PORTNAME" = "aix"; then
4555 # AIX's xlc has to have strict aliasing turned off too
4556 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4557 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4558 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4559 $as_echo_n "(cached) " >&6
4561 pgac_save_CFLAGS=$CFLAGS
4562 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4563 ac_save_c_werror_flag=$ac_c_werror_flag
4564 ac_c_werror_flag=yes
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588 (eval "$ac_compile") 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && {
4595 test -z "$ac_c_werror_flag" ||
4596 test ! -s conftest.err
4597 } && test -s conftest.$ac_objext; then
4598 pgac_cv_prog_cc_cflags__qnoansialias=yes
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 pgac_cv_prog_cc_cflags__qnoansialias=no
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="$pgac_save_CFLAGS"
4610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4611 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4612 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4613 CFLAGS="$CFLAGS -qnoansialias"
4616 elif test "$PORTNAME" = "hpux"; then
4617 # On some versions of HP-UX, libm functions do not set errno by default.
4618 # Fix that by using +Olibmerrno if the compiler recognizes it.
4619 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4620 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4621 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4624 pgac_save_CFLAGS=$CFLAGS
4625 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.$ac_objext; then
4661 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="$pgac_save_CFLAGS"
4673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4674 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4675 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4676 CFLAGS="$CFLAGS +Olibmerrno"
4681 # supply -g if --enable-debug
4682 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4686 # enable code coverage if --enable-coverage
4687 if test "$enable_coverage" = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4691 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4692 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4693 { (exit 1); exit 1; }; }
4697 # enable profiling if --enable-profiling
4698 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4699 if test "$GCC" = yes; then
4701 cat >>confdefs.h <<\_ACEOF
4702 #define PROFILE_PID_DIR 1
4705 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4707 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4708 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4709 { (exit 1); exit 1; }; }
4713 # We already have this in Makefile.win32, but configure needs it too
4714 if test "$PORTNAME" = "win32"; then
4715 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4718 # Check if the compiler still works with the template settings
4719 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4720 $as_echo_n "checking whether the C compiler still works... " >&6; }
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744 (eval "$ac_link") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest$ac_exeext && {
4754 test "$cross_compiling" = yes ||
4755 $as_test_x conftest$ac_exeext
4757 { $as_echo "$as_me:$LINENO: result: yes" >&5
4758 $as_echo "yes" >&6; }
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4765 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4766 $as_echo "$as_me: error: cannot proceed" >&2;}
4767 { (exit 1); exit 1; }; }
4770 rm -rf conftest.dSYM
4771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772 conftest$ac_exeext conftest.$ac_ext
4774 # Defend against gcc -ffast-math
4775 if test "$GCC" = yes; then
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4786 #ifdef __FAST_MATH__
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4813 $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4817 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4818 { (exit 1); exit 1; }; }
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4831 # On Suns, sometimes $CPP names a directory.
4832 if test -n "$CPP" && test -d "$CPP"; then
4835 if test -z "$CPP"; then
4836 if test "${ac_cv_prog_CPP+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 # Double quotes because CPP needs to be expanded
4840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4843 for ac_c_preproc_warn_flag in '' yes
4845 # Use a header file that comes with gcc, so configuring glibc
4846 # with a fresh cross-compiler works.
4847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848 # <limits.h> exists even on freestanding compilers.
4849 # On the NeXT, cc -E runs the code through the compiler's parser,
4850 # not just through cpp. "Syntax error" is here to catch this case.
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4858 # include <limits.h>
4860 # include <assert.h>
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null && {
4878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 # Broken: fails on valid input.
4890 rm -f conftest.err conftest.$ac_ext
4892 # OK, works on sane cases. Now check whether nonexistent headers
4893 # can be detected and how.
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <ac_nonexistent.h>
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } >/dev/null && {
4916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4919 # Broken: success on invalid input.
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 # Passes both tests.
4930 rm -f conftest.err conftest.$ac_ext
4933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4934 rm -f conftest.err conftest.$ac_ext
4935 if $ac_preproc_ok; then
4947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4948 $as_echo "$CPP" >&6; }
4950 for ac_c_preproc_warn_flag in '' yes
4952 # Use a header file that comes with gcc, so configuring glibc
4953 # with a fresh cross-compiler works.
4954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955 # <limits.h> exists even on freestanding compilers.
4956 # On the NeXT, cc -E runs the code through the compiler's parser,
4957 # not just through cpp. "Syntax error" is here to catch this case.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 # include <limits.h>
4967 # include <assert.h>
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4990 $as_echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Broken: fails on valid input.
4997 rm -f conftest.err conftest.$ac_ext
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null && {
5023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5024 test ! -s conftest.err
5026 # Broken: success on invalid input.
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 # Passes both tests.
5037 rm -f conftest.err conftest.$ac_ext
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5048 See \`config.log' for more details." >&5
5049 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5050 See \`config.log' for more details." >&2;}
5051 { (exit 1); exit 1; }; }; }
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 # Set up TAS assembly code if needed; the template file has now had its
5065 # chance to request this.
5067 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5070 if test "$need_tas" = yes ; then
5079 # Automatic dependency tracking
5083 # Check whether --enable-depend was given.
5084 if test "${enable_depend+set}" = set; then
5085 enableval=$enable_depend;
5094 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5095 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5096 { (exit 1); exit 1; }; }
5110 # Enable assert checks
5114 # Check whether --enable-cassert was given.
5115 if test "${enable_cassert+set}" = set; then
5116 enableval=$enable_cassert;
5120 cat >>confdefs.h <<\_ACEOF
5121 #define USE_ASSERT_CHECKING 1
5129 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5130 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5131 { (exit 1); exit 1; }; }
5144 # Include directories
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # SRCH_INC comes from the template file
5149 for dir in $with_includes $SRCH_INC; do
5150 if test -d "$dir"; then
5151 INCLUDES="$INCLUDES -I$dir"
5153 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5162 # Library directories
5165 IFS="${IFS}${PATH_SEPARATOR}"
5166 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5167 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5168 if test -d "$dir"; then
5169 LIBDIRS="$LIBDIRS -L$dir"
5171 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5172 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5178 # Enable thread-safe client libraries
5180 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5181 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5184 # Check whether --enable-thread-safety was given.
5185 if test "${enable_thread_safety+set}" = set; then
5186 enableval=$enable_thread_safety;
5195 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5196 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5197 { (exit 1); exit 1; }; }
5202 enable_thread_safety=yes
5207 if test "$enable_thread_safety" = yes; then
5209 cat >>confdefs.h <<\_ACEOF
5210 #define ENABLE_THREAD_SAFETY 1
5214 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5215 $as_echo "$enable_thread_safety" >&6; }
5219 # Optionally build Tcl modules (PL/Tcl)
5221 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5222 $as_echo_n "checking whether to build with Tcl... " >&6; }
5226 # Check whether --with-tcl was given.
5227 if test "${with_tcl+set}" = set; then
5237 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5239 { (exit 1); exit 1; }; }
5249 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5250 $as_echo "$with_tcl" >&6; }
5253 # We see if the path to the Tcl/Tk configuration scripts is specified.
5254 # This will override the use of tclsh to find the paths to search.
5259 # Check whether --with-tclconfig was given.
5260 if test "${with_tclconfig+set}" = set; then
5261 withval=$with_tclconfig;
5264 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5265 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5266 { (exit 1); exit 1; }; }
5269 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5270 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5271 { (exit 1); exit 1; }; }
5283 # Optionally build Perl modules (PL/Perl)
5285 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5286 $as_echo_n "checking whether to build Perl modules... " >&6; }
5290 # Check whether --with-perl was given.
5291 if test "${with_perl+set}" = set; then
5301 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5303 { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5314 $as_echo "$with_perl" >&6; }
5318 # Optionally build Python modules (PL/Python)
5320 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5321 $as_echo_n "checking whether to build Python modules... " >&6; }
5325 # Check whether --with-python was given.
5326 if test "${with_python+set}" = set; then
5327 withval=$with_python;
5336 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5337 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5338 { (exit 1); exit 1; }; }
5348 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5349 $as_echo "$with_python" >&6; }
5355 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5356 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5360 # Check whether --with-gssapi was given.
5361 if test "${with_gssapi+set}" = set; then
5362 withval=$with_gssapi;
5367 cat >>confdefs.h <<\_ACEOF
5368 #define ENABLE_GSS 1
5371 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5378 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5379 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5380 { (exit 1); exit 1; }; }
5390 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5391 $as_echo "$with_gssapi" >&6; }
5397 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5398 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5402 # Check whether --with-krb5 was given.
5403 if test "${with_krb5+set}" = set; then
5409 cat >>confdefs.h <<\_ACEOF
5413 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5420 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5421 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5422 { (exit 1); exit 1; }; }
5432 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5433 $as_echo "$with_krb5" >&6; }
5441 # Kerberos configuration parameters
5446 # Check whether --with-krb-srvnam was given.
5447 if test "${with_krb_srvnam+set}" = set; then
5448 withval=$with_krb_srvnam;
5451 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5452 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5453 { (exit 1); exit 1; }; }
5456 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5457 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5458 { (exit 1); exit 1; }; }
5466 with_krb_srvnam="postgres"
5471 cat >>confdefs.h <<_ACEOF
5472 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5480 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5481 $as_echo_n "checking whether to build with PAM support... " >&6; }
5485 # Check whether --with-pam was given.
5486 if test "${with_pam+set}" = set; then
5491 cat >>confdefs.h <<\_ACEOF
5500 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5501 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5502 { (exit 1); exit 1; }; }
5512 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5513 $as_echo "$with_pam" >&6; }
5520 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5521 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5525 # Check whether --with-ldap was given.
5526 if test "${with_ldap+set}" = set; then
5531 cat >>confdefs.h <<\_ACEOF
5540 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5541 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5542 { (exit 1); exit 1; }; }
5552 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5553 $as_echo "$with_ldap" >&6; }
5560 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5561 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5565 # Check whether --with-bonjour was given.
5566 if test "${with_bonjour+set}" = set; then
5567 withval=$with_bonjour;
5571 cat >>confdefs.h <<\_ACEOF
5572 #define USE_BONJOUR 1
5580 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5581 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5582 { (exit 1); exit 1; }; }
5592 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5593 $as_echo "$with_bonjour" >&6; }
5600 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5601 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5605 # Check whether --with-openssl was given.
5606 if test "${with_openssl+set}" = set; then
5607 withval=$with_openssl;
5611 cat >>confdefs.h <<\_ACEOF
5620 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5621 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5622 { (exit 1); exit 1; }; }
5632 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5633 $as_echo "$with_openssl" >&6; }
5639 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5640 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then
5646 withval=$with_selinux;
5655 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5657 { (exit 1); exit 1; }; }
5668 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5669 $as_echo "$with_selinux" >&6; }
5677 # Check whether --with-readline was given.
5678 if test "${with_readline+set}" = set; then
5679 withval=$with_readline;
5688 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5689 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5690 { (exit 1); exit 1; }; }
5700 # readline on MinGW has problems with backslashes in psql and other bugs.
5701 # This is particularly a problem with non-US code pages.
5702 # Therefore disable its use until we understand the cause. 2004-07-20
5703 if test "$PORTNAME" = "win32"; then
5704 if test "$with_readline" = yes; then
5705 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5706 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5718 # Check whether --with-libedit-preferred was given.
5719 if test "${with_libedit_preferred+set}" = set; then
5720 withval=$with_libedit_preferred;
5729 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5731 { (exit 1); exit 1; }; }
5736 with_libedit_preferred=no
5749 # Check whether --with-ossp-uuid was given.
5750 if test "${with_ossp_uuid+set}" = set; then
5751 withval=$with_ossp_uuid;
5760 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5761 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5762 { (exit 1); exit 1; }; }
5781 # Check whether --with-libxml was given.
5782 if test "${with_libxml+set}" = set; then
5783 withval=$with_libxml;
5787 cat >>confdefs.h <<\_ACEOF
5788 #define USE_LIBXML 1
5796 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5797 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5798 { (exit 1); exit 1; }; }
5809 if test "$with_libxml" = yes ; then
5810 for ac_prog in xml2-config
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$XML2_CONFIG"; then
5820 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_XML2_CONFIG="$ac_prog"
5830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5840 if test -n "$XML2_CONFIG"; then
5841 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5842 $as_echo "$XML2_CONFIG" >&6; }
5844 { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5849 test -n "$XML2_CONFIG" && break
5852 if test -n "$XML2_CONFIG"; then
5853 for pgac_option in `$XML2_CONFIG --cflags`; do
5854 case $pgac_option in
5855 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5858 for pgac_option in `$XML2_CONFIG --libs`; do
5859 case $pgac_option in
5860 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5874 # Check whether --with-libxslt was given.
5875 if test "${with_libxslt+set}" = set; then
5876 withval=$with_libxslt;
5880 cat >>confdefs.h <<\_ACEOF
5881 #define USE_LIBXSLT 1
5889 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5890 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5891 { (exit 1); exit 1; }; }
5911 # Check whether --with-system-tzdata was given.
5912 if test "${with_system_tzdata+set}" = set; then
5913 withval=$with_system_tzdata;
5916 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5917 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5918 { (exit 1); exit 1; }; }
5921 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5922 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5923 { (exit 1); exit 1; }; }
5941 # Check whether --with-zlib was given.
5942 if test "${with_zlib+set}" = set; then
5952 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5953 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5954 { (exit 1); exit 1; }; }
5970 # Assume system is ELF if it predefines __ELF__ as 1,
5971 # otherwise believe host_os based default.
5973 freebsd1*|freebsd2*) elf=no;;
5974 freebsd3*|freebsd4*) elf=yes;;
5978 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980 if test "${ac_cv_path_GREP+set}" = set; then
5981 $as_echo_n "(cached) " >&6
5983 if test -z "$GREP"; then
5984 ac_path_GREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in grep ggrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5995 # Check for GNU ac_path_GREP and select it if it is found.
5996 # Check for GNU $ac_path_GREP
5997 case `"$ac_path_GREP" --version 2>&1` in
5999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6002 $as_echo_n 0123456789 >"conftest.in"
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo 'GREP' >> "conftest.nl"
6009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 ac_count=`expr $ac_count + 1`
6012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_GREP="$ac_path_GREP"
6015 ac_path_GREP_max=$ac_count
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6023 $ac_path_GREP_found && break 3
6028 if test -z "$ac_cv_path_GREP"; then
6029 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6030 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6031 { (exit 1); exit 1; }; }
6034 ac_cv_path_GREP=$GREP
6038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6039 $as_echo "$ac_cv_path_GREP" >&6; }
6040 GREP="$ac_cv_path_GREP"
6043 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6044 $as_echo_n "checking for egrep... " >&6; }
6045 if test "${ac_cv_path_EGREP+set}" = set; then
6046 $as_echo_n "(cached) " >&6
6048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6049 then ac_cv_path_EGREP="$GREP -E"
6051 if test -z "$EGREP"; then
6052 ac_path_EGREP_found=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6058 test -z "$as_dir" && as_dir=.
6059 for ac_prog in egrep; do
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6063 # Check for GNU ac_path_EGREP and select it if it is found.
6064 # Check for GNU $ac_path_EGREP
6065 case `"$ac_path_EGREP" --version 2>&1` in
6067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6070 $as_echo_n 0123456789 >"conftest.in"
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'EGREP' >> "conftest.nl"
6077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079 ac_count=`expr $ac_count + 1`
6080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_EGREP="$ac_path_EGREP"
6083 ac_path_EGREP_max=$ac_count
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6091 $ac_path_EGREP_found && break 3
6096 if test -z "$ac_cv_path_EGREP"; then
6097 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6098 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6099 { (exit 1); exit 1; }; }
6102 ac_cv_path_EGREP=$EGREP
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 $as_echo "$ac_cv_path_EGREP" >&6; }
6109 EGREP="$ac_cv_path_EGREP"
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124 $EGREP "yes" >/dev/null 2>&1; then
6127 if test "X$elf" = "Xyes" ; then
6141 CPPFLAGS="$CPPFLAGS $INCLUDES"
6142 LDFLAGS="$LDFLAGS $LIBDIRS"
6148 # Check whether --with-gnu-ld was given.
6149 if test "${with_gnu_ld+set}" = set; then
6150 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6156 if test "$GCC" = yes; then
6157 # Check if gcc -print-prog-name=ld gives a path.
6158 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 $as_echo_n "checking for ld used by GCC... " >&6; }
6162 # gcc leaves a trailing carriage return which upsets mingw
6163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6168 # Accept absolute paths.
6169 [\\/]* | [A-Za-z]:[\\/]*)
6170 re_direlt='/[^/][^/]*/\.\./'
6171 # Canonicalize the path of ld
6172 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6176 test -z "$LD" && LD="$ac_prog"
6179 # If it fails, then pretend we aren't using GCC.
6183 # If it is relative, then search for the first ld in PATH.
6187 elif test "$with_gnu_ld" = yes; then
6188 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 $as_echo_n "checking for GNU ld... " >&6; }
6191 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 $as_echo_n "checking for non-GNU ld... " >&6; }
6194 if test "${ac_cv_path_LD+set}" = set; then
6195 $as_echo_n "(cached) " >&6
6197 if test -z "$LD"; then
6198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199 for ac_dir in $PATH; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202 ac_cv_path_LD="$ac_dir/$ac_prog"
6203 # Check to see if the program is GNU ld. I'd rather use --version,
6204 # but apparently some GNU ld's only accept -v.
6205 # Break only if it was the GNU/non-GNU ld that we prefer.
6206 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6207 test "$with_gnu_ld" != no && break
6209 test "$with_gnu_ld" != yes && break
6215 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6220 if test -n "$LD"; then
6221 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6222 $as_echo "$LD" >&6; }
6224 { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6227 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229 { (exit 1); exit 1; }; }
6230 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6232 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6235 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6237 ac_cv_prog_gnu_ld=yes
6239 ac_cv_prog_gnu_ld=no
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6243 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6244 with_gnu_ld=$ac_cv_prog_gnu_ld
6249 case $host_os in sysv5*)
6250 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6251 $as_echo_n "checking whether ld -R works... " >&6; }
6252 if test "${pgac_cv_prog_ld_R+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6256 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_link") 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest$ac_exeext && {
6290 test "$cross_compiling" = yes ||
6291 $as_test_x conftest$ac_exeext
6293 pgac_cv_prog_ld_R=yes
6295 $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 pgac_cv_prog_ld_R=no
6301 rm -rf conftest.dSYM
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LDFLAGS=$pgac_save_LDFLAGS
6307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6308 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6309 ld_R_works=$pgac_cv_prog_ld_R
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_RANLIB+set}" = set; then
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$RANLIB"; then
6321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 RANLIB=$ac_cv_prog_RANLIB
6341 if test -n "$RANLIB"; then
6342 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6343 $as_echo "$RANLIB" >&6; }
6345 { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6351 if test -z "$ac_cv_prog_RANLIB"; then
6352 ac_ct_RANLIB=$RANLIB
6353 # Extract the first word of "ranlib", so it can be a program name with args.
6354 set dummy ranlib; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$ac_ct_RANLIB"; then
6361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_ac_ct_RANLIB="ranlib"
6371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6381 if test -n "$ac_ct_RANLIB"; then
6382 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6383 $as_echo "$ac_ct_RANLIB" >&6; }
6385 { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6389 if test "x$ac_ct_RANLIB" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6398 RANLIB=$ac_ct_RANLIB
6401 RANLIB="$ac_cv_prog_RANLIB"
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_STRIP+set}" = set; then
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$STRIP"; then
6414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6438 { $as_echo "$as_me:$LINENO: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_STRIP"; then
6446 # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_STRIP"; then
6454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_STRIP="strip"
6464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6478 { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_STRIP" = x; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6494 STRIP="$ac_cv_prog_STRIP"
6498 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6499 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6500 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6501 STRIP_STATIC_LIB="$STRIP -x"
6502 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6503 { $as_echo "$as_me:$LINENO: result: yes" >&5
6504 $as_echo "yes" >&6; }
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$AR"; then
6523 ac_cv_prog_AR="$AR" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_AR="${ac_tool_prefix}ar"
6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 if test -n "$AR"; then
6544 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6545 $as_echo "$AR" >&6; }
6547 { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6553 if test -z "$ac_cv_prog_AR"; then
6555 # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$ac_ct_AR"; then
6563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_AR="ar"
6573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 $as_echo "$ac_ct_AR" >&6; }
6587 { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6591 if test "x$ac_ct_AR" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6606 if test "$PORTNAME" = "win32"; then
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$DLLTOOL"; then
6616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 DLLTOOL=$ac_cv_prog_DLLTOOL
6636 if test -n "$DLLTOOL"; then
6637 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6638 $as_echo "$DLLTOOL" >&6; }
6640 { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_DLLTOOL"; then
6647 ac_ct_DLLTOOL=$DLLTOOL
6648 # Extract the first word of "dlltool", so it can be a program name with args.
6649 set dummy dlltool; ac_word=$2
6650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_DLLTOOL"; then
6656 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6676 if test -n "$ac_ct_DLLTOOL"; then
6677 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6678 $as_echo "$ac_ct_DLLTOOL" >&6; }
6680 { $as_echo "$as_me:$LINENO: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_DLLTOOL" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6693 DLLTOOL=$ac_ct_DLLTOOL
6696 DLLTOOL="$ac_cv_prog_DLLTOOL"
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6705 $as_echo_n "(cached) " >&6
6707 if test -n "$DLLWRAP"; then
6708 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 DLLWRAP=$ac_cv_prog_DLLWRAP
6728 if test -n "$DLLWRAP"; then
6729 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6730 $as_echo "$DLLWRAP" >&6; }
6732 { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_DLLWRAP"; then
6739 ac_ct_DLLWRAP=$DLLWRAP
6740 # Extract the first word of "dllwrap", so it can be a program name with args.
6741 set dummy dllwrap; ac_word=$2
6742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$ac_ct_DLLWRAP"; then
6748 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6768 if test -n "$ac_ct_DLLWRAP"; then
6769 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6770 $as_echo "$ac_ct_DLLWRAP" >&6; }
6772 { $as_echo "$as_me:$LINENO: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_DLLWRAP" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6785 DLLWRAP=$ac_ct_DLLWRAP
6788 DLLWRAP="$ac_cv_prog_DLLWRAP"
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}windres; ac_word=$2
6794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_WINDRES+set}" = set; then
6797 $as_echo_n "(cached) " >&6
6799 if test -n "$WINDRES"; then
6800 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 WINDRES=$ac_cv_prog_WINDRES
6820 if test -n "$WINDRES"; then
6821 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6822 $as_echo "$WINDRES" >&6; }
6824 { $as_echo "$as_me:$LINENO: result: no" >&5
6825 $as_echo "no" >&6; }
6830 if test -z "$ac_cv_prog_WINDRES"; then
6831 ac_ct_WINDRES=$WINDRES
6832 # Extract the first word of "windres", so it can be a program name with args.
6833 set dummy windres; ac_word=$2
6834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6837 $as_echo_n "(cached) " >&6
6839 if test -n "$ac_ct_WINDRES"; then
6840 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_ac_ct_WINDRES="windres"
6850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6860 if test -n "$ac_ct_WINDRES"; then
6861 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6862 $as_echo "$ac_ct_WINDRES" >&6; }
6864 { $as_echo "$as_me:$LINENO: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$ac_ct_WINDRES" = x; then
6871 case $cross_compiling:$ac_tool_warned in
6873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6877 WINDRES=$ac_ct_WINDRES
6880 WINDRES="$ac_cv_prog_WINDRES"
6885 # Extract the first word of "tar", so it can be a program name with args.
6886 set dummy tar; ac_word=$2
6887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_path_TAR+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6894 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 if test -n "$TAR"; then
6917 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6918 $as_echo "$TAR" >&6; }
6920 { $as_echo "$as_me:$LINENO: result: no" >&5
6921 $as_echo "no" >&6; }
6925 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6926 $as_echo_n "checking whether ln -s works... " >&6; }
6928 if test "$LN_S" = "ln -s"; then
6929 { $as_echo "$as_me:$LINENO: result: yes" >&5
6930 $as_echo "yes" >&6; }
6932 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6933 $as_echo "no, using $LN_S" >&6; }
6936 for ac_prog in gawk mawk nawk awk
6938 # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_AWK+set}" = set; then
6943 $as_echo_n "(cached) " >&6
6945 if test -n "$AWK"; then
6946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_AWK="$ac_prog"
6956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 if test -n "$AWK"; then
6967 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6968 $as_echo "$AWK" >&6; }
6970 { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6975 test -n "$AWK" && break
6978 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6980 if test -z "$MKDIR_P"; then
6981 if test "${ac_cv_path_mkdir+set}" = set; then
6982 $as_echo_n "(cached) " >&6
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6988 test -z "$as_dir" && as_dir=.
6989 for ac_prog in mkdir gmkdir; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6993 'mkdir (GNU coreutils) '* | \
6994 'mkdir (coreutils) '* | \
6995 'mkdir (fileutils) '4.1*)
6996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7006 if test "${ac_cv_path_mkdir+set}" = set; then
7007 MKDIR_P="$ac_cv_path_mkdir -p"
7009 # As a last resort, use the slow shell script. Don't cache a
7010 # value for MKDIR_P within a source directory, because that will
7011 # break other packages using the cache if that directory is
7012 # removed, or if the value is a relative name.
7013 test -d ./--version && rmdir ./--version
7014 MKDIR_P="$ac_install_sh -d"
7017 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7018 $as_echo "$MKDIR_P" >&6; }
7020 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7021 # a relative path to it in each makefile where it subsitutes it. This clashes
7022 # with our Makefile.global concept. This workaround helps.
7024 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7027 # Let the user override the search
7028 if test -z "$BISON"; then
7029 for ac_prog in bison
7031 # Extract the first word of "$ac_prog", so it can be a program name with args.
7032 set dummy $ac_prog; ac_word=$2
7033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_path_BISON+set}" = set; then
7036 $as_echo_n "(cached) " >&6
7040 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 BISON=$ac_cv_path_BISON
7062 if test -n "$BISON"; then
7063 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7064 $as_echo "$BISON" >&6; }
7066 { $as_echo "$as_me:$LINENO: result: no" >&5
7067 $as_echo "no" >&6; }
7071 test -n "$BISON" && break
7076 if test "$BISON"; then
7077 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7078 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7079 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7080 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7082 { $as_echo "$as_me:$LINENO: WARNING:
7083 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7084 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7085 $as_echo "$as_me: WARNING:
7086 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7087 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7092 if test -z "$BISON"; then
7093 { $as_echo "$as_me:$LINENO: WARNING:
7094 *** Without Bison you will not be able to build PostgreSQL from Git nor
7095 *** change any of the parser definition files. You can obtain Bison from
7096 *** a GNU mirror site. (If you are using the official distribution of
7097 *** PostgreSQL then you do not need to worry about this, because the Bison
7098 *** output is pre-generated.)" >&5
7099 $as_echo "$as_me: WARNING:
7100 *** Without Bison you will not be able to build PostgreSQL from Git nor
7101 *** change any of the parser definition files. You can obtain Bison from
7102 *** a GNU mirror site. (If you are using the official distribution of
7103 *** PostgreSQL then you do not need to worry about this, because the Bison
7104 *** output is pre-generated.)" >&2;}
7106 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7109 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7110 $as_echo_n "checking for flex... " >&6; }
7111 if test "${pgac_cv_path_flex+set}" = set; then
7112 $as_echo_n "(cached) " >&6
7114 # Let the user override the test
7115 if test -n "$FLEX"; then
7116 pgac_cv_path_flex=$FLEX
7120 for pgac_dir in $PATH; do
7122 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7125 for pgac_prog in flex lex; do
7126 pgac_candidate="$pgac_dir/$pgac_prog"
7127 if test -f "$pgac_candidate" \
7128 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7130 echo '%%' > conftest.l
7131 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7132 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7133 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7135 pgac_cv_path_flex=$pgac_candidate
7138 { $as_echo "$as_me:$LINENO: WARNING:
7139 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7140 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7141 $as_echo "$as_me: WARNING:
7142 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7143 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7149 rm -f conftest.l lex.yy.c
7150 : ${pgac_cv_path_flex=no}
7154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7155 $as_echo "$pgac_cv_path_flex" >&6; }
7156 if test x"$pgac_cv_path_flex" = x"no"; then
7157 { $as_echo "$as_me:$LINENO: WARNING:
7158 *** Without Flex you will not be able to build PostgreSQL from Git nor
7159 *** change any of the scanner definition files. You can obtain Flex from
7160 *** a GNU mirror site. (If you are using the official distribution of
7161 *** PostgreSQL then you do not need to worry about this because the Flex
7162 *** output is pre-generated.)" >&5
7163 $as_echo "$as_me: WARNING:
7164 *** Without Flex you will not be able to build PostgreSQL from Git nor
7165 *** change any of the scanner definition files. You can obtain Flex from
7166 *** a GNU mirror site. (If you are using the official distribution of
7167 *** PostgreSQL then you do not need to worry about this because the Flex
7168 *** output is pre-generated.)" >&2;}
7172 FLEX=$pgac_cv_path_flex
7173 pgac_flex_version=`$FLEX --version 2>/dev/null`
7174 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7175 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7182 # Let the user override the search
7183 if test -z "$PERL"; then
7184 # Extract the first word of "perl", so it can be a program name with args.
7185 set dummy perl; ac_word=$2
7186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_path_PERL+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7193 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 PERL=$ac_cv_path_PERL
7215 if test -n "$PERL"; then
7216 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7217 $as_echo "$PERL" >&6; }
7219 { $as_echo "$as_me:$LINENO: result: no" >&5
7220 $as_echo "no" >&6; }
7226 if test "$PERL"; then
7227 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'`
7228 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7229 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7230 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7231 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7233 { $as_echo "$as_me:$LINENO: WARNING:
7234 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7235 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7236 $as_echo "$as_me: WARNING:
7237 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7238 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7243 if test -z "$PERL"; then
7244 { $as_echo "$as_me:$LINENO: WARNING:
7245 *** Without Perl you will not be able to build PostgreSQL from Git.
7246 *** You can obtain Perl from any CPAN mirror site.
7247 *** (If you are using the official distribution of PostgreSQL then you do not
7248 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7249 $as_echo "$as_me: WARNING:
7250 *** Without Perl you will not be able to build PostgreSQL from Git.
7251 *** You can obtain Perl from any CPAN mirror site.
7252 *** (If you are using the official distribution of PostgreSQL then you do not
7253 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7256 if test "$with_perl" = yes; then
7257 if test -z "$PERL"; then
7258 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7259 $as_echo "$as_me: error: Perl not found" >&2;}
7260 { (exit 1); exit 1; }; }
7263 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7264 $as_echo_n "checking for Perl archlibexp... " >&6; }
7265 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7266 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7267 $as_echo "$perl_archlibexp" >&6; }
7268 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7269 $as_echo_n "checking for Perl privlibexp... " >&6; }
7270 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7271 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7272 $as_echo "$perl_privlibexp" >&6; }
7273 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7274 $as_echo_n "checking for Perl useshrplib... " >&6; }
7275 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7276 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7277 $as_echo "$perl_useshrplib" >&6; }
7279 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7280 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7281 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7282 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7283 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7284 if test -z "$perl_embed_ldflags" ; then
7285 { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7287 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7288 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7290 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7291 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7293 { (exit 1); exit 1; }; }
7295 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7296 $as_echo "$perl_embed_ldflags" >&6; }
7301 if test "$with_python" = yes; then
7302 # Extract the first word of "python", so it can be a program name with args.
7303 set dummy python; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_PYTHON+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7311 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 PYTHON=$ac_cv_path_PYTHON
7333 if test -n "$PYTHON"; then
7334 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7335 $as_echo "$PYTHON" >&6; }
7337 { $as_echo "$as_me:$LINENO: result: no" >&5
7338 $as_echo "no" >&6; }
7342 if test x"$PYTHON" = x""; then
7343 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7344 $as_echo "$as_me: error: Python not found" >&2;}
7345 { (exit 1); exit 1; }; }
7349 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7350 $as_echo_n "checking for Python distutils module... " >&6; }
7351 if "${PYTHON}" -c 'import distutils' 2>&5
7353 { $as_echo "$as_me:$LINENO: result: yes" >&5
7354 $as_echo "yes" >&6; }
7356 { $as_echo "$as_me:$LINENO: result: no" >&5
7357 $as_echo "no" >&6; }
7358 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7359 $as_echo "$as_me: error: distutils module not found" >&2;}
7360 { (exit 1); exit 1; }; }
7362 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7363 $as_echo_n "checking Python configuration directory... " >&6; }
7364 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7365 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7366 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7367 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7369 # This should be enough of a message.
7370 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7371 $as_echo "$python_configdir" >&6; }
7374 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7375 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7377 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7378 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7379 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7380 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7382 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7384 # New way: use the official shared library
7385 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7386 python_libspec="-L${python_libdir} -l${ldlibrary}"
7388 # Old way: use libpython from python_configdir
7389 python_libdir="${python_configdir}"
7390 # LDVERSION was introduced in Python 3.2.
7391 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7392 if test x"${python_ldversion}" = x""; then
7393 python_ldversion=$python_version
7395 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7400 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7401 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7404 # threaded python is not supported on bsd's
7405 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7406 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7407 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7408 if test "$pythreads" = "1"; then
7409 { $as_echo "$as_me:$LINENO: result: yes" >&5
7410 $as_echo "yes" >&6; }
7413 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7414 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7415 { (exit 1); exit 1; }; }
7419 { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7426 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7427 # Extract the first word of "zic", so it can be a program name with args.
7428 set dummy zic; ac_word=$2
7429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_path_ZIC+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7436 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 if test -n "$ZIC"; then
7459 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7460 $as_echo "$ZIC" >&6; }
7462 { $as_echo "$as_me:$LINENO: result: no" >&5
7463 $as_echo "no" >&6; }
7467 if test -z "$ZIC"; then
7468 { { $as_echo "$as_me:$LINENO: error:
7469 When cross-compiling, either use the option --with-system-tzdata to use
7470 existing time-zone data, or set the environment variable ZIC to a zic
7471 program to use during the build." >&5
7472 $as_echo "$as_me: error:
7473 When cross-compiling, either use the option --with-system-tzdata to use
7474 existing time-zone data, or set the environment variable ZIC to a zic
7475 program to use during the build." >&2;}
7476 { (exit 1); exit 1; }; }
7484 ## Most libraries are included only if they demonstrably provide a function
7485 ## we need, but libm is an exception: always include it, because there are
7486 ## too many compilers that play cute optimization games that will break
7487 ## probes for standard functions such as pow().
7491 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7492 $as_echo_n "checking for main in -lm... " >&6; }
7493 if test "${ac_cv_lib_m_main+set}" = set; then
7494 $as_echo_n "(cached) " >&6
7496 ac_check_lib_save_LIBS=$LIBS
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_link") 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest$ac_exeext && {
7532 test "$cross_compiling" = yes ||
7533 $as_test_x conftest$ac_exeext
7535 ac_cv_lib_m_main=yes
7537 $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7549 $as_echo "$ac_cv_lib_m_main" >&6; }
7550 if test "x$ac_cv_lib_m_main" = x""yes; then
7551 cat >>confdefs.h <<_ACEOF
7559 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7560 $as_echo_n "checking for library containing setproctitle... " >&6; }
7561 if test "${ac_cv_search_setproctitle+set}" = set; then
7562 $as_echo_n "(cached) " >&6
7564 ac_func_search_save_LIBS=$LIBS
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7572 /* Override any GCC internal prototype to avoid an error.
7573 Use char because int might match the return type of a GCC
7574 builtin and then its argument prototype would still apply. */
7578 char setproctitle ();
7582 return setproctitle ();
7587 for ac_lib in '' util; do
7588 if test -z "$ac_lib"; then
7589 ac_res="none required"
7592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_link") 2>conftest.er1
7604 grep -v '^ *+' conftest.er1 >conftest.err
7606 cat conftest.err >&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest$ac_exeext && {
7612 test "$cross_compiling" = yes ||
7613 $as_test_x conftest$ac_exeext
7615 ac_cv_search_setproctitle=$ac_res
7617 $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7623 rm -rf conftest.dSYM
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 if test "${ac_cv_search_setproctitle+set}" = set; then
7630 if test "${ac_cv_search_setproctitle+set}" = set; then
7633 ac_cv_search_setproctitle=no
7636 LIBS=$ac_func_search_save_LIBS
7638 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7639 $as_echo "$ac_cv_search_setproctitle" >&6; }
7640 ac_res=$ac_cv_search_setproctitle
7641 if test "$ac_res" != no; then
7642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7646 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7647 $as_echo_n "checking for library containing dlopen... " >&6; }
7648 if test "${ac_cv_search_dlopen+set}" = set; then
7649 $as_echo_n "(cached) " >&6
7651 ac_func_search_save_LIBS=$LIBS
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 /* Override any GCC internal prototype to avoid an error.
7660 Use char because int might match the return type of a GCC
7661 builtin and then its argument prototype would still apply. */
7674 for ac_lib in '' dl; do
7675 if test -z "$ac_lib"; then
7676 ac_res="none required"
7679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_link") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest$ac_exeext && {
7699 test "$cross_compiling" = yes ||
7700 $as_test_x conftest$ac_exeext
7702 ac_cv_search_dlopen=$ac_res
7704 $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -rf conftest.dSYM
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7713 if test "${ac_cv_search_dlopen+set}" = set; then
7717 if test "${ac_cv_search_dlopen+set}" = set; then
7720 ac_cv_search_dlopen=no
7723 LIBS=$ac_func_search_save_LIBS
7725 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7726 $as_echo "$ac_cv_search_dlopen" >&6; }
7727 ac_res=$ac_cv_search_dlopen
7728 if test "$ac_res" != no; then
7729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7733 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7734 $as_echo_n "checking for library containing socket... " >&6; }
7735 if test "${ac_cv_search_socket+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7738 ac_func_search_save_LIBS=$LIBS
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7761 for ac_lib in '' socket wsock32; do
7762 if test -z "$ac_lib"; then
7763 ac_res="none required"
7766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_link") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1 >conftest.err
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest$ac_exeext && {
7786 test "$cross_compiling" = yes ||
7787 $as_test_x conftest$ac_exeext
7789 ac_cv_search_socket=$ac_res
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7797 rm -rf conftest.dSYM
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800 if test "${ac_cv_search_socket+set}" = set; then
7804 if test "${ac_cv_search_socket+set}" = set; then
7807 ac_cv_search_socket=no
7810 LIBS=$ac_func_search_save_LIBS
7812 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7813 $as_echo "$ac_cv_search_socket" >&6; }
7814 ac_res=$ac_cv_search_socket
7815 if test "$ac_res" != no; then
7816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7820 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7821 $as_echo_n "checking for library containing shl_load... " >&6; }
7822 if test "${ac_cv_search_shl_load+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 ac_func_search_save_LIBS=$LIBS
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7833 /* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7848 for ac_lib in '' dld; do
7849 if test -z "$ac_lib"; then
7850 ac_res="none required"
7853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest$ac_exeext && {
7873 test "$cross_compiling" = yes ||
7874 $as_test_x conftest$ac_exeext
7876 ac_cv_search_shl_load=$ac_res
7878 $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7887 if test "${ac_cv_search_shl_load+set}" = set; then
7891 if test "${ac_cv_search_shl_load+set}" = set; then
7894 ac_cv_search_shl_load=no
7897 LIBS=$ac_func_search_save_LIBS
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7900 $as_echo "$ac_cv_search_shl_load" >&6; }
7901 ac_res=$ac_cv_search_shl_load
7902 if test "$ac_res" != no; then
7903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7907 # We only use libld in port/dynloader/aix.c
7910 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7911 $as_echo_n "checking for library containing ldopen... " >&6; }
7912 if test "${ac_cv_search_ldopen+set}" = set; then
7913 $as_echo_n "(cached) " >&6
7915 ac_func_search_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7938 for ac_lib in '' ld; do
7939 if test -z "$ac_lib"; then
7940 ac_res="none required"
7943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext && {
7963 test "$cross_compiling" = yes ||
7964 $as_test_x conftest$ac_exeext
7966 ac_cv_search_ldopen=$ac_res
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7977 if test "${ac_cv_search_ldopen+set}" = set; then
7981 if test "${ac_cv_search_ldopen+set}" = set; then
7984 ac_cv_search_ldopen=no
7987 LIBS=$ac_func_search_save_LIBS
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7990 $as_echo "$ac_cv_search_ldopen" >&6; }
7991 ac_res=$ac_cv_search_ldopen
7992 if test "$ac_res" != no; then
7993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7999 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8000 $as_echo_n "checking for library containing getopt_long... " >&6; }
8001 if test "${ac_cv_search_getopt_long+set}" = set; then
8002 $as_echo_n "(cached) " >&6
8004 ac_func_search_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8012 /* Override any GCC internal prototype to avoid an error.
8013 Use char because int might match the return type of a GCC
8014 builtin and then its argument prototype would still apply. */
8018 char getopt_long ();
8022 return getopt_long ();
8027 for ac_lib in '' getopt gnugetopt; do
8028 if test -z "$ac_lib"; then
8029 ac_res="none required"
8032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext && {
8052 test "$cross_compiling" = yes ||
8053 $as_test_x conftest$ac_exeext
8055 ac_cv_search_getopt_long=$ac_res
8057 $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8066 if test "${ac_cv_search_getopt_long+set}" = set; then
8070 if test "${ac_cv_search_getopt_long+set}" = set; then
8073 ac_cv_search_getopt_long=no
8076 LIBS=$ac_func_search_save_LIBS
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8079 $as_echo "$ac_cv_search_getopt_long" >&6; }
8080 ac_res=$ac_cv_search_getopt_long
8081 if test "$ac_res" != no; then
8082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8086 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8087 $as_echo_n "checking for library containing crypt... " >&6; }
8088 if test "${ac_cv_search_crypt+set}" = set; then
8089 $as_echo_n "(cached) " >&6
8091 ac_func_search_save_LIBS=$LIBS
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8099 /* Override any GCC internal prototype to avoid an error.
8100 Use char because int might match the return type of a GCC
8101 builtin and then its argument prototype would still apply. */
8114 for ac_lib in '' crypt; do
8115 if test -z "$ac_lib"; then
8116 ac_res="none required"
8119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (ac_try="$ac_link"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129 (eval "$ac_link") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1 >conftest.err
8133 cat conftest.err >&5
8134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest$ac_exeext && {
8139 test "$cross_compiling" = yes ||
8140 $as_test_x conftest$ac_exeext
8142 ac_cv_search_crypt=$ac_res
8144 $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8150 rm -rf conftest.dSYM
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8153 if test "${ac_cv_search_crypt+set}" = set; then
8157 if test "${ac_cv_search_crypt+set}" = set; then
8160 ac_cv_search_crypt=no
8163 LIBS=$ac_func_search_save_LIBS
8165 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8166 $as_echo "$ac_cv_search_crypt" >&6; }
8167 ac_res=$ac_cv_search_crypt
8168 if test "$ac_res" != no; then
8169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8174 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8175 $as_echo_n "checking for library containing fdatasync... " >&6; }
8176 if test "${ac_cv_search_fdatasync+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8179 ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8197 return fdatasync ();
8202 for ac_lib in '' rt posix4; do
8203 if test -z "$ac_lib"; then
8204 ac_res="none required"
8207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && {
8224 test -z "$ac_c_werror_flag" ||
8225 test ! -s conftest.err
8226 } && test -s conftest$ac_exeext && {
8227 test "$cross_compiling" = yes ||
8228 $as_test_x conftest$ac_exeext
8230 ac_cv_search_fdatasync=$ac_res
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8241 if test "${ac_cv_search_fdatasync+set}" = set; then
8245 if test "${ac_cv_search_fdatasync+set}" = set; then
8248 ac_cv_search_fdatasync=no
8251 LIBS=$ac_func_search_save_LIBS
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8254 $as_echo "$ac_cv_search_fdatasync" >&6; }
8255 ac_res=$ac_cv_search_fdatasync
8256 if test "$ac_res" != no; then
8257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 # Required for thread_test.c on Solaris 2.5:
8262 # Other ports use it too (HP-UX) so test unconditionally
8263 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8264 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8265 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8268 ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8282 char gethostbyname_r ();
8286 return gethostbyname_r ();
8291 for ac_lib in '' nsl; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306 (eval "$ac_link") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest$ac_exeext && {
8316 test "$cross_compiling" = yes ||
8317 $as_test_x conftest$ac_exeext
8319 ac_cv_search_gethostbyname_r=$ac_res
8321 $as_echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -rf conftest.dSYM
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8330 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8334 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8337 ac_cv_search_gethostbyname_r=no
8340 LIBS=$ac_func_search_save_LIBS
8342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8343 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8344 ac_res=$ac_cv_search_gethostbyname_r
8345 if test "$ac_res" != no; then
8346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8351 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8352 $as_echo_n "checking for library containing shmget... " >&6; }
8353 if test "${ac_cv_search_shmget+set}" = set; then
8354 $as_echo_n "(cached) " >&6
8356 ac_func_search_save_LIBS=$LIBS
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8379 for ac_lib in '' cygipc; do
8380 if test -z "$ac_lib"; then
8381 ac_res="none required"
8384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394 (eval "$ac_link") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest$ac_exeext && {
8404 test "$cross_compiling" = yes ||
8405 $as_test_x conftest$ac_exeext
8407 ac_cv_search_shmget=$ac_res
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -rf conftest.dSYM
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418 if test "${ac_cv_search_shmget+set}" = set; then
8422 if test "${ac_cv_search_shmget+set}" = set; then
8425 ac_cv_search_shmget=no
8428 LIBS=$ac_func_search_save_LIBS
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8431 $as_echo "$ac_cv_search_shmget" >&6; }
8432 ac_res=$ac_cv_search_shmget
8433 if test "$ac_res" != no; then
8434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439 if test "$with_readline" = yes; then
8442 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8443 $as_echo_n "checking for library containing readline... " >&6; }
8444 if test "${pgac_cv_check_readline+set}" = set; then
8445 $as_echo_n "(cached) " >&6
8447 pgac_cv_check_readline=no
8448 pgac_save_LIBS=$LIBS
8449 if test x"$with_libedit_preferred" != x"yes"
8450 then READLINE_ORDER="-lreadline -ledit"
8451 else READLINE_ORDER="-ledit -lreadline"
8453 for pgac_rllib in $READLINE_ORDER ; do
8454 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8455 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8463 /* Override any GCC internal prototype to avoid an error.
8464 Use char because int might match the return type of a GCC
8465 builtin and then its argument prototype would still apply. */
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest$ac_exeext && {
8496 test "$cross_compiling" = yes ||
8497 $as_test_x conftest$ac_exeext
8500 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8501 # recognize dependent libraries; assume curses is needed if we didn't
8502 # find any dependency.
8504 netbsd* | openbsd* | irix*)
8505 if test x"$pgac_lib" = x"" ; then
8506 pgac_lib=" -lcurses"
8510 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8514 $as_echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -rf conftest.dSYM
8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522 conftest$ac_exeext conftest.$ac_ext
8524 if test "$pgac_cv_check_readline" != no ; then
8528 LIBS=$pgac_save_LIBS
8531 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8532 $as_echo "$pgac_cv_check_readline" >&6; }
8533 if test "$pgac_cv_check_readline" != no ; then
8534 LIBS="$pgac_cv_check_readline $LIBS"
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LIBREADLINE 1
8543 if test x"$pgac_cv_check_readline" = x"no"; then
8544 { { $as_echo "$as_me:$LINENO: error: readline library not found
8545 If you have readline already installed, see config.log for details on the
8546 failure. It is possible the compiler isn't looking in the proper directory.
8547 Use --without-readline to disable readline support." >&5
8548 $as_echo "$as_me: error: readline library not found
8549 If you have readline already installed, see config.log for details on the
8550 failure. It is possible the compiler isn't looking in the proper directory.
8551 Use --without-readline to disable readline support." >&2;}
8552 { (exit 1); exit 1; }; }
8556 if test "$with_zlib" = yes; then
8558 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8559 $as_echo_n "checking for inflate in -lz... " >&6; }
8560 if test "${ac_cv_lib_z_inflate+set}" = set; then
8561 $as_echo_n "(cached) " >&6
8563 ac_check_lib_save_LIBS=$LIBS
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 /* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_link") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest$ac_exeext && {
8605 test "$cross_compiling" = yes ||
8606 $as_test_x conftest$ac_exeext
8608 ac_cv_lib_z_inflate=yes
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_cv_lib_z_inflate=no
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8622 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8623 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8624 cat >>confdefs.h <<_ACEOF
8631 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8632 If you have zlib already installed, see config.log for details on the
8633 failure. It is possible the compiler isn't looking in the proper directory.
8634 Use --without-zlib to disable zlib support." >&5
8635 $as_echo "$as_me: error: zlib library not found
8636 If you have zlib already installed, see config.log for details on the
8637 failure. It is possible the compiler isn't looking in the proper directory.
8638 Use --without-zlib to disable zlib support." >&2;}
8639 { (exit 1); exit 1; }; }
8644 if test "$enable_spinlocks" = yes; then
8646 cat >>confdefs.h <<\_ACEOF
8647 #define HAVE_SPINLOCKS 1
8651 { $as_echo "$as_me:$LINENO: WARNING:
8652 *** Not using spinlocks will cause poor performance." >&5
8653 $as_echo "$as_me: WARNING:
8654 *** Not using spinlocks will cause poor performance." >&2;}
8657 if test "$with_gssapi" = yes ; then
8658 if test "$PORTNAME" != "win32"; then
8659 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8660 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8661 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8664 ac_func_search_save_LIBS=$LIBS
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8672 /* Override any GCC internal prototype to avoid an error.
8673 Use char because int might match the return type of a GCC
8674 builtin and then its argument prototype would still apply. */
8678 char gss_init_sec_context ();
8682 return gss_init_sec_context ();
8687 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8688 if test -z "$ac_lib"; then
8689 ac_res="none required"
8692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (ac_try="$ac_link"
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8701 $as_echo "$ac_try_echo") >&5
8702 (eval "$ac_link") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest$ac_exeext && {
8712 test "$cross_compiling" = yes ||
8713 $as_test_x conftest$ac_exeext
8715 ac_cv_search_gss_init_sec_context=$ac_res
8717 $as_echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -rf conftest.dSYM
8724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8726 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8730 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8733 ac_cv_search_gss_init_sec_context=no
8736 LIBS=$ac_func_search_save_LIBS
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8739 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8740 ac_res=$ac_cv_search_gss_init_sec_context
8741 if test "$ac_res" != no; then
8742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8745 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8746 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8747 { (exit 1); exit 1; }; }
8751 LIBS="$LIBS -lgssapi32"
8755 if test "$with_krb5" = yes ; then
8756 if test "$PORTNAME" != "win32"; then
8757 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8758 $as_echo_n "checking for library containing com_err... " >&6; }
8759 if test "${ac_cv_search_com_err+set}" = set; then
8760 $as_echo_n "(cached) " >&6
8762 ac_func_search_save_LIBS=$LIBS
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8770 /* Override any GCC internal prototype to avoid an error.
8771 Use char because int might match the return type of a GCC
8772 builtin and then its argument prototype would still apply. */
8785 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8786 if test -z "$ac_lib"; then
8787 ac_res="none required"
8790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_link") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest$ac_exeext && {
8810 test "$cross_compiling" = yes ||
8811 $as_test_x conftest$ac_exeext
8813 ac_cv_search_com_err=$ac_res
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -rf conftest.dSYM
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8824 if test "${ac_cv_search_com_err+set}" = set; then
8828 if test "${ac_cv_search_com_err+set}" = set; then
8831 ac_cv_search_com_err=no
8834 LIBS=$ac_func_search_save_LIBS
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8837 $as_echo "$ac_cv_search_com_err" >&6; }
8838 ac_res=$ac_cv_search_com_err
8839 if test "$ac_res" != no; then
8840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8843 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8844 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8845 { (exit 1); exit 1; }; }
8848 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8849 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8853 ac_func_search_save_LIBS=$LIBS
8854 cat >conftest.$ac_ext <<_ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 /* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
8867 char krb5_sendauth ();
8871 return krb5_sendauth ();
8876 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8877 if test -z "$ac_lib"; then
8878 ac_res="none required"
8881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8883 rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext && {
8901 test "$cross_compiling" = yes ||
8902 $as_test_x conftest$ac_exeext
8904 ac_cv_search_krb5_sendauth=$ac_res
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8915 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8919 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8922 ac_cv_search_krb5_sendauth=no
8925 LIBS=$ac_func_search_save_LIBS
8927 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8928 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8929 ac_res=$ac_cv_search_krb5_sendauth
8930 if test "$ac_res" != no; then
8931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8934 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8935 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8936 { (exit 1); exit 1; }; }
8940 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8941 $as_echo_n "checking for library containing com_err... " >&6; }
8942 if test "${ac_cv_search_com_err+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8945 ac_func_search_save_LIBS=$LIBS
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8953 /* Override any GCC internal prototype to avoid an error.
8954 Use char because int might match the return type of a GCC
8955 builtin and then its argument prototype would still apply. */
8968 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8969 if test -z "$ac_lib"; then
8970 ac_res="none required"
8973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest$ac_exeext
8996 ac_cv_search_com_err=$ac_res
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 if test "${ac_cv_search_com_err+set}" = set; then
9011 if test "${ac_cv_search_com_err+set}" = set; then
9014 ac_cv_search_com_err=no
9017 LIBS=$ac_func_search_save_LIBS
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9020 $as_echo "$ac_cv_search_com_err" >&6; }
9021 ac_res=$ac_cv_search_com_err
9022 if test "$ac_res" != no; then
9023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9026 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9027 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9028 { (exit 1); exit 1; }; }
9034 if test "$with_openssl" = yes ; then
9035 if test "$PORTNAME" != "win32"; then
9037 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9038 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9039 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9040 $as_echo_n "(cached) " >&6
9042 ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lcrypto $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9057 char CRYPTO_new_ex_data ();
9061 return CRYPTO_new_ex_data ();
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9073 $as_echo "$ac_try_echo") >&5
9074 (eval "$ac_link") 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest$ac_exeext && {
9084 test "$cross_compiling" = yes ||
9085 $as_test_x conftest$ac_exeext
9087 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9089 $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9095 rm -rf conftest.dSYM
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097 conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9101 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9102 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9103 cat >>confdefs.h <<_ACEOF
9104 #define HAVE_LIBCRYPTO 1
9107 LIBS="-lcrypto $LIBS"
9110 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9111 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9112 { (exit 1); exit 1; }; }
9116 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9117 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9118 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9119 $as_echo_n "(cached) " >&6
9121 ac_check_lib_save_LIBS=$LIBS
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9136 char SSL_library_init ();
9140 return SSL_library_init ();
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153 (eval "$ac_link") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
9162 } && test -s conftest$ac_exeext && {
9163 test "$cross_compiling" = yes ||
9164 $as_test_x conftest$ac_exeext
9166 ac_cv_lib_ssl_SSL_library_init=yes
9168 $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_lib_ssl_SSL_library_init=no
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9180 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9181 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBSSL 1
9189 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9191 { (exit 1); exit 1; }; }
9196 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9197 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9198 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9199 $as_echo_n "(cached) " >&6
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-leay32 $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9216 char CRYPTO_new_ex_data ();
9220 return CRYPTO_new_ex_data ();
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232 $as_echo "$ac_try_echo") >&5
9233 (eval "$ac_link") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext && {
9243 test "$cross_compiling" = yes ||
9244 $as_test_x conftest$ac_exeext
9246 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9248 $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9254 rm -rf conftest.dSYM
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9260 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9261 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_LIBEAY32 1
9266 LIBS="-leay32 $LIBS"
9269 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9270 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9271 { (exit 1); exit 1; }; }
9275 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9276 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9277 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9278 $as_echo_n "(cached) " >&6
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lssleay32 $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9295 char SSL_library_init ();
9299 return SSL_library_init ();
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312 (eval "$ac_link") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest$ac_exeext && {
9322 test "$cross_compiling" = yes ||
9323 $as_test_x conftest$ac_exeext
9325 ac_cv_lib_ssleay32_SSL_library_init=yes
9327 $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_ssleay32_SSL_library_init=no
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9339 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9340 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_LIBSSLEAY32 1
9345 LIBS="-lssleay32 $LIBS"
9348 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9349 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9350 { (exit 1); exit 1; }; }
9356 if test "$with_pam" = yes ; then
9358 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9359 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9360 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9361 $as_echo_n "(cached) " >&6
9363 ac_check_lib_save_LIBS=$LIBS
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9382 return pam_start ();
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_link") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext && {
9405 test "$cross_compiling" = yes ||
9406 $as_test_x conftest$ac_exeext
9408 ac_cv_lib_pam_pam_start=yes
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_lib_pam_pam_start=no
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9422 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9423 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define HAVE_LIBPAM 1
9431 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9432 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9433 { (exit 1); exit 1; }; }
9438 if test "$with_libxml" = yes ; then
9440 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9441 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9442 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9443 $as_echo_n "(cached) " >&6
9445 ac_check_lib_save_LIBS=$LIBS
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9454 /* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9460 char xmlSaveToBuffer ();
9464 return xmlSaveToBuffer ();
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext && {
9487 test "$cross_compiling" = yes ||
9488 $as_test_x conftest$ac_exeext
9490 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9492 $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_lib_xml2_xmlSaveToBuffer=no
9498 rm -rf conftest.dSYM
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9504 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9505 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBXML2 1
9513 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9514 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9515 { (exit 1); exit 1; }; }
9520 if test "$with_libxslt" = yes ; then
9522 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9523 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9524 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9525 $as_echo_n "(cached) " >&6
9527 ac_check_lib_save_LIBS=$LIBS
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9542 char xsltCleanupGlobals ();
9546 return xsltCleanupGlobals ();
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext && {
9569 test "$cross_compiling" = yes ||
9570 $as_test_x conftest$ac_exeext
9572 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9574 $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_xslt_xsltCleanupGlobals=no
9580 rm -rf conftest.dSYM
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9586 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9587 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LIBXSLT 1
9595 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9596 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9597 { (exit 1); exit 1; }; }
9602 # for contrib/sepgsql
9603 if test "$with_selinux" = yes; then
9605 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9606 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9607 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9608 $as_echo_n "(cached) " >&6
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lselinux $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9625 char selinux_status_open ();
9629 return selinux_status_open ();
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest$ac_exeext && {
9652 test "$cross_compiling" = yes ||
9653 $as_test_x conftest$ac_exeext
9655 ac_cv_lib_selinux_selinux_status_open=yes
9657 $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_cv_lib_selinux_selinux_status_open=no
9663 rm -rf conftest.dSYM
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9669 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9670 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBSELINUX 1
9675 LIBS="-lselinux $LIBS"
9678 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9679 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9680 { (exit 1); exit 1; }; }
9685 # for contrib/uuid-ossp
9686 if test "$with_ossp_uuid" = yes ; then
9687 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9688 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9689 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9690 $as_echo_n "(cached) " >&6
9692 ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-lossp-uuid $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9707 char uuid_export ();
9711 return uuid_export ();
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724 (eval "$ac_link") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest$ac_exeext && {
9734 test "$cross_compiling" = yes ||
9735 $as_test_x conftest$ac_exeext
9737 ac_cv_lib_ossp_uuid_uuid_export=yes
9739 $as_echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_lib_ossp_uuid_uuid_export=no
9745 rm -rf conftest.dSYM
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9751 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9752 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9753 OSSP_UUID_LIBS="-lossp-uuid"
9755 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9756 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9757 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9758 $as_echo_n "(cached) " >&6
9760 ac_check_lib_save_LIBS=$LIBS
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9775 char uuid_export ();
9779 return uuid_export ();
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9805 ac_cv_lib_uuid_uuid_export=yes
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_lib_uuid_uuid_export=no
9813 rm -rf conftest.dSYM
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9819 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9820 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9821 OSSP_UUID_LIBS="-luuid"
9823 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9824 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9825 { (exit 1); exit 1; }; }
9838 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9839 $as_echo_n "checking for ANSI C header files... " >&6; }
9840 if test "${ac_cv_header_stdc+set}" = set; then
9841 $as_echo_n "(cached) " >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_compile") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest.$ac_objext; then
9880 ac_cv_header_stdc=yes
9882 $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_header_stdc=no
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 if test $ac_cv_header_stdc = yes; then
9891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902 $EGREP "memchr" >/dev/null 2>&1; then
9905 ac_cv_header_stdc=no
9911 if test $ac_cv_header_stdc = yes; then
9912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923 $EGREP "free" >/dev/null 2>&1; then
9926 ac_cv_header_stdc=no
9932 if test $ac_cv_header_stdc = yes; then
9933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9934 if test "$cross_compiling" = yes; then
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9945 #if ((' ' & 0x0FF) == 0x020)
9946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9949 # define ISLOWER(c) \
9950 (('a' <= (c) && (c) <= 'i') \
9951 || ('j' <= (c) && (c) <= 'r') \
9952 || ('s' <= (c) && (c) <= 'z'))
9953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9961 for (i = 0; i < 256; i++)
9962 if (XOR (islower (i), ISLOWER (i))
9963 || toupper (i) != TOUPPER (i))
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_link") 2>&5
9978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985 $as_echo "$ac_try_echo") >&5
9986 (eval "$ac_try") 2>&5
9988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9992 $as_echo "$as_me: program exited with status $ac_status" >&5
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_header_stdc=no
9999 rm -rf conftest.dSYM
10000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10007 $as_echo "$ac_cv_header_stdc" >&6; }
10008 if test $ac_cv_header_stdc = yes; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define STDC_HEADERS 1
10016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10027 inttypes.h stdint.h unistd.h
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 $as_echo_n "checking for $ac_header... " >&6; }
10032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10033 $as_echo_n "(cached) " >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10043 #include <$ac_header>
10045 rm -f conftest.$ac_objext
10046 if { (ac_try="$ac_compile"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053 (eval "$ac_compile") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest.$ac_objext; then
10063 eval "$as_ac_Header=yes"
10065 $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 eval "$as_ac_Header=no"
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ac_res=`eval 'as_val=${'$as_ac_Header'}
10074 $as_echo "$as_val"'`
10075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10076 $as_echo "$ac_res" >&6; }
10077 as_val=`eval 'as_val=${'$as_ac_Header'}
10078 $as_echo "$as_val"'`
10079 if test "x$as_val" = x""yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10120 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/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 $as_echo_n "checking for $ac_header... " >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127 $as_echo_n "(cached) " >&6
10129 ac_res=`eval 'as_val=${'$as_ac_Header'}
10130 $as_echo "$as_val"'`
10131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10134 # Is the header compilable?
10135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 $as_echo_n "checking $ac_header usability... " >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 $ac_includes_default
10144 #include <$ac_header>
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154 (eval "$ac_compile") 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && {
10161 test -z "$ac_c_werror_flag" ||
10162 test ! -s conftest.err
10163 } && test -s conftest.$ac_objext; then
10164 ac_header_compiler=yes
10166 $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_header_compiler=no
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174 $as_echo "$ac_header_compiler" >&6; }
10176 # Is the header present?
10177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178 $as_echo_n "checking $ac_header presence... " >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <$ac_header>
10187 if { (ac_try="$ac_cpp conftest.$ac_ext"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } >/dev/null && {
10201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10204 ac_header_preproc=yes
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_preproc=no
10212 rm -f conftest.err conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214 $as_echo "$ac_header_preproc" >&6; }
10216 # So? What about this header?
10217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223 ac_header_preproc=yes
10226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10243 ) | sed "s/^/$as_me: WARNING: /" >&2
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 $as_echo_n "checking for $ac_header... " >&6; }
10248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10249 $as_echo_n "(cached) " >&6
10251 eval "$as_ac_Header=\$ac_header_preproc"
10253 ac_res=`eval 'as_val=${'$as_ac_Header'}
10254 $as_echo "$as_val"'`
10255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10256 $as_echo "$ac_res" >&6; }
10259 as_val=`eval 'as_val=${'$as_ac_Header'}
10260 $as_echo "$as_val"'`
10261 if test "x$as_val" = x""yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10272 # is included first.
10274 for ac_header in net/if.h
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10278 $as_echo_n "checking for $ac_header... " >&6; }
10279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10280 $as_echo_n "(cached) " >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 #ifdef HAVE_SYS_SOCKET_H
10290 #include <sys/socket.h>
10294 #include <$ac_header>
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304 (eval "$ac_compile") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest.$ac_objext; then
10314 eval "$as_ac_Header=yes"
10316 $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 eval "$as_ac_Header=no"
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 ac_res=`eval 'as_val=${'$as_ac_Header'}
10325 $as_echo "$as_val"'`
10326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10327 $as_echo "$ac_res" >&6; }
10328 as_val=`eval 'as_val=${'$as_ac_Header'}
10329 $as_echo "$as_val"'`
10330 if test "x$as_val" = x""yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10341 # netinet/in.h is included first.
10343 for ac_header in netinet/in.h
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 $as_echo_n "(cached) " >&6
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353 $as_echo "$as_val"'`
10354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10357 # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10389 $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_header_compiler=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <$ac_header>
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10427 ac_header_preproc=yes
10429 $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_header_preproc=no
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10466 ) | sed "s/^/$as_me: WARNING: /" >&2
10469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 $as_echo_n "checking for $ac_header... " >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 $as_echo_n "(cached) " >&6
10474 eval "$as_ac_Header=\$ac_header_preproc"
10476 ac_res=`eval 'as_val=${'$as_ac_Header'}
10477 $as_echo "$as_val"'`
10478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10479 $as_echo "$ac_res" >&6; }
10482 as_val=`eval 'as_val=${'$as_ac_Header'}
10483 $as_echo "$as_val"'`
10484 if test "x$as_val" = x""yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10494 for ac_header in netinet/tcp.h
10496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 $as_echo_n "checking for $ac_header... " >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 $as_echo_n "(cached) " >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #ifdef HAVE_NETINET_IN_H
10510 #include <netinet/in.h>
10514 #include <$ac_header>
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523 $as_echo "$ac_try_echo") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
10534 eval "$as_ac_Header=yes"
10536 $as_echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 eval "$as_ac_Header=no"
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545 $as_echo "$as_val"'`
10546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10548 as_val=`eval 'as_val=${'$as_ac_Header'}
10549 $as_echo "$as_val"'`
10550 if test "x$as_val" = x""yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10560 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10562 for ac_header in readline/readline.h
10564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 $as_echo_n "checking for $ac_header... " >&6; }
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 $as_echo_n "(cached) " >&6
10571 ac_res=`eval 'as_val=${'$as_ac_Header'}
10572 $as_echo "$as_val"'`
10573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10574 $as_echo "$ac_res" >&6; }
10576 # Is the header compilable?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578 $as_echo_n "checking $ac_header usability... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 $ac_includes_default
10586 #include <$ac_header>
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_compile") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest.$ac_objext; then
10606 ac_header_compiler=yes
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_header_compiler=no
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 $as_echo "$ac_header_compiler" >&6; }
10618 # Is the header present?
10619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 $as_echo_n "checking $ac_header presence... " >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <$ac_header>
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } >/dev/null && {
10643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10646 ac_header_preproc=yes
10648 $as_echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_header_preproc=no
10654 rm -f conftest.err conftest.$ac_ext
10655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10656 $as_echo "$ac_header_preproc" >&6; }
10658 # So? What about this header?
10659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10665 ac_header_preproc=yes
10668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10671 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10675 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10681 ## ---------------------------------------- ##
10682 ## Report this to pgsql-bugs@postgresql.org ##
10683 ## ---------------------------------------- ##
10685 ) | sed "s/^/$as_me: WARNING: /" >&2
10688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 $as_echo_n "checking for $ac_header... " >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691 $as_echo_n "(cached) " >&6
10693 eval "$as_ac_Header=\$ac_header_preproc"
10695 ac_res=`eval 'as_val=${'$as_ac_Header'}
10696 $as_echo "$as_val"'`
10697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10698 $as_echo "$ac_res" >&6; }
10701 as_val=`eval 'as_val=${'$as_ac_Header'}
10702 $as_echo "$as_val"'`
10703 if test "x$as_val" = x""yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710 for ac_header in readline.h
10712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 $as_echo_n "checking for $ac_header... " >&6; }
10716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10717 $as_echo_n "(cached) " >&6
10719 ac_res=`eval 'as_val=${'$as_ac_Header'}
10720 $as_echo "$as_val"'`
10721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10722 $as_echo "$ac_res" >&6; }
10724 # Is the header compilable?
10725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 $as_echo_n "checking $ac_header usability... " >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 #include <$ac_header>
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743 $as_echo "$ac_try_echo") >&5
10744 (eval "$ac_compile") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest.$ac_objext; then
10754 ac_header_compiler=yes
10756 $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_compiler=no
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 $as_echo "$ac_header_compiler" >&6; }
10766 # Is the header present?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 $as_echo_n "checking $ac_header presence... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <$ac_header>
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null && {
10791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10794 ac_header_preproc=yes
10796 $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_preproc=no
10802 rm -f conftest.err conftest.$ac_ext
10803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 $as_echo "$ac_header_preproc" >&6; }
10806 # So? What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813 ac_header_preproc=yes
10816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829 ## ---------------------------------------- ##
10830 ## Report this to pgsql-bugs@postgresql.org ##
10831 ## ---------------------------------------- ##
10833 ) | sed "s/^/$as_me: WARNING: /" >&2
10836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 $as_echo_n "checking for $ac_header... " >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 $as_echo_n "(cached) " >&6
10841 eval "$as_ac_Header=\$ac_header_preproc"
10843 ac_res=`eval 'as_val=${'$as_ac_Header'}
10844 $as_echo "$as_val"'`
10845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10846 $as_echo "$ac_res" >&6; }
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850 $as_echo "$as_val"'`
10851 if test "x$as_val" = x""yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857 { { $as_echo "$as_me:$LINENO: error: readline header not found
10858 If you have readline already installed, see config.log for details on the
10859 failure. It is possible the compiler isn't looking in the proper directory.
10860 Use --without-readline to disable readline support." >&5
10861 $as_echo "$as_me: error: readline header not found
10862 If you have readline already installed, see config.log for details on the
10863 failure. It is possible the compiler isn't looking in the proper directory.
10864 Use --without-readline to disable readline support." >&2;}
10865 { (exit 1); exit 1; }; }
10875 for ac_header in readline/history.h
10877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 $as_echo_n "checking for $ac_header... " >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 $as_echo_n "(cached) " >&6
10884 ac_res=`eval 'as_val=${'$as_ac_Header'}
10885 $as_echo "$as_val"'`
10886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10889 # Is the header compilable?
10890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10891 $as_echo_n "checking $ac_header usability... " >&6; }
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10898 $ac_includes_default
10899 #include <$ac_header>
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_compile") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest.$ac_objext; then
10919 ac_header_compiler=yes
10921 $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_header_compiler=no
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10929 $as_echo "$ac_header_compiler" >&6; }
10931 # Is the header present?
10932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10933 $as_echo_n "checking $ac_header presence... " >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 #include <$ac_header>
10942 if { (ac_try="$ac_cpp conftest.$ac_ext"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } >/dev/null && {
10956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10959 ac_header_preproc=yes
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_header_preproc=no
10967 rm -f conftest.err conftest.$ac_ext
10968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 $as_echo "$ac_header_preproc" >&6; }
10971 # So? What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978 ac_header_preproc=yes
10981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10998 ) | sed "s/^/$as_me: WARNING: /" >&2
11001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 $as_echo_n "checking for $ac_header... " >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 $as_echo_n "(cached) " >&6
11006 eval "$as_ac_Header=\$ac_header_preproc"
11008 ac_res=`eval 'as_val=${'$as_ac_Header'}
11009 $as_echo "$as_val"'`
11010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11011 $as_echo "$ac_res" >&6; }
11014 as_val=`eval 'as_val=${'$as_ac_Header'}
11015 $as_echo "$as_val"'`
11016 if test "x$as_val" = x""yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 for ac_header in history.h
11025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 $as_echo_n "checking for $ac_header... " >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 $as_echo_n "(cached) " >&6
11032 ac_res=`eval 'as_val=${'$as_ac_Header'}
11033 $as_echo "$as_val"'`
11034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11035 $as_echo "$ac_res" >&6; }
11037 # Is the header compilable?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11039 $as_echo_n "checking $ac_header usability... " >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 $ac_includes_default
11047 #include <$ac_header>
11049 rm -f conftest.$ac_objext
11050 if { (ac_try="$ac_compile"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056 $as_echo "$ac_try_echo") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest.$ac_objext; then
11067 ac_header_compiler=yes
11069 $as_echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_header_compiler=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11077 $as_echo "$ac_header_compiler" >&6; }
11079 # Is the header present?
11080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11081 $as_echo_n "checking $ac_header presence... " >&6; }
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 #include <$ac_header>
11090 if { (ac_try="$ac_cpp conftest.$ac_ext"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null && {
11104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11107 ac_header_preproc=yes
11109 $as_echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 ac_header_preproc=no
11115 rm -f conftest.err conftest.$ac_ext
11116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11117 $as_echo "$ac_header_preproc" >&6; }
11119 # So? What about this header?
11120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11126 ac_header_preproc=yes
11129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11132 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11136 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11142 ## ---------------------------------------- ##
11143 ## Report this to pgsql-bugs@postgresql.org ##
11144 ## ---------------------------------------- ##
11146 ) | sed "s/^/$as_me: WARNING: /" >&2
11149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 $as_echo_n "checking for $ac_header... " >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 $as_echo_n "(cached) " >&6
11154 eval "$as_ac_Header=\$ac_header_preproc"
11156 ac_res=`eval 'as_val=${'$as_ac_Header'}
11157 $as_echo "$as_val"'`
11158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11159 $as_echo "$ac_res" >&6; }
11162 as_val=`eval 'as_val=${'$as_ac_Header'}
11163 $as_echo "$as_val"'`
11164 if test "x$as_val" = x""yes; then
11165 cat >>confdefs.h <<_ACEOF
11166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11170 { { $as_echo "$as_me:$LINENO: error: history header not found
11171 If you have readline already installed, see config.log for details on the
11172 failure. It is possible the compiler isn't looking in the proper directory.
11173 Use --without-readline to disable readline support." >&5
11174 $as_echo "$as_me: error: history header not found
11175 If you have readline already installed, see config.log for details on the
11176 failure. It is possible the compiler isn't looking in the proper directory.
11177 Use --without-readline to disable readline support." >&2;}
11178 { (exit 1); exit 1; }; }
11189 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11190 # Some installations of libedit usurp /usr/include/readline/, which seems
11191 # bad practice, since in combined installations readline will have its headers
11192 # there. We might have to resort to AC_EGREP checks to make sure we found
11193 # the proper header...
11195 for ac_header in editline/readline.h
11197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 $as_echo_n "checking for $ac_header... " >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 $as_echo_n "(cached) " >&6
11204 ac_res=`eval 'as_val=${'$as_ac_Header'}
11205 $as_echo "$as_val"'`
11206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11207 $as_echo "$ac_res" >&6; }
11209 # Is the header compilable?
11210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 $as_echo_n "checking $ac_header usability... " >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 #include <$ac_header>
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11228 $as_echo "$ac_try_echo") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest.$ac_objext; then
11239 ac_header_compiler=yes
11241 $as_echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_header_compiler=no
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 $as_echo "$ac_header_compiler" >&6; }
11251 # Is the header present?
11252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 $as_echo_n "checking $ac_header presence... " >&6; }
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <$ac_header>
11262 if { (ac_try="$ac_cpp conftest.$ac_ext"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev/null && {
11276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11279 ac_header_preproc=yes
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11287 rm -f conftest.err conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 $as_echo "$ac_header_preproc" >&6; }
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11318 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 $as_echo_n "checking for $ac_header... " >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 $as_echo_n "(cached) " >&6
11326 eval "$as_ac_Header=\$ac_header_preproc"
11328 ac_res=`eval 'as_val=${'$as_ac_Header'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11334 as_val=`eval 'as_val=${'$as_ac_Header'}
11335 $as_echo "$as_val"'`
11336 if test "x$as_val" = x""yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 for ac_header in readline.h
11345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 $as_echo_n "(cached) " >&6
11352 ac_res=`eval 'as_val=${'$as_ac_Header'}
11353 $as_echo "$as_val"'`
11354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11357 # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 #include <$ac_header>
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
11387 ac_header_compiler=yes
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_header_compiler=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <$ac_header>
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null && {
11424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11427 ac_header_preproc=yes
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462 ## ---------------------------------------- ##
11463 ## Report this to pgsql-bugs@postgresql.org ##
11464 ## ---------------------------------------- ##
11466 ) | sed "s/^/$as_me: WARNING: /" >&2
11469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 $as_echo_n "checking for $ac_header... " >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 $as_echo_n "(cached) " >&6
11474 eval "$as_ac_Header=\$ac_header_preproc"
11476 ac_res=`eval 'as_val=${'$as_ac_Header'}
11477 $as_echo "$as_val"'`
11478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11479 $as_echo "$ac_res" >&6; }
11482 as_val=`eval 'as_val=${'$as_ac_Header'}
11483 $as_echo "$as_val"'`
11484 if test "x$as_val" = x""yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11491 for ac_header in readline/readline.h
11493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 $as_echo_n "checking for $ac_header... " >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 $as_echo_n "(cached) " >&6
11500 ac_res=`eval 'as_val=${'$as_ac_Header'}
11501 $as_echo "$as_val"'`
11502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11503 $as_echo "$ac_res" >&6; }
11505 # Is the header compilable?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 $as_echo_n "checking $ac_header usability... " >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 $ac_includes_default
11515 #include <$ac_header>
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11524 $as_echo "$ac_try_echo") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_header_compiler=yes
11537 $as_echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_header_compiler=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 $as_echo "$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 $as_echo_n "checking $ac_header presence... " >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <$ac_header>
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11564 $as_echo "$ac_try_echo") >&5
11565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev/null && {
11572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11573 test ! -s conftest.err
11575 ac_header_preproc=yes
11577 $as_echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_header_preproc=no
11583 rm -f conftest.err conftest.$ac_ext
11584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 $as_echo "$ac_header_preproc" >&6; }
11587 # So? What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11594 ac_header_preproc=yes
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11600 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610 ## ---------------------------------------- ##
11611 ## Report this to pgsql-bugs@postgresql.org ##
11612 ## ---------------------------------------- ##
11614 ) | sed "s/^/$as_me: WARNING: /" >&2
11617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11618 $as_echo_n "checking for $ac_header... " >&6; }
11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620 $as_echo_n "(cached) " >&6
11622 eval "$as_ac_Header=\$ac_header_preproc"
11624 ac_res=`eval 'as_val=${'$as_ac_Header'}
11625 $as_echo "$as_val"'`
11626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627 $as_echo "$ac_res" >&6; }
11630 as_val=`eval 'as_val=${'$as_ac_Header'}
11631 $as_echo "$as_val"'`
11632 if test "x$as_val" = x""yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 { { $as_echo "$as_me:$LINENO: error: readline header not found
11639 If you have libedit already installed, see config.log for details on the
11640 failure. It is possible the compiler isn't looking in the proper directory.
11641 Use --without-readline to disable libedit support." >&5
11642 $as_echo "$as_me: error: readline header not found
11643 If you have libedit already installed, see config.log for details on the
11644 failure. It is possible the compiler isn't looking in the proper directory.
11645 Use --without-readline to disable libedit support." >&2;}
11646 { (exit 1); exit 1; }; }
11659 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11660 # not be there at all. Hence, don't complain if not found. We must check
11661 # though, since in yet other versions it is an independent header.
11663 for ac_header in editline/history.h
11665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 $as_echo_n "checking for $ac_header... " >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 $as_echo_n "(cached) " >&6
11672 ac_res=`eval 'as_val=${'$as_ac_Header'}
11673 $as_echo "$as_val"'`
11674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11675 $as_echo "$ac_res" >&6; }
11677 # Is the header compilable?
11678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 $as_echo_n "checking $ac_header usability... " >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #include <$ac_header>
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_header_compiler=yes
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_compiler=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 $as_echo "$ac_header_compiler" >&6; }
11719 # Is the header present?
11720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 $as_echo_n "checking $ac_header presence... " >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <$ac_header>
11730 if { (ac_try="$ac_cpp conftest.$ac_ext"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } >/dev/null && {
11744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11747 ac_header_preproc=yes
11749 $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_header_preproc=no
11755 rm -f conftest.err conftest.$ac_ext
11756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757 $as_echo "$ac_header_preproc" >&6; }
11759 # So? What about this header?
11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766 ac_header_preproc=yes
11769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11772 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ## ---------------------------------------- ##
11783 ## Report this to pgsql-bugs@postgresql.org ##
11784 ## ---------------------------------------- ##
11786 ) | sed "s/^/$as_me: WARNING: /" >&2
11789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 $as_echo_n "checking for $ac_header... " >&6; }
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792 $as_echo_n "(cached) " >&6
11794 eval "$as_ac_Header=\$ac_header_preproc"
11796 ac_res=`eval 'as_val=${'$as_ac_Header'}
11797 $as_echo "$as_val"'`
11798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11799 $as_echo "$ac_res" >&6; }
11802 as_val=`eval 'as_val=${'$as_ac_Header'}
11803 $as_echo "$as_val"'`
11804 if test "x$as_val" = x""yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 for ac_header in history.h
11813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 $as_echo_n "checking for $ac_header... " >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818 $as_echo_n "(cached) " >&6
11820 ac_res=`eval 'as_val=${'$as_ac_Header'}
11821 $as_echo "$as_val"'`
11822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11823 $as_echo "$ac_res" >&6; }
11825 # Is the header compilable?
11826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 $as_echo_n "checking $ac_header usability... " >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <$ac_header>
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11855 ac_header_compiler=yes
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_compiler=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 $as_echo "$ac_header_compiler" >&6; }
11867 # Is the header present?
11868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 $as_echo_n "checking $ac_header presence... " >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884 $as_echo "$ac_try_echo") >&5
11885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } >/dev/null && {
11892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11893 test ! -s conftest.err
11895 ac_header_preproc=yes
11897 $as_echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_header_preproc=no
11903 rm -f conftest.err conftest.$ac_ext
11904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 $as_echo "$ac_header_preproc" >&6; }
11907 # So? What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914 ac_header_preproc=yes
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11920 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11924 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 ## ---------------------------------------- ##
11931 ## Report this to pgsql-bugs@postgresql.org ##
11932 ## ---------------------------------------- ##
11934 ) | sed "s/^/$as_me: WARNING: /" >&2
11937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 $as_echo_n "checking for $ac_header... " >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11942 eval "$as_ac_Header=\$ac_header_preproc"
11944 ac_res=`eval 'as_val=${'$as_ac_Header'}
11945 $as_echo "$as_val"'`
11946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11950 as_val=`eval 'as_val=${'$as_ac_Header'}
11951 $as_echo "$as_val"'`
11952 if test "x$as_val" = x""yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 for ac_header in readline/history.h
11961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11964 $as_echo_n "checking for $ac_header... " >&6; }
11965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966 $as_echo_n "(cached) " >&6
11968 ac_res=`eval 'as_val=${'$as_ac_Header'}
11969 $as_echo "$as_val"'`
11970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11971 $as_echo "$ac_res" >&6; }
11973 # Is the header compilable?
11974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975 $as_echo_n "checking $ac_header usability... " >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <$ac_header>
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 ac_header_compiler=yes
12005 $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_header_compiler=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 $as_echo "$ac_header_compiler" >&6; }
12015 # Is the header present?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 $as_echo_n "checking $ac_header presence... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #include <$ac_header>
12026 if { (ac_try="$ac_cpp conftest.$ac_ext"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev/null && {
12040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12043 ac_header_preproc=yes
12045 $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_header_preproc=no
12051 rm -f conftest.err conftest.$ac_ext
12052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 $as_echo "$ac_header_preproc" >&6; }
12055 # So? What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12062 ac_header_preproc=yes
12065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12078 ## ---------------------------------------- ##
12079 ## Report this to pgsql-bugs@postgresql.org ##
12080 ## ---------------------------------------- ##
12082 ) | sed "s/^/$as_me: WARNING: /" >&2
12085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12086 $as_echo_n "checking for $ac_header... " >&6; }
12087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088 $as_echo_n "(cached) " >&6
12090 eval "$as_ac_Header=\$ac_header_preproc"
12092 ac_res=`eval 'as_val=${'$as_ac_Header'}
12093 $as_echo "$as_val"'`
12094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12095 $as_echo "$ac_res" >&6; }
12098 as_val=`eval 'as_val=${'$as_ac_Header'}
12099 $as_echo "$as_val"'`
12100 if test "x$as_val" = x""yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12119 if test "$with_zlib" = yes; then
12120 if test "${ac_cv_header_zlib_h+set}" = set; then
12121 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12122 $as_echo_n "checking for zlib.h... " >&6; }
12123 if test "${ac_cv_header_zlib_h+set}" = set; then
12124 $as_echo_n "(cached) " >&6
12126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12127 $as_echo "$ac_cv_header_zlib_h" >&6; }
12129 # Is the header compilable?
12130 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12131 $as_echo_n "checking zlib.h usability... " >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148 $as_echo "$ac_try_echo") >&5
12149 (eval "$ac_compile") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && {
12156 test -z "$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest.$ac_objext; then
12159 ac_header_compiler=yes
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_header_compiler=no
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 $as_echo "$ac_header_compiler" >&6; }
12171 # Is the header present?
12172 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12173 $as_echo_n "checking zlib.h presence... " >&6; }
12174 cat >conftest.$ac_ext <<_ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12182 if { (ac_try="$ac_cpp conftest.$ac_ext"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null && {
12196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12199 ac_header_preproc=yes
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_header_preproc=no
12207 rm -f conftest.err conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 $as_echo "$ac_header_preproc" >&6; }
12211 # So? What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12217 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12218 ac_header_preproc=yes
12221 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12222 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12223 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12224 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12225 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12226 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12227 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12228 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12229 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12230 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12231 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12232 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12234 ## ---------------------------------------- ##
12235 ## Report this to pgsql-bugs@postgresql.org ##
12236 ## ---------------------------------------- ##
12238 ) | sed "s/^/$as_me: WARNING: /" >&2
12241 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12242 $as_echo_n "checking for zlib.h... " >&6; }
12243 if test "${ac_cv_header_zlib_h+set}" = set; then
12244 $as_echo_n "(cached) " >&6
12246 ac_cv_header_zlib_h=$ac_header_preproc
12248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12249 $as_echo "$ac_cv_header_zlib_h" >&6; }
12252 if test "x$ac_cv_header_zlib_h" = x""yes; then
12255 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12256 If you have zlib already installed, see config.log for details on the
12257 failure. It is possible the compiler isn't looking in the proper directory.
12258 Use --without-zlib to disable zlib support." >&5
12259 $as_echo "$as_me: error: zlib header not found
12260 If you have zlib already installed, see config.log for details on the
12261 failure. It is possible the compiler isn't looking in the proper directory.
12262 Use --without-zlib to disable zlib support." >&2;}
12263 { (exit 1); exit 1; }; }
12269 if test "$with_gssapi" = yes ; then
12271 for ac_header in gssapi/gssapi.h
12273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12280 ac_res=`eval 'as_val=${'$as_ac_Header'}
12281 $as_echo "$as_val"'`
12282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12283 $as_echo "$ac_res" >&6; }
12285 # Is the header compilable?
12286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 $as_echo_n "checking $ac_header usability... " >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12295 #include <$ac_header>
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304 $as_echo "$ac_try_echo") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 ac_header_compiler=yes
12317 $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_header_compiler=no
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12325 $as_echo "$ac_header_compiler" >&6; }
12327 # Is the header present?
12328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12329 $as_echo_n "checking $ac_header presence... " >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #include <$ac_header>
12338 if { (ac_try="$ac_cpp conftest.$ac_ext"
12339 case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344 $as_echo "$ac_try_echo") >&5
12345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } >/dev/null && {
12352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12355 ac_header_preproc=yes
12357 $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_header_preproc=no
12363 rm -f conftest.err conftest.$ac_ext
12364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12365 $as_echo "$ac_header_preproc" >&6; }
12367 # So? What about this header?
12368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12374 ac_header_preproc=yes
12377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12380 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12384 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12390 ## ---------------------------------------- ##
12391 ## Report this to pgsql-bugs@postgresql.org ##
12392 ## ---------------------------------------- ##
12394 ) | sed "s/^/$as_me: WARNING: /" >&2
12397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 $as_echo_n "checking for $ac_header... " >&6; }
12399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12400 $as_echo_n "(cached) " >&6
12402 eval "$as_ac_Header=\$ac_header_preproc"
12404 ac_res=`eval 'as_val=${'$as_ac_Header'}
12405 $as_echo "$as_val"'`
12406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12410 as_val=`eval 'as_val=${'$as_ac_Header'}
12411 $as_echo "$as_val"'`
12412 if test "x$as_val" = x""yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12419 for ac_header in gssapi.h
12421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 $as_echo_n "checking for $ac_header... " >&6; }
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426 $as_echo_n "(cached) " >&6
12428 ac_res=`eval 'as_val=${'$as_ac_Header'}
12429 $as_echo "$as_val"'`
12430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12433 # Is the header compilable?
12434 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 $as_echo_n "checking $ac_header usability... " >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12443 #include <$ac_header>
12445 rm -f conftest.$ac_objext
12446 if { (ac_try="$ac_compile"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_compile") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest.$ac_objext; then
12463 ac_header_compiler=yes
12465 $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_header_compiler=no
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12473 $as_echo "$ac_header_compiler" >&6; }
12475 # Is the header present?
12476 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12477 $as_echo_n "checking $ac_header presence... " >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 #include <$ac_header>
12486 if { (ac_try="$ac_cpp conftest.$ac_ext"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev/null && {
12500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12503 ac_header_preproc=yes
12505 $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_header_preproc=no
12511 rm -f conftest.err conftest.$ac_ext
12512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 $as_echo "$ac_header_preproc" >&6; }
12515 # So? What about this header?
12516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12519 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12521 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12522 ac_header_preproc=yes
12525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12526 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12528 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12530 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12532 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12536 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12538 ## ---------------------------------------- ##
12539 ## Report this to pgsql-bugs@postgresql.org ##
12540 ## ---------------------------------------- ##
12542 ) | sed "s/^/$as_me: WARNING: /" >&2
12545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 $as_echo_n "checking for $ac_header... " >&6; }
12547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548 $as_echo_n "(cached) " >&6
12550 eval "$as_ac_Header=\$ac_header_preproc"
12552 ac_res=`eval 'as_val=${'$as_ac_Header'}
12553 $as_echo "$as_val"'`
12554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12555 $as_echo "$ac_res" >&6; }
12558 as_val=`eval 'as_val=${'$as_ac_Header'}
12559 $as_echo "$as_val"'`
12560 if test "x$as_val" = x""yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12567 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12568 { (exit 1); exit 1; }; }
12579 if test "$with_krb5" = yes ; then
12580 if test "${ac_cv_header_krb5_h+set}" = set; then
12581 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12582 $as_echo_n "checking for krb5.h... " >&6; }
12583 if test "${ac_cv_header_krb5_h+set}" = set; then
12584 $as_echo_n "(cached) " >&6
12586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12587 $as_echo "$ac_cv_header_krb5_h" >&6; }
12589 # Is the header compilable?
12590 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12591 $as_echo_n "checking krb5.h usability... " >&6; }
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12601 rm -f conftest.$ac_objext
12602 if { (ac_try="$ac_compile"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609 (eval "$ac_compile") 2>conftest.er1
12611 grep -v '^ *+' conftest.er1 >conftest.err
12613 cat conftest.err >&5
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest.$ac_objext; then
12619 ac_header_compiler=yes
12621 $as_echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_header_compiler=no
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12629 $as_echo "$ac_header_compiler" >&6; }
12631 # Is the header present?
12632 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12633 $as_echo_n "checking krb5.h presence... " >&6; }
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12642 if { (ac_try="$ac_cpp conftest.$ac_ext"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev/null && {
12656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12659 ac_header_preproc=yes
12661 $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_header_preproc=no
12667 rm -f conftest.err conftest.$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 $as_echo "$ac_header_preproc" >&6; }
12671 # So? What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12674 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12675 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12677 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12678 ac_header_preproc=yes
12681 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12682 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12683 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12684 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12685 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12686 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12687 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12688 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12689 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12690 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12692 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12694 ## ---------------------------------------- ##
12695 ## Report this to pgsql-bugs@postgresql.org ##
12696 ## ---------------------------------------- ##
12698 ) | sed "s/^/$as_me: WARNING: /" >&2
12701 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12702 $as_echo_n "checking for krb5.h... " >&6; }
12703 if test "${ac_cv_header_krb5_h+set}" = set; then
12704 $as_echo_n "(cached) " >&6
12706 ac_cv_header_krb5_h=$ac_header_preproc
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12709 $as_echo "$ac_cv_header_krb5_h" >&6; }
12712 if test "x$ac_cv_header_krb5_h" = x""yes; then
12715 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12716 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12717 { (exit 1); exit 1; }; }
12723 if test "$with_openssl" = yes ; then
12724 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12725 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12726 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12727 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12728 $as_echo_n "(cached) " >&6
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12731 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12733 # Is the header compilable?
12734 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12735 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 #include <openssl/ssl.h>
12745 rm -f conftest.$ac_objext
12746 if { (ac_try="$ac_compile"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_compile") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest.$ac_objext; then
12763 ac_header_compiler=yes
12765 $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_header_compiler=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 $as_echo "$ac_header_compiler" >&6; }
12775 # Is the header present?
12776 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12777 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <openssl/ssl.h>
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792 $as_echo "$ac_try_echo") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12803 ac_header_preproc=yes
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_header_preproc=no
12811 rm -f conftest.err conftest.$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 $as_echo "$ac_header_preproc" >&6; }
12815 # So? What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12818 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12819 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12821 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12825 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12826 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12828 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12829 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12830 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12831 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12832 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12834 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12836 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12842 ) | sed "s/^/$as_me: WARNING: /" >&2
12845 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12846 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12847 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12850 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12853 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12856 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12859 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12860 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12861 { (exit 1); exit 1; }; }
12865 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12866 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12867 $as_echo_n "checking for openssl/err.h... " >&6; }
12868 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12869 $as_echo_n "(cached) " >&6
12871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12872 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12874 # Is the header compilable?
12875 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12876 $as_echo_n "checking openssl/err.h usability... " >&6; }
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 $ac_includes_default
12884 #include <openssl/err.h>
12886 rm -f conftest.$ac_objext
12887 if { (ac_try="$ac_compile"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_compile") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && {
12901 test -z "$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 } && test -s conftest.$ac_objext; then
12904 ac_header_compiler=yes
12906 $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_header_compiler=no
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 $as_echo "$ac_header_compiler" >&6; }
12916 # Is the header present?
12917 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12918 $as_echo_n "checking openssl/err.h presence... " >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <openssl/err.h>
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null && {
12941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12944 ac_header_preproc=yes
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_header_preproc=no
12952 rm -f conftest.err conftest.$ac_ext
12953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 $as_echo "$ac_header_preproc" >&6; }
12956 # So? What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12959 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12960 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12962 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12963 ac_header_preproc=yes
12966 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12967 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12968 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12969 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12970 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12971 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12972 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12973 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12974 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12975 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12976 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12977 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12979 ## ---------------------------------------- ##
12980 ## Report this to pgsql-bugs@postgresql.org ##
12981 ## ---------------------------------------- ##
12983 ) | sed "s/^/$as_me: WARNING: /" >&2
12986 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12987 $as_echo_n "checking for openssl/err.h... " >&6; }
12988 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12989 $as_echo_n "(cached) " >&6
12991 ac_cv_header_openssl_err_h=$ac_header_preproc
12993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12994 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12997 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13000 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13001 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13002 { (exit 1); exit 1; }; }
13007 for ac_func in ERR_set_mark
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 $as_echo_n "checking for $ac_func... " >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013 $as_echo_n "(cached) " >&6
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13023 #define $ac_func innocuous_$ac_func
13025 /* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func (); below.
13027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028 <limits.h> exists even on freestanding compilers. */
13031 # include <limits.h>
13033 # include <assert.h>
13038 /* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13055 return $ac_func ();
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13081 eval "$as_ac_var=yes"
13083 $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 eval "$as_ac_var=no"
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13093 ac_res=`eval 'as_val=${'$as_ac_var'}
13094 $as_echo "$as_val"'`
13095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13096 $as_echo "$ac_res" >&6; }
13097 as_val=`eval 'as_val=${'$as_ac_var'}
13098 $as_echo "$as_val"'`
13099 if test "x$as_val" = x""yes; then
13100 cat >>confdefs.h <<_ACEOF
13101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13109 if test "$with_pam" = yes ; then
13111 for ac_header in security/pam_appl.h
13113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118 $as_echo_n "(cached) " >&6
13120 ac_res=`eval 'as_val=${'$as_ac_Header'}
13121 $as_echo "$as_val"'`
13122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13123 $as_echo "$ac_res" >&6; }
13125 # Is the header compilable?
13126 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13127 $as_echo_n "checking $ac_header usability... " >&6; }
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13135 #include <$ac_header>
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_header_compiler=yes
13157 $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_header_compiler=no
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 $as_echo "$ac_header_compiler" >&6; }
13167 # Is the header present?
13168 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13169 $as_echo_n "checking $ac_header presence... " >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 #include <$ac_header>
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184 $as_echo "$ac_try_echo") >&5
13185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 grep -v '^ *+' conftest.er1 >conftest.err
13189 cat conftest.err >&5
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } >/dev/null && {
13192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13193 test ! -s conftest.err
13195 ac_header_preproc=yes
13197 $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ac_header_preproc=no
13203 rm -f conftest.err conftest.$ac_ext
13204 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 $as_echo "$ac_header_preproc" >&6; }
13207 # So? What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214 ac_header_preproc=yes
13217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13220 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13224 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13230 ## ---------------------------------------- ##
13231 ## Report this to pgsql-bugs@postgresql.org ##
13232 ## ---------------------------------------- ##
13234 ) | sed "s/^/$as_me: WARNING: /" >&2
13237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 $as_echo_n "checking for $ac_header... " >&6; }
13239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240 $as_echo_n "(cached) " >&6
13242 eval "$as_ac_Header=\$ac_header_preproc"
13244 ac_res=`eval 'as_val=${'$as_ac_Header'}
13245 $as_echo "$as_val"'`
13246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13247 $as_echo "$ac_res" >&6; }
13250 as_val=`eval 'as_val=${'$as_ac_Header'}
13251 $as_echo "$as_val"'`
13252 if test "x$as_val" = x""yes; then
13253 cat >>confdefs.h <<_ACEOF
13254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13259 for ac_header in pam/pam_appl.h
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 $as_echo_n "checking for $ac_header... " >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266 $as_echo_n "(cached) " >&6
13268 ac_res=`eval 'as_val=${'$as_ac_Header'}
13269 $as_echo "$as_val"'`
13270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13271 $as_echo "$ac_res" >&6; }
13273 # Is the header compilable?
13274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275 $as_echo_n "checking $ac_header usability... " >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 $ac_includes_default
13283 #include <$ac_header>
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293 (eval "$ac_compile") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest.$ac_objext; then
13303 ac_header_compiler=yes
13305 $as_echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_header_compiler=no
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13313 $as_echo "$ac_header_compiler" >&6; }
13315 # Is the header present?
13316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13317 $as_echo_n "checking $ac_header presence... " >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <$ac_header>
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332 $as_echo "$ac_try_echo") >&5
13333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } >/dev/null && {
13340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13343 ac_header_preproc=yes
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_header_preproc=no
13351 rm -f conftest.err conftest.$ac_ext
13352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13353 $as_echo "$ac_header_preproc" >&6; }
13355 # So? What about this header?
13356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13362 ac_header_preproc=yes
13365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13368 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13378 ## ---------------------------------------- ##
13379 ## Report this to pgsql-bugs@postgresql.org ##
13380 ## ---------------------------------------- ##
13382 ) | sed "s/^/$as_me: WARNING: /" >&2
13385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13386 $as_echo_n "checking for $ac_header... " >&6; }
13387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388 $as_echo_n "(cached) " >&6
13390 eval "$as_ac_Header=\$ac_header_preproc"
13392 ac_res=`eval 'as_val=${'$as_ac_Header'}
13393 $as_echo "$as_val"'`
13394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13398 as_val=`eval 'as_val=${'$as_ac_Header'}
13399 $as_echo "$as_val"'`
13400 if test "x$as_val" = x""yes; then
13401 cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13406 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13407 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13408 { (exit 1); exit 1; }; }
13419 if test "$with_libxml" = yes ; then
13420 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13421 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13422 $as_echo_n "checking for libxml/parser.h... " >&6; }
13423 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13424 $as_echo_n "(cached) " >&6
13426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13427 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13429 # Is the header compilable?
13430 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13431 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <libxml/parser.h>
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13448 $as_echo "$ac_try_echo") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13461 $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 $as_echo "$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13473 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <libxml/parser.h>
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488 $as_echo "$ac_try_echo") >&5
13489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } >/dev/null && {
13496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13499 ac_header_preproc=yes
13501 $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_header_preproc=no
13507 rm -f conftest.err conftest.$ac_ext
13508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13509 $as_echo "$ac_header_preproc" >&6; }
13511 # So? What about this header?
13512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13514 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13515 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13516 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13517 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13518 ac_header_preproc=yes
13521 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13522 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13523 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13524 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13527 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13529 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13531 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13534 ## ---------------------------------------- ##
13535 ## Report this to pgsql-bugs@postgresql.org ##
13536 ## ---------------------------------------- ##
13538 ) | sed "s/^/$as_me: WARNING: /" >&2
13541 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13542 $as_echo_n "checking for libxml/parser.h... " >&6; }
13543 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13544 $as_echo_n "(cached) " >&6
13546 ac_cv_header_libxml_parser_h=$ac_header_preproc
13548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13549 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13552 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13555 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13556 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13557 { (exit 1); exit 1; }; }
13563 if test "$with_libxslt" = yes ; then
13564 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13565 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13566 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13567 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13568 $as_echo_n "(cached) " >&6
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13571 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13573 # Is the header compilable?
13574 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13575 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 $ac_includes_default
13583 #include <libxslt/xslt.h>
13585 rm -f conftest.$ac_objext
13586 if { (ac_try="$ac_compile"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13592 $as_echo "$ac_try_echo") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
13603 ac_header_compiler=yes
13605 $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_header_compiler=no
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 $as_echo "$ac_header_compiler" >&6; }
13615 # Is the header present?
13616 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13617 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <libxslt/xslt.h>
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } >/dev/null && {
13640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13643 ac_header_preproc=yes
13645 $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_header_preproc=no
13651 rm -f conftest.err conftest.$ac_ext
13652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 $as_echo "$ac_header_preproc" >&6; }
13655 # So? What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13658 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13661 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13662 ac_header_preproc=yes
13665 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13666 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13667 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13668 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13669 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13671 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13673 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13675 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13678 ## ---------------------------------------- ##
13679 ## Report this to pgsql-bugs@postgresql.org ##
13680 ## ---------------------------------------- ##
13682 ) | sed "s/^/$as_me: WARNING: /" >&2
13685 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13686 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13687 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13688 $as_echo_n "(cached) " >&6
13690 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13693 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13696 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13699 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13700 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13701 { (exit 1); exit 1; }; }
13707 if test "$with_ldap" = yes ; then
13708 if test "$PORTNAME" != "win32"; then
13710 for ac_header in ldap.h
13712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 $as_echo_n "(cached) " >&6
13719 ac_res=`eval 'as_val=${'$as_ac_Header'}
13720 $as_echo "$as_val"'`
13721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13722 $as_echo "$ac_res" >&6; }
13724 # Is the header compilable?
13725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13726 $as_echo_n "checking $ac_header usability... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13734 #include <$ac_header>
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13743 $as_echo "$ac_try_echo") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } && {
13751 test -z "$ac_c_werror_flag" ||
13752 test ! -s conftest.err
13753 } && test -s conftest.$ac_objext; then
13754 ac_header_compiler=yes
13756 $as_echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_header_compiler=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13764 $as_echo "$ac_header_compiler" >&6; }
13766 # Is the header present?
13767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13768 $as_echo_n "checking $ac_header presence... " >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #include <$ac_header>
13777 if { (ac_try="$ac_cpp conftest.$ac_ext"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } >/dev/null && {
13791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13794 ac_header_preproc=yes
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_header_preproc=no
13802 rm -f conftest.err conftest.$ac_ext
13803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13804 $as_echo "$ac_header_preproc" >&6; }
13806 # So? What about this header?
13807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13813 ac_header_preproc=yes
13816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13829 ## ---------------------------------------- ##
13830 ## Report this to pgsql-bugs@postgresql.org ##
13831 ## ---------------------------------------- ##
13833 ) | sed "s/^/$as_me: WARNING: /" >&2
13836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13837 $as_echo_n "checking for $ac_header... " >&6; }
13838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13839 $as_echo_n "(cached) " >&6
13841 eval "$as_ac_Header=\$ac_header_preproc"
13843 ac_res=`eval 'as_val=${'$as_ac_Header'}
13844 $as_echo "$as_val"'`
13845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13846 $as_echo "$ac_res" >&6; }
13849 as_val=`eval 'as_val=${'$as_ac_Header'}
13850 $as_echo "$as_val"'`
13851 if test "x$as_val" = x""yes; then
13852 cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13857 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13858 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13859 { (exit 1); exit 1; }; }
13866 for ac_header in winldap.h
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 $as_echo_n "checking for $ac_header... " >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872 $as_echo_n "(cached) " >&6
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13881 #include <windows.h>
13884 #include <$ac_header>
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13893 $as_echo "$ac_try_echo") >&5
13894 (eval "$ac_compile") 2>conftest.er1
13896 grep -v '^ *+' conftest.er1 >conftest.err
13898 cat conftest.err >&5
13899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } && {
13901 test -z "$ac_c_werror_flag" ||
13902 test ! -s conftest.err
13903 } && test -s conftest.$ac_objext; then
13904 eval "$as_ac_Header=yes"
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 eval "$as_ac_Header=no"
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 ac_res=`eval 'as_val=${'$as_ac_Header'}
13915 $as_echo "$as_val"'`
13916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917 $as_echo "$ac_res" >&6; }
13918 as_val=`eval 'as_val=${'$as_ac_Header'}
13919 $as_echo "$as_val"'`
13920 if test "x$as_val" = x""yes; then
13921 cat >>confdefs.h <<_ACEOF
13922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13926 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13927 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13928 { (exit 1); exit 1; }; }
13936 if test "$with_bonjour" = yes ; then
13937 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13938 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13939 $as_echo_n "checking for dns_sd.h... " >&6; }
13940 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13944 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13946 # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13948 $as_echo_n "checking dns_sd.h usability... " >&6; }
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13956 #include <dns_sd.h>
13958 rm -f conftest.$ac_objext
13959 if { (ac_try="$ac_compile"
13960 case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13965 $as_echo "$ac_try_echo") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.$ac_objext; then
13976 ac_header_compiler=yes
13978 $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_header_compiler=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 $as_echo "$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13990 $as_echo_n "checking dns_sd.h presence... " >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <dns_sd.h>
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14005 $as_echo "$ac_try_echo") >&5
14006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } >/dev/null && {
14013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14016 ac_header_preproc=yes
14018 $as_echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_preproc=no
14024 rm -f conftest.err conftest.$ac_ext
14025 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 $as_echo "$ac_header_preproc" >&6; }
14028 # So? What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14035 ac_header_preproc=yes
14038 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14040 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14042 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14044 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14046 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14048 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14051 ## ---------------------------------------- ##
14052 ## Report this to pgsql-bugs@postgresql.org ##
14053 ## ---------------------------------------- ##
14055 ) | sed "s/^/$as_me: WARNING: /" >&2
14058 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14059 $as_echo_n "checking for dns_sd.h... " >&6; }
14060 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14061 $as_echo_n "(cached) " >&6
14063 ac_cv_header_dns_sd_h=$ac_header_preproc
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14066 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14069 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14072 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14073 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14074 { (exit 1); exit 1; }; }
14080 # for contrib/uuid-ossp
14081 if test "$with_ossp_uuid" = yes ; then
14083 for ac_header in ossp/uuid.h
14085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14088 $as_echo_n "checking for $ac_header... " >&6; }
14089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14090 $as_echo_n "(cached) " >&6
14092 ac_res=`eval 'as_val=${'$as_ac_Header'}
14093 $as_echo "$as_val"'`
14094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14095 $as_echo "$ac_res" >&6; }
14097 # Is the header compilable?
14098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 $as_echo_n "checking $ac_header usability... " >&6; }
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 $ac_includes_default
14107 #include <$ac_header>
14109 rm -f conftest.$ac_objext
14110 if { (ac_try="$ac_compile"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest.$ac_objext; then
14127 ac_header_compiler=yes
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_header_compiler=no
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14137 $as_echo "$ac_header_compiler" >&6; }
14139 # Is the header present?
14140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14141 $as_echo_n "checking $ac_header presence... " >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <$ac_header>
14150 if { (ac_try="$ac_cpp conftest.$ac_ext"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev/null && {
14164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14167 ac_header_preproc=yes
14169 $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_header_preproc=no
14175 rm -f conftest.err conftest.$ac_ext
14176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14177 $as_echo "$ac_header_preproc" >&6; }
14179 # So? What about this header?
14180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14186 ac_header_preproc=yes
14189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14192 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14202 ## ---------------------------------------- ##
14203 ## Report this to pgsql-bugs@postgresql.org ##
14204 ## ---------------------------------------- ##
14206 ) | sed "s/^/$as_me: WARNING: /" >&2
14209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 $as_echo_n "checking for $ac_header... " >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212 $as_echo_n "(cached) " >&6
14214 eval "$as_ac_Header=\$ac_header_preproc"
14216 ac_res=`eval 'as_val=${'$as_ac_Header'}
14217 $as_echo "$as_val"'`
14218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14219 $as_echo "$ac_res" >&6; }
14222 as_val=`eval 'as_val=${'$as_ac_Header'}
14223 $as_echo "$as_val"'`
14224 if test "x$as_val" = x""yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 for ac_header in uuid.h
14234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14237 $as_echo_n "checking for $ac_header... " >&6; }
14238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14239 $as_echo_n "(cached) " >&6
14241 ac_res=`eval 'as_val=${'$as_ac_Header'}
14242 $as_echo "$as_val"'`
14243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14246 # Is the header compilable?
14247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14248 $as_echo_n "checking $ac_header usability... " >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #include <$ac_header>
14258 rm -f conftest.$ac_objext
14259 if { (ac_try="$ac_compile"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14265 $as_echo "$ac_try_echo") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest.$ac_objext; then
14276 ac_header_compiler=yes
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_header_compiler=no
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 $as_echo "$ac_header_compiler" >&6; }
14288 # Is the header present?
14289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 $as_echo_n "checking $ac_header presence... " >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <$ac_header>
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14305 $as_echo "$ac_try_echo") >&5
14306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } >/dev/null && {
14313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14316 ac_header_preproc=yes
14318 $as_echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 ac_header_preproc=no
14324 rm -f conftest.err conftest.$ac_ext
14325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326 $as_echo "$ac_header_preproc" >&6; }
14328 # So? What about this header?
14329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14335 ac_header_preproc=yes
14338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14341 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14345 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14351 ## ---------------------------------------- ##
14352 ## Report this to pgsql-bugs@postgresql.org ##
14353 ## ---------------------------------------- ##
14355 ) | sed "s/^/$as_me: WARNING: /" >&2
14358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 $as_echo_n "checking for $ac_header... " >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 $as_echo_n "(cached) " >&6
14363 eval "$as_ac_Header=\$ac_header_preproc"
14365 ac_res=`eval 'as_val=${'$as_ac_Header'}
14366 $as_echo "$as_val"'`
14367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14368 $as_echo "$ac_res" >&6; }
14371 as_val=`eval 'as_val=${'$as_ac_Header'}
14372 $as_echo "$as_val"'`
14373 if test "x$as_val" = x""yes; then
14374 cat >>confdefs.h <<_ACEOF
14375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14379 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14380 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14381 { (exit 1); exit 1; }; }
14392 if test "$PORTNAME" = "win32" ; then
14394 for ac_header in crtdefs.h
14396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 $as_echo_n "checking for $ac_header... " >&6; }
14400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14401 $as_echo_n "(cached) " >&6
14403 ac_res=`eval 'as_val=${'$as_ac_Header'}
14404 $as_echo "$as_val"'`
14405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14406 $as_echo "$ac_res" >&6; }
14408 # Is the header compilable?
14409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 $as_echo_n "checking $ac_header usability... " >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_compile") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest.$ac_objext; then
14438 ac_header_compiler=yes
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_header_compiler=no
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14448 $as_echo "$ac_header_compiler" >&6; }
14450 # Is the header present?
14451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14452 $as_echo_n "checking $ac_header presence... " >&6; }
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #include <$ac_header>
14461 if { (ac_try="$ac_cpp conftest.$ac_ext"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } >/dev/null && {
14475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14478 ac_header_preproc=yes
14480 $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ac_header_preproc=no
14486 rm -f conftest.err conftest.$ac_ext
14487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14488 $as_echo "$ac_header_preproc" >&6; }
14490 # So? What about this header?
14491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14497 ac_header_preproc=yes
14500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14513 ## ---------------------------------------- ##
14514 ## Report this to pgsql-bugs@postgresql.org ##
14515 ## ---------------------------------------- ##
14517 ) | sed "s/^/$as_me: WARNING: /" >&2
14520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 $as_echo_n "checking for $ac_header... " >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523 $as_echo_n "(cached) " >&6
14525 eval "$as_ac_Header=\$ac_header_preproc"
14527 ac_res=`eval 'as_val=${'$as_ac_Header'}
14528 $as_echo "$as_val"'`
14529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14530 $as_echo "$ac_res" >&6; }
14533 as_val=`eval 'as_val=${'$as_ac_Header'}
14534 $as_echo "$as_val"'`
14535 if test "x$as_val" = x""yes; then
14536 cat >>confdefs.h <<_ACEOF
14537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14547 ## Types, structures, compiler characteristics
14551 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14553 if test "${ac_cv_c_bigendian+set}" = set; then
14554 $as_echo_n "(cached) " >&6
14556 ac_cv_c_bigendian=unknown
14557 # See if we're dealing with a universal compiler.
14558 cat >conftest.$ac_ext <<_ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #ifndef __APPLE_CC__
14565 not a universal capable compiler
14570 rm -f conftest.$ac_objext
14571 if { (ac_try="$ac_compile"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578 (eval "$ac_compile") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest.$ac_objext; then
14589 # Check for potential -arch flags. It is not universal unless
14590 # there are some -arch flags. Note that *ppc* also matches
14591 # ppc64. This check is also rather less than ideal.
14592 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14593 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14596 $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 if test $ac_cv_c_bigendian = unknown; then
14604 # See if sys/param.h defines the BYTE_ORDER macro.
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 #include <sys/types.h>
14612 #include <sys/param.h>
14617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14618 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14620 bogus endian macros
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 # It does; now see whether it defined to BIG_ENDIAN or not.
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #include <sys/types.h>
14653 #include <sys/param.h>
14658 #if BYTE_ORDER != BIG_ENDIAN
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_cv_c_bigendian=yes
14686 $as_echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_c_bigendian=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 if test $ac_cv_c_bigendian = unknown; then
14703 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <limits.h>
14715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14716 bogus endian macros
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731 (eval "$ac_compile") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
14741 # It does; now see whether it defined to _BIG_ENDIAN or not.
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <limits.h>
14753 #ifndef _BIG_ENDIAN
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769 (eval "$ac_compile") 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14773 cat conftest.err >&5
14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest.$ac_objext; then
14779 ac_cv_c_bigendian=yes
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_c_bigendian=no
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 if test $ac_cv_c_bigendian = unknown; then
14798 # Compile a test program.
14799 if test "$cross_compiling" = yes; then
14800 # Try to guess by grepping values from an object file.
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 short int ascii_mm[] =
14808 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14809 short int ascii_ii[] =
14810 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14811 int use_ascii (int i) {
14812 return ascii_mm[i] + ascii_ii[i];
14814 short int ebcdic_ii[] =
14815 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14816 short int ebcdic_mm[] =
14817 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14818 int use_ebcdic (int i) {
14819 return ebcdic_mm[i] + ebcdic_ii[i];
14826 return use_ascii (foo) == use_ebcdic (foo);
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_compile") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest.$ac_objext; then
14849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14850 ac_cv_c_bigendian=yes
14852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14853 if test "$ac_cv_c_bigendian" = unknown; then
14854 ac_cv_c_bigendian=no
14856 # finding both strings is unlikely to happen, but who knows?
14857 ac_cv_c_bigendian=unknown
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14880 /* Are we little or big endian? From Harbison&Steele. */
14884 char c[sizeof (long int)];
14887 return u.c[sizeof (long int) - 1] == 1;
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901 (eval "$ac_link") 2>&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911 (eval "$ac_try") 2>&5
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_c_bigendian=no
14917 $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ( exit $ac_status )
14922 ac_cv_c_bigendian=yes
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14932 $as_echo "$ac_cv_c_bigendian" >&6; }
14933 case $ac_cv_c_bigendian in #(
14935 cat >>confdefs.h <<\_ACEOF
14936 #define WORDS_BIGENDIAN 1
14943 cat >>confdefs.h <<\_ACEOF
14944 #define AC_APPLE_UNIVERSAL_BUILD 1
14949 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14950 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14951 $as_echo "$as_me: error: unknown endianness
14952 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14953 { (exit 1); exit 1; }; } ;;
14956 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14957 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14958 if test "${ac_cv_c_const+set}" = set; then
14959 $as_echo_n "(cached) " >&6
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14971 /* FIXME: Include the comments suggested by Paul. */
14972 #ifndef __cplusplus
14973 /* Ultrix mips cc rejects this. */
14974 typedef int charset[2];
14976 /* SunOS 4.1.1 cc rejects this. */
14977 char const *const *pcpcc;
14979 /* NEC SVR4.0.2 mips cc rejects this. */
14980 struct point {int x, y;};
14981 static struct point const zero = {0,0};
14982 /* AIX XL C 1.02.0.0 rejects this.
14983 It does not let you subtract one const X* pointer from another in
14984 an arm of an if-expression whose if-part is not a constant
14986 const char *g = "string";
14987 pcpcc = &g + (g ? g-g : 0);
14988 /* HPUX 7.0 cc rejects these. */
14990 ppc = (char**) pcpcc;
14991 pcpcc = (char const *const *) ppc;
14992 { /* SCO 3.2v4 cc rejects this. */
14994 char const *s = 0 ? (char *) 0 : (char const *) 0;
14999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15000 int x[] = {25, 17};
15001 const int *foo = &x[0];
15004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15005 typedef const int *iptr;
15009 { /* AIX XL C 1.02.0.0 rejects this saying
15010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15011 struct s { int j; const int *ap[3]; };
15012 struct s *b; b->j = 5;
15014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15015 const int foo = 10;
15016 if (!foo) return 0;
15018 return !cs[0] && !zero.x;
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15054 $as_echo "$ac_cv_c_const" >&6; }
15055 if test $ac_cv_c_const = no; then
15057 cat >>confdefs.h <<\_ACEOF
15063 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15064 $as_echo_n "checking for inline... " >&6; }
15065 if test "${ac_cv_c_inline+set}" = set; then
15066 $as_echo_n "(cached) " >&6
15069 for ac_kw in inline __inline__ __inline; do
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #ifndef __cplusplus
15078 static $ac_kw foo_t static_foo () {return 0; }
15079 $ac_kw foo_t foo () {return 0; }
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091 (eval "$ac_compile") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest.$ac_objext; then
15101 ac_cv_c_inline=$ac_kw
15103 $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 test "$ac_cv_c_inline" != no && break
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15115 $as_echo "$ac_cv_c_inline" >&6; }
15118 case $ac_cv_c_inline in
15121 case $ac_cv_c_inline in
15123 *) ac_val=$ac_cv_c_inline;;
15125 cat >>confdefs.h <<_ACEOF
15126 #ifndef __cplusplus
15127 #define inline $ac_val
15133 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15134 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15135 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15136 $as_echo_n "(cached) " >&6
15138 pgac_cv_c_inline_quietly=no
15139 if test "$ac_cv_c_inline" != no; then
15140 pgac_c_inline_save_werror=$ac_c_werror_flag
15141 ac_c_werror_flag=yes
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 static inline int fun () {return 0;}
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164 $as_echo "$ac_try_echo") >&5
15165 (eval "$ac_link") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && {
15172 test -z "$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15174 } && test -s conftest$ac_exeext && {
15175 test "$cross_compiling" = yes ||
15176 $as_test_x conftest$ac_exeext
15178 pgac_cv_c_inline_quietly=yes
15180 $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15186 rm -rf conftest.dSYM
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188 conftest$ac_exeext conftest.$ac_ext
15189 ac_c_werror_flag=$pgac_c_inline_save_werror
15192 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15193 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15194 if test "$pgac_cv_c_inline_quietly" != no; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define USE_INLINE 1
15202 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15203 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15204 if test "${ac_cv_c_stringize+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15215 char *s = x(teststring);
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218 $EGREP "#teststring" >/dev/null 2>&1; then
15219 ac_cv_c_stringize=no
15221 ac_cv_c_stringize=yes
15226 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15227 $as_echo "$ac_cv_c_stringize" >&6; }
15228 if test $ac_cv_c_stringize = yes; then
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRINGIZE 1
15237 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15238 $as_echo_n "checking for flexible array members... " >&6; }
15239 if test "${ac_cv_c_flexmember+set}" = set; then
15240 $as_echo_n "(cached) " >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <stdlib.h>
15250 #include <stddef.h>
15251 struct s { int n; double d[]; };
15255 int m = getchar ();
15256 struct s *p = malloc (offsetof (struct s, d)
15257 + m * sizeof (double));
15259 return p->d != (double *) NULL;
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15271 $as_echo "$ac_try_echo") >&5
15272 (eval "$ac_compile") 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && {
15279 test -z "$ac_c_werror_flag" ||
15280 test ! -s conftest.err
15281 } && test -s conftest.$ac_objext; then
15282 ac_cv_c_flexmember=yes
15284 $as_echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_cv_c_flexmember=no
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15293 $as_echo "$ac_cv_c_flexmember" >&6; }
15294 if test $ac_cv_c_flexmember = yes; then
15296 cat >>confdefs.h <<\_ACEOF
15297 #define FLEXIBLE_ARRAY_MEMBER /**/
15301 cat >>confdefs.h <<\_ACEOF
15302 #define FLEXIBLE_ARRAY_MEMBER 1
15307 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15308 $as_echo_n "checking for signed types... " >&6; }
15309 if test "${pgac_cv_c_signed+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15322 signed char c; signed short s; signed int i;
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15337 grep -v '^ *+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest.$ac_objext; then
15345 pgac_cv_c_signed=yes
15347 $as_echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 pgac_cv_c_signed=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15356 $as_echo "$pgac_cv_c_signed" >&6; }
15357 if test x"$pgac_cv_c_signed" = xno ; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define signed /**/
15364 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15365 $as_echo_n "checking for working volatile... " >&6; }
15366 if test "${ac_cv_c_volatile+set}" = set; then
15367 $as_echo_n "(cached) " >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15381 int * volatile y = (int *) 0;
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395 (eval "$ac_compile") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && {
15402 test -z "$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15404 } && test -s conftest.$ac_objext; then
15405 ac_cv_c_volatile=yes
15407 $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_cv_c_volatile=no
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15416 $as_echo "$ac_cv_c_volatile" >&6; }
15417 if test $ac_cv_c_volatile = no; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define volatile /**/
15425 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15426 $as_echo_n "checking for __func__... " >&6; }
15427 if test "${pgac_cv_funcname_func_support+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15440 printf("%s\n", __func__);
15445 rm -f conftest.$ac_objext
15446 if { (ac_try="$ac_compile"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452 $as_echo "$ac_try_echo") >&5
15453 (eval "$ac_compile") 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && {
15460 test -z "$ac_c_werror_flag" ||
15461 test ! -s conftest.err
15462 } && test -s conftest.$ac_objext; then
15463 pgac_cv_funcname_func_support=yes
15465 $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 pgac_cv_funcname_func_support=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15474 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15475 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_FUNCNAME__FUNC 1
15482 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15483 $as_echo_n "checking for __FUNCTION__... " >&6; }
15484 if test "${pgac_cv_funcname_function_support+set}" = set; then
15485 $as_echo_n "(cached) " >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15497 printf("%s\n", __FUNCTION__);
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510 (eval "$ac_compile") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest.$ac_objext; then
15520 pgac_cv_funcname_function_support=yes
15522 $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 pgac_cv_funcname_function_support=no
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15531 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15532 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_FUNCNAME__FUNCTION 1
15540 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15541 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15542 if test "${ac_cv_struct_tm+set}" = set; then
15543 $as_echo_n "(cached) " >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <sys/types.h>
15558 int *p = &tm.tm_sec;
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572 (eval "$ac_compile") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest.$ac_objext; then
15582 ac_cv_struct_tm=time.h
15584 $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 ac_cv_struct_tm=sys/time.h
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15593 $as_echo "$ac_cv_struct_tm" >&6; }
15594 if test $ac_cv_struct_tm = sys/time.h; then
15596 cat >>confdefs.h <<\_ACEOF
15597 #define TM_IN_SYS_TIME 1
15602 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15603 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15604 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15605 $as_echo_n "(cached) " >&6
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <sys/types.h>
15614 #include <$ac_cv_struct_tm>
15620 static struct tm ac_aggr;
15621 if (ac_aggr.tm_zone)
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15634 $as_echo "$ac_try_echo") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest.$ac_objext; then
15645 ac_cv_member_struct_tm_tm_zone=yes
15647 $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 cat >conftest.$ac_ext <<_ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 #include <sys/types.h>
15657 #include <$ac_cv_struct_tm>
15663 static struct tm ac_aggr;
15664 if (sizeof ac_aggr.tm_zone)
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678 (eval "$ac_compile") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest.$ac_objext; then
15688 ac_cv_member_struct_tm_tm_zone=yes
15690 $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_cv_member_struct_tm_tm_zone=no
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15702 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15703 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_STRUCT_TM_TM_ZONE 1
15712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_TM_ZONE 1
15719 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15720 $as_echo_n "checking for tzname... " >&6; }
15721 if test "${ac_cv_var_tzname+set}" = set; then
15722 $as_echo_n "(cached) " >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15731 #ifndef tzname /* For SGI. */
15732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_link") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest$ac_exeext && {
15761 test "$cross_compiling" = yes ||
15762 $as_test_x conftest$ac_exeext
15764 ac_cv_var_tzname=yes
15766 $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_cv_var_tzname=no
15772 rm -rf conftest.dSYM
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774 conftest$ac_exeext conftest.$ac_ext
15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15777 $as_echo "$ac_cv_var_tzname" >&6; }
15778 if test $ac_cv_var_tzname = yes; then
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_TZNAME 1
15786 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15787 $as_echo_n "checking for union semun... " >&6; }
15788 if test "${ac_cv_type_union_semun+set}" = set; then
15789 $as_echo_n "(cached) " >&6
15791 ac_cv_type_union_semun=no
15792 cat >conftest.$ac_ext <<_ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 #include <sys/types.h>
15799 #include <sys/ipc.h>
15800 #include <sys/sem.h>
15805 if (sizeof (union semun))
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15818 $as_echo "$ac_try_echo") >&5
15819 (eval "$ac_compile") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } && {
15826 test -z "$ac_c_werror_flag" ||
15827 test ! -s conftest.err
15828 } && test -s conftest.$ac_objext; then
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 #include <sys/types.h>
15836 #include <sys/ipc.h>
15837 #include <sys/sem.h>
15842 if (sizeof ((union semun)))
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15855 $as_echo "$ac_try_echo") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.$ac_objext; then
15868 $as_echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 ac_cv_type_union_semun=yes
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15885 $as_echo "$ac_cv_type_union_semun" >&6; }
15886 if test "x$ac_cv_type_union_semun" = x""yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_UNION_SEMUN 1
15895 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15896 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15898 $as_echo_n "(cached) " >&6
15900 ac_cv_type_struct_sockaddr_un=no
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_UN_H
15909 #include <sys/un.h>
15916 if (sizeof (struct sockaddr_un))
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930 (eval "$ac_compile") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest.$ac_objext; then
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <sys/types.h>
15947 #ifdef HAVE_SYS_UN_H
15948 #include <sys/un.h>
15955 if (sizeof ((struct sockaddr_un)))
15961 rm -f conftest.$ac_objext
15962 if { (ac_try="$ac_compile"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968 $as_echo "$ac_try_echo") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15981 $as_echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_cv_type_struct_sockaddr_un=yes
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15998 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15999 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_STRUCT_SOCKADDR_UN 1
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_UNIX_SOCKETS 1
16012 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16013 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16014 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16015 $as_echo_n "(cached) " >&6
16017 ac_cv_type_struct_sockaddr_storage=no
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <sys/types.h>
16025 #ifdef HAVE_SYS_SOCKET_H
16026 #include <sys/socket.h>
16033 if (sizeof (struct sockaddr_storage))
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047 (eval "$ac_compile") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest.$ac_objext; then
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <sys/types.h>
16064 #ifdef HAVE_SYS_SOCKET_H
16065 #include <sys/socket.h>
16072 if (sizeof ((struct sockaddr_storage)))
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086 (eval "$ac_compile") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } && {
16093 test -z "$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 } && test -s conftest.$ac_objext; then
16098 $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 ac_cv_type_struct_sockaddr_storage=yes
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16115 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16116 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16125 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16126 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16127 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 #include <sys/types.h>
16137 #ifdef HAVE_SYS_SOCKET_H
16138 #include <sys/socket.h>
16145 static struct sockaddr_storage ac_aggr;
16146 if (ac_aggr.ss_family)
16152 rm -f conftest.$ac_objext
16153 if { (ac_try="$ac_compile"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16159 $as_echo "$ac_try_echo") >&5
16160 (eval "$ac_compile") 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } && {
16167 test -z "$ac_c_werror_flag" ||
16168 test ! -s conftest.err
16169 } && test -s conftest.$ac_objext; then
16170 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16172 $as_echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16190 static struct sockaddr_storage ac_aggr;
16191 if (sizeof ac_aggr.ss_family)
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16215 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_member_struct_sockaddr_storage_ss_family=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16229 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16230 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16239 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16240 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16241 $as_echo_n "(cached) " >&6
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/types.h>
16250 #ifdef HAVE_SYS_SOCKET_H
16251 #include <sys/socket.h>
16258 static struct sockaddr_storage ac_aggr;
16259 if (ac_aggr.__ss_family)
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16272 $as_echo "$ac_try_echo") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest.$ac_objext; then
16283 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <sys/types.h>
16295 #ifdef HAVE_SYS_SOCKET_H
16296 #include <sys/socket.h>
16303 static struct sockaddr_storage ac_aggr;
16304 if (sizeof ac_aggr.__ss_family)
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_compile") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest.$ac_objext; then
16328 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16330 $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 ac_cv_member_struct_sockaddr_storage___ss_family=no
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16342 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16343 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16352 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16353 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16354 $as_echo_n "(cached) " >&6
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 #include <sys/types.h>
16363 #ifdef HAVE_SYS_SOCKET_H
16364 #include <sys/socket.h>
16371 static struct sockaddr_storage ac_aggr;
16372 if (ac_aggr.ss_len)
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385 $as_echo "$ac_try_echo") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16398 $as_echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <sys/types.h>
16408 #ifdef HAVE_SYS_SOCKET_H
16409 #include <sys/socket.h>
16416 static struct sockaddr_storage ac_aggr;
16417 if (sizeof ac_aggr.ss_len)
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.$ac_objext; then
16441 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_cv_member_struct_sockaddr_storage_ss_len=no
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16465 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16466 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16467 $as_echo_n "(cached) " >&6
16469 cat >conftest.$ac_ext <<_ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 #include <sys/types.h>
16476 #ifdef HAVE_SYS_SOCKET_H
16477 #include <sys/socket.h>
16484 static struct sockaddr_storage ac_aggr;
16485 if (ac_aggr.__ss_len)
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16498 $as_echo "$ac_try_echo") >&5
16499 (eval "$ac_compile") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } && {
16506 test -z "$ac_c_werror_flag" ||
16507 test ! -s conftest.err
16508 } && test -s conftest.$ac_objext; then
16509 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16511 $as_echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <sys/types.h>
16521 #ifdef HAVE_SYS_SOCKET_H
16522 #include <sys/socket.h>
16529 static struct sockaddr_storage ac_aggr;
16530 if (sizeof ac_aggr.__ss_len)
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && {
16551 test -z "$ac_c_werror_flag" ||
16552 test ! -s conftest.err
16553 } && test -s conftest.$ac_objext; then
16554 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16556 $as_echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_member_struct_sockaddr_storage___ss_len=no
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16578 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16579 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16580 $as_echo_n "(cached) " >&6
16582 cat >conftest.$ac_ext <<_ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16588 #include <sys/types.h>
16589 #ifdef HAVE_SYS_SOCKET_H
16590 #include <sys/socket.h>
16597 static struct sockaddr ac_aggr;
16598 if (ac_aggr.sa_len)
16604 rm -f conftest.$ac_objext
16605 if { (ac_try="$ac_compile"
16606 case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612 (eval "$ac_compile") 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && {
16619 test -z "$ac_c_werror_flag" ||
16620 test ! -s conftest.err
16621 } && test -s conftest.$ac_objext; then
16622 ac_cv_member_struct_sockaddr_sa_len=yes
16624 $as_echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 #include <sys/types.h>
16634 #ifdef HAVE_SYS_SOCKET_H
16635 #include <sys/socket.h>
16642 static struct sockaddr ac_aggr;
16643 if (sizeof ac_aggr.sa_len)
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest.$ac_objext; then
16667 ac_cv_member_struct_sockaddr_sa_len=yes
16669 $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_member_struct_sockaddr_sa_len=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16681 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16682 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16691 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16692 $as_echo_n "checking for struct addrinfo... " >&6; }
16693 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16694 $as_echo_n "(cached) " >&6
16696 ac_cv_type_struct_addrinfo=no
16697 cat >conftest.$ac_ext <<_ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 #include <sys/types.h>
16704 #include <sys/socket.h>
16711 if (sizeof (struct addrinfo))
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16749 if (sizeof ((struct addrinfo)))
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.$ac_objext; then
16775 $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_type_struct_addrinfo=yes
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16792 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16793 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_ADDRINFO 1
16803 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16804 $as_echo_n "checking for intptr_t... " >&6; }
16805 if test "${ac_cv_type_intptr_t+set}" = set; then
16806 $as_echo_n "(cached) " >&6
16808 ac_cv_type_intptr_t=no
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16819 if (sizeof (intptr_t))
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest.$ac_objext; then
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 $ac_includes_default
16853 if (sizeof ((intptr_t)))
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867 (eval "$ac_compile") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } && {
16874 test -z "$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 } && test -s conftest.$ac_objext; then
16879 $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_cv_type_intptr_t=yes
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16896 $as_echo "$ac_cv_type_intptr_t" >&6; }
16897 if test "x$ac_cv_type_intptr_t" = x""yes; then
16899 cat >>confdefs.h <<\_ACEOF
16900 #define HAVE_INTPTR_T 1
16904 for ac_type in 'int' 'long int' 'long long int'; do
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 $ac_includes_default
16915 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929 $as_echo "$ac_try_echo") >&5
16930 (eval "$ac_compile") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } && {
16937 test -z "$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16939 } && test -s conftest.$ac_objext; then
16941 cat >>confdefs.h <<_ACEOF
16942 #define intptr_t $ac_type
16947 $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 test -z "$ac_type" && break
16960 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16961 $as_echo_n "checking for uintptr_t... " >&6; }
16962 if test "${ac_cv_type_uintptr_t+set}" = set; then
16963 $as_echo_n "(cached) " >&6
16965 ac_cv_type_uintptr_t=no
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 $ac_includes_default
16976 if (sizeof (uintptr_t))
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989 $as_echo "$ac_try_echo") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest.$ac_objext; then
17000 cat >conftest.$ac_ext <<_ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 $ac_includes_default
17010 if (sizeof ((uintptr_t)))
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_type_uintptr_t=yes
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17053 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17054 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UINTPTR_T 1
17061 for ac_type in 'unsigned int' 'unsigned long int' \
17062 'unsigned long long int'; do
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17087 $as_echo "$ac_try_echo") >&5
17088 (eval "$ac_compile") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest.$ac_objext; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define uintptr_t $ac_type
17105 $as_echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 test -z "$ac_type" && break
17118 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17119 $as_echo_n "checking for long long int... " >&6; }
17120 if test "${ac_cv_type_long_long_int+set}" = set; then
17121 $as_echo_n "(cached) " >&6
17123 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 /* For now, do not test the preprocessor; as of 2007 there are too many
17131 implementations with broken preprocessors. Perhaps this can
17132 be revisited in 2012. In the meantime, code should not expect
17133 #if to work with literals wider than 32 bits. */
17134 /* Test literals. */
17135 long long int ll = 9223372036854775807ll;
17136 long long int nll = -9223372036854775807LL;
17137 unsigned long long int ull = 18446744073709551615ULL;
17138 /* Test constant expressions. */
17139 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17141 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17147 /* Test availability of runtime routines for shift and division. */
17148 long long int llmax = 9223372036854775807ll;
17149 unsigned long long int ullmax = 18446744073709551615ull;
17150 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17151 | (llmax / ll) | (llmax % ll)
17152 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17153 | (ullmax / ull) | (ullmax % ull));
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166 $as_echo "$ac_try_echo") >&5
17167 (eval "$ac_link") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext && {
17177 test "$cross_compiling" = yes ||
17178 $as_test_x conftest$ac_exeext
17180 if test "$cross_compiling" = yes; then
17181 ac_cv_type_long_long_int=yes
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 #include <limits.h>
17192 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17193 # define LLONG_MAX (HALF - 1 + HALF)
17198 long long int n = 1;
17202 long long int m = n << i;
17205 if (LLONG_MAX / 2 < m)
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221 (eval "$ac_link") 2>&5
17223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231 (eval "$ac_try") 2>&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_type_long_long_int=yes
17237 $as_echo "$as_me: program exited with status $ac_status" >&5
17238 $as_echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ( exit $ac_status )
17242 ac_cv_type_long_long_int=no
17244 rm -rf conftest.dSYM
17245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17250 $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_type_long_long_int=no
17256 rm -rf conftest.dSYM
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258 conftest$ac_exeext conftest.$ac_ext
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17261 $as_echo "$ac_cv_type_long_long_int" >&6; }
17262 if test $ac_cv_type_long_long_int = yes; then
17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_LONG_LONG_INT 1
17271 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17272 $as_echo_n "checking for locale_t... " >&6; }
17273 if test "${pgac_cv_type_locale_t+set}" = set; then
17274 $as_echo_n "(cached) " >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <locale.h>
17292 rm -f conftest.$ac_objext
17293 if { (ac_try="$ac_compile"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17299 $as_echo "$ac_try_echo") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.$ac_objext; then
17310 pgac_cv_type_locale_t=yes
17312 $as_echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 #include <xlocale.h>
17331 rm -f conftest.$ac_objext
17332 if { (ac_try="$ac_compile"
17333 case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339 (eval "$ac_compile") 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } && {
17346 test -z "$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 } && test -s conftest.$ac_objext; then
17349 pgac_cv_type_locale_t='yes (in xlocale.h)'
17351 $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 pgac_cv_type_locale_t=no
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17363 $as_echo "$pgac_cv_type_locale_t" >&6; }
17364 if test "$pgac_cv_type_locale_t" != no; then
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LOCALE_T 1
17371 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17373 cat >>confdefs.h <<\_ACEOF
17374 #define LOCALE_T_IN_XLOCALE 1
17379 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17380 $as_echo_n "checking for struct cmsgcred... " >&6; }
17381 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17382 $as_echo_n "(cached) " >&6
17384 ac_cv_type_struct_cmsgcred=no
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 #include <sys/socket.h>
17392 #ifdef HAVE_SYS_UCRED_H
17393 #include <sys/ucred.h>
17399 if (sizeof (struct cmsgcred))
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.$ac_objext; then
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 #include <sys/socket.h>
17430 #ifdef HAVE_SYS_UCRED_H
17431 #include <sys/ucred.h>
17437 if (sizeof ((struct cmsgcred)))
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451 (eval "$ac_compile") 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } && {
17458 test -z "$ac_c_werror_flag" ||
17459 test ! -s conftest.err
17460 } && test -s conftest.$ac_objext; then
17463 $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ac_cv_type_struct_cmsgcred=yes
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17480 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17481 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_STRUCT_CMSGCRED 1
17491 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17492 $as_echo_n "checking for struct option... " >&6; }
17493 if test "${ac_cv_type_struct_option+set}" = set; then
17494 $as_echo_n "(cached) " >&6
17496 ac_cv_type_struct_option=no
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #ifdef HAVE_GETOPT_H
17504 #include <getopt.h>
17510 if (sizeof (struct option))
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17523 $as_echo "$ac_try_echo") >&5
17524 (eval "$ac_compile") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest.$ac_objext; then
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 #ifdef HAVE_GETOPT_H
17541 #include <getopt.h>
17547 if (sizeof ((struct option)))
17553 rm -f conftest.$ac_objext
17554 if { (ac_try="$ac_compile"
17555 case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560 $as_echo "$ac_try_echo") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest.$ac_objext; then
17573 $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_type_struct_option=yes
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17590 $as_echo "$ac_cv_type_struct_option" >&6; }
17591 if test "x$ac_cv_type_struct_option" = x""yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_STRUCT_OPTION 1
17601 if test "$with_zlib" = yes; then
17602 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17603 # did not). While we could work around the lack of z_streamp, it
17604 # seems unwise to encourage people to use such old zlib versions...
17605 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17606 $as_echo_n "checking for z_streamp... " >&6; }
17607 if test "${ac_cv_type_z_streamp+set}" = set; then
17608 $as_echo_n "(cached) " >&6
17610 ac_cv_type_z_streamp=no
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17622 if (sizeof (z_streamp))
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17635 $as_echo "$ac_try_echo") >&5
17636 (eval "$ac_compile") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && {
17643 test -z "$ac_c_werror_flag" ||
17644 test ! -s conftest.err
17645 } && test -s conftest.$ac_objext; then
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17657 if (sizeof ((z_streamp)))
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17670 $as_echo "$ac_try_echo") >&5
17671 (eval "$ac_compile") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest.$ac_objext; then
17683 $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_type_z_streamp=yes
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17700 $as_echo "$ac_cv_type_z_streamp" >&6; }
17701 if test "x$ac_cv_type_z_streamp" = x""yes; then
17704 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17705 Use --without-zlib to disable zlib support." >&5
17706 $as_echo "$as_me: error: zlib version is too old
17707 Use --without-zlib to disable zlib support." >&2;}
17708 { (exit 1); exit 1; }; }
17713 if test "$with_krb5" = yes; then
17714 # Check for differences between MIT and Heimdal (KTH) releases
17715 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17716 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17717 if test "${ac_cv_member_krb5_ticket_enc_part2+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_ticket ac_aggr;
17732 if (ac_aggr.enc_part2)
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_ticket_enc_part2=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_ticket ac_aggr;
17773 if (sizeof ac_aggr.enc_part2)
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_ticket_enc_part2=yes
17799 $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_cv_member_krb5_ticket_enc_part2=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_ticket_enc_part2" >&5
17811 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17812 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_KRB5_TICKET_ENC_PART2 1
17820 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17821 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17822 if test "${ac_cv_member_krb5_ticket_client+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_ticket ac_aggr;
17837 if (ac_aggr.client)
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_ticket_client=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_ticket ac_aggr;
17878 if (sizeof ac_aggr.client)
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_ticket_client=yes
17904 $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_member_krb5_ticket_client=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_ticket_client" >&5
17916 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17917 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_KRB5_TICKET_CLIENT 1
17925 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17926 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17927 { (exit 1); exit 1; }; }
17932 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17933 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17934 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17935 $as_echo_n "(cached) " >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17948 static krb5_error ac_aggr;
17949 if (ac_aggr.text.data)
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963 (eval "$ac_compile") 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest.$ac_objext; then
17973 ac_cv_member_krb5_error_text_data=yes
17975 $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17989 static krb5_error ac_aggr;
17990 if (sizeof ac_aggr.text.data)
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
18014 ac_cv_member_krb5_error_text_data=yes
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_member_krb5_error_text_data=no
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18028 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18029 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18037 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18038 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18039 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18040 $as_echo_n "(cached) " >&6
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18053 static krb5_error ac_aggr;
18054 if (ac_aggr.e_data)
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068 (eval "$ac_compile") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } && {
18075 test -z "$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 } && test -s conftest.$ac_objext; then
18078 ac_cv_member_krb5_error_e_data=yes
18080 $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18094 static krb5_error ac_aggr;
18095 if (sizeof ac_aggr.e_data)
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109 (eval "$ac_compile") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && {
18116 test -z "$ac_c_werror_flag" ||
18117 test ! -s conftest.err
18118 } && test -s conftest.$ac_objext; then
18119 ac_cv_member_krb5_error_e_data=yes
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ac_cv_member_krb5_error_e_data=no
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18133 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18134 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_KRB5_ERROR_E_DATA 1
18142 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18143 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18144 { (exit 1); exit 1; }; }
18150 # Win32 requires headers to be loaded for __stdcall, so can't use
18151 # AC_CHECK_FUNCS here.
18152 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18153 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18164 krb5_free_unparsed_name(NULL,NULL);
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177 (eval "$ac_link") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && {
18184 test -z "$ac_c_werror_flag" ||
18185 test ! -s conftest.err
18186 } && test -s conftest$ac_exeext && {
18187 test "$cross_compiling" = yes ||
18188 $as_test_x conftest$ac_exeext
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18195 { $as_echo "$as_me:$LINENO: result: yes" >&5
18196 $as_echo "yes" >&6; }
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 { $as_echo "$as_me:$LINENO: result: no" >&5
18202 $as_echo "no" >&6; }
18205 rm -rf conftest.dSYM
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207 conftest$ac_exeext conftest.$ac_ext
18210 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18213 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18214 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18215 cat >conftest.$ac_ext <<_ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18225 int a = 0; int *p = &a; int r;
18226 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18231 rm -f conftest.$ac_objext
18232 if { (ac_try="$ac_compile"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18238 $as_echo "$ac_try_echo") >&5
18239 (eval "$ac_compile") 2>conftest.er1
18241 grep -v '^ *+' conftest.er1 >conftest.err
18243 cat conftest.err >&5
18244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } && {
18246 test -z "$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18248 } && test -s conftest.$ac_objext; then
18249 pgac_cv_have_ppc_mutex_hint=yes
18251 $as_echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 pgac_cv_have_ppc_mutex_hint=no
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18259 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18260 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18270 # Check largefile support. You might think this is a system service not a
18271 # compiler characteristic, but you'd be wrong. We must check this before
18272 # probing existence of related functions such as fseeko, since the largefile
18273 # defines can affect what is generated for that.
18274 if test "$PORTNAME" != "win32"; then
18275 # Check whether --enable-largefile was given.
18276 if test "${enable_largefile+set}" = set; then
18277 enableval=$enable_largefile;
18280 if test "$enable_largefile" != no; then
18282 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18283 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18284 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18285 $as_echo_n "(cached) " >&6
18287 ac_cv_sys_largefile_CC=no
18288 if test "$GCC" != yes; then
18291 # IRIX 6.2 and later do not support large files by default,
18292 # so use the C compiler's -n32 option if that helps.
18293 cat >conftest.$ac_ext <<_ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299 #include <sys/types.h>
18300 /* Check that off_t can represent 2**63 - 1 correctly.
18301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18302 since some C++ compilers masquerading as C compilers
18303 incorrectly reject 9223372036854775807. */
18304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18306 && LARGE_OFF_T % 2147483647 == 1)
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18323 $as_echo "$ac_try_echo") >&5
18324 (eval "$ac_compile") 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } && {
18331 test -z "$ac_c_werror_flag" ||
18332 test ! -s conftest.err
18333 } && test -s conftest.$ac_objext; then
18336 $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18342 rm -f core conftest.err conftest.$ac_objext
18344 rm -f conftest.$ac_objext
18345 if { (ac_try="$ac_compile"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18351 $as_echo "$ac_try_echo") >&5
18352 (eval "$ac_compile") 2>conftest.er1
18354 grep -v '^ *+' conftest.er1 >conftest.err
18356 cat conftest.err >&5
18357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } && {
18359 test -z "$ac_c_werror_flag" ||
18360 test ! -s conftest.err
18361 } && test -s conftest.$ac_objext; then
18362 ac_cv_sys_largefile_CC=' -n32'; break
18364 $as_echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18370 rm -f core conftest.err conftest.$ac_objext
18374 rm -f conftest.$ac_ext
18377 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18378 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18379 if test "$ac_cv_sys_largefile_CC" != no; then
18380 CC=$CC$ac_cv_sys_largefile_CC
18383 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18384 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18385 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18386 $as_echo_n "(cached) " >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 #include <sys/types.h>
18396 /* Check that off_t can represent 2**63 - 1 correctly.
18397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18398 since some C++ compilers masquerading as C compilers
18399 incorrectly reject 9223372036854775807. */
18400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18402 && LARGE_OFF_T % 2147483647 == 1)
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18419 $as_echo "$ac_try_echo") >&5
18420 (eval "$ac_compile") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && {
18427 test -z "$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18429 } && test -s conftest.$ac_objext; then
18430 ac_cv_sys_file_offset_bits=no; break
18432 $as_echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439 cat >conftest.$ac_ext <<_ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #define _FILE_OFFSET_BITS 64
18446 #include <sys/types.h>
18447 /* Check that off_t can represent 2**63 - 1 correctly.
18448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18449 since some C++ compilers masquerading as C compilers
18450 incorrectly reject 9223372036854775807. */
18451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18453 && LARGE_OFF_T % 2147483647 == 1)
18463 rm -f conftest.$ac_objext
18464 if { (ac_try="$ac_compile"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18470 $as_echo "$ac_try_echo") >&5
18471 (eval "$ac_compile") 2>conftest.er1
18473 grep -v '^ *+' conftest.er1 >conftest.err
18475 cat conftest.err >&5
18476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } && {
18478 test -z "$ac_c_werror_flag" ||
18479 test ! -s conftest.err
18480 } && test -s conftest.$ac_objext; then
18481 ac_cv_sys_file_offset_bits=64; break
18483 $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490 ac_cv_sys_file_offset_bits=unknown
18494 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18496 case $ac_cv_sys_file_offset_bits in #(
18499 cat >>confdefs.h <<_ACEOF
18500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18505 if test $ac_cv_sys_file_offset_bits = unknown; then
18506 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18508 if test "${ac_cv_sys_large_files+set}" = set; then
18509 $as_echo_n "(cached) " >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 #include <sys/types.h>
18519 /* Check that off_t can represent 2**63 - 1 correctly.
18520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18521 since some C++ compilers masquerading as C compilers
18522 incorrectly reject 9223372036854775807. */
18523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18525 && LARGE_OFF_T % 2147483647 == 1)
18535 rm -f conftest.$ac_objext
18536 if { (ac_try="$ac_compile"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18542 $as_echo "$ac_try_echo") >&5
18543 (eval "$ac_compile") 2>conftest.er1
18545 grep -v '^ *+' conftest.er1 >conftest.err
18547 cat conftest.err >&5
18548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && {
18550 test -z "$ac_c_werror_flag" ||
18551 test ! -s conftest.err
18552 } && test -s conftest.$ac_objext; then
18553 ac_cv_sys_large_files=no; break
18555 $as_echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 #define _LARGE_FILES 1
18569 #include <sys/types.h>
18570 /* Check that off_t can represent 2**63 - 1 correctly.
18571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18572 since some C++ compilers masquerading as C compilers
18573 incorrectly reject 9223372036854775807. */
18574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18576 && LARGE_OFF_T % 2147483647 == 1)
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594 (eval "$ac_compile") 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest.$ac_objext; then
18604 ac_cv_sys_large_files=1; break
18606 $as_echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 ac_cv_sys_large_files=unknown
18617 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18618 $as_echo "$ac_cv_sys_large_files" >&6; }
18619 case $ac_cv_sys_large_files in #(
18622 cat >>confdefs.h <<_ACEOF
18623 #define _LARGE_FILES $ac_cv_sys_large_files
18633 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18634 # The cast to long int works around a bug in the HP C Compiler
18635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18637 # This bug is HP SR number 8606223364.
18638 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18639 $as_echo_n "checking size of off_t... " >&6; }
18640 if test "${ac_cv_sizeof_off_t+set}" = set; then
18641 $as_echo_n "(cached) " >&6
18643 if test "$cross_compiling" = yes; then
18644 # Depending upon the size, compute the lo and hi bounds.
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18655 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18662 rm -f conftest.$ac_objext
18663 if { (ac_try="$ac_compile"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18669 $as_echo "$ac_try_echo") >&5
18670 (eval "$ac_compile") 2>conftest.er1
18672 grep -v '^ *+' conftest.er1 >conftest.err
18674 cat conftest.err >&5
18675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest.$ac_objext; then
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18692 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18699 rm -f conftest.$ac_objext
18700 if { (ac_try="$ac_compile"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18706 $as_echo "$ac_try_echo") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } && {
18714 test -z "$ac_c_werror_flag" ||
18715 test ! -s conftest.err
18716 } && test -s conftest.$ac_objext; then
18717 ac_hi=$ac_mid; break
18719 $as_echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_lo=`expr $ac_mid + 1`
18723 if test $ac_lo -le $ac_mid; then
18727 ac_mid=`expr 2 '*' $ac_mid + 1`
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18733 $as_echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 $ac_includes_default
18746 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18753 rm -f conftest.$ac_objext
18754 if { (ac_try="$ac_compile"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18760 $as_echo "$ac_try_echo") >&5
18761 (eval "$ac_compile") 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } && {
18768 test -z "$ac_c_werror_flag" ||
18769 test ! -s conftest.err
18770 } && test -s conftest.$ac_objext; then
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 $ac_includes_default
18783 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18790 rm -f conftest.$ac_objext
18791 if { (ac_try="$ac_compile"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18797 $as_echo "$ac_try_echo") >&5
18798 (eval "$ac_compile") 2>conftest.er1
18800 grep -v '^ *+' conftest.er1 >conftest.err
18802 cat conftest.err >&5
18803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && {
18805 test -z "$ac_c_werror_flag" ||
18806 test ! -s conftest.err
18807 } && test -s conftest.$ac_objext; then
18808 ac_lo=$ac_mid; break
18810 $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 ac_hi=`expr '(' $ac_mid ')' - 1`
18814 if test $ac_mid -le $ac_hi; then
18818 ac_mid=`expr 2 '*' $ac_mid`
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 $as_echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 # Binary search between lo and hi bounds.
18835 while test "x$ac_lo" != "x$ac_hi"; do
18836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 $ac_includes_default
18847 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18854 rm -f conftest.$ac_objext
18855 if { (ac_try="$ac_compile"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18861 $as_echo "$ac_try_echo") >&5
18862 (eval "$ac_compile") 2>conftest.er1
18864 grep -v '^ *+' conftest.er1 >conftest.err
18866 cat conftest.err >&5
18867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest.$ac_objext; then
18874 $as_echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_lo=`expr '(' $ac_mid ')' + 1`
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18884 '') if test "$ac_cv_type_off_t" = yes; then
18885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18888 See \`config.log' for more details." >&5
18889 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18890 See \`config.log' for more details." >&2;}
18891 { (exit 77); exit 77; }; }; }
18893 ac_cv_sizeof_off_t=0
18897 cat >conftest.$ac_ext <<_ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 $ac_includes_default
18904 static long int longval () { return (long int) (sizeof (off_t)); }
18905 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18907 #include <stdlib.h>
18912 FILE *f = fopen ("conftest.val", "w");
18915 if (((long int) (sizeof (off_t))) < 0)
18917 long int i = longval ();
18918 if (i != ((long int) (sizeof (off_t))))
18920 fprintf (f, "%ld", i);
18924 unsigned long int i = ulongval ();
18925 if (i != ((long int) (sizeof (off_t))))
18927 fprintf (f, "%lu", i);
18929 /* Do not output a trailing newline, as this causes \r\n confusion
18930 on some platforms. */
18931 return ferror (f) || fclose (f) != 0;
18937 rm -f conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945 (eval "$ac_link") 2>&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18954 $as_echo "$ac_try_echo") >&5
18955 (eval "$ac_try") 2>&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
18959 ac_cv_sizeof_off_t=`cat conftest.val`
18961 $as_echo "$as_me: program exited with status $ac_status" >&5
18962 $as_echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ( exit $ac_status )
18966 if test "$ac_cv_type_off_t" = yes; then
18967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18969 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18970 See \`config.log' for more details." >&5
18971 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18972 See \`config.log' for more details." >&2;}
18973 { (exit 77); exit 77; }; }; }
18975 ac_cv_sizeof_off_t=0
18978 rm -rf conftest.dSYM
18979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18984 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18988 cat >>confdefs.h <<_ACEOF
18989 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18994 # If we don't have largefile support, can't handle segsize >= 2GB.
18995 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18996 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18997 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18998 { (exit 1); exit 1; }; }
19003 ## Functions, global variables
19006 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19007 $as_echo_n "checking for int timezone... " >&6; }
19008 if test "${pgac_cv_var_int_timezone+set}" = set; then
19009 $as_echo_n "(cached) " >&6
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19023 res = timezone / 60;
19025 res = _timezone / 60;
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19038 $as_echo "$ac_try_echo") >&5
19039 (eval "$ac_link") 2>conftest.er1
19041 grep -v '^ *+' conftest.er1 >conftest.err
19043 cat conftest.err >&5
19044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } && {
19046 test -z "$ac_c_werror_flag" ||
19047 test ! -s conftest.err
19048 } && test -s conftest$ac_exeext && {
19049 test "$cross_compiling" = yes ||
19050 $as_test_x conftest$ac_exeext
19052 pgac_cv_var_int_timezone=yes
19054 $as_echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 pgac_cv_var_int_timezone=no
19060 rm -rf conftest.dSYM
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19065 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19066 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_INT_TIMEZONE /**/
19073 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19074 $as_echo_n "checking types of arguments for accept()... " >&6; }
19075 if test "${ac_cv_func_accept_return+set}" = set; then
19076 $as_echo_n "(cached) " >&6
19078 if test "${ac_cv_func_accept_arg1+set}" = set; then
19079 $as_echo_n "(cached) " >&6
19081 if test "${ac_cv_func_accept_arg2+set}" = set; then
19082 $as_echo_n "(cached) " >&6
19084 if test "${ac_cv_func_accept_arg3+set}" = set; then
19085 $as_echo_n "(cached) " >&6
19087 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19088 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19089 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19090 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 #ifdef HAVE_SYS_TYPES_H
19098 #include <sys/types.h>
19100 #ifdef HAVE_SYS_SOCKET_H
19101 #include <sys/socket.h>
19103 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19112 rm -f conftest.$ac_objext
19113 if { (ac_try="$ac_compile"
19114 case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19119 $as_echo "$ac_try_echo") >&5
19120 (eval "$ac_compile") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } && {
19127 test -z "$ac_c_werror_flag" ||
19128 test ! -s conftest.err
19129 } && test -s conftest.$ac_objext; then
19130 ac_not_found=no; break 4
19132 $as_echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143 if test "$ac_not_found" = yes; then
19144 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19145 $as_echo "$as_me: error: could not determine argument types" >&2;}
19146 { (exit 1); exit 1; }; }
19148 if test "$ac_cv_func_accept_arg3" = "void"; then
19149 ac_cv_func_accept_arg3=int
19159 { $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
19160 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19162 cat >>confdefs.h <<_ACEOF
19163 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19167 cat >>confdefs.h <<_ACEOF
19168 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19172 cat >>confdefs.h <<_ACEOF
19173 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19177 cat >>confdefs.h <<_ACEOF
19178 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19183 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19184 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19185 $as_echo_n "(cached) " >&6
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <sys/time.h>
19197 struct timeval *tp;
19198 struct timezone *tzp;
19199 gettimeofday(tp,tzp);
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 pgac_cv_func_gettimeofday_1arg=no
19224 $as_echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 pgac_cv_func_gettimeofday_1arg=yes
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19233 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19234 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19236 cat >>confdefs.h <<\_ACEOF
19237 #define GETTIMEOFDAY_1ARG /**/
19266 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
19268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 $as_echo_n "checking for $ac_func... " >&6; }
19271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19272 $as_echo_n "(cached) " >&6
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282 #define $ac_func innocuous_$ac_func
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19290 # include <limits.h>
19292 # include <assert.h>
19297 /* Override any GCC internal prototype to avoid an error.
19298 Use char because int might match the return type of a GCC
19299 builtin and then its argument prototype would still apply. */
19304 /* The GNU C library defines this for functions which it implements
19305 to always fail with ENOSYS. Some functions are actually named
19306 something starting with __ and the normal name is an alias. */
19307 #if defined __stub_$ac_func || defined __stub___$ac_func
19314 return $ac_func ();
19319 rm -f conftest.$ac_objext conftest$ac_exeext
19320 if { (ac_try="$ac_link"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327 (eval "$ac_link") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest$ac_exeext && {
19337 test "$cross_compiling" = yes ||
19338 $as_test_x conftest$ac_exeext
19340 eval "$as_ac_var=yes"
19342 $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 eval "$as_ac_var=no"
19348 rm -rf conftest.dSYM
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350 conftest$ac_exeext conftest.$ac_ext
19352 ac_res=`eval 'as_val=${'$as_ac_var'}
19353 $as_echo "$as_val"'`
19354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19355 $as_echo "$ac_res" >&6; }
19356 as_val=`eval 'as_val=${'$as_ac_var'}
19357 $as_echo "$as_val"'`
19358 if test "x$as_val" = x""yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19368 for ac_func in fseeko
19370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19371 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19372 $as_echo_n "checking for $ac_func... " >&6; }
19373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19374 $as_echo_n "(cached) " >&6
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19384 #define $ac_func innocuous_$ac_func
19386 /* System header to define __stub macros and hopefully few prototypes,
19387 which can conflict with char $ac_func (); below.
19388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19389 <limits.h> exists even on freestanding compilers. */
19392 # include <limits.h>
19394 # include <assert.h>
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19406 /* The GNU C library defines this for functions which it implements
19407 to always fail with ENOSYS. Some functions are actually named
19408 something starting with __ and the normal name is an alias. */
19409 #if defined __stub_$ac_func || defined __stub___$ac_func
19416 return $ac_func ();
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext && {
19439 test "$cross_compiling" = yes ||
19440 $as_test_x conftest$ac_exeext
19442 eval "$as_ac_var=yes"
19444 $as_echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 eval "$as_ac_var=no"
19450 rm -rf conftest.dSYM
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19454 ac_res=`eval 'as_val=${'$as_ac_var'}
19455 $as_echo "$as_val"'`
19456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19457 $as_echo "$ac_res" >&6; }
19458 as_val=`eval 'as_val=${'$as_ac_var'}
19459 $as_echo "$as_val"'`
19460 if test "x$as_val" = x""yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19466 case " $LIBOBJS " in
19467 *" $ac_func.$ac_objext "* ) ;;
19468 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19477 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19478 # Mingw uses macros to access Win32 API calls
19479 bsdi*|netbsd*|mingw*)
19481 cat >>confdefs.h <<\_ACEOF
19482 #define HAVE_FSEEKO 1
19485 ac_cv_func_fseeko=yes;;
19487 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19488 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19489 if test "${ac_cv_sys_largefile_source+set}" = set; then
19490 $as_echo_n "(cached) " >&6
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 #include <sys/types.h> /* for off_t */
19504 int (*fp) (FILE *, off_t, int) = fseeko;
19505 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19517 $as_echo "$ac_try_echo") >&5
19518 (eval "$ac_link") 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } && {
19525 test -z "$ac_c_werror_flag" ||
19526 test ! -s conftest.err
19527 } && test -s conftest$ac_exeext && {
19528 test "$cross_compiling" = yes ||
19529 $as_test_x conftest$ac_exeext
19531 ac_cv_sys_largefile_source=no; break
19533 $as_echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19539 rm -rf conftest.dSYM
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #define _LARGEFILE_SOURCE 1
19549 #include <sys/types.h> /* for off_t */
19554 int (*fp) (FILE *, off_t, int) = fseeko;
19555 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (ac_try="$ac_link"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19567 $as_echo "$ac_try_echo") >&5
19568 (eval "$ac_link") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest$ac_exeext && {
19578 test "$cross_compiling" = yes ||
19579 $as_test_x conftest$ac_exeext
19581 ac_cv_sys_largefile_source=1; break
19583 $as_echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19589 rm -rf conftest.dSYM
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591 conftest$ac_exeext conftest.$ac_ext
19592 ac_cv_sys_largefile_source=unknown
19596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19597 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19598 case $ac_cv_sys_largefile_source in #(
19601 cat >>confdefs.h <<_ACEOF
19602 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19608 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19609 # in glibc 2.1.3, but that breaks too many other things.
19610 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19611 if test $ac_cv_sys_largefile_source != unknown; then
19613 cat >>confdefs.h <<\_ACEOF
19614 #define HAVE_FSEEKO 1
19621 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19622 # by calling it, 2009-04-02
19623 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19624 if test "$PORTNAME" != "solaris"; then
19626 for ac_func in posix_fadvise
19628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19630 $as_echo_n "checking for $ac_func... " >&6; }
19631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19632 $as_echo_n "(cached) " >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19642 #define $ac_func innocuous_$ac_func
19644 /* System header to define __stub macros and hopefully few prototypes,
19645 which can conflict with char $ac_func (); below.
19646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19647 <limits.h> exists even on freestanding compilers. */
19650 # include <limits.h>
19652 # include <assert.h>
19657 /* Override any GCC internal prototype to avoid an error.
19658 Use char because int might match the return type of a GCC
19659 builtin and then its argument prototype would still apply. */
19664 /* The GNU C library defines this for functions which it implements
19665 to always fail with ENOSYS. Some functions are actually named
19666 something starting with __ and the normal name is an alias. */
19667 #if defined __stub_$ac_func || defined __stub___$ac_func
19674 return $ac_func ();
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19686 $as_echo "$ac_try_echo") >&5
19687 (eval "$ac_link") 2>conftest.er1
19689 grep -v '^ *+' conftest.er1 >conftest.err
19691 cat conftest.err >&5
19692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } && {
19694 test -z "$ac_c_werror_flag" ||
19695 test ! -s conftest.err
19696 } && test -s conftest$ac_exeext && {
19697 test "$cross_compiling" = yes ||
19698 $as_test_x conftest$ac_exeext
19700 eval "$as_ac_var=yes"
19702 $as_echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 eval "$as_ac_var=no"
19708 rm -rf conftest.dSYM
19709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19710 conftest$ac_exeext conftest.$ac_ext
19712 ac_res=`eval 'as_val=${'$as_ac_var'}
19713 $as_echo "$as_val"'`
19714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19715 $as_echo "$ac_res" >&6; }
19716 as_val=`eval 'as_val=${'$as_ac_var'}
19717 $as_echo "$as_val"'`
19718 if test "x$as_val" = x""yes; then
19719 cat >>confdefs.h <<_ACEOF
19720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19726 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19727 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19728 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19729 $as_echo_n "(cached) " >&6
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19742 #ifndef posix_fadvise
19743 (void) posix_fadvise;
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19760 grep -v '^ *+' conftest.er1 >conftest.err
19762 cat conftest.err >&5
19763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest.$ac_objext; then
19768 ac_cv_have_decl_posix_fadvise=yes
19770 $as_echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_cv_have_decl_posix_fadvise=no
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19779 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19780 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19782 cat >>confdefs.h <<_ACEOF
19783 #define HAVE_DECL_POSIX_FADVISE 1
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_DECL_POSIX_FADVISE 0
19798 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19799 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19800 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19801 $as_echo_n "(cached) " >&6
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 #include <unistd.h>
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830 (eval "$ac_compile") 2>conftest.er1
19832 grep -v '^ *+' conftest.er1 >conftest.err
19834 cat conftest.err >&5
19835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest.$ac_objext; then
19840 ac_cv_have_decl_fdatasync=yes
19842 $as_echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_cv_have_decl_fdatasync=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19850 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19851 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19852 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19854 cat >>confdefs.h <<_ACEOF
19855 #define HAVE_DECL_FDATASYNC 1
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_DECL_FDATASYNC 0
19868 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19869 $as_echo_n "checking whether strlcat is declared... " >&6; }
19870 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19871 $as_echo_n "(cached) " >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 $ac_includes_default
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19898 $as_echo "$ac_try_echo") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_cv_have_decl_strlcat=yes
19911 $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_cv_have_decl_strlcat=no
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19920 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19921 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19923 cat >>confdefs.h <<_ACEOF
19924 #define HAVE_DECL_STRLCAT 1
19929 cat >>confdefs.h <<_ACEOF
19930 #define HAVE_DECL_STRLCAT 0
19935 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19936 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19937 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19938 $as_echo_n "(cached) " >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 $ac_includes_default
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
19976 ac_cv_have_decl_strlcpy=yes
19978 $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 ac_cv_have_decl_strlcpy=no
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19987 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19988 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19990 cat >>confdefs.h <<_ACEOF
19991 #define HAVE_DECL_STRLCPY 1
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_DECL_STRLCPY 0
20004 # This is probably only present on Darwin, but may as well check always
20005 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20006 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20007 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20008 $as_echo_n "(cached) " >&6
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20021 #ifndef F_FULLFSYNC
20022 (void) F_FULLFSYNC;
20029 rm -f conftest.$ac_objext
20030 if { (ac_try="$ac_compile"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20036 $as_echo "$ac_try_echo") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.$ac_objext; then
20047 ac_cv_have_decl_F_FULLFSYNC=yes
20049 $as_echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_have_decl_F_FULLFSYNC=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20058 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20059 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_DECL_F_FULLFSYNC 1
20067 cat >>confdefs.h <<_ACEOF
20068 #define HAVE_DECL_F_FULLFSYNC 0
20077 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20078 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20079 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20080 $as_echo_n "(cached) " >&6
20082 ac_cv_type_struct_sockaddr_in6=no
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 $ac_includes_default
20090 #include <netinet/in.h>
20095 if (sizeof (struct sockaddr_in6))
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108 $as_echo "$ac_try_echo") >&5
20109 (eval "$ac_compile") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest.$ac_objext; then
20119 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 $ac_includes_default
20126 #include <netinet/in.h>
20131 if (sizeof ((struct sockaddr_in6)))
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145 (eval "$ac_compile") 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest.$ac_objext; then
20157 $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ac_cv_type_struct_sockaddr_in6=yes
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20174 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20175 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE_IPV6 1
20186 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20187 $as_echo_n "checking for PS_STRINGS... " >&6; }
20188 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20189 $as_echo_n "(cached) " >&6
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 #include <machine/vmparam.h>
20198 #include <sys/exec.h>
20203 PS_STRINGS->ps_nargvstr = 1;
20204 PS_STRINGS->ps_argvstr = "foo";
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20216 $as_echo "$ac_try_echo") >&5
20217 (eval "$ac_link") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest$ac_exeext && {
20227 test "$cross_compiling" = yes ||
20228 $as_test_x conftest$ac_exeext
20230 pgac_cv_var_PS_STRINGS=yes
20232 $as_echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 pgac_cv_var_PS_STRINGS=no
20238 rm -rf conftest.dSYM
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240 conftest$ac_exeext conftest.$ac_ext
20242 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20243 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20244 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20246 cat >>confdefs.h <<\_ACEOF
20247 #define HAVE_PS_STRINGS /**/
20253 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20254 # is missing. Yes, there are machines that have only one. We may
20255 # also decide to use snprintf.c if snprintf() is present but does not
20256 # have all the features we need --- see below.
20258 if test "$PORTNAME" = "win32"; then
20259 # Win32 gets snprintf.c built unconditionally.
20261 # To properly translate all NLS languages strings, we must support the
20262 # *printf() %$ format, which allows *printf() arguments to be selected
20263 # by position in the translated string.
20265 # libintl versions < 0.13 use the native *printf() functions, and Win32
20266 # *printf() doesn't understand %$, so we must use our /port versions,
20267 # which do understand %$. libintl versions >= 0.13 include their own
20268 # *printf versions on Win32. The libintl 0.13 release note text is:
20270 # C format strings with positions, as they arise when a translator
20271 # needs to reorder a sentence, are now supported on all platforms.
20272 # On those few platforms (NetBSD and Woe32) for which the native
20273 # printf()/fprintf()/... functions don't support such format
20274 # strings, replacements are provided through <libintl.h>.
20276 # We could use libintl >= 0.13's *printf() if we were sure that we had
20277 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20278 # to guarantee that, it is best to just use our own, so we are sure to
20279 # get %$ support. In include/port.h we disable the *printf() macros
20280 # that might have been defined by libintl.
20282 # We do this unconditionally whether NLS is used or not so we are sure
20283 # that all Win32 libraries and binaries behave the same.
20284 pgac_need_repl_snprintf=yes
20286 pgac_need_repl_snprintf=no
20288 for ac_func in snprintf
20290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 $as_echo_n "checking for $ac_func... " >&6; }
20293 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20304 #define $ac_func innocuous_$ac_func
20306 /* System header to define __stub macros and hopefully few prototypes,
20307 which can conflict with char $ac_func (); below.
20308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20309 <limits.h> exists even on freestanding compilers. */
20312 # include <limits.h>
20314 # include <assert.h>
20319 /* Override any GCC internal prototype to avoid an error.
20320 Use char because int might match the return type of a GCC
20321 builtin and then its argument prototype would still apply. */
20326 /* The GNU C library defines this for functions which it implements
20327 to always fail with ENOSYS. Some functions are actually named
20328 something starting with __ and the normal name is an alias. */
20329 #if defined __stub_$ac_func || defined __stub___$ac_func
20336 return $ac_func ();
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20348 $as_echo "$ac_try_echo") >&5
20349 (eval "$ac_link") 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } && {
20356 test -z "$ac_c_werror_flag" ||
20357 test ! -s conftest.err
20358 } && test -s conftest$ac_exeext && {
20359 test "$cross_compiling" = yes ||
20360 $as_test_x conftest$ac_exeext
20362 eval "$as_ac_var=yes"
20364 $as_echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 eval "$as_ac_var=no"
20370 rm -rf conftest.dSYM
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372 conftest$ac_exeext conftest.$ac_ext
20374 ac_res=`eval 'as_val=${'$as_ac_var'}
20375 $as_echo "$as_val"'`
20376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20377 $as_echo "$ac_res" >&6; }
20378 as_val=`eval 'as_val=${'$as_ac_var'}
20379 $as_echo "$as_val"'`
20380 if test "x$as_val" = x""yes; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20386 pgac_need_repl_snprintf=yes
20391 for ac_func in vsnprintf
20393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20394 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20395 $as_echo_n "checking for $ac_func... " >&6; }
20396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20397 $as_echo_n "(cached) " >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define $ac_func innocuous_$ac_func
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char $ac_func (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20415 # include <limits.h>
20417 # include <assert.h>
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined __stub_$ac_func || defined __stub___$ac_func
20439 return $ac_func ();
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20451 $as_echo "$ac_try_echo") >&5
20452 (eval "$ac_link") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext && {
20462 test "$cross_compiling" = yes ||
20463 $as_test_x conftest$ac_exeext
20465 eval "$as_ac_var=yes"
20467 $as_echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 eval "$as_ac_var=no"
20473 rm -rf conftest.dSYM
20474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20475 conftest$ac_exeext conftest.$ac_ext
20477 ac_res=`eval 'as_val=${'$as_ac_var'}
20478 $as_echo "$as_val"'`
20479 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20480 $as_echo "$ac_res" >&6; }
20481 as_val=`eval 'as_val=${'$as_ac_var'}
20482 $as_echo "$as_val"'`
20483 if test "x$as_val" = x""yes; then
20484 cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20489 pgac_need_repl_snprintf=yes
20496 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20497 # include/c.h will provide declarations. Note this is a separate test
20498 # from whether the functions exist in the C library --- there are
20499 # systems that have the functions but don't bother to declare them :-(
20501 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20502 $as_echo_n "checking whether snprintf is declared... " >&6; }
20503 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20504 $as_echo_n "(cached) " >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 $ac_includes_default
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20531 $as_echo "$ac_try_echo") >&5
20532 (eval "$ac_compile") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest.$ac_objext; then
20542 ac_cv_have_decl_snprintf=yes
20544 $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_cv_have_decl_snprintf=no
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20553 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20554 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_DECL_SNPRINTF 1
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_SNPRINTF 0
20568 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20569 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20570 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20571 $as_echo_n "(cached) " >&6
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 $ac_includes_default
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20598 $as_echo "$ac_try_echo") >&5
20599 (eval "$ac_compile") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest.$ac_objext; then
20609 ac_cv_have_decl_vsnprintf=yes
20611 $as_echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_cv_have_decl_vsnprintf=no
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20620 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20621 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_DECL_VSNPRINTF 1
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_DECL_VSNPRINTF 0
20639 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20640 $as_echo_n "checking for isinf... " >&6; }
20641 if test "${ac_cv_func_isinf+set}" = set; then
20642 $as_echo_n "(cached) " >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20652 double glob_double;
20657 return isinf(glob_double) ? 0 : 1;
20662 rm -f conftest.$ac_objext conftest$ac_exeext
20663 if { (ac_try="$ac_link"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20669 $as_echo "$ac_try_echo") >&5
20670 (eval "$ac_link") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext && {
20680 test "$cross_compiling" = yes ||
20681 $as_test_x conftest$ac_exeext
20683 ac_cv_func_isinf=yes
20685 $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_func_isinf=no
20691 rm -rf conftest.dSYM
20692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20693 conftest$ac_exeext conftest.$ac_ext
20695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20696 $as_echo "$ac_cv_func_isinf" >&6; }
20698 if test $ac_cv_func_isinf = yes ; then
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_ISINF 1
20705 case " $LIBOBJS " in
20706 *" isinf.$ac_objext "* ) ;;
20707 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20711 # Look for a way to implement a substitute for isinf()
20716 for ac_func in fpclass fp_class fp_class_d class
20718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20720 $as_echo_n "checking for $ac_func... " >&6; }
20721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20722 $as_echo_n "(cached) " >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20732 #define $ac_func innocuous_$ac_func
20734 /* System header to define __stub macros and hopefully few prototypes,
20735 which can conflict with char $ac_func (); below.
20736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737 <limits.h> exists even on freestanding compilers. */
20740 # include <limits.h>
20742 # include <assert.h>
20747 /* Override any GCC internal prototype to avoid an error.
20748 Use char because int might match the return type of a GCC
20749 builtin and then its argument prototype would still apply. */
20754 /* The GNU C library defines this for functions which it implements
20755 to always fail with ENOSYS. Some functions are actually named
20756 something starting with __ and the normal name is an alias. */
20757 #if defined __stub_$ac_func || defined __stub___$ac_func
20764 return $ac_func ();
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20776 $as_echo "$ac_try_echo") >&5
20777 (eval "$ac_link") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext && {
20787 test "$cross_compiling" = yes ||
20788 $as_test_x conftest$ac_exeext
20790 eval "$as_ac_var=yes"
20792 $as_echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 eval "$as_ac_var=no"
20798 rm -rf conftest.dSYM
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext conftest.$ac_ext
20802 ac_res=`eval 'as_val=${'$as_ac_var'}
20803 $as_echo "$as_val"'`
20804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20805 $as_echo "$ac_res" >&6; }
20806 as_val=`eval 'as_val=${'$as_ac_var'}
20807 $as_echo "$as_val"'`
20808 if test "x$as_val" = x""yes; then
20809 cat >>confdefs.h <<_ACEOF
20810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818 # Some versions of libedit contain strlcpy(); so disregard that library while
20819 # checking for these standard libc functions.
20820 pgac_save_LIBS="$LIBS"
20821 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20837 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20841 $as_echo_n "checking for $ac_func... " >&6; }
20842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20843 $as_echo_n "(cached) " >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20853 #define $ac_func innocuous_$ac_func
20855 /* System header to define __stub macros and hopefully few prototypes,
20856 which can conflict with char $ac_func (); below.
20857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20858 <limits.h> exists even on freestanding compilers. */
20861 # include <limits.h>
20863 # include <assert.h>
20868 /* Override any GCC internal prototype to avoid an error.
20869 Use char because int might match the return type of a GCC
20870 builtin and then its argument prototype would still apply. */
20875 /* The GNU C library defines this for functions which it implements
20876 to always fail with ENOSYS. Some functions are actually named
20877 something starting with __ and the normal name is an alias. */
20878 #if defined __stub_$ac_func || defined __stub___$ac_func
20885 return $ac_func ();
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (ac_try="$ac_link"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897 $as_echo "$ac_try_echo") >&5
20898 (eval "$ac_link") 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest$ac_exeext && {
20908 test "$cross_compiling" = yes ||
20909 $as_test_x conftest$ac_exeext
20911 eval "$as_ac_var=yes"
20913 $as_echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 eval "$as_ac_var=no"
20919 rm -rf conftest.dSYM
20920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20921 conftest$ac_exeext conftest.$ac_ext
20923 ac_res=`eval 'as_val=${'$as_ac_var'}
20924 $as_echo "$as_val"'`
20925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20926 $as_echo "$ac_res" >&6; }
20927 as_val=`eval 'as_val=${'$as_ac_var'}
20928 $as_echo "$as_val"'`
20929 if test "x$as_val" = x""yes; then
20930 cat >>confdefs.h <<_ACEOF
20931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20935 case " $LIBOBJS " in
20936 *" $ac_func.$ac_objext "* ) ;;
20937 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20948 # Windows uses a specialised env handler
20949 # and doesn't need a replacement getpeereid because it doesn't use
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_UNSETENV 1
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_GETPEEREID 1
20962 ac_cv_func_unsetenv=yes
20963 ac_cv_func_getpeereid=yes;;
20967 for ac_func in unsetenv getpeereid
20969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20971 $as_echo_n "checking for $ac_func... " >&6; }
20972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20973 $as_echo_n "(cached) " >&6
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20983 #define $ac_func innocuous_$ac_func
20985 /* System header to define __stub macros and hopefully few prototypes,
20986 which can conflict with char $ac_func (); below.
20987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20988 <limits.h> exists even on freestanding compilers. */
20991 # include <limits.h>
20993 # include <assert.h>
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21005 /* The GNU C library defines this for functions which it implements
21006 to always fail with ENOSYS. Some functions are actually named
21007 something starting with __ and the normal name is an alias. */
21008 #if defined __stub_$ac_func || defined __stub___$ac_func
21015 return $ac_func ();
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028 (eval "$ac_link") 2>conftest.er1
21030 grep -v '^ *+' conftest.er1 >conftest.err
21032 cat conftest.err >&5
21033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } && {
21035 test -z "$ac_c_werror_flag" ||
21036 test ! -s conftest.err
21037 } && test -s conftest$ac_exeext && {
21038 test "$cross_compiling" = yes ||
21039 $as_test_x conftest$ac_exeext
21041 eval "$as_ac_var=yes"
21043 $as_echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 eval "$as_ac_var=no"
21049 rm -rf conftest.dSYM
21050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21051 conftest$ac_exeext conftest.$ac_ext
21053 ac_res=`eval 'as_val=${'$as_ac_var'}
21054 $as_echo "$as_val"'`
21055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21056 $as_echo "$ac_res" >&6; }
21057 as_val=`eval 'as_val=${'$as_ac_var'}
21058 $as_echo "$as_val"'`
21059 if test "x$as_val" = x""yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21065 case " $LIBOBJS " in
21066 *" $ac_func.$ac_objext "* ) ;;
21067 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21079 LIBS="$pgac_save_LIBS"
21081 # System's version of getaddrinfo(), if any, may be used only if we found
21082 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21083 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21084 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21085 # because we want to use our own getaddrinfo.c on Windows anyway.)
21086 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21088 for ac_func in getaddrinfo
21090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21092 $as_echo_n "checking for $ac_func... " >&6; }
21093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21094 $as_echo_n "(cached) " >&6
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21104 #define $ac_func innocuous_$ac_func
21106 /* System header to define __stub macros and hopefully few prototypes,
21107 which can conflict with char $ac_func (); below.
21108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21109 <limits.h> exists even on freestanding compilers. */
21112 # include <limits.h>
21114 # include <assert.h>
21119 /* Override any GCC internal prototype to avoid an error.
21120 Use char because int might match the return type of a GCC
21121 builtin and then its argument prototype would still apply. */
21126 /* The GNU C library defines this for functions which it implements
21127 to always fail with ENOSYS. Some functions are actually named
21128 something starting with __ and the normal name is an alias. */
21129 #if defined __stub_$ac_func || defined __stub___$ac_func
21136 return $ac_func ();
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149 (eval "$ac_link") 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest$ac_exeext && {
21159 test "$cross_compiling" = yes ||
21160 $as_test_x conftest$ac_exeext
21162 eval "$as_ac_var=yes"
21164 $as_echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 eval "$as_ac_var=no"
21170 rm -rf conftest.dSYM
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172 conftest$ac_exeext conftest.$ac_ext
21174 ac_res=`eval 'as_val=${'$as_ac_var'}
21175 $as_echo "$as_val"'`
21176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21177 $as_echo "$ac_res" >&6; }
21178 as_val=`eval 'as_val=${'$as_ac_var'}
21179 $as_echo "$as_val"'`
21180 if test "x$as_val" = x""yes; then
21181 cat >>confdefs.h <<_ACEOF
21182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21186 case " $LIBOBJS " in
21187 *" $ac_func.$ac_objext "* ) ;;
21188 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21197 case " $LIBOBJS " in
21198 *" getaddrinfo.$ac_objext "* ) ;;
21199 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21205 # Similarly, use system's getopt_long() only if system provides struct option.
21206 if test x"$ac_cv_type_struct_option" = xyes ; then
21208 for ac_func in getopt_long
21210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21211 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21212 $as_echo_n "checking for $ac_func... " >&6; }
21213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21214 $as_echo_n "(cached) " >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21224 #define $ac_func innocuous_$ac_func
21226 /* System header to define __stub macros and hopefully few prototypes,
21227 which can conflict with char $ac_func (); below.
21228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21229 <limits.h> exists even on freestanding compilers. */
21232 # include <limits.h>
21234 # include <assert.h>
21239 /* Override any GCC internal prototype to avoid an error.
21240 Use char because int might match the return type of a GCC
21241 builtin and then its argument prototype would still apply. */
21246 /* The GNU C library defines this for functions which it implements
21247 to always fail with ENOSYS. Some functions are actually named
21248 something starting with __ and the normal name is an alias. */
21249 #if defined __stub_$ac_func || defined __stub___$ac_func
21256 return $ac_func ();
21261 rm -f conftest.$ac_objext conftest$ac_exeext
21262 if { (ac_try="$ac_link"
21263 case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21268 $as_echo "$ac_try_echo") >&5
21269 (eval "$ac_link") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest$ac_exeext && {
21279 test "$cross_compiling" = yes ||
21280 $as_test_x conftest$ac_exeext
21282 eval "$as_ac_var=yes"
21284 $as_echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 eval "$as_ac_var=no"
21290 rm -rf conftest.dSYM
21291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21292 conftest$ac_exeext conftest.$ac_ext
21294 ac_res=`eval 'as_val=${'$as_ac_var'}
21295 $as_echo "$as_val"'`
21296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21297 $as_echo "$ac_res" >&6; }
21298 as_val=`eval 'as_val=${'$as_ac_var'}
21299 $as_echo "$as_val"'`
21300 if test "x$as_val" = x""yes; then
21301 cat >>confdefs.h <<_ACEOF
21302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21306 case " $LIBOBJS " in
21307 *" $ac_func.$ac_objext "* ) ;;
21308 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21317 case " $LIBOBJS " in
21318 *" getopt_long.$ac_objext "* ) ;;
21319 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21325 # Solaris' getopt() doesn't do what we want for long options, so always use
21326 # our version on that platform.
21327 if test "$PORTNAME" = "solaris"; then
21328 case " $LIBOBJS " in
21329 *" getopt.$ac_objext "* ) ;;
21330 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21336 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21337 # so always use our version on Windows.
21338 if test "$PORTNAME" = "win32"; then
21339 case " $LIBOBJS " in
21340 *" getopt.$ac_objext "* ) ;;
21341 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21345 case " $LIBOBJS " in
21346 *" getopt_long.$ac_objext "* ) ;;
21347 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21354 if test "$PORTNAME" = "win32"; then
21356 for ac_func in gettimeofday
21358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21360 $as_echo_n "checking for $ac_func... " >&6; }
21361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21362 $as_echo_n "(cached) " >&6
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21372 #define $ac_func innocuous_$ac_func
21374 /* System header to define __stub macros and hopefully few prototypes,
21375 which can conflict with char $ac_func (); below.
21376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21377 <limits.h> exists even on freestanding compilers. */
21380 # include <limits.h>
21382 # include <assert.h>
21387 /* Override any GCC internal prototype to avoid an error.
21388 Use char because int might match the return type of a GCC
21389 builtin and then its argument prototype would still apply. */
21394 /* The GNU C library defines this for functions which it implements
21395 to always fail with ENOSYS. Some functions are actually named
21396 something starting with __ and the normal name is an alias. */
21397 #if defined __stub_$ac_func || defined __stub___$ac_func
21404 return $ac_func ();
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416 $as_echo "$ac_try_echo") >&5
21417 (eval "$ac_link") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest$ac_exeext && {
21427 test "$cross_compiling" = yes ||
21428 $as_test_x conftest$ac_exeext
21430 eval "$as_ac_var=yes"
21432 $as_echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 eval "$as_ac_var=no"
21438 rm -rf conftest.dSYM
21439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21440 conftest$ac_exeext conftest.$ac_ext
21442 ac_res=`eval 'as_val=${'$as_ac_var'}
21443 $as_echo "$as_val"'`
21444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21445 $as_echo "$ac_res" >&6; }
21446 as_val=`eval 'as_val=${'$as_ac_var'}
21447 $as_echo "$as_val"'`
21448 if test "x$as_val" = x""yes; then
21449 cat >>confdefs.h <<_ACEOF
21450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21454 case " $LIBOBJS " in
21455 *" $ac_func.$ac_objext "* ) ;;
21456 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21464 case " $LIBOBJS " in
21465 *" kill.$ac_objext "* ) ;;
21466 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21470 case " $LIBOBJS " in
21471 *" open.$ac_objext "* ) ;;
21472 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21476 case " $LIBOBJS " in
21477 *" win32env.$ac_objext "* ) ;;
21478 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21482 case " $LIBOBJS " in
21483 *" win32error.$ac_objext "* ) ;;
21484 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21488 case " $LIBOBJS " in
21489 *" win32setlocale.$ac_objext "* ) ;;
21490 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_SYMLINK 1
21499 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21500 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21501 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21502 $as_echo_n "(cached) " >&6
21504 ac_cv_type_MINIDUMP_TYPE=no
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21512 #define WIN32_LEAN_AND_MEAN
21513 #include <windows.h>
21514 #include <string.h>
21515 #include <dbghelp.h>
21520 if (sizeof (MINIDUMP_TYPE))
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_compile") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest.$ac_objext; then
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 #define WIN32_LEAN_AND_MEAN
21552 #include <windows.h>
21553 #include <string.h>
21554 #include <dbghelp.h>
21559 if (sizeof ((MINIDUMP_TYPE)))
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21572 $as_echo "$ac_try_echo") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21585 $as_echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_cv_type_MINIDUMP_TYPE=yes
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21602 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21603 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_MINIDUMP_TYPE 1
21609 pgac_minidump_type=yes
21611 pgac_minidump_type=no
21615 if test x"$pgac_minidump_type" = x"yes" ; then
21616 have_win32_dbghelp=yes
21619 have_win32_dbghelp=no
21623 if test "$with_readline" = yes; then
21624 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21625 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21626 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21627 $as_echo_n "(cached) " >&6
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21636 #ifdef HAVE_READLINE_READLINE_H
21637 # include <readline/readline.h>
21638 #elif defined(HAVE_READLINE_H)
21639 # include <readline.h>
21645 rl_completion_append_character = 'x';
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21657 $as_echo "$ac_try_echo") >&5
21658 (eval "$ac_link") 2>conftest.er1
21660 grep -v '^ *+' conftest.er1 >conftest.err
21662 cat conftest.err >&5
21663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && {
21665 test -z "$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21667 } && test -s conftest$ac_exeext && {
21668 test "$cross_compiling" = yes ||
21669 $as_test_x conftest$ac_exeext
21671 pgac_cv_var_rl_completion_append_character=yes
21673 $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 pgac_cv_var_rl_completion_append_character=no
21679 rm -rf conftest.dSYM
21680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21681 conftest$ac_exeext conftest.$ac_ext
21683 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21684 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21685 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21687 cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21694 for ac_func in rl_completion_matches rl_filename_completion_function
21696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21698 $as_echo_n "checking for $ac_func... " >&6; }
21699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21700 $as_echo_n "(cached) " >&6
21702 cat >conftest.$ac_ext <<_ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21710 #define $ac_func innocuous_$ac_func
21712 /* System header to define __stub macros and hopefully few prototypes,
21713 which can conflict with char $ac_func (); below.
21714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21715 <limits.h> exists even on freestanding compilers. */
21718 # include <limits.h>
21720 # include <assert.h>
21725 /* Override any GCC internal prototype to avoid an error.
21726 Use char because int might match the return type of a GCC
21727 builtin and then its argument prototype would still apply. */
21732 /* The GNU C library defines this for functions which it implements
21733 to always fail with ENOSYS. Some functions are actually named
21734 something starting with __ and the normal name is an alias. */
21735 #if defined __stub_$ac_func || defined __stub___$ac_func
21742 return $ac_func ();
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755 (eval "$ac_link") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1 >conftest.err
21759 cat conftest.err >&5
21760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest$ac_exeext && {
21765 test "$cross_compiling" = yes ||
21766 $as_test_x conftest$ac_exeext
21768 eval "$as_ac_var=yes"
21770 $as_echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 eval "$as_ac_var=no"
21776 rm -rf conftest.dSYM
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21780 ac_res=`eval 'as_val=${'$as_ac_var'}
21781 $as_echo "$as_val"'`
21782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21783 $as_echo "$ac_res" >&6; }
21784 as_val=`eval 'as_val=${'$as_ac_var'}
21785 $as_echo "$as_val"'`
21786 if test "x$as_val" = x""yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21796 for ac_func in append_history history_truncate_file
21798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 $as_echo_n "checking for $ac_func... " >&6; }
21801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21802 $as_echo_n "(cached) " >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21812 #define $ac_func innocuous_$ac_func
21814 /* System header to define __stub macros and hopefully few prototypes,
21815 which can conflict with char $ac_func (); below.
21816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21817 <limits.h> exists even on freestanding compilers. */
21820 # include <limits.h>
21822 # include <assert.h>
21827 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21834 /* The GNU C library defines this for functions which it implements
21835 to always fail with ENOSYS. Some functions are actually named
21836 something starting with __ and the normal name is an alias. */
21837 #if defined __stub_$ac_func || defined __stub___$ac_func
21844 return $ac_func ();
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (ac_try="$ac_link"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21856 $as_echo "$ac_try_echo") >&5
21857 (eval "$ac_link") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest$ac_exeext && {
21867 test "$cross_compiling" = yes ||
21868 $as_test_x conftest$ac_exeext
21870 eval "$as_ac_var=yes"
21872 $as_echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 eval "$as_ac_var=no"
21878 rm -rf conftest.dSYM
21879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21880 conftest$ac_exeext conftest.$ac_ext
21882 ac_res=`eval 'as_val=${'$as_ac_var'}
21883 $as_echo "$as_val"'`
21884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21885 $as_echo "$ac_res" >&6; }
21886 as_val=`eval 'as_val=${'$as_ac_var'}
21887 $as_echo "$as_val"'`
21888 if test "x$as_val" = x""yes; then
21889 cat >>confdefs.h <<_ACEOF
21890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21899 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21900 $as_echo_n "checking for sigsetjmp... " >&6; }
21901 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21902 $as_echo_n "(cached) " >&6
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include <setjmp.h>
21914 sigjmp_buf x; sigsetjmp(x, 1);
21919 rm -f conftest.$ac_objext conftest$ac_exeext
21920 if { (ac_try="$ac_link"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21926 $as_echo "$ac_try_echo") >&5
21927 (eval "$ac_link") 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } && {
21934 test -z "$ac_c_werror_flag" ||
21935 test ! -s conftest.err
21936 } && test -s conftest$ac_exeext && {
21937 test "$cross_compiling" = yes ||
21938 $as_test_x conftest$ac_exeext
21940 pgac_cv_func_sigsetjmp=yes
21942 $as_echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 pgac_cv_func_sigsetjmp=no
21948 rm -rf conftest.dSYM
21949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21950 conftest$ac_exeext conftest.$ac_ext
21952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21953 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21954 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21956 cat >>confdefs.h <<\_ACEOF
21957 #define HAVE_SIGSETJMP 1
21962 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21963 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21964 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21965 $as_echo_n "(cached) " >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include <signal.h>
21974 /* NetBSD declares sys_siglist in unistd.h. */
21975 #ifdef HAVE_UNISTD_H
21976 # include <unistd.h>
21983 #ifndef sys_siglist
21984 (void) sys_siglist;
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999 (eval "$ac_compile") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest.$ac_objext; then
22009 ac_cv_have_decl_sys_siglist=yes
22011 $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 ac_cv_have_decl_sys_siglist=no
22017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22020 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22021 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_DECL_SYS_SIGLIST 1
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_DECL_SYS_SIGLIST 0
22039 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22040 $as_echo_n "checking for syslog... " >&6; }
22041 if test "${ac_cv_func_syslog+set}" = set; then
22042 $as_echo_n "(cached) " >&6
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22052 #define syslog innocuous_syslog
22054 /* System header to define __stub macros and hopefully few prototypes,
22055 which can conflict with char syslog (); below.
22056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22057 <limits.h> exists even on freestanding compilers. */
22060 # include <limits.h>
22062 # include <assert.h>
22067 /* Override any GCC internal prototype to avoid an error.
22068 Use char because int might match the return type of a GCC
22069 builtin and then its argument prototype would still apply. */
22074 /* The GNU C library defines this for functions which it implements
22075 to always fail with ENOSYS. Some functions are actually named
22076 something starting with __ and the normal name is an alias. */
22077 #if defined __stub_syslog || defined __stub___syslog
22089 rm -f conftest.$ac_objext conftest$ac_exeext
22090 if { (ac_try="$ac_link"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097 (eval "$ac_link") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest$ac_exeext && {
22107 test "$cross_compiling" = yes ||
22108 $as_test_x conftest$ac_exeext
22110 ac_cv_func_syslog=yes
22112 $as_echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_func_syslog=no
22118 rm -rf conftest.dSYM
22119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22120 conftest$ac_exeext conftest.$ac_ext
22122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22123 $as_echo "$ac_cv_func_syslog" >&6; }
22124 if test "x$ac_cv_func_syslog" = x""yes; then
22125 if test "${ac_cv_header_syslog_h+set}" = set; then
22126 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22127 $as_echo_n "checking for syslog.h... " >&6; }
22128 if test "${ac_cv_header_syslog_h+set}" = set; then
22129 $as_echo_n "(cached) " >&6
22131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22132 $as_echo "$ac_cv_header_syslog_h" >&6; }
22134 # Is the header compilable?
22135 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22136 $as_echo_n "checking syslog.h usability... " >&6; }
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 $ac_includes_default
22144 #include <syslog.h>
22146 rm -f conftest.$ac_objext
22147 if { (ac_try="$ac_compile"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22153 $as_echo "$ac_try_echo") >&5
22154 (eval "$ac_compile") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest.$ac_objext; then
22164 ac_header_compiler=yes
22166 $as_echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_header_compiler=no
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 $as_echo "$ac_header_compiler" >&6; }
22176 # Is the header present?
22177 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22178 $as_echo_n "checking syslog.h presence... " >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <syslog.h>
22187 if { (ac_try="$ac_cpp conftest.$ac_ext"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22193 $as_echo "$ac_try_echo") >&5
22194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } >/dev/null && {
22201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22204 ac_header_preproc=yes
22206 $as_echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22209 ac_header_preproc=no
22212 rm -f conftest.err conftest.$ac_ext
22213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22214 $as_echo "$ac_header_preproc" >&6; }
22216 # So? What about this header?
22217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22219 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22220 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22221 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22222 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22223 ac_header_preproc=yes
22226 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22227 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22228 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22229 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22230 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22231 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22232 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22233 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22234 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22235 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22236 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22237 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22239 ## ---------------------------------------- ##
22240 ## Report this to pgsql-bugs@postgresql.org ##
22241 ## ---------------------------------------- ##
22243 ) | sed "s/^/$as_me: WARNING: /" >&2
22246 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22247 $as_echo_n "checking for syslog.h... " >&6; }
22248 if test "${ac_cv_header_syslog_h+set}" = set; then
22249 $as_echo_n "(cached) " >&6
22251 ac_cv_header_syslog_h=$ac_header_preproc
22253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22254 $as_echo "$ac_cv_header_syslog_h" >&6; }
22257 if test "x$ac_cv_header_syslog_h" = x""yes; then
22259 cat >>confdefs.h <<\_ACEOF
22260 #define HAVE_SYSLOG 1
22269 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22270 $as_echo_n "checking for opterr... " >&6; }
22271 if test "${pgac_cv_var_int_opterr+set}" = set; then
22272 $as_echo_n "(cached) " >&6
22274 cat >conftest.$ac_ext <<_ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 #include <unistd.h>
22284 extern int opterr; opterr = 1;
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22296 $as_echo "$ac_try_echo") >&5
22297 (eval "$ac_link") 2>conftest.er1
22299 grep -v '^ *+' conftest.er1 >conftest.err
22301 cat conftest.err >&5
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest$ac_exeext && {
22307 test "$cross_compiling" = yes ||
22308 $as_test_x conftest$ac_exeext
22310 pgac_cv_var_int_opterr=yes
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 pgac_cv_var_int_opterr=no
22318 rm -rf conftest.dSYM
22319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22320 conftest$ac_exeext conftest.$ac_ext
22322 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22323 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22324 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22326 cat >>confdefs.h <<\_ACEOF
22327 #define HAVE_INT_OPTERR 1
22332 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22333 $as_echo_n "checking for optreset... " >&6; }
22334 if test "${pgac_cv_var_int_optreset+set}" = set; then
22335 $as_echo_n "(cached) " >&6
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 #include <unistd.h>
22347 extern int optreset; optreset = 1;
22352 rm -f conftest.$ac_objext conftest$ac_exeext
22353 if { (ac_try="$ac_link"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22359 $as_echo "$ac_try_echo") >&5
22360 (eval "$ac_link") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest$ac_exeext && {
22370 test "$cross_compiling" = yes ||
22371 $as_test_x conftest$ac_exeext
22373 pgac_cv_var_int_optreset=yes
22375 $as_echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 pgac_cv_var_int_optreset=no
22381 rm -rf conftest.dSYM
22382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22383 conftest$ac_exeext conftest.$ac_ext
22385 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22386 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22387 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22389 cat >>confdefs.h <<\_ACEOF
22390 #define HAVE_INT_OPTRESET 1
22397 for ac_func in strtoll strtoq
22399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22400 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22401 $as_echo_n "checking for $ac_func... " >&6; }
22402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22403 $as_echo_n "(cached) " >&6
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22413 #define $ac_func innocuous_$ac_func
22415 /* System header to define __stub macros and hopefully few prototypes,
22416 which can conflict with char $ac_func (); below.
22417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22418 <limits.h> exists even on freestanding compilers. */
22421 # include <limits.h>
22423 # include <assert.h>
22428 /* Override any GCC internal prototype to avoid an error.
22429 Use char because int might match the return type of a GCC
22430 builtin and then its argument prototype would still apply. */
22435 /* The GNU C library defines this for functions which it implements
22436 to always fail with ENOSYS. Some functions are actually named
22437 something starting with __ and the normal name is an alias. */
22438 #if defined __stub_$ac_func || defined __stub___$ac_func
22445 return $ac_func ();
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (ac_try="$ac_link"
22452 case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22457 $as_echo "$ac_try_echo") >&5
22458 (eval "$ac_link") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } && {
22465 test -z "$ac_c_werror_flag" ||
22466 test ! -s conftest.err
22467 } && test -s conftest$ac_exeext && {
22468 test "$cross_compiling" = yes ||
22469 $as_test_x conftest$ac_exeext
22471 eval "$as_ac_var=yes"
22473 $as_echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 eval "$as_ac_var=no"
22479 rm -rf conftest.dSYM
22480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22481 conftest$ac_exeext conftest.$ac_ext
22483 ac_res=`eval 'as_val=${'$as_ac_var'}
22484 $as_echo "$as_val"'`
22485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22486 $as_echo "$ac_res" >&6; }
22487 as_val=`eval 'as_val=${'$as_ac_var'}
22488 $as_echo "$as_val"'`
22489 if test "x$as_val" = x""yes; then
22490 cat >>confdefs.h <<_ACEOF
22491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22499 for ac_func in strtoull strtouq
22501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22503 $as_echo_n "checking for $ac_func... " >&6; }
22504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22505 $as_echo_n "(cached) " >&6
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22515 #define $ac_func innocuous_$ac_func
22517 /* System header to define __stub macros and hopefully few prototypes,
22518 which can conflict with char $ac_func (); below.
22519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22520 <limits.h> exists even on freestanding compilers. */
22523 # include <limits.h>
22525 # include <assert.h>
22530 /* Override any GCC internal prototype to avoid an error.
22531 Use char because int might match the return type of a GCC
22532 builtin and then its argument prototype would still apply. */
22537 /* The GNU C library defines this for functions which it implements
22538 to always fail with ENOSYS. Some functions are actually named
22539 something starting with __ and the normal name is an alias. */
22540 #if defined __stub_$ac_func || defined __stub___$ac_func
22547 return $ac_func ();
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560 (eval "$ac_link") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest$ac_exeext && {
22570 test "$cross_compiling" = yes ||
22571 $as_test_x conftest$ac_exeext
22573 eval "$as_ac_var=yes"
22575 $as_echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 eval "$as_ac_var=no"
22581 rm -rf conftest.dSYM
22582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22583 conftest$ac_exeext conftest.$ac_ext
22585 ac_res=`eval 'as_val=${'$as_ac_var'}
22586 $as_echo "$as_val"'`
22587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22588 $as_echo "$ac_res" >&6; }
22589 as_val=`eval 'as_val=${'$as_ac_var'}
22590 $as_echo "$as_val"'`
22591 if test "x$as_val" = x""yes; then
22592 cat >>confdefs.h <<_ACEOF
22593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22600 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22601 $as_echo_n "checking for builtin locking functions... " >&6; }
22602 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22603 $as_echo_n "(cached) " >&6
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22616 __sync_lock_test_and_set(&lock, 1);
22617 __sync_lock_release(&lock);
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (ac_try="$ac_link"
22624 case "(($ac_try" in
22625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626 *) ac_try_echo=$ac_try;;
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630 (eval "$ac_link") 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest$ac_exeext && {
22640 test "$cross_compiling" = yes ||
22641 $as_test_x conftest$ac_exeext
22643 pgac_cv_gcc_int_atomics="yes"
22645 $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 pgac_cv_gcc_int_atomics="no"
22651 rm -rf conftest.dSYM
22652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22653 conftest$ac_exeext conftest.$ac_ext
22655 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22656 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22657 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_GCC_INT_ATOMICS 1
22669 # For each platform, we need to know about any special compile and link
22670 # libraries, and whether the normal C function names are thread-safe.
22671 # See the comment at the top of src/port/thread.c for more information.
22672 # WIN32 doesn't need the pthread tests; it always uses threads
22673 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22678 ac_cpp='$CPP $CPPFLAGS'
22679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22685 # We used to check for pthread.h first, but this fails if pthread.h
22686 # requires special compiler flags (e.g. on True64 or Sequent).
22687 # It gets checked for in the link test anyway.
22689 # First of all, check if the user has set any of the PTHREAD_LIBS,
22690 # etcetera environment variables, and if threads linking works using
22692 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22693 save_CFLAGS="$CFLAGS"
22694 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22696 LIBS="$PTHREAD_LIBS $LIBS"
22697 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22698 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22712 char pthread_join ();
22716 return pthread_join ();
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729 (eval "$ac_link") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext && {
22739 test "$cross_compiling" = yes ||
22740 $as_test_x conftest$ac_exeext
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22750 rm -rf conftest.dSYM
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752 conftest$ac_exeext conftest.$ac_ext
22753 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22754 $as_echo "$acx_pthread_ok" >&6; }
22755 if test x"$acx_pthread_ok" = xno; then
22760 CFLAGS="$save_CFLAGS"
22763 # We must check for the threads library under a number of different
22764 # names; the ordering is very important because some systems
22765 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22766 # libraries is broken (non-POSIX).
22768 # Create a list of thread flags to try. Items starting with a "-" are
22769 # C compiler flags, and other items are library names, except for "none"
22770 # which indicates that we try without any flags at all, and "pthread-config"
22771 # which is a program returning the flags for the Pth emulation library.
22773 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22775 # The ordering *is* (sometimes) important. Some notes on the
22776 # individual items follow:
22778 # pthreads: AIX (must check this before -lpthread)
22779 # none: in case threads are in libc; should be tried before -Kthread and
22780 # other compiler flags to prevent continual compiler warnings
22781 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22782 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22783 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22784 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22785 # -pthreads: Solaris/gcc
22786 # -mthreads: Mingw32/gcc, Lynx/gcc
22787 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22788 # doesn't hurt to check since this sometimes defines pthreads too;
22789 # also defines -D_REENTRANT)
22790 # pthread: Linux, etcetera
22791 # --thread-safe: KAI C++
22792 # pthread-config: use pthread-config program (for GNU Pth library)
22794 case "${host_cpu}-${host_os}" in
22797 # On Solaris (at least, for some versions), libc contains stubbed
22798 # (non-functional) versions of the pthreads routines, so link-based
22799 # tests will erroneously succeed. (We need to link with -pthread or
22800 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22801 # a function called by this macro, so we could check for that, but
22802 # who knows whether they'll stub that too in a future libc.) So,
22803 # we'll just look for -pthreads and -lpthread first:
22805 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22809 if test x"$acx_pthread_ok" = xno; then
22810 for flag in $acx_pthread_flags; do
22812 tryPTHREAD_CFLAGS=""
22816 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22817 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22821 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22822 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22823 tryPTHREAD_CFLAGS="$flag"
22827 # skip this if we already have flags defined, for PostgreSQL
22828 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22829 # Extract the first word of "pthread-config", so it can be a program name with args.
22830 set dummy pthread-config; ac_word=$2
22831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22832 $as_echo_n "checking for $ac_word... " >&6; }
22833 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22834 $as_echo_n "(cached) " >&6
22836 if test -n "$acx_pthread_config"; then
22837 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22840 for as_dir in $PATH
22843 test -z "$as_dir" && as_dir=.
22844 for ac_exec_ext in '' $ac_executable_extensions; do
22845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22846 ac_cv_prog_acx_pthread_config="yes"
22847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22854 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22857 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22858 if test -n "$acx_pthread_config"; then
22859 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22860 $as_echo "$acx_pthread_config" >&6; }
22862 { $as_echo "$as_me:$LINENO: result: no" >&5
22863 $as_echo "no" >&6; }
22867 if test x"$acx_pthread_config" = xno; then continue; fi
22868 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22869 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22873 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22874 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22875 tryPTHREAD_LIBS="-l$flag"
22880 save_CFLAGS="$CFLAGS"
22881 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22882 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22884 # Check for various functions. We must include pthread.h,
22885 # since some functions may be macros. (On the Sequent, we
22886 # need a special flag -Kthread to make this header compile.)
22887 # We check for pthread_join because it is in -lpthread on IRIX
22888 # while pthread_create is in libc. We check for pthread_attr_init
22889 # due to DEC craziness with -lpthreads. We check for
22890 # pthread_cleanup_push because it is one of the few pthread
22891 # functions on Solaris that doesn't have a non-functional libc stub.
22892 # We try pthread_create on general principles.
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 #include <pthread.h>
22903 pthread_t th; pthread_join(th, 0);
22904 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22905 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22917 $as_echo "$ac_try_echo") >&5
22918 (eval "$ac_link") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest$ac_exeext && {
22928 test "$cross_compiling" = yes ||
22929 $as_test_x conftest$ac_exeext
22933 $as_echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22939 rm -rf conftest.dSYM
22940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22941 conftest$ac_exeext conftest.$ac_ext
22943 if test "x$acx_pthread_ok" = xyes; then
22944 # Don't use options that are ignored by the compiler.
22945 # We find them by checking stderror.
22946 cat >conftest.$ac_ext <<_ACEOF
22948 main (int argc, char **argv)
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 # Check both linking and compiling, because they might tolerate different options.
22957 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22958 # we continue with more flags because Linux needs -lpthread
22959 # for libpq builds on PostgreSQL. The test above only
22960 # tests for building binaries, not shared libraries.
22961 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22962 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22963 else acx_pthread_ok=no
22968 CFLAGS="$save_CFLAGS"
22970 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22971 $as_echo "$acx_pthread_ok" >&6; }
22975 # Various other checks:
22976 if test "x$acx_pthread_ok" = xyes; then
22978 LIBS="$PTHREAD_LIBS $LIBS"
22979 save_CFLAGS="$CFLAGS"
22980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22982 # Detect AIX lossage: threads are created detached by default
22983 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22984 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22985 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 #include <pthread.h>
22996 int attr=PTHREAD_CREATE_JOINABLE;
23001 rm -f conftest.$ac_objext conftest$ac_exeext
23002 if { (ac_try="$ac_link"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_link") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1 >conftest.err
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest$ac_exeext && {
23019 test "$cross_compiling" = yes ||
23020 $as_test_x conftest$ac_exeext
23022 ok=PTHREAD_CREATE_JOINABLE
23024 $as_echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23030 rm -rf conftest.dSYM
23031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23032 conftest$ac_exeext conftest.$ac_ext
23033 if test x"$ok" = xunknown; then
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 #include <pthread.h>
23044 int attr=PTHREAD_CREATE_UNDETACHED;
23049 rm -f conftest.$ac_objext conftest$ac_exeext
23050 if { (ac_try="$ac_link"
23051 case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23056 $as_echo "$ac_try_echo") >&5
23057 (eval "$ac_link") 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } && {
23064 test -z "$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 } && test -s conftest$ac_exeext && {
23067 test "$cross_compiling" = yes ||
23068 $as_test_x conftest$ac_exeext
23070 ok=PTHREAD_CREATE_UNDETACHED
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23078 rm -rf conftest.dSYM
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080 conftest$ac_exeext conftest.$ac_ext
23082 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23084 cat >>confdefs.h <<\_ACEOF
23085 #define PTHREAD_CREATE_JOINABLE $ok
23089 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23090 $as_echo "${ok}" >&6; }
23091 if test x"$ok" = xunknown; then
23092 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23093 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23096 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23097 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23099 # We always add these in PostgreSQL
23100 # case "${host_cpu}-${host_os}" in
23101 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23102 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23104 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23105 $as_echo "${flag}" >&6; }
23106 if test "x$flag" != xno; then
23107 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23111 CFLAGS="$save_CFLAGS"
23113 # Supporting cc_r would require a special CC in all places that
23114 # use libpq, and that is ugly, so we don't do it. Users can still
23115 # define their compiler as cc_r to do thread builds of everything.
23116 # More AIX lossage: must compile with cc_r
23117 # Extract the first word of "cc_r", so it can be a program name with args.
23118 set dummy cc_r; ac_word=$2
23119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23120 $as_echo_n "checking for $ac_word... " >&6; }
23121 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23122 $as_echo_n "(cached) " >&6
23124 if test -n "$PTHREAD_CC"; then
23125 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23128 for as_dir in $PATH
23131 test -z "$as_dir" && as_dir=.
23132 for ac_exec_ext in '' $ac_executable_extensions; do
23133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23134 ac_cv_prog_PTHREAD_CC="cc_r"
23135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23142 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23145 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23146 if test -n "$PTHREAD_CC"; then
23147 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23148 $as_echo "$PTHREAD_CC" >&6; }
23150 { $as_echo "$as_me:$LINENO: result: no" >&5
23151 $as_echo "no" >&6; }
23163 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23164 if test x"$acx_pthread_ok" = xyes; then
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_PTHREAD 1
23176 ac_cpp='$CPP $CPPFLAGS'
23177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23183 # Some platforms use these, so just define them. They can't hurt if they
23184 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23185 # enables 5-arg getpwuid_r, among other things.
23186 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23189 # At this point, we don't want to muck with the compiler name for threading.
23190 # Let's see who fails, perhaps AIX. 2004-04-23
23191 if test "$PTHREAD_CC" != "$CC"; then
23192 { { $as_echo "$as_me:$LINENO: error:
23193 PostgreSQL does not support platforms that require a special compiler
23194 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23195 $as_echo "$as_me: error:
23196 PostgreSQL does not support platforms that require a special compiler
23197 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23198 { (exit 1); exit 1; }; }
23201 # Check for *_r functions
23204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23205 LIBS="$LIBS $PTHREAD_LIBS"
23207 if test "$PORTNAME" != "win32"; then
23208 if test "${ac_cv_header_pthread_h+set}" = set; then
23209 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23210 $as_echo_n "checking for pthread.h... " >&6; }
23211 if test "${ac_cv_header_pthread_h+set}" = set; then
23212 $as_echo_n "(cached) " >&6
23214 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23215 $as_echo "$ac_cv_header_pthread_h" >&6; }
23217 # Is the header compilable?
23218 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23219 $as_echo_n "checking pthread.h usability... " >&6; }
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 $ac_includes_default
23227 #include <pthread.h>
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23236 $as_echo "$ac_try_echo") >&5
23237 (eval "$ac_compile") 2>conftest.er1
23239 grep -v '^ *+' conftest.er1 >conftest.err
23241 cat conftest.err >&5
23242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } && {
23244 test -z "$ac_c_werror_flag" ||
23245 test ! -s conftest.err
23246 } && test -s conftest.$ac_objext; then
23247 ac_header_compiler=yes
23249 $as_echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 ac_header_compiler=no
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23257 $as_echo "$ac_header_compiler" >&6; }
23259 # Is the header present?
23260 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23261 $as_echo_n "checking pthread.h presence... " >&6; }
23262 cat >conftest.$ac_ext <<_ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 #include <pthread.h>
23270 if { (ac_try="$ac_cpp conftest.$ac_ext"
23271 case "(($ac_try" in
23272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23279 grep -v '^ *+' conftest.er1 >conftest.err
23281 cat conftest.err >&5
23282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } >/dev/null && {
23284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23287 ac_header_preproc=yes
23289 $as_echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_header_preproc=no
23295 rm -f conftest.err conftest.$ac_ext
23296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23297 $as_echo "$ac_header_preproc" >&6; }
23299 # So? What about this header?
23300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23302 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23303 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23305 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23306 ac_header_preproc=yes
23309 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23310 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23311 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23312 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23313 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23314 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23315 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23316 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23317 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23318 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23319 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23320 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23322 ## ---------------------------------------- ##
23323 ## Report this to pgsql-bugs@postgresql.org ##
23324 ## ---------------------------------------- ##
23326 ) | sed "s/^/$as_me: WARNING: /" >&2
23329 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23330 $as_echo_n "checking for pthread.h... " >&6; }
23331 if test "${ac_cv_header_pthread_h+set}" = set; then
23332 $as_echo_n "(cached) " >&6
23334 ac_cv_header_pthread_h=$ac_header_preproc
23336 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23337 $as_echo "$ac_cv_header_pthread_h" >&6; }
23340 if test "x$ac_cv_header_pthread_h" = x""yes; then
23343 { { $as_echo "$as_me:$LINENO: error:
23344 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23345 $as_echo "$as_me: error:
23346 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23347 { (exit 1); exit 1; }; }
23356 for ac_func in strerror_r getpwuid_r gethostbyname_r
23358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23360 $as_echo_n "checking for $ac_func... " >&6; }
23361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23362 $as_echo_n "(cached) " >&6
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23372 #define $ac_func innocuous_$ac_func
23374 /* System header to define __stub macros and hopefully few prototypes,
23375 which can conflict with char $ac_func (); below.
23376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23377 <limits.h> exists even on freestanding compilers. */
23380 # include <limits.h>
23382 # include <assert.h>
23387 /* Override any GCC internal prototype to avoid an error.
23388 Use char because int might match the return type of a GCC
23389 builtin and then its argument prototype would still apply. */
23394 /* The GNU C library defines this for functions which it implements
23395 to always fail with ENOSYS. Some functions are actually named
23396 something starting with __ and the normal name is an alias. */
23397 #if defined __stub_$ac_func || defined __stub___$ac_func
23404 return $ac_func ();
23409 rm -f conftest.$ac_objext conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417 (eval "$ac_link") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest$ac_exeext && {
23427 test "$cross_compiling" = yes ||
23428 $as_test_x conftest$ac_exeext
23430 eval "$as_ac_var=yes"
23432 $as_echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 eval "$as_ac_var=no"
23438 rm -rf conftest.dSYM
23439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440 conftest$ac_exeext conftest.$ac_ext
23442 ac_res=`eval 'as_val=${'$as_ac_var'}
23443 $as_echo "$as_val"'`
23444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23445 $as_echo "$ac_res" >&6; }
23446 as_val=`eval 'as_val=${'$as_ac_var'}
23447 $as_echo "$as_val"'`
23448 if test "x$as_val" = x""yes; then
23449 cat >>confdefs.h <<_ACEOF
23450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23457 # Do test here with the proper thread flags
23458 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23459 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23460 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23461 $as_echo_n "(cached) " >&6
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 #include <sys/types.h>
23475 struct passwd *space;
23478 struct passwd **result;
23479 getpwuid_r(uid, space, buf, bufsize, result);
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23491 $as_echo "$ac_try_echo") >&5
23492 (eval "$ac_compile") 2>conftest.er1
23494 grep -v '^ *+' conftest.er1 >conftest.err
23496 cat conftest.err >&5
23497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest.$ac_objext; then
23502 pgac_cv_func_getpwuid_r_5arg=yes
23504 $as_echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23507 pgac_cv_func_getpwuid_r_5arg=no
23510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23513 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23514 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23516 cat >>confdefs.h <<\_ACEOF
23517 #define GETPWUID_R_5ARG /**/
23522 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23523 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23524 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23525 $as_echo_n "(cached) " >&6
23527 cat >conftest.$ac_ext <<_ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23533 #include <string.h>
23538 int strerror_r(int, char *, size_t);
23540 /* Older AIX has 'int' for the third argument so we don't test the args. */
23547 rm -f conftest.$ac_objext
23548 if { (ac_try="$ac_compile"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23554 $as_echo "$ac_try_echo") >&5
23555 (eval "$ac_compile") 2>conftest.er1
23557 grep -v '^ *+' conftest.er1 >conftest.err
23559 cat conftest.err >&5
23560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && {
23562 test -z "$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 } && test -s conftest.$ac_objext; then
23565 pgac_cv_func_strerror_r_int=yes
23567 $as_echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 pgac_cv_func_strerror_r_int=no
23573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23576 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23577 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23579 cat >>confdefs.h <<\_ACEOF
23580 #define STRERROR_R_INT /**/
23590 # do not use values from template file
23599 # We can test for libldap_r only after we know PTHREAD_LIBS
23600 if test "$with_ldap" = yes ; then
23602 if test "$PORTNAME" != "win32"; then
23604 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23605 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23606 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23607 $as_echo_n "(cached) " >&6
23609 ac_check_lib_save_LIBS=$LIBS
23610 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23618 /* Override any GCC internal prototype to avoid an error.
23619 Use char because int might match the return type of a GCC
23620 builtin and then its argument prototype would still apply. */
23628 return ldap_bind ();
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23640 $as_echo "$ac_try_echo") >&5
23641 (eval "$ac_link") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest$ac_exeext && {
23651 test "$cross_compiling" = yes ||
23652 $as_test_x conftest$ac_exeext
23654 ac_cv_lib_ldap_ldap_bind=yes
23656 $as_echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 ac_cv_lib_ldap_ldap_bind=no
23662 rm -rf conftest.dSYM
23663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23664 conftest$ac_exeext conftest.$ac_ext
23665 LIBS=$ac_check_lib_save_LIBS
23667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23668 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23669 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23670 cat >>confdefs.h <<_ACEOF
23671 #define HAVE_LIBLDAP 1
23674 LIBS="-lldap $LIBS"
23677 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23678 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23679 { (exit 1); exit 1; }; }
23682 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23683 if test "$enable_thread_safety" = yes; then
23684 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23686 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23687 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23688 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23689 $as_echo_n "(cached) " >&6
23691 ac_check_lib_save_LIBS=$LIBS
23692 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23693 cat >conftest.$ac_ext <<_ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h. */
23700 /* Override any GCC internal prototype to avoid an error.
23701 Use char because int might match the return type of a GCC
23702 builtin and then its argument prototype would still apply. */
23706 char ldap_simple_bind ();
23710 return ldap_simple_bind ();
23715 rm -f conftest.$ac_objext conftest$ac_exeext
23716 if { (ac_try="$ac_link"
23717 case "(($ac_try" in
23718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719 *) ac_try_echo=$ac_try;;
23721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23722 $as_echo "$ac_try_echo") >&5
23723 (eval "$ac_link") 2>conftest.er1
23725 grep -v '^ *+' conftest.er1 >conftest.err
23727 cat conftest.err >&5
23728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest$ac_exeext && {
23733 test "$cross_compiling" = yes ||
23734 $as_test_x conftest$ac_exeext
23736 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23738 $as_echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23741 ac_cv_lib_ldap_r_ldap_simple_bind=no
23744 rm -rf conftest.dSYM
23745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23746 conftest$ac_exeext conftest.$ac_ext
23747 LIBS=$ac_check_lib_save_LIBS
23749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23750 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23751 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_LIBLDAP_R 1
23756 LIBS="-lldap_r $LIBS"
23759 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23760 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23761 { (exit 1); exit 1; }; }
23764 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23766 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23770 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23771 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23772 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23773 $as_echo_n "(cached) " >&6
23775 ac_check_lib_save_LIBS=$LIBS
23776 LIBS="-lwldap32 $LIBS"
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23784 /* Override any GCC internal prototype to avoid an error.
23785 Use char because int might match the return type of a GCC
23786 builtin and then its argument prototype would still apply. */
23794 return ldap_bind ();
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806 $as_echo "$ac_try_echo") >&5
23807 (eval "$ac_link") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext && {
23817 test "$cross_compiling" = yes ||
23818 $as_test_x conftest$ac_exeext
23820 ac_cv_lib_wldap32_ldap_bind=yes
23822 $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 ac_cv_lib_wldap32_ldap_bind=no
23828 rm -rf conftest.dSYM
23829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23830 conftest$ac_exeext conftest.$ac_ext
23831 LIBS=$ac_check_lib_save_LIBS
23833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23834 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23835 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23836 cat >>confdefs.h <<_ACEOF
23837 #define HAVE_LIBWLDAP32 1
23840 LIBS="-lwldap32 $LIBS"
23843 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23844 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23845 { (exit 1); exit 1; }; }
23848 LDAP_LIBS_FE="-lwldap32"
23849 LDAP_LIBS_BE="-lwldap32"
23857 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23858 # (which could be a macro referring to a function, if threading is enabled)
23859 if test "$with_libxml" = yes ; then
23860 { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23861 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23862 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23863 $as_echo_n "(cached) " >&6
23865 cat >conftest.$ac_ext <<_ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23871 #include <libxml/globals.h>
23876 globptr = xmlStructuredErrorContext
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (ac_try="$ac_link"
23883 case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23888 $as_echo "$ac_try_echo") >&5
23889 (eval "$ac_link") 2>conftest.er1
23891 grep -v '^ *+' conftest.er1 >conftest.err
23893 cat conftest.err >&5
23894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } && {
23896 test -z "$ac_c_werror_flag" ||
23897 test ! -s conftest.err
23898 } && test -s conftest$ac_exeext && {
23899 test "$cross_compiling" = yes ||
23900 $as_test_x conftest$ac_exeext
23902 pgac_cv_libxml_structerrctx=yes
23904 $as_echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 pgac_cv_libxml_structerrctx=no
23910 rm -rf conftest.dSYM
23911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23912 conftest$ac_exeext conftest.$ac_ext
23914 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23915 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23916 if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23918 cat >>confdefs.h <<\_ACEOF
23919 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23926 # This test makes sure that run tests work at all. Sometimes a shared
23927 # library is found by the linker, but the runtime linker can't find it.
23928 # This check should come after all modifications of compiler or linker
23929 # variables, and before any other run tests.
23930 { $as_echo "$as_me:$LINENO: checking test program" >&5
23931 $as_echo_n "checking test program... " >&6; }
23932 if test "$cross_compiling" = yes; then
23933 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23934 $as_echo "cross-compiling" >&6; }
23936 cat >conftest.$ac_ext <<_ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23942 int main() { return 0; }
23944 rm -f conftest$ac_exeext
23945 if { (ac_try="$ac_link"
23946 case "(($ac_try" in
23947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948 *) ac_try_echo=$ac_try;;
23950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23951 $as_echo "$ac_try_echo") >&5
23952 (eval "$ac_link") 2>&5
23954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23956 { (case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961 $as_echo "$ac_try_echo") >&5
23962 (eval "$ac_try") 2>&5
23964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 { $as_echo "$as_me:$LINENO: result: ok" >&5
23967 $as_echo "ok" >&6; }
23969 $as_echo "$as_me: program exited with status $ac_status" >&5
23970 $as_echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 ( exit $ac_status )
23974 { $as_echo "$as_me:$LINENO: result: failed" >&5
23975 $as_echo "failed" >&6; }
23976 { { $as_echo "$as_me:$LINENO: error:
23977 Could not execute a simple test program. This may be a problem
23978 related to locating shared libraries. Check the file 'config.log'
23979 for the exact reason." >&5
23980 $as_echo "$as_me: error:
23981 Could not execute a simple test program. This may be a problem
23982 related to locating shared libraries. Check the file 'config.log'
23983 for the exact reason." >&2;}
23984 { (exit 1); exit 1; }; }
23986 rm -rf conftest.dSYM
23987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23992 # --------------------
23993 # Run tests below here
23994 # --------------------
23996 # Force use of our snprintf if system's doesn't do arg control
23997 # See comment above at snprintf test for details.
23998 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23999 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24000 $as_echo_n "checking whether printf supports argument control... " >&6; }
24001 if test "${pgac_cv_printf_arg_control+set}" = set; then
24002 $as_echo_n "(cached) " >&6
24004 if test "$cross_compiling" = yes; then
24005 pgac_cv_printf_arg_control=cross
24007 cat >conftest.$ac_ext <<_ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24014 #include <string.h>
24020 /* can it swap arguments? */
24021 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24022 if (strcmp(buf, "4 3") != 0)
24027 rm -f conftest$ac_exeext
24028 if { (ac_try="$ac_link"
24029 case "(($ac_try" in
24030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031 *) ac_try_echo=$ac_try;;
24033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24034 $as_echo "$ac_try_echo") >&5
24035 (eval "$ac_link") 2>&5
24037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24039 { (case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24044 $as_echo "$ac_try_echo") >&5
24045 (eval "$ac_try") 2>&5
24047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; }; then
24049 pgac_cv_printf_arg_control=yes
24051 $as_echo "$as_me: program exited with status $ac_status" >&5
24052 $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ( exit $ac_status )
24056 pgac_cv_printf_arg_control=no
24058 rm -rf conftest.dSYM
24059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24066 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24068 if test $pgac_cv_printf_arg_control != yes ; then
24069 pgac_need_repl_snprintf=yes
24076 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24077 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24078 if test "${pgac_cv_type_long_int_64+set}" = set; then
24079 $as_echo_n "(cached) " >&6
24081 if test "$cross_compiling" = yes; then
24082 # If cross-compiling, check the size reported by the compiler and
24083 # trust that the arithmetic works.
24084 cat >conftest.$ac_ext <<_ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24094 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24108 $as_echo "$ac_try_echo") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24111 grep -v '^ *+' conftest.er1 >conftest.err
24113 cat conftest.err >&5
24114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24119 pgac_cv_type_long_int_64=yes
24121 $as_echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24124 pgac_cv_type_long_int_64=no
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 typedef long int ac_int64;
24138 * These are globals to discourage the compiler from folding all the
24139 * arithmetic tests down to compile-time constants.
24141 ac_int64 a = 20000001;
24142 ac_int64 b = 40000005;
24144 int does_int64_work()
24148 if (sizeof(ac_int64) != 8)
24149 return 0; /* definitely not the right size */
24151 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24159 exit(! does_int64_work());
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_link") 2>&5
24172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24174 { (case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180 (eval "$ac_try") 2>&5
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 pgac_cv_type_long_int_64=yes
24186 $as_echo "$as_me: program exited with status $ac_status" >&5
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ( exit $ac_status )
24191 pgac_cv_type_long_int_64=no
24193 rm -rf conftest.dSYM
24194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24199 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24200 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24202 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24203 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_LONG_INT_64 1
24212 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24213 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24214 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24215 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24216 $as_echo_n "(cached) " >&6
24218 if test "$cross_compiling" = yes; then
24219 # If cross-compiling, check the size reported by the compiler and
24220 # trust that the arithmetic works.
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24231 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24238 rm -f conftest.$ac_objext
24239 if { (ac_try="$ac_compile"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24245 $as_echo "$ac_try_echo") >&5
24246 (eval "$ac_compile") 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest.$ac_objext; then
24256 pgac_cv_type_long_long_int_64=yes
24258 $as_echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24261 pgac_cv_type_long_long_int_64=no
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 typedef long long int ac_int64;
24275 * These are globals to discourage the compiler from folding all the
24276 * arithmetic tests down to compile-time constants.
24278 ac_int64 a = 20000001;
24279 ac_int64 b = 40000005;
24281 int does_int64_work()
24285 if (sizeof(ac_int64) != 8)
24286 return 0; /* definitely not the right size */
24288 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24296 exit(! does_int64_work());
24299 rm -f conftest$ac_exeext
24300 if { (ac_try="$ac_link"
24301 case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24306 $as_echo "$ac_try_echo") >&5
24307 (eval "$ac_link") 2>&5
24309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24311 { (case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316 $as_echo "$ac_try_echo") >&5
24317 (eval "$ac_try") 2>&5
24319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; }; then
24321 pgac_cv_type_long_long_int_64=yes
24323 $as_echo "$as_me: program exited with status $ac_status" >&5
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ( exit $ac_status )
24328 pgac_cv_type_long_long_int_64=no
24330 rm -rf conftest.dSYM
24331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24336 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24337 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24339 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24340 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_LONG_LONG_INT_64 1
24348 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24349 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24350 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24351 { (exit 1); exit 1; }; }
24357 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24365 #define INT64CONST(x) x##LL
24366 long long int foo = INT64CONST(0x1234567890123456);
24376 rm -f conftest.$ac_objext
24377 if { (ac_try="$ac_compile"
24378 case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24383 $as_echo "$ac_try_echo") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24395 cat >>confdefs.h <<\_ACEOF
24396 #define HAVE_LL_CONSTANTS 1
24400 $as_echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24410 # If we found "long int" is 64 bits, assume snprintf handles it. If
24411 # we found we need to use "long long int", better check. We cope with
24412 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24413 # work, fall back to our own snprintf emulation (which we know uses %lld).
24415 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24416 if test $pgac_need_repl_snprintf = no; then
24417 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24418 $as_echo_n "checking snprintf format for long long int... " >&6; }
24419 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24420 $as_echo_n "(cached) " >&6
24422 for pgac_format in '%lld' '%qd' '%I64d'; do
24423 if test "$cross_compiling" = yes; then
24424 pgac_cv_snprintf_long_long_int_format=cross; break
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24433 typedef long long int ac_int64;
24434 #define INT64_FORMAT "$pgac_format"
24436 ac_int64 a = 20000001;
24437 ac_int64 b = 40000005;
24439 int does_int64_snprintf_work()
24444 if (sizeof(ac_int64) != 8)
24445 return 0; /* doesn't look like the right size */
24448 snprintf(buf, 100, INT64_FORMAT, c);
24449 if (strcmp(buf, "800000140000005") != 0)
24450 return 0; /* either multiply or snprintf is busted */
24454 exit(! does_int64_snprintf_work());
24457 rm -f conftest$ac_exeext
24458 if { (ac_try="$ac_link"
24459 case "(($ac_try" in
24460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24464 $as_echo "$ac_try_echo") >&5
24465 (eval "$ac_link") 2>&5
24467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24469 { (case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474 $as_echo "$ac_try_echo") >&5
24475 (eval "$ac_try") 2>&5
24477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; }; then
24479 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24481 $as_echo "$as_me: program exited with status $ac_status" >&5
24482 $as_echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24486 rm -rf conftest.dSYM
24487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24494 LONG_LONG_INT_FORMAT=''
24496 case $pgac_cv_snprintf_long_long_int_format in
24497 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24498 $as_echo "cannot test (not on host machine)" >&6; };;
24499 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24500 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24501 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24502 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24503 $as_echo "none" >&6; };;
24505 if test "$LONG_LONG_INT_FORMAT" = ""; then
24506 # Force usage of our own snprintf, since system snprintf is broken
24507 pgac_need_repl_snprintf=yes
24508 LONG_LONG_INT_FORMAT='%lld'
24511 # Here if we previously decided we needed to use our own snprintf
24512 LONG_LONG_INT_FORMAT='%lld'
24514 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24515 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24516 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24518 # Here if we are not using 'long long int' at all
24519 INT64_FORMAT='"%ld"'
24520 UINT64_FORMAT='"%lu"'
24524 cat >>confdefs.h <<_ACEOF
24525 #define INT64_FORMAT $INT64_FORMAT
24530 cat >>confdefs.h <<_ACEOF
24531 #define UINT64_FORMAT $UINT64_FORMAT
24535 # Now we have checked all the reasons to replace snprintf
24536 if test $pgac_need_repl_snprintf = yes; then
24538 cat >>confdefs.h <<\_ACEOF
24539 #define USE_REPL_SNPRINTF 1
24542 case " $LIBOBJS " in
24543 *" snprintf.$ac_objext "* ) ;;
24544 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24550 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24551 # The cast to long int works around a bug in the HP C Compiler
24552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24554 # This bug is HP SR number 8606223364.
24555 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24556 $as_echo_n "checking size of void *... " >&6; }
24557 if test "${ac_cv_sizeof_void_p+set}" = set; then
24558 $as_echo_n "(cached) " >&6
24560 if test "$cross_compiling" = yes; then
24561 # Depending upon the size, compute the lo and hi bounds.
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 $ac_includes_default
24572 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24579 rm -f conftest.$ac_objext
24580 if { (ac_try="$ac_compile"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24586 $as_echo "$ac_try_echo") >&5
24587 (eval "$ac_compile") 2>conftest.er1
24589 grep -v '^ *+' conftest.er1 >conftest.err
24591 cat conftest.err >&5
24592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); } && {
24594 test -z "$ac_c_werror_flag" ||
24595 test ! -s conftest.err
24596 } && test -s conftest.$ac_objext; then
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 $ac_includes_default
24609 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24623 $as_echo "$ac_try_echo") >&5
24624 (eval "$ac_compile") 2>conftest.er1
24626 grep -v '^ *+' conftest.er1 >conftest.err
24628 cat conftest.err >&5
24629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_c_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.$ac_objext; then
24634 ac_hi=$ac_mid; break
24636 $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 ac_lo=`expr $ac_mid + 1`
24640 if test $ac_lo -le $ac_mid; then
24644 ac_mid=`expr 2 '*' $ac_mid + 1`
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650 $as_echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 $ac_includes_default
24663 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24677 $as_echo "$ac_try_echo") >&5
24678 (eval "$ac_compile") 2>conftest.er1
24680 grep -v '^ *+' conftest.er1 >conftest.err
24682 cat conftest.err >&5
24683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && {
24685 test -z "$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 } && test -s conftest.$ac_objext; then
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 $ac_includes_default
24700 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715 (eval "$ac_compile") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } && {
24722 test -z "$ac_c_werror_flag" ||
24723 test ! -s conftest.err
24724 } && test -s conftest.$ac_objext; then
24725 ac_lo=$ac_mid; break
24727 $as_echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ac_hi=`expr '(' $ac_mid ')' - 1`
24731 if test $ac_mid -le $ac_hi; then
24735 ac_mid=`expr 2 '*' $ac_mid`
24738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741 $as_echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24751 # Binary search between lo and hi bounds.
24752 while test "x$ac_lo" != "x$ac_hi"; do
24753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 $ac_includes_default
24764 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24771 rm -f conftest.$ac_objext
24772 if { (ac_try="$ac_compile"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24778 $as_echo "$ac_try_echo") >&5
24779 (eval "$ac_compile") 2>conftest.er1
24781 grep -v '^ *+' conftest.er1 >conftest.err
24783 cat conftest.err >&5
24784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && {
24786 test -z "$ac_c_werror_flag" ||
24787 test ! -s conftest.err
24788 } && test -s conftest.$ac_objext; then
24791 $as_echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_lo=`expr '(' $ac_mid ')' + 1`
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24801 '') if test "$ac_cv_type_void_p" = yes; then
24802 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24804 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24805 See \`config.log' for more details." >&5
24806 $as_echo "$as_me: error: cannot compute sizeof (void *)
24807 See \`config.log' for more details." >&2;}
24808 { (exit 77); exit 77; }; }; }
24810 ac_cv_sizeof_void_p=0
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 $ac_includes_default
24821 static long int longval () { return (long int) (sizeof (void *)); }
24822 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24824 #include <stdlib.h>
24829 FILE *f = fopen ("conftest.val", "w");
24832 if (((long int) (sizeof (void *))) < 0)
24834 long int i = longval ();
24835 if (i != ((long int) (sizeof (void *))))
24837 fprintf (f, "%ld", i);
24841 unsigned long int i = ulongval ();
24842 if (i != ((long int) (sizeof (void *))))
24844 fprintf (f, "%lu", i);
24846 /* Do not output a trailing newline, as this causes \r\n confusion
24847 on some platforms. */
24848 return ferror (f) || fclose (f) != 0;
24854 rm -f conftest$ac_exeext
24855 if { (ac_try="$ac_link"
24856 case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862 (eval "$ac_link") 2>&5
24864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_try") 2>&5
24874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); }; }; then
24876 ac_cv_sizeof_void_p=`cat conftest.val`
24878 $as_echo "$as_me: program exited with status $ac_status" >&5
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ( exit $ac_status )
24883 if test "$ac_cv_type_void_p" = yes; then
24884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24886 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24887 See \`config.log' for more details." >&5
24888 $as_echo "$as_me: error: cannot compute sizeof (void *)
24889 See \`config.log' for more details." >&2;}
24890 { (exit 77); exit 77; }; }; }
24892 ac_cv_sizeof_void_p=0
24895 rm -rf conftest.dSYM
24896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24900 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24901 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24905 cat >>confdefs.h <<_ACEOF
24906 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24910 # The cast to long int works around a bug in the HP C Compiler
24911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24913 # This bug is HP SR number 8606223364.
24914 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24915 $as_echo_n "checking size of size_t... " >&6; }
24916 if test "${ac_cv_sizeof_size_t+set}" = set; then
24917 $as_echo_n "(cached) " >&6
24919 if test "$cross_compiling" = yes; then
24920 # Depending upon the size, compute the lo and hi bounds.
24921 cat >conftest.$ac_ext <<_ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 $ac_includes_default
24931 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24938 rm -f conftest.$ac_objext
24939 if { (ac_try="$ac_compile"
24940 case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24945 $as_echo "$ac_try_echo") >&5
24946 (eval "$ac_compile") 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } && {
24953 test -z "$ac_c_werror_flag" ||
24954 test ! -s conftest.err
24955 } && test -s conftest.$ac_objext; then
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 $ac_includes_default
24968 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24982 $as_echo "$ac_try_echo") >&5
24983 (eval "$ac_compile") 2>conftest.er1
24985 grep -v '^ *+' conftest.er1 >conftest.err
24987 cat conftest.err >&5
24988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } && {
24990 test -z "$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 } && test -s conftest.$ac_objext; then
24993 ac_hi=$ac_mid; break
24995 $as_echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 ac_lo=`expr $ac_mid + 1`
24999 if test $ac_lo -le $ac_mid; then
25003 ac_mid=`expr 2 '*' $ac_mid + 1`
25006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009 $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 $ac_includes_default
25022 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25029 rm -f conftest.$ac_objext
25030 if { (ac_try="$ac_compile"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25049 cat >conftest.$ac_ext <<_ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h. */
25055 $ac_includes_default
25059 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070 *) ac_try_echo=$ac_try;;
25072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25073 $as_echo "$ac_try_echo") >&5
25074 (eval "$ac_compile") 2>conftest.er1
25076 grep -v '^ *+' conftest.er1 >conftest.err
25078 cat conftest.err >&5
25079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } && {
25081 test -z "$ac_c_werror_flag" ||
25082 test ! -s conftest.err
25083 } && test -s conftest.$ac_objext; then
25084 ac_lo=$ac_mid; break
25086 $as_echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25089 ac_hi=`expr '(' $ac_mid ')' - 1`
25090 if test $ac_mid -le $ac_hi; then
25094 ac_mid=`expr 2 '*' $ac_mid`
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 $as_echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 # Binary search between lo and hi bounds.
25111 while test "x$ac_lo" != "x$ac_hi"; do
25112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25113 cat >conftest.$ac_ext <<_ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h. */
25119 $ac_includes_default
25123 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25130 rm -f conftest.$ac_objext
25131 if { (ac_try="$ac_compile"
25132 case "(($ac_try" in
25133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134 *) ac_try_echo=$ac_try;;
25136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25137 $as_echo "$ac_try_echo") >&5
25138 (eval "$ac_compile") 2>conftest.er1
25140 grep -v '^ *+' conftest.er1 >conftest.err
25142 cat conftest.err >&5
25143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } && {
25145 test -z "$ac_c_werror_flag" ||
25146 test ! -s conftest.err
25147 } && test -s conftest.$ac_objext; then
25150 $as_echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25153 ac_lo=`expr '(' $ac_mid ')' + 1`
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25160 '') if test "$ac_cv_type_size_t" = yes; then
25161 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25163 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25164 See \`config.log' for more details." >&5
25165 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25166 See \`config.log' for more details." >&2;}
25167 { (exit 77); exit 77; }; }; }
25169 ac_cv_sizeof_size_t=0
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 $ac_includes_default
25180 static long int longval () { return (long int) (sizeof (size_t)); }
25181 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25183 #include <stdlib.h>
25188 FILE *f = fopen ("conftest.val", "w");
25191 if (((long int) (sizeof (size_t))) < 0)
25193 long int i = longval ();
25194 if (i != ((long int) (sizeof (size_t))))
25196 fprintf (f, "%ld", i);
25200 unsigned long int i = ulongval ();
25201 if (i != ((long int) (sizeof (size_t))))
25203 fprintf (f, "%lu", i);
25205 /* Do not output a trailing newline, as this causes \r\n confusion
25206 on some platforms. */
25207 return ferror (f) || fclose (f) != 0;
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25220 $as_echo "$ac_try_echo") >&5
25221 (eval "$ac_link") 2>&5
25223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25225 { (case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231 (eval "$ac_try") 2>&5
25233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235 ac_cv_sizeof_size_t=`cat conftest.val`
25237 $as_echo "$as_me: program exited with status $ac_status" >&5
25238 $as_echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25241 ( exit $ac_status )
25242 if test "$ac_cv_type_size_t" = yes; then
25243 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25246 See \`config.log' for more details." >&5
25247 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25248 See \`config.log' for more details." >&2;}
25249 { (exit 77); exit 77; }; }; }
25251 ac_cv_sizeof_size_t=0
25254 rm -rf conftest.dSYM
25255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25259 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25260 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25264 cat >>confdefs.h <<_ACEOF
25265 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25269 # The cast to long int works around a bug in the HP C Compiler
25270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25272 # This bug is HP SR number 8606223364.
25273 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25274 $as_echo_n "checking size of long... " >&6; }
25275 if test "${ac_cv_sizeof_long+set}" = set; then
25276 $as_echo_n "(cached) " >&6
25278 if test "$cross_compiling" = yes; then
25279 # Depending upon the size, compute the lo and hi bounds.
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 $ac_includes_default
25290 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25297 rm -f conftest.$ac_objext
25298 if { (ac_try="$ac_compile"
25299 case "(($ac_try" in
25300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25301 *) ac_try_echo=$ac_try;;
25303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25304 $as_echo "$ac_try_echo") >&5
25305 (eval "$ac_compile") 2>conftest.er1
25307 grep -v '^ *+' conftest.er1 >conftest.err
25309 cat conftest.err >&5
25310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest.$ac_objext; then
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 $ac_includes_default
25327 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25341 $as_echo "$ac_try_echo") >&5
25342 (eval "$ac_compile") 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && {
25349 test -z "$ac_c_werror_flag" ||
25350 test ! -s conftest.err
25351 } && test -s conftest.$ac_objext; then
25352 ac_hi=$ac_mid; break
25354 $as_echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 ac_lo=`expr $ac_mid + 1`
25358 if test $ac_lo -le $ac_mid; then
25362 ac_mid=`expr 2 '*' $ac_mid + 1`
25365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368 $as_echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 cat >conftest.$ac_ext <<_ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h. */
25377 $ac_includes_default
25381 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25388 rm -f conftest.$ac_objext
25389 if { (ac_try="$ac_compile"
25390 case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25395 $as_echo "$ac_try_echo") >&5
25396 (eval "$ac_compile") 2>conftest.er1
25398 grep -v '^ *+' conftest.er1 >conftest.err
25400 cat conftest.err >&5
25401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } && {
25403 test -z "$ac_c_werror_flag" ||
25404 test ! -s conftest.err
25405 } && test -s conftest.$ac_objext; then
25408 cat >conftest.$ac_ext <<_ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 $ac_includes_default
25418 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25425 rm -f conftest.$ac_objext
25426 if { (ac_try="$ac_compile"
25427 case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433 (eval "$ac_compile") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest.$ac_objext; then
25443 ac_lo=$ac_mid; break
25445 $as_echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ac_hi=`expr '(' $ac_mid ')' - 1`
25449 if test $ac_mid -le $ac_hi; then
25453 ac_mid=`expr 2 '*' $ac_mid`
25456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459 $as_echo "$as_me: failed program was:" >&5
25460 sed 's/^/| /' conftest.$ac_ext >&5
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 # Binary search between lo and hi bounds.
25470 while test "x$ac_lo" != "x$ac_hi"; do
25471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25482 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25489 rm -f conftest.$ac_objext
25490 if { (ac_try="$ac_compile"
25491 case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25496 $as_echo "$ac_try_echo") >&5
25497 (eval "$ac_compile") 2>conftest.er1
25499 grep -v '^ *+' conftest.er1 >conftest.err
25501 cat conftest.err >&5
25502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && {
25504 test -z "$ac_c_werror_flag" ||
25505 test ! -s conftest.err
25506 } && test -s conftest.$ac_objext; then
25509 $as_echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25512 ac_lo=`expr '(' $ac_mid ')' + 1`
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518 ?*) ac_cv_sizeof_long=$ac_lo;;
25519 '') if test "$ac_cv_type_long" = yes; then
25520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25522 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25523 See \`config.log' for more details." >&5
25524 $as_echo "$as_me: error: cannot compute sizeof (long)
25525 See \`config.log' for more details." >&2;}
25526 { (exit 77); exit 77; }; }; }
25528 ac_cv_sizeof_long=0
25532 cat >conftest.$ac_ext <<_ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25538 $ac_includes_default
25539 static long int longval () { return (long int) (sizeof (long)); }
25540 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25542 #include <stdlib.h>
25547 FILE *f = fopen ("conftest.val", "w");
25550 if (((long int) (sizeof (long))) < 0)
25552 long int i = longval ();
25553 if (i != ((long int) (sizeof (long))))
25555 fprintf (f, "%ld", i);
25559 unsigned long int i = ulongval ();
25560 if (i != ((long int) (sizeof (long))))
25562 fprintf (f, "%lu", i);
25564 /* Do not output a trailing newline, as this causes \r\n confusion
25565 on some platforms. */
25566 return ferror (f) || fclose (f) != 0;
25572 rm -f conftest$ac_exeext
25573 if { (ac_try="$ac_link"
25574 case "(($ac_try" in
25575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576 *) ac_try_echo=$ac_try;;
25578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25579 $as_echo "$ac_try_echo") >&5
25580 (eval "$ac_link") 2>&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25584 { (case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589 $as_echo "$ac_try_echo") >&5
25590 (eval "$ac_try") 2>&5
25592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 ac_cv_sizeof_long=`cat conftest.val`
25596 $as_echo "$as_me: program exited with status $ac_status" >&5
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ( exit $ac_status )
25601 if test "$ac_cv_type_long" = yes; then
25602 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25604 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25605 See \`config.log' for more details." >&5
25606 $as_echo "$as_me: error: cannot compute sizeof (long)
25607 See \`config.log' for more details." >&2;}
25608 { (exit 77); exit 77; }; }; }
25610 ac_cv_sizeof_long=0
25613 rm -rf conftest.dSYM
25614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25618 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25619 $as_echo "$ac_cv_sizeof_long" >&6; }
25623 cat >>confdefs.h <<_ACEOF
25624 #define SIZEOF_LONG $ac_cv_sizeof_long
25629 # Decide whether float4 is passed by value: user-selectable, enabled by default
25630 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25631 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25634 # Check whether --enable-float4-byval was given.
25635 if test "${enable_float4_byval+set}" = set; then
25636 enableval=$enable_float4_byval;
25640 cat >>confdefs.h <<\_ACEOF
25641 #define USE_FLOAT4_BYVAL 1
25644 float4passbyval=true
25647 float4passbyval=false
25650 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25651 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25652 { (exit 1); exit 1; }; }
25657 enable_float4_byval=yes
25659 cat >>confdefs.h <<\_ACEOF
25660 #define USE_FLOAT4_BYVAL 1
25663 float4passbyval=true
25667 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25668 $as_echo "$enable_float4_byval" >&6; }
25670 cat >>confdefs.h <<_ACEOF
25671 #define FLOAT4PASSBYVAL $float4passbyval
25675 # Decide whether float8 is passed by value.
25676 # Note: this setting also controls int8 and related types such as timestamp.
25677 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25678 # If not, trying to select it is an error.
25679 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25680 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25681 if test $ac_cv_sizeof_void_p -ge 8 ; then
25684 # Check whether --enable-float8-byval was given.
25685 if test "${enable_float8_byval+set}" = set; then
25686 enableval=$enable_float8_byval;
25695 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25696 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25697 { (exit 1); exit 1; }; }
25702 enable_float8_byval=yes
25710 # Check whether --enable-float8-byval was given.
25711 if test "${enable_float8_byval+set}" = set; then
25712 enableval=$enable_float8_byval;
25721 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25722 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25723 { (exit 1); exit 1; }; }
25728 enable_float8_byval=no
25733 if test "$enable_float8_byval" = yes ; then
25734 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25735 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25736 { (exit 1); exit 1; }; }
25739 if test "$enable_float8_byval" = yes ; then
25741 cat >>confdefs.h <<\_ACEOF
25742 #define USE_FLOAT8_BYVAL 1
25745 float8passbyval=true
25747 float8passbyval=false
25749 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25750 $as_echo "$enable_float8_byval" >&6; }
25752 cat >>confdefs.h <<_ACEOF
25753 #define FLOAT8PASSBYVAL $float8passbyval
25757 # Determine memory alignment requirements for the basic C data types.
25759 # The cast to long int works around a bug in the HP C Compiler,
25760 # see AC_CHECK_SIZEOF for more information.
25761 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25762 $as_echo_n "checking alignment of short... " >&6; }
25763 if test "${ac_cv_alignof_short+set}" = set; then
25764 $as_echo_n "(cached) " >&6
25766 if test "$cross_compiling" = yes; then
25767 # Depending upon the size, compute the lo and hi bounds.
25768 cat >conftest.$ac_ext <<_ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h. */
25774 $ac_includes_default
25776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25778 typedef struct { char x; short y; } ac__type_alignof_;
25782 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25789 rm -f conftest.$ac_objext
25790 if { (ac_try="$ac_compile"
25791 case "(($ac_try" in
25792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793 *) ac_try_echo=$ac_try;;
25795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25796 $as_echo "$ac_try_echo") >&5
25797 (eval "$ac_compile") 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } && {
25804 test -z "$ac_c_werror_flag" ||
25805 test ! -s conftest.err
25806 } && test -s conftest.$ac_objext; then
25809 cat >conftest.$ac_ext <<_ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h. */
25815 $ac_includes_default
25817 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25819 typedef struct { char x; short y; } ac__type_alignof_;
25823 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25830 rm -f conftest.$ac_objext
25831 if { (ac_try="$ac_compile"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837 $as_echo "$ac_try_echo") >&5
25838 (eval "$ac_compile") 2>conftest.er1
25840 grep -v '^ *+' conftest.er1 >conftest.err
25842 cat conftest.err >&5
25843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } && {
25845 test -z "$ac_c_werror_flag" ||
25846 test ! -s conftest.err
25847 } && test -s conftest.$ac_objext; then
25848 ac_hi=$ac_mid; break
25850 $as_echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 ac_lo=`expr $ac_mid + 1`
25854 if test $ac_lo -le $ac_mid; then
25858 ac_mid=`expr 2 '*' $ac_mid + 1`
25861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25864 $as_echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25867 cat >conftest.$ac_ext <<_ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h. */
25873 $ac_includes_default
25875 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25877 typedef struct { char x; short y; } ac__type_alignof_;
25881 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } && {
25903 test -z "$ac_c_werror_flag" ||
25904 test ! -s conftest.err
25905 } && test -s conftest.$ac_objext; then
25908 cat >conftest.$ac_ext <<_ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 $ac_includes_default
25916 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25918 typedef struct { char x; short y; } ac__type_alignof_;
25922 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25929 rm -f conftest.$ac_objext
25930 if { (ac_try="$ac_compile"
25931 case "(($ac_try" in
25932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933 *) ac_try_echo=$ac_try;;
25935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25936 $as_echo "$ac_try_echo") >&5
25937 (eval "$ac_compile") 2>conftest.er1
25939 grep -v '^ *+' conftest.er1 >conftest.err
25941 cat conftest.err >&5
25942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } && {
25944 test -z "$ac_c_werror_flag" ||
25945 test ! -s conftest.err
25946 } && test -s conftest.$ac_objext; then
25947 ac_lo=$ac_mid; break
25949 $as_echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25952 ac_hi=`expr '(' $ac_mid ')' - 1`
25953 if test $ac_mid -le $ac_hi; then
25957 ac_mid=`expr 2 '*' $ac_mid`
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963 $as_echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 # Binary search between lo and hi bounds.
25974 while test "x$ac_lo" != "x$ac_hi"; do
25975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25976 cat >conftest.$ac_ext <<_ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h. */
25982 $ac_includes_default
25984 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25986 typedef struct { char x; short y; } ac__type_alignof_;
25990 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25997 rm -f conftest.$ac_objext
25998 if { (ac_try="$ac_compile"
25999 case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004 $as_echo "$ac_try_echo") >&5
26005 (eval "$ac_compile") 2>conftest.er1
26007 grep -v '^ *+' conftest.er1 >conftest.err
26009 cat conftest.err >&5
26010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest.$ac_objext; then
26017 $as_echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26020 ac_lo=`expr '(' $ac_mid ')' + 1`
26023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026 ?*) ac_cv_alignof_short=$ac_lo;;
26027 '') if test "$ac_cv_type_short" = yes; then
26028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26030 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26031 See \`config.log' for more details." >&5
26032 $as_echo "$as_me: error: cannot compute alignment of short
26033 See \`config.log' for more details." >&2;}
26034 { (exit 77); exit 77; }; }; }
26036 ac_cv_alignof_short=0
26040 cat >conftest.$ac_ext <<_ACEOF
26043 cat confdefs.h >>conftest.$ac_ext
26044 cat >>conftest.$ac_ext <<_ACEOF
26045 /* end confdefs.h. */
26046 $ac_includes_default
26048 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26050 typedef struct { char x; short y; } ac__type_alignof_;
26051 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26052 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26054 #include <stdlib.h>
26059 FILE *f = fopen ("conftest.val", "w");
26062 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26064 long int i = longval ();
26065 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26067 fprintf (f, "%ld", i);
26071 unsigned long int i = ulongval ();
26072 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26074 fprintf (f, "%lu", i);
26076 /* Do not output a trailing newline, as this causes \r\n confusion
26077 on some platforms. */
26078 return ferror (f) || fclose (f) != 0;
26084 rm -f conftest$ac_exeext
26085 if { (ac_try="$ac_link"
26086 case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26091 $as_echo "$ac_try_echo") >&5
26092 (eval "$ac_link") 2>&5
26094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26096 { (case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102 (eval "$ac_try") 2>&5
26104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106 ac_cv_alignof_short=`cat conftest.val`
26108 $as_echo "$as_me: program exited with status $ac_status" >&5
26109 $as_echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26112 ( exit $ac_status )
26113 if test "$ac_cv_type_short" = yes; then
26114 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26116 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26117 See \`config.log' for more details." >&5
26118 $as_echo "$as_me: error: cannot compute alignment of short
26119 See \`config.log' for more details." >&2;}
26120 { (exit 77); exit 77; }; }; }
26122 ac_cv_alignof_short=0
26125 rm -rf conftest.dSYM
26126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26130 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26131 $as_echo "$ac_cv_alignof_short" >&6; }
26135 cat >>confdefs.h <<_ACEOF
26136 #define ALIGNOF_SHORT $ac_cv_alignof_short
26140 # The cast to long int works around a bug in the HP C Compiler,
26141 # see AC_CHECK_SIZEOF for more information.
26142 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26143 $as_echo_n "checking alignment of int... " >&6; }
26144 if test "${ac_cv_alignof_int+set}" = set; then
26145 $as_echo_n "(cached) " >&6
26147 if test "$cross_compiling" = yes; then
26148 # Depending upon the size, compute the lo and hi bounds.
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 $ac_includes_default
26157 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26159 typedef struct { char x; int y; } ac__type_alignof_;
26163 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174 *) ac_try_echo=$ac_try;;
26176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26177 $as_echo "$ac_try_echo") >&5
26178 (eval "$ac_compile") 2>conftest.er1
26180 grep -v '^ *+' conftest.er1 >conftest.err
26182 cat conftest.err >&5
26183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } && {
26185 test -z "$ac_c_werror_flag" ||
26186 test ! -s conftest.err
26187 } && test -s conftest.$ac_objext; then
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 $ac_includes_default
26198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26200 typedef struct { char x; int y; } ac__type_alignof_;
26204 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26211 rm -f conftest.$ac_objext
26212 if { (ac_try="$ac_compile"
26213 case "(($ac_try" in
26214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215 *) ac_try_echo=$ac_try;;
26217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218 $as_echo "$ac_try_echo") >&5
26219 (eval "$ac_compile") 2>conftest.er1
26221 grep -v '^ *+' conftest.er1 >conftest.err
26223 cat conftest.err >&5
26224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } && {
26226 test -z "$ac_c_werror_flag" ||
26227 test ! -s conftest.err
26228 } && test -s conftest.$ac_objext; then
26229 ac_hi=$ac_mid; break
26231 $as_echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26234 ac_lo=`expr $ac_mid + 1`
26235 if test $ac_lo -le $ac_mid; then
26239 ac_mid=`expr 2 '*' $ac_mid + 1`
26242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26245 $as_echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26248 cat >conftest.$ac_ext <<_ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h. */
26254 $ac_includes_default
26256 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26258 typedef struct { char x; int y; } ac__type_alignof_;
26262 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26269 rm -f conftest.$ac_objext
26270 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } && {
26284 test -z "$ac_c_werror_flag" ||
26285 test ! -s conftest.err
26286 } && test -s conftest.$ac_objext; then
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 $ac_includes_default
26297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26299 typedef struct { char x; int y; } ac__type_alignof_;
26303 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26310 rm -f conftest.$ac_objext
26311 if { (ac_try="$ac_compile"
26312 case "(($ac_try" in
26313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26314 *) ac_try_echo=$ac_try;;
26316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26317 $as_echo "$ac_try_echo") >&5
26318 (eval "$ac_compile") 2>conftest.er1
26320 grep -v '^ *+' conftest.er1 >conftest.err
26322 cat conftest.err >&5
26323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); } && {
26325 test -z "$ac_c_werror_flag" ||
26326 test ! -s conftest.err
26327 } && test -s conftest.$ac_objext; then
26328 ac_lo=$ac_mid; break
26330 $as_echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ac_hi=`expr '(' $ac_mid ')' - 1`
26334 if test $ac_mid -le $ac_hi; then
26338 ac_mid=`expr 2 '*' $ac_mid`
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 $as_echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26354 # Binary search between lo and hi bounds.
26355 while test "x$ac_lo" != "x$ac_hi"; do
26356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26357 cat >conftest.$ac_ext <<_ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26363 $ac_includes_default
26365 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26367 typedef struct { char x; int y; } ac__type_alignof_;
26371 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382 *) ac_try_echo=$ac_try;;
26384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26385 $as_echo "$ac_try_echo") >&5
26386 (eval "$ac_compile") 2>conftest.er1
26388 grep -v '^ *+' conftest.er1 >conftest.err
26390 cat conftest.err >&5
26391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && {
26393 test -z "$ac_c_werror_flag" ||
26394 test ! -s conftest.err
26395 } && test -s conftest.$ac_objext; then
26398 $as_echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26401 ac_lo=`expr '(' $ac_mid ')' + 1`
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26407 ?*) ac_cv_alignof_int=$ac_lo;;
26408 '') if test "$ac_cv_type_int" = yes; then
26409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26411 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26412 See \`config.log' for more details." >&5
26413 $as_echo "$as_me: error: cannot compute alignment of int
26414 See \`config.log' for more details." >&2;}
26415 { (exit 77); exit 77; }; }; }
26417 ac_cv_alignof_int=0
26421 cat >conftest.$ac_ext <<_ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h. */
26427 $ac_includes_default
26429 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26431 typedef struct { char x; int y; } ac__type_alignof_;
26432 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26433 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26435 #include <stdlib.h>
26440 FILE *f = fopen ("conftest.val", "w");
26443 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26445 long int i = longval ();
26446 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26448 fprintf (f, "%ld", i);
26452 unsigned long int i = ulongval ();
26453 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26455 fprintf (f, "%lu", i);
26457 /* Do not output a trailing newline, as this causes \r\n confusion
26458 on some platforms. */
26459 return ferror (f) || fclose (f) != 0;
26465 rm -f conftest$ac_exeext
26466 if { (ac_try="$ac_link"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472 $as_echo "$ac_try_echo") >&5
26473 (eval "$ac_link") 2>&5
26475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26477 { (case "(($ac_try" in
26478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479 *) ac_try_echo=$ac_try;;
26481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26482 $as_echo "$ac_try_echo") >&5
26483 (eval "$ac_try") 2>&5
26485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; }; then
26487 ac_cv_alignof_int=`cat conftest.val`
26489 $as_echo "$as_me: program exited with status $ac_status" >&5
26490 $as_echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 ( exit $ac_status )
26494 if test "$ac_cv_type_int" = yes; then
26495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26497 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26498 See \`config.log' for more details." >&5
26499 $as_echo "$as_me: error: cannot compute alignment of int
26500 See \`config.log' for more details." >&2;}
26501 { (exit 77); exit 77; }; }; }
26503 ac_cv_alignof_int=0
26506 rm -rf conftest.dSYM
26507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26511 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26512 $as_echo "$ac_cv_alignof_int" >&6; }
26516 cat >>confdefs.h <<_ACEOF
26517 #define ALIGNOF_INT $ac_cv_alignof_int
26521 # The cast to long int works around a bug in the HP C Compiler,
26522 # see AC_CHECK_SIZEOF for more information.
26523 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26524 $as_echo_n "checking alignment of long... " >&6; }
26525 if test "${ac_cv_alignof_long+set}" = set; then
26526 $as_echo_n "(cached) " >&6
26528 if test "$cross_compiling" = yes; then
26529 # Depending upon the size, compute the lo and hi bounds.
26530 cat >conftest.$ac_ext <<_ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h. */
26536 $ac_includes_default
26538 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26540 typedef struct { char x; long y; } ac__type_alignof_;
26544 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26551 rm -f conftest.$ac_objext
26552 if { (ac_try="$ac_compile"
26553 case "(($ac_try" in
26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555 *) ac_try_echo=$ac_try;;
26557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26558 $as_echo "$ac_try_echo") >&5
26559 (eval "$ac_compile") 2>conftest.er1
26561 grep -v '^ *+' conftest.er1 >conftest.err
26563 cat conftest.err >&5
26564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } && {
26566 test -z "$ac_c_werror_flag" ||
26567 test ! -s conftest.err
26568 } && test -s conftest.$ac_objext; then
26571 cat >conftest.$ac_ext <<_ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h. */
26577 $ac_includes_default
26579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26581 typedef struct { char x; long y; } ac__type_alignof_;
26585 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26592 rm -f conftest.$ac_objext
26593 if { (ac_try="$ac_compile"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26599 $as_echo "$ac_try_echo") >&5
26600 (eval "$ac_compile") 2>conftest.er1
26602 grep -v '^ *+' conftest.er1 >conftest.err
26604 cat conftest.err >&5
26605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } && {
26607 test -z "$ac_c_werror_flag" ||
26608 test ! -s conftest.err
26609 } && test -s conftest.$ac_objext; then
26610 ac_hi=$ac_mid; break
26612 $as_echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26615 ac_lo=`expr $ac_mid + 1`
26616 if test $ac_lo -le $ac_mid; then
26620 ac_mid=`expr 2 '*' $ac_mid + 1`
26623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26626 $as_echo "$as_me: failed program was:" >&5
26627 sed 's/^/| /' conftest.$ac_ext >&5
26629 cat >conftest.$ac_ext <<_ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h. */
26635 $ac_includes_default
26637 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26639 typedef struct { char x; long y; } ac__type_alignof_;
26643 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26650 rm -f conftest.$ac_objext
26651 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26660 grep -v '^ *+' conftest.er1 >conftest.err
26662 cat conftest.err >&5
26663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } && {
26665 test -z "$ac_c_werror_flag" ||
26666 test ! -s conftest.err
26667 } && test -s conftest.$ac_objext; then
26670 cat >conftest.$ac_ext <<_ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 $ac_includes_default
26678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26680 typedef struct { char x; long y; } ac__type_alignof_;
26684 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26691 rm -f conftest.$ac_objext
26692 if { (ac_try="$ac_compile"
26693 case "(($ac_try" in
26694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695 *) ac_try_echo=$ac_try;;
26697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26698 $as_echo "$ac_try_echo") >&5
26699 (eval "$ac_compile") 2>conftest.er1
26701 grep -v '^ *+' conftest.er1 >conftest.err
26703 cat conftest.err >&5
26704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } && {
26706 test -z "$ac_c_werror_flag" ||
26707 test ! -s conftest.err
26708 } && test -s conftest.$ac_objext; then
26709 ac_lo=$ac_mid; break
26711 $as_echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 ac_hi=`expr '(' $ac_mid ')' - 1`
26715 if test $ac_mid -le $ac_hi; then
26719 ac_mid=`expr 2 '*' $ac_mid`
26722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 $as_echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 # Binary search between lo and hi bounds.
26736 while test "x$ac_lo" != "x$ac_hi"; do
26737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26738 cat >conftest.$ac_ext <<_ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 $ac_includes_default
26746 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26748 typedef struct { char x; long y; } ac__type_alignof_;
26752 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26766 $as_echo "$ac_try_echo") >&5
26767 (eval "$ac_compile") 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } && {
26774 test -z "$ac_c_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest.$ac_objext; then
26779 $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ac_lo=`expr '(' $ac_mid ')' + 1`
26785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26788 ?*) ac_cv_alignof_long=$ac_lo;;
26789 '') if test "$ac_cv_type_long" = yes; then
26790 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26792 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26793 See \`config.log' for more details." >&5
26794 $as_echo "$as_me: error: cannot compute alignment of long
26795 See \`config.log' for more details." >&2;}
26796 { (exit 77); exit 77; }; }; }
26798 ac_cv_alignof_long=0
26802 cat >conftest.$ac_ext <<_ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26808 $ac_includes_default
26810 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26812 typedef struct { char x; long y; } ac__type_alignof_;
26813 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26814 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26816 #include <stdlib.h>
26821 FILE *f = fopen ("conftest.val", "w");
26824 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26826 long int i = longval ();
26827 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26829 fprintf (f, "%ld", i);
26833 unsigned long int i = ulongval ();
26834 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26836 fprintf (f, "%lu", i);
26838 /* Do not output a trailing newline, as this causes \r\n confusion
26839 on some platforms. */
26840 return ferror (f) || fclose (f) != 0;
26846 rm -f conftest$ac_exeext
26847 if { (ac_try="$ac_link"
26848 case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26853 $as_echo "$ac_try_echo") >&5
26854 (eval "$ac_link") 2>&5
26856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26858 { (case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26863 $as_echo "$ac_try_echo") >&5
26864 (eval "$ac_try") 2>&5
26866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_cv_alignof_long=`cat conftest.val`
26870 $as_echo "$as_me: program exited with status $ac_status" >&5
26871 $as_echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 ( exit $ac_status )
26875 if test "$ac_cv_type_long" = yes; then
26876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26878 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26879 See \`config.log' for more details." >&5
26880 $as_echo "$as_me: error: cannot compute alignment of long
26881 See \`config.log' for more details." >&2;}
26882 { (exit 77); exit 77; }; }; }
26884 ac_cv_alignof_long=0
26887 rm -rf conftest.dSYM
26888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26892 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26893 $as_echo "$ac_cv_alignof_long" >&6; }
26897 cat >>confdefs.h <<_ACEOF
26898 #define ALIGNOF_LONG $ac_cv_alignof_long
26902 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26903 # The cast to long int works around a bug in the HP C Compiler,
26904 # see AC_CHECK_SIZEOF for more information.
26905 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26906 $as_echo_n "checking alignment of long long int... " >&6; }
26907 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26908 $as_echo_n "(cached) " >&6
26910 if test "$cross_compiling" = yes; then
26911 # Depending upon the size, compute the lo and hi bounds.
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26918 $ac_includes_default
26920 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26922 typedef struct { char x; long long int y; } ac__type_alignof_;
26926 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941 (eval "$ac_compile") 2>conftest.er1
26943 grep -v '^ *+' conftest.er1 >conftest.err
26945 cat conftest.err >&5
26946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } && {
26948 test -z "$ac_c_werror_flag" ||
26949 test ! -s conftest.err
26950 } && test -s conftest.$ac_objext; then
26953 cat >conftest.$ac_ext <<_ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26959 $ac_includes_default
26961 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26963 typedef struct { char x; long long int y; } ac__type_alignof_;
26967 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26974 rm -f conftest.$ac_objext
26975 if { (ac_try="$ac_compile"
26976 case "(($ac_try" in
26977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978 *) ac_try_echo=$ac_try;;
26980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26981 $as_echo "$ac_try_echo") >&5
26982 (eval "$ac_compile") 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } && {
26989 test -z "$ac_c_werror_flag" ||
26990 test ! -s conftest.err
26991 } && test -s conftest.$ac_objext; then
26992 ac_hi=$ac_mid; break
26994 $as_echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26997 ac_lo=`expr $ac_mid + 1`
26998 if test $ac_lo -le $ac_mid; then
27002 ac_mid=`expr 2 '*' $ac_mid + 1`
27005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27008 $as_echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27017 $ac_includes_default
27019 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27021 typedef struct { char x; long long int y; } ac__type_alignof_;
27025 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27032 rm -f conftest.$ac_objext
27033 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27042 grep -v '^ *+' conftest.er1 >conftest.err
27044 cat conftest.err >&5
27045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } && {
27047 test -z "$ac_c_werror_flag" ||
27048 test ! -s conftest.err
27049 } && test -s conftest.$ac_objext; then
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 $ac_includes_default
27060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27062 typedef struct { char x; long long int y; } ac__type_alignof_;
27066 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27073 rm -f conftest.$ac_objext
27074 if { (ac_try="$ac_compile"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081 (eval "$ac_compile") 2>conftest.er1
27083 grep -v '^ *+' conftest.er1 >conftest.err
27085 cat conftest.err >&5
27086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && {
27088 test -z "$ac_c_werror_flag" ||
27089 test ! -s conftest.err
27090 } && test -s conftest.$ac_objext; then
27091 ac_lo=$ac_mid; break
27093 $as_echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27096 ac_hi=`expr '(' $ac_mid ')' - 1`
27097 if test $ac_mid -le $ac_hi; then
27101 ac_mid=`expr 2 '*' $ac_mid`
27104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107 $as_echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 # Binary search between lo and hi bounds.
27118 while test "x$ac_lo" != "x$ac_hi"; do
27119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27126 $ac_includes_default
27128 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27130 typedef struct { char x; long long int y; } ac__type_alignof_;
27134 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27141 rm -f conftest.$ac_objext
27142 if { (ac_try="$ac_compile"
27143 case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27148 $as_echo "$ac_try_echo") >&5
27149 (eval "$ac_compile") 2>conftest.er1
27151 grep -v '^ *+' conftest.er1 >conftest.err
27153 cat conftest.err >&5
27154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
27161 $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27164 ac_lo=`expr '(' $ac_mid ')' + 1`
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27171 '') if test "$ac_cv_type_long_long_int" = yes; then
27172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27174 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27175 See \`config.log' for more details." >&5
27176 $as_echo "$as_me: error: cannot compute alignment of long long int
27177 See \`config.log' for more details." >&2;}
27178 { (exit 77); exit 77; }; }; }
27180 ac_cv_alignof_long_long_int=0
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 $ac_includes_default
27192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27194 typedef struct { char x; long long int y; } ac__type_alignof_;
27195 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27196 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27198 #include <stdlib.h>
27203 FILE *f = fopen ("conftest.val", "w");
27206 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27208 long int i = longval ();
27209 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27211 fprintf (f, "%ld", i);
27215 unsigned long int i = ulongval ();
27216 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27218 fprintf (f, "%lu", i);
27220 /* Do not output a trailing newline, as this causes \r\n confusion
27221 on some platforms. */
27222 return ferror (f) || fclose (f) != 0;
27228 rm -f conftest$ac_exeext
27229 if { (ac_try="$ac_link"
27230 case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27235 $as_echo "$ac_try_echo") >&5
27236 (eval "$ac_link") 2>&5
27238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27240 { (case "(($ac_try" in
27241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242 *) ac_try_echo=$ac_try;;
27244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27245 $as_echo "$ac_try_echo") >&5
27246 (eval "$ac_try") 2>&5
27248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); }; }; then
27250 ac_cv_alignof_long_long_int=`cat conftest.val`
27252 $as_echo "$as_me: program exited with status $ac_status" >&5
27253 $as_echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27256 ( exit $ac_status )
27257 if test "$ac_cv_type_long_long_int" = yes; then
27258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27260 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27261 See \`config.log' for more details." >&5
27262 $as_echo "$as_me: error: cannot compute alignment of long long int
27263 See \`config.log' for more details." >&2;}
27264 { (exit 77); exit 77; }; }; }
27266 ac_cv_alignof_long_long_int=0
27269 rm -rf conftest.dSYM
27270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27274 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27275 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27279 cat >>confdefs.h <<_ACEOF
27280 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27285 # The cast to long int works around a bug in the HP C Compiler,
27286 # see AC_CHECK_SIZEOF for more information.
27287 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27288 $as_echo_n "checking alignment of double... " >&6; }
27289 if test "${ac_cv_alignof_double+set}" = set; then
27290 $as_echo_n "(cached) " >&6
27292 if test "$cross_compiling" = yes; then
27293 # Depending upon the size, compute the lo and hi bounds.
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 $ac_includes_default
27302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27304 typedef struct { char x; double y; } ac__type_alignof_;
27308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27322 $as_echo "$ac_try_echo") >&5
27323 (eval "$ac_compile") 2>conftest.er1
27325 grep -v '^ *+' conftest.er1 >conftest.err
27327 cat conftest.err >&5
27328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); } && {
27330 test -z "$ac_c_werror_flag" ||
27331 test ! -s conftest.err
27332 } && test -s conftest.$ac_objext; then
27335 cat >conftest.$ac_ext <<_ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27341 $ac_includes_default
27343 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27345 typedef struct { char x; double y; } ac__type_alignof_;
27349 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27356 rm -f conftest.$ac_objext
27357 if { (ac_try="$ac_compile"
27358 case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27363 $as_echo "$ac_try_echo") >&5
27364 (eval "$ac_compile") 2>conftest.er1
27366 grep -v '^ *+' conftest.er1 >conftest.err
27368 cat conftest.err >&5
27369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } && {
27371 test -z "$ac_c_werror_flag" ||
27372 test ! -s conftest.err
27373 } && test -s conftest.$ac_objext; then
27374 ac_hi=$ac_mid; break
27376 $as_echo "$as_me: failed program was:" >&5
27377 sed 's/^/| /' conftest.$ac_ext >&5
27379 ac_lo=`expr $ac_mid + 1`
27380 if test $ac_lo -le $ac_mid; then
27384 ac_mid=`expr 2 '*' $ac_mid + 1`
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27390 $as_echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27393 cat >conftest.$ac_ext <<_ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27399 $ac_includes_default
27401 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27403 typedef struct { char x; double y; } ac__type_alignof_;
27407 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27414 rm -f conftest.$ac_objext
27415 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27424 grep -v '^ *+' conftest.er1 >conftest.err
27426 cat conftest.err >&5
27427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } && {
27429 test -z "$ac_c_werror_flag" ||
27430 test ! -s conftest.err
27431 } && test -s conftest.$ac_objext; then
27434 cat >conftest.$ac_ext <<_ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27440 $ac_includes_default
27442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27444 typedef struct { char x; double y; } ac__type_alignof_;
27448 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27455 rm -f conftest.$ac_objext
27456 if { (ac_try="$ac_compile"
27457 case "(($ac_try" in
27458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27462 $as_echo "$ac_try_echo") >&5
27463 (eval "$ac_compile") 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } && {
27470 test -z "$ac_c_werror_flag" ||
27471 test ! -s conftest.err
27472 } && test -s conftest.$ac_objext; then
27473 ac_lo=$ac_mid; break
27475 $as_echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27478 ac_hi=`expr '(' $ac_mid ')' - 1`
27479 if test $ac_mid -le $ac_hi; then
27483 ac_mid=`expr 2 '*' $ac_mid`
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27489 $as_echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 # Binary search between lo and hi bounds.
27500 while test "x$ac_lo" != "x$ac_hi"; do
27501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 $ac_includes_default
27510 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27512 typedef struct { char x; double y; } ac__type_alignof_;
27516 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27523 rm -f conftest.$ac_objext
27524 if { (ac_try="$ac_compile"
27525 case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27530 $as_echo "$ac_try_echo") >&5
27531 (eval "$ac_compile") 2>conftest.er1
27533 grep -v '^ *+' conftest.er1 >conftest.err
27535 cat conftest.err >&5
27536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } && {
27538 test -z "$ac_c_werror_flag" ||
27539 test ! -s conftest.err
27540 } && test -s conftest.$ac_objext; then
27543 $as_echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27546 ac_lo=`expr '(' $ac_mid ')' + 1`
27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27552 ?*) ac_cv_alignof_double=$ac_lo;;
27553 '') if test "$ac_cv_type_double" = yes; then
27554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27556 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27557 See \`config.log' for more details." >&5
27558 $as_echo "$as_me: error: cannot compute alignment of double
27559 See \`config.log' for more details." >&2;}
27560 { (exit 77); exit 77; }; }; }
27562 ac_cv_alignof_double=0
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27572 $ac_includes_default
27574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27576 typedef struct { char x; double y; } ac__type_alignof_;
27577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27580 #include <stdlib.h>
27585 FILE *f = fopen ("conftest.val", "w");
27588 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27590 long int i = longval ();
27591 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27593 fprintf (f, "%ld", i);
27597 unsigned long int i = ulongval ();
27598 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27600 fprintf (f, "%lu", i);
27602 /* Do not output a trailing newline, as this causes \r\n confusion
27603 on some platforms. */
27604 return ferror (f) || fclose (f) != 0;
27610 rm -f conftest$ac_exeext
27611 if { (ac_try="$ac_link"
27612 case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617 $as_echo "$ac_try_echo") >&5
27618 (eval "$ac_link") 2>&5
27620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27622 { (case "(($ac_try" in
27623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624 *) ac_try_echo=$ac_try;;
27626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27627 $as_echo "$ac_try_echo") >&5
27628 (eval "$ac_try") 2>&5
27630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
27632 ac_cv_alignof_double=`cat conftest.val`
27634 $as_echo "$as_me: program exited with status $ac_status" >&5
27635 $as_echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27638 ( exit $ac_status )
27639 if test "$ac_cv_type_double" = yes; then
27640 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27642 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27643 See \`config.log' for more details." >&5
27644 $as_echo "$as_me: error: cannot compute alignment of double
27645 See \`config.log' for more details." >&2;}
27646 { (exit 77); exit 77; }; }; }
27648 ac_cv_alignof_double=0
27651 rm -rf conftest.dSYM
27652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27656 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27657 $as_echo "$ac_cv_alignof_double" >&6; }
27661 cat >>confdefs.h <<_ACEOF
27662 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27667 # Compute maximum alignment of any basic type.
27668 # We assume long's alignment is at least as strong as char, short, or int;
27669 # but we must check long long (if it exists) and double.
27671 MAX_ALIGNOF=$ac_cv_alignof_long
27672 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27673 MAX_ALIGNOF=$ac_cv_alignof_double
27675 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27676 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27679 cat >>confdefs.h <<_ACEOF
27680 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27685 # Some platforms predefine the types int8, int16, etc. Only check
27686 # a (hopefully) representative subset.
27687 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27688 $as_echo_n "checking for int8... " >&6; }
27689 if test "${ac_cv_type_int8+set}" = set; then
27690 $as_echo_n "(cached) " >&6
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27700 #ifdef HAVE_SUPPORTDEFS_H
27701 #include <SupportDefs.h>
27713 rm -f conftest.$ac_objext
27714 if { (ac_try="$ac_compile"
27715 case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27720 $as_echo "$ac_try_echo") >&5
27721 (eval "$ac_compile") 2>conftest.er1
27723 grep -v '^ *+' conftest.er1 >conftest.err
27725 cat conftest.err >&5
27726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); } && {
27728 test -z "$ac_c_werror_flag" ||
27729 test ! -s conftest.err
27730 } && test -s conftest.$ac_objext; then
27731 cat >conftest.$ac_ext <<_ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27738 #ifdef HAVE_SUPPORTDEFS_H
27739 #include <SupportDefs.h>
27745 if (sizeof ((int8)))
27751 rm -f conftest.$ac_objext
27752 if { (ac_try="$ac_compile"
27753 case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27758 $as_echo "$ac_try_echo") >&5
27759 (eval "$ac_compile") 2>conftest.er1
27761 grep -v '^ *+' conftest.er1 >conftest.err
27763 cat conftest.err >&5
27764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } && {
27766 test -z "$ac_c_werror_flag" ||
27767 test ! -s conftest.err
27768 } && test -s conftest.$ac_objext; then
27771 $as_echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27774 ac_cv_type_int8=yes
27777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779 $as_echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27788 $as_echo "$ac_cv_type_int8" >&6; }
27789 if test "x$ac_cv_type_int8" = x""yes; then
27791 cat >>confdefs.h <<_ACEOF
27792 #define HAVE_INT8 1
27797 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27798 $as_echo_n "checking for uint8... " >&6; }
27799 if test "${ac_cv_type_uint8+set}" = set; then
27800 $as_echo_n "(cached) " >&6
27802 ac_cv_type_uint8=no
27803 cat >conftest.$ac_ext <<_ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27810 #ifdef HAVE_SUPPORTDEFS_H
27811 #include <SupportDefs.h>
27817 if (sizeof (uint8))
27823 rm -f conftest.$ac_objext
27824 if { (ac_try="$ac_compile"
27825 case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27830 $as_echo "$ac_try_echo") >&5
27831 (eval "$ac_compile") 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } && {
27838 test -z "$ac_c_werror_flag" ||
27839 test ! -s conftest.err
27840 } && test -s conftest.$ac_objext; then
27841 cat >conftest.$ac_ext <<_ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h. */
27848 #ifdef HAVE_SUPPORTDEFS_H
27849 #include <SupportDefs.h>
27855 if (sizeof ((uint8)))
27861 rm -f conftest.$ac_objext
27862 if { (ac_try="$ac_compile"
27863 case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27868 $as_echo "$ac_try_echo") >&5
27869 (eval "$ac_compile") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest.$ac_objext; then
27881 $as_echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ac_cv_type_uint8=yes
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 $as_echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27898 $as_echo "$ac_cv_type_uint8" >&6; }
27899 if test "x$ac_cv_type_uint8" = x""yes; then
27901 cat >>confdefs.h <<_ACEOF
27902 #define HAVE_UINT8 1
27907 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27908 $as_echo_n "checking for int64... " >&6; }
27909 if test "${ac_cv_type_int64+set}" = set; then
27910 $as_echo_n "(cached) " >&6
27912 ac_cv_type_int64=no
27913 cat >conftest.$ac_ext <<_ACEOF
27916 cat confdefs.h >>conftest.$ac_ext
27917 cat >>conftest.$ac_ext <<_ACEOF
27918 /* end confdefs.h. */
27920 #ifdef HAVE_SUPPORTDEFS_H
27921 #include <SupportDefs.h>
27927 if (sizeof (int64))
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27940 $as_echo "$ac_try_echo") >&5
27941 (eval "$ac_compile") 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } && {
27948 test -z "$ac_c_werror_flag" ||
27949 test ! -s conftest.err
27950 } && test -s conftest.$ac_objext; then
27951 cat >conftest.$ac_ext <<_ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h. */
27958 #ifdef HAVE_SUPPORTDEFS_H
27959 #include <SupportDefs.h>
27965 if (sizeof ((int64)))
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27978 $as_echo "$ac_try_echo") >&5
27979 (eval "$ac_compile") 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } && {
27986 test -z "$ac_c_werror_flag" ||
27987 test ! -s conftest.err
27988 } && test -s conftest.$ac_objext; then
27991 $as_echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27994 ac_cv_type_int64=yes
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27999 $as_echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28007 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28008 $as_echo "$ac_cv_type_int64" >&6; }
28009 if test "x$ac_cv_type_int64" = x""yes; then
28011 cat >>confdefs.h <<_ACEOF
28012 #define HAVE_INT64 1
28017 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28018 $as_echo_n "checking for uint64... " >&6; }
28019 if test "${ac_cv_type_uint64+set}" = set; then
28020 $as_echo_n "(cached) " >&6
28022 ac_cv_type_uint64=no
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28030 #ifdef HAVE_SUPPORTDEFS_H
28031 #include <SupportDefs.h>
28037 if (sizeof (uint64))
28043 rm -f conftest.$ac_objext
28044 if { (ac_try="$ac_compile"
28045 case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28050 $as_echo "$ac_try_echo") >&5
28051 (eval "$ac_compile") 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } && {
28058 test -z "$ac_c_werror_flag" ||
28059 test ! -s conftest.err
28060 } && test -s conftest.$ac_objext; then
28061 cat >conftest.$ac_ext <<_ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h. */
28068 #ifdef HAVE_SUPPORTDEFS_H
28069 #include <SupportDefs.h>
28075 if (sizeof ((uint64)))
28081 rm -f conftest.$ac_objext
28082 if { (ac_try="$ac_compile"
28083 case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28088 $as_echo "$ac_try_echo") >&5
28089 (eval "$ac_compile") 2>conftest.er1
28091 grep -v '^ *+' conftest.er1 >conftest.err
28093 cat conftest.err >&5
28094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } && {
28096 test -z "$ac_c_werror_flag" ||
28097 test ! -s conftest.err
28098 } && test -s conftest.$ac_objext; then
28101 $as_echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 ac_cv_type_uint64=yes
28107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28109 $as_echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28118 $as_echo "$ac_cv_type_uint64" >&6; }
28119 if test "x$ac_cv_type_uint64" = x""yes; then
28121 cat >>confdefs.h <<_ACEOF
28122 #define HAVE_UINT64 1
28129 # We also check for sig_atomic_t, which *should* be defined per ANSI
28130 # C, but is missing on some old platforms.
28131 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28132 $as_echo_n "checking for sig_atomic_t... " >&6; }
28133 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28134 $as_echo_n "(cached) " >&6
28136 ac_cv_type_sig_atomic_t=no
28137 cat >conftest.$ac_ext <<_ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 #include <signal.h>
28148 if (sizeof (sig_atomic_t))
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28161 $as_echo "$ac_try_echo") >&5
28162 (eval "$ac_compile") 2>conftest.er1
28164 grep -v '^ *+' conftest.er1 >conftest.err
28166 cat conftest.err >&5
28167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); } && {
28169 test -z "$ac_c_werror_flag" ||
28170 test ! -s conftest.err
28171 } && test -s conftest.$ac_objext; then
28172 cat >conftest.$ac_ext <<_ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h. */
28178 #include <signal.h>
28183 if (sizeof ((sig_atomic_t)))
28189 rm -f conftest.$ac_objext
28190 if { (ac_try="$ac_compile"
28191 case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28196 $as_echo "$ac_try_echo") >&5
28197 (eval "$ac_compile") 2>conftest.er1
28199 grep -v '^ *+' conftest.er1 >conftest.err
28201 cat conftest.err >&5
28202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } && {
28204 test -z "$ac_c_werror_flag" ||
28205 test ! -s conftest.err
28206 } && test -s conftest.$ac_objext; then
28209 $as_echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28212 ac_cv_type_sig_atomic_t=yes
28215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217 $as_echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28226 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28227 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28229 cat >>confdefs.h <<_ACEOF
28230 #define HAVE_SIG_ATOMIC_T 1
28238 if test "$PORTNAME" != "win32"
28240 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28241 $as_echo_n "checking for POSIX signal interface... " >&6; }
28242 if test "${pgac_cv_func_posix_signals+set}" = set; then
28243 $as_echo_n "(cached) " >&6
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <signal.h>
28256 struct sigaction act, oact;
28257 sigemptyset(&act.sa_mask);
28258 act.sa_flags = SA_RESTART;
28259 sigaction(0, &act, &oact);
28264 rm -f conftest.$ac_objext conftest$ac_exeext
28265 if { (ac_try="$ac_link"
28266 case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28271 $as_echo "$ac_try_echo") >&5
28272 (eval "$ac_link") 2>conftest.er1
28274 grep -v '^ *+' conftest.er1 >conftest.err
28276 cat conftest.err >&5
28277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } && {
28279 test -z "$ac_c_werror_flag" ||
28280 test ! -s conftest.err
28281 } && test -s conftest$ac_exeext && {
28282 test "$cross_compiling" = yes ||
28283 $as_test_x conftest$ac_exeext
28285 pgac_cv_func_posix_signals=yes
28287 $as_echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 pgac_cv_func_posix_signals=no
28293 rm -rf conftest.dSYM
28294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28295 conftest$ac_exeext conftest.$ac_ext
28297 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28298 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28299 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_POSIX_SIGNALS /**/
28306 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28308 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28309 { { $as_echo "$as_me:$LINENO: error:
28310 Thread-safety requires POSIX signals, which are not supported by this
28311 operating system; use --disable-thread-safety to disable thread safety." >&5
28312 $as_echo "$as_me: error:
28313 Thread-safety requires POSIX signals, which are not supported by this
28314 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28315 { (exit 1); exit 1; }; }
28319 # SunOS doesn't handle negative byte comparisons properly with +/- return
28320 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28321 $as_echo_n "checking for working memcmp... " >&6; }
28322 if test "${ac_cv_func_memcmp_working+set}" = set; then
28323 $as_echo_n "(cached) " >&6
28325 if test "$cross_compiling" = yes; then
28326 ac_cv_func_memcmp_working=no
28328 cat >conftest.$ac_ext <<_ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h. */
28334 $ac_includes_default
28339 /* Some versions of memcmp are not 8-bit clean. */
28340 char c0 = '\100', c1 = '\200', c2 = '\201';
28341 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28344 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28345 or more and with at least one buffer not starting on a 4-byte boundary.
28346 William Lewis provided this test program. */
28351 for (i = 0; i < 4; i++)
28355 strcpy (a, "--------01111111");
28356 strcpy (b, "--------10000000");
28357 if (memcmp (a, b, 16) >= 0)
28367 rm -f conftest$ac_exeext
28368 if { (ac_try="$ac_link"
28369 case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28374 $as_echo "$ac_try_echo") >&5
28375 (eval "$ac_link") 2>&5
28377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28379 { (case "(($ac_try" in
28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28384 $as_echo "$ac_try_echo") >&5
28385 (eval "$ac_try") 2>&5
28387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; }; then
28389 ac_cv_func_memcmp_working=yes
28391 $as_echo "$as_me: program exited with status $ac_status" >&5
28392 $as_echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28395 ( exit $ac_status )
28396 ac_cv_func_memcmp_working=no
28398 rm -rf conftest.dSYM
28399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28405 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28406 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28407 *" memcmp.$ac_objext "* ) ;;
28408 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28415 # Select semaphore implementation type.
28416 if test "$PORTNAME" != "win32"; then
28417 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28419 cat >>confdefs.h <<\_ACEOF
28420 #define USE_NAMED_POSIX_SEMAPHORES 1
28423 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28425 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28427 cat >>confdefs.h <<\_ACEOF
28428 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28431 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28434 cat >>confdefs.h <<\_ACEOF
28435 #define USE_SYSV_SEMAPHORES 1
28438 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28443 cat >>confdefs.h <<\_ACEOF
28444 #define USE_WIN32_SEMAPHORES 1
28447 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28451 # Select shared-memory implementation type.
28452 if test "$PORTNAME" != "win32"; then
28454 cat >>confdefs.h <<\_ACEOF
28455 #define USE_SYSV_SHARED_MEMORY 1
28458 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28461 cat >>confdefs.h <<\_ACEOF
28462 #define USE_WIN32_SHARED_MEMORY 1
28465 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28468 # Select latch implementation type.
28469 if test "$PORTNAME" != "win32"; then
28470 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28472 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28475 # If not set in template file, set bytes to use libc memset()
28476 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28477 MEMSET_LOOP_LIMIT=1024
28480 cat >>confdefs.h <<_ACEOF
28481 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28486 if test "$enable_nls" = yes ; then
28488 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28489 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28490 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28491 $as_echo_n "(cached) " >&6
28493 ac_func_search_save_LIBS=$LIBS
28494 cat >conftest.$ac_ext <<_ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h. */
28501 /* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
28507 char bind_textdomain_codeset ();
28511 return bind_textdomain_codeset ();
28516 for ac_lib in '' intl; do
28517 if test -z "$ac_lib"; then
28518 ac_res="none required"
28521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28530 $as_echo "$ac_try_echo") >&5
28531 (eval "$ac_link") 2>conftest.er1
28533 grep -v '^ *+' conftest.er1 >conftest.err
28535 cat conftest.err >&5
28536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && {
28538 test -z "$ac_c_werror_flag" ||
28539 test ! -s conftest.err
28540 } && test -s conftest$ac_exeext && {
28541 test "$cross_compiling" = yes ||
28542 $as_test_x conftest$ac_exeext
28544 ac_cv_search_bind_textdomain_codeset=$ac_res
28546 $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28552 rm -rf conftest.dSYM
28553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28555 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28559 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28562 ac_cv_search_bind_textdomain_codeset=no
28564 rm conftest.$ac_ext
28565 LIBS=$ac_func_search_save_LIBS
28567 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28568 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28569 ac_res=$ac_cv_search_bind_textdomain_codeset
28570 if test "$ac_res" != no; then
28571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28574 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28575 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28576 { (exit 1); exit 1; }; }
28579 if test "${ac_cv_header_libintl_h+set}" = set; then
28580 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28581 $as_echo_n "checking for libintl.h... " >&6; }
28582 if test "${ac_cv_header_libintl_h+set}" = set; then
28583 $as_echo_n "(cached) " >&6
28585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28586 $as_echo "$ac_cv_header_libintl_h" >&6; }
28588 # Is the header compilable?
28589 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28590 $as_echo_n "checking libintl.h usability... " >&6; }
28591 cat >conftest.$ac_ext <<_ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 $ac_includes_default
28598 #include <libintl.h>
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608 (eval "$ac_compile") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } && {
28615 test -z "$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28617 } && test -s conftest.$ac_objext; then
28618 ac_header_compiler=yes
28620 $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_header_compiler=no
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28628 $as_echo "$ac_header_compiler" >&6; }
28630 # Is the header present?
28631 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28632 $as_echo_n "checking libintl.h presence... " >&6; }
28633 cat >conftest.$ac_ext <<_ACEOF
28636 cat confdefs.h >>conftest.$ac_ext
28637 cat >>conftest.$ac_ext <<_ACEOF
28638 /* end confdefs.h. */
28639 #include <libintl.h>
28641 if { (ac_try="$ac_cpp conftest.$ac_ext"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28647 $as_echo "$ac_try_echo") >&5
28648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28650 grep -v '^ *+' conftest.er1 >conftest.err
28652 cat conftest.err >&5
28653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } >/dev/null && {
28655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28656 test ! -s conftest.err
28658 ac_header_preproc=yes
28660 $as_echo "$as_me: failed program was:" >&5
28661 sed 's/^/| /' conftest.$ac_ext >&5
28663 ac_header_preproc=no
28666 rm -f conftest.err conftest.$ac_ext
28667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28668 $as_echo "$ac_header_preproc" >&6; }
28670 # So? What about this header?
28671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28673 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28674 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28675 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28676 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28677 ac_header_preproc=yes
28680 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28681 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28682 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28683 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28684 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28685 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28686 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28687 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28688 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28689 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28690 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28691 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28693 ## ---------------------------------------- ##
28694 ## Report this to pgsql-bugs@postgresql.org ##
28695 ## ---------------------------------------- ##
28697 ) | sed "s/^/$as_me: WARNING: /" >&2
28700 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28701 $as_echo_n "checking for libintl.h... " >&6; }
28702 if test "${ac_cv_header_libintl_h+set}" = set; then
28703 $as_echo_n "(cached) " >&6
28705 ac_cv_header_libintl_h=$ac_header_preproc
28707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28708 $as_echo "$ac_cv_header_libintl_h" >&6; }
28711 if test "x$ac_cv_header_libintl_h" = x""yes; then
28714 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28715 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28716 { (exit 1); exit 1; }; }
28720 for ac_prog in msgfmt
28722 # Extract the first word of "$ac_prog", so it can be a program name with args.
28723 set dummy $ac_prog; ac_word=$2
28724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28725 $as_echo_n "checking for $ac_word... " >&6; }
28726 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28727 $as_echo_n "(cached) " >&6
28729 if test -n "$MSGFMT"; then
28730 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28733 for as_dir in $PATH
28736 test -z "$as_dir" && as_dir=.
28737 for ac_exec_ext in '' $ac_executable_extensions; do
28738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28739 ac_cv_prog_MSGFMT="$ac_prog"
28740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28749 MSGFMT=$ac_cv_prog_MSGFMT
28750 if test -n "$MSGFMT"; then
28751 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28752 $as_echo "$MSGFMT" >&6; }
28754 { $as_echo "$as_me:$LINENO: result: no" >&5
28755 $as_echo "no" >&6; }
28759 test -n "$MSGFMT" && break
28762 if test -z "$MSGFMT"; then
28763 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28764 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28765 { (exit 1); exit 1; }; }
28767 for ac_prog in msgmerge
28769 # Extract the first word of "$ac_prog", so it can be a program name with args.
28770 set dummy $ac_prog; ac_word=$2
28771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28772 $as_echo_n "checking for $ac_word... " >&6; }
28773 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28774 $as_echo_n "(cached) " >&6
28776 if test -n "$MSGMERGE"; then
28777 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28780 for as_dir in $PATH
28783 test -z "$as_dir" && as_dir=.
28784 for ac_exec_ext in '' $ac_executable_extensions; do
28785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28786 ac_cv_prog_MSGMERGE="$ac_prog"
28787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28796 MSGMERGE=$ac_cv_prog_MSGMERGE
28797 if test -n "$MSGMERGE"; then
28798 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28799 $as_echo "$MSGMERGE" >&6; }
28801 { $as_echo "$as_me:$LINENO: result: no" >&5
28802 $as_echo "no" >&6; }
28806 test -n "$MSGMERGE" && break
28809 for ac_prog in xgettext
28811 # Extract the first word of "$ac_prog", so it can be a program name with args.
28812 set dummy $ac_prog; ac_word=$2
28813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28814 $as_echo_n "checking for $ac_word... " >&6; }
28815 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28816 $as_echo_n "(cached) " >&6
28818 if test -n "$XGETTEXT"; then
28819 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28822 for as_dir in $PATH
28825 test -z "$as_dir" && as_dir=.
28826 for ac_exec_ext in '' $ac_executable_extensions; do
28827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28828 ac_cv_prog_XGETTEXT="$ac_prog"
28829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28838 XGETTEXT=$ac_cv_prog_XGETTEXT
28839 if test -n "$XGETTEXT"; then
28840 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28841 $as_echo "$XGETTEXT" >&6; }
28843 { $as_echo "$as_me:$LINENO: result: no" >&5
28844 $as_echo "no" >&6; }
28848 test -n "$XGETTEXT" && break
28854 # Check for Tcl configuration script tclConfig.sh
28855 if test "$with_tcl" = yes; then
28856 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28858 # Extract the first word of "$ac_prog", so it can be a program name with args.
28859 set dummy $ac_prog; ac_word=$2
28860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28861 $as_echo_n "checking for $ac_word... " >&6; }
28862 if test "${ac_cv_path_TCLSH+set}" = set; then
28863 $as_echo_n "(cached) " >&6
28867 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28871 for as_dir in $PATH
28874 test -z "$as_dir" && as_dir=.
28875 for ac_exec_ext in '' $ac_executable_extensions; do
28876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28877 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28888 TCLSH=$ac_cv_path_TCLSH
28889 if test -n "$TCLSH"; then
28890 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28891 $as_echo "$TCLSH" >&6; }
28893 { $as_echo "$as_me:$LINENO: result: no" >&5
28894 $as_echo "no" >&6; }
28898 test -n "$TCLSH" && break
28901 if test x"$TCLSH" = x""; then
28902 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28903 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28904 { (exit 1); exit 1; }; }
28907 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28908 $as_echo_n "checking for tclConfig.sh... " >&6; }
28909 # Let user override test
28910 if test -z "$TCL_CONFIG_SH"; then
28911 pgac_test_dirs="$with_tclconfig"
28913 set X $pgac_test_dirs; shift
28914 if test $# -eq 0; then
28915 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28916 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28917 { (exit 1); exit 1; }; }
28918 set X `echo 'puts $auto_path' | $TCLSH`; shift
28922 if test -r "$pgac_dir/tclConfig.sh"; then
28923 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28929 if test -z "$TCL_CONFIG_SH"; then
28930 { $as_echo "$as_me:$LINENO: result: no" >&5
28931 $as_echo "no" >&6; }
28932 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28933 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28934 { (exit 1); exit 1; }; }
28936 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28937 $as_echo "$TCL_CONFIG_SH" >&6; }
28943 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28944 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28945 eval TCL_LIBS=\"$TCL_LIBS\"
28946 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28947 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28949 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28950 ac_save_CPPFLAGS=$CPPFLAGS
28951 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28952 if test "${ac_cv_header_tcl_h+set}" = set; then
28953 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28954 $as_echo_n "checking for tcl.h... " >&6; }
28955 if test "${ac_cv_header_tcl_h+set}" = set; then
28956 $as_echo_n "(cached) " >&6
28958 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28959 $as_echo "$ac_cv_header_tcl_h" >&6; }
28961 # Is the header compilable?
28962 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28963 $as_echo_n "checking tcl.h usability... " >&6; }
28964 cat >conftest.$ac_ext <<_ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h. */
28970 $ac_includes_default
28973 rm -f conftest.$ac_objext
28974 if { (ac_try="$ac_compile"
28975 case "(($ac_try" in
28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977 *) ac_try_echo=$ac_try;;
28979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28980 $as_echo "$ac_try_echo") >&5
28981 (eval "$ac_compile") 2>conftest.er1
28983 grep -v '^ *+' conftest.er1 >conftest.err
28985 cat conftest.err >&5
28986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } && {
28988 test -z "$ac_c_werror_flag" ||
28989 test ! -s conftest.err
28990 } && test -s conftest.$ac_objext; then
28991 ac_header_compiler=yes
28993 $as_echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28996 ac_header_compiler=no
28999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29001 $as_echo "$ac_header_compiler" >&6; }
29003 # Is the header present?
29004 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29005 $as_echo_n "checking tcl.h presence... " >&6; }
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29014 if { (ac_try="$ac_cpp conftest.$ac_ext"
29015 case "(($ac_try" in
29016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017 *) ac_try_echo=$ac_try;;
29019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29020 $as_echo "$ac_try_echo") >&5
29021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29023 grep -v '^ *+' conftest.er1 >conftest.err
29025 cat conftest.err >&5
29026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); } >/dev/null && {
29028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29029 test ! -s conftest.err
29031 ac_header_preproc=yes
29033 $as_echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29036 ac_header_preproc=no
29039 rm -f conftest.err conftest.$ac_ext
29040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29041 $as_echo "$ac_header_preproc" >&6; }
29043 # So? What about this header?
29044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29047 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29048 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29049 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29050 ac_header_preproc=yes
29053 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29054 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29055 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29056 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29057 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29058 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29059 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29060 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29061 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29062 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29063 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29064 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29066 ## ---------------------------------------- ##
29067 ## Report this to pgsql-bugs@postgresql.org ##
29068 ## ---------------------------------------- ##
29070 ) | sed "s/^/$as_me: WARNING: /" >&2
29073 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29074 $as_echo_n "checking for tcl.h... " >&6; }
29075 if test "${ac_cv_header_tcl_h+set}" = set; then
29076 $as_echo_n "(cached) " >&6
29078 ac_cv_header_tcl_h=$ac_header_preproc
29080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29081 $as_echo "$ac_cv_header_tcl_h" >&6; }
29084 if test "x$ac_cv_header_tcl_h" = x""yes; then
29087 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29088 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29089 { (exit 1); exit 1; }; }
29093 CPPFLAGS=$ac_save_CPPFLAGS
29096 # check for <Python.h>
29097 if test "$with_python" = yes; then
29098 ac_save_CPPFLAGS=$CPPFLAGS
29099 CPPFLAGS="$python_includespec $CPPFLAGS"
29100 if test "${ac_cv_header_Python_h+set}" = set; then
29101 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29102 $as_echo_n "checking for Python.h... " >&6; }
29103 if test "${ac_cv_header_Python_h+set}" = set; then
29104 $as_echo_n "(cached) " >&6
29106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29107 $as_echo "$ac_cv_header_Python_h" >&6; }
29109 # Is the header compilable?
29110 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29111 $as_echo_n "checking Python.h usability... " >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <Python.h>
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29128 $as_echo "$ac_try_echo") >&5
29129 (eval "$ac_compile") 2>conftest.er1
29131 grep -v '^ *+' conftest.er1 >conftest.err
29133 cat conftest.err >&5
29134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); } && {
29136 test -z "$ac_c_werror_flag" ||
29137 test ! -s conftest.err
29138 } && test -s conftest.$ac_objext; then
29139 ac_header_compiler=yes
29141 $as_echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_header_compiler=no
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149 $as_echo "$ac_header_compiler" >&6; }
29151 # Is the header present?
29152 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29153 $as_echo_n "checking Python.h presence... " >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 #include <Python.h>
29162 if { (ac_try="$ac_cpp conftest.$ac_ext"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29168 $as_echo "$ac_try_echo") >&5
29169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } >/dev/null && {
29176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29177 test ! -s conftest.err
29179 ac_header_preproc=yes
29181 $as_echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_header_preproc=no
29187 rm -f conftest.err conftest.$ac_ext
29188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29189 $as_echo "$ac_header_preproc" >&6; }
29191 # So? What about this header?
29192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29194 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29195 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29196 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29197 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29198 ac_header_preproc=yes
29201 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29202 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29203 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29204 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29205 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29206 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29207 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29208 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29209 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29210 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29211 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29212 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29214 ## ---------------------------------------- ##
29215 ## Report this to pgsql-bugs@postgresql.org ##
29216 ## ---------------------------------------- ##
29218 ) | sed "s/^/$as_me: WARNING: /" >&2
29221 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29222 $as_echo_n "checking for Python.h... " >&6; }
29223 if test "${ac_cv_header_Python_h+set}" = set; then
29224 $as_echo_n "(cached) " >&6
29226 ac_cv_header_Python_h=$ac_header_preproc
29228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29229 $as_echo "$ac_cv_header_Python_h" >&6; }
29232 if test "x$ac_cv_header_Python_h" = x""yes; then
29235 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29236 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29237 { (exit 1); exit 1; }; }
29241 CPPFLAGS=$ac_save_CPPFLAGS
29245 # Check for DocBook and tools
29247 for ac_prog in onsgmls nsgmls
29249 # Extract the first word of "$ac_prog", so it can be a program name with args.
29250 set dummy $ac_prog; ac_word=$2
29251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29252 $as_echo_n "checking for $ac_word... " >&6; }
29253 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29254 $as_echo_n "(cached) " >&6
29256 if test -n "$NSGMLS"; then
29257 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29260 for as_dir in $PATH
29263 test -z "$as_dir" && as_dir=.
29264 for ac_exec_ext in '' $ac_executable_extensions; do
29265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29266 ac_cv_prog_NSGMLS="$ac_prog"
29267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29276 NSGMLS=$ac_cv_prog_NSGMLS
29277 if test -n "$NSGMLS"; then
29278 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29279 $as_echo "$NSGMLS" >&6; }
29281 { $as_echo "$as_me:$LINENO: result: no" >&5
29282 $as_echo "no" >&6; }
29286 test -n "$NSGMLS" && break
29289 for ac_prog in openjade jade
29291 # Extract the first word of "$ac_prog", so it can be a program name with args.
29292 set dummy $ac_prog; ac_word=$2
29293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29294 $as_echo_n "checking for $ac_word... " >&6; }
29295 if test "${ac_cv_prog_JADE+set}" = set; then
29296 $as_echo_n "(cached) " >&6
29298 if test -n "$JADE"; then
29299 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29302 for as_dir in $PATH
29305 test -z "$as_dir" && as_dir=.
29306 for ac_exec_ext in '' $ac_executable_extensions; do
29307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29308 ac_cv_prog_JADE="$ac_prog"
29309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29318 JADE=$ac_cv_prog_JADE
29319 if test -n "$JADE"; then
29320 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29321 $as_echo "$JADE" >&6; }
29323 { $as_echo "$as_me:$LINENO: result: no" >&5
29324 $as_echo "no" >&6; }
29328 test -n "$JADE" && break
29332 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29333 $as_echo_n "checking for DocBook V4.2... " >&6; }
29334 if test "${pgac_cv_check_docbook+set}" = set; then
29335 $as_echo_n "(cached) " >&6
29337 cat >conftest.sgml <<EOF
29338 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29340 <title>test</title>
29342 <title>random</title>
29344 <title>testsect</title>
29351 pgac_cv_check_docbook=no
29353 if test -n "$NSGMLS"; then
29354 $NSGMLS -s conftest.sgml 1>&5 2>&1
29355 if test $? -eq 0; then
29356 pgac_cv_check_docbook=yes
29359 rm -f conftest.sgml
29361 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29362 $as_echo "$pgac_cv_check_docbook" >&6; }
29364 have_docbook=$pgac_cv_check_docbook
29367 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29368 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29369 if test "${pgac_cv_path_stylesheets+set}" = set; then
29370 $as_echo_n "(cached) " >&6
29372 if test -n "$DOCBOOKSTYLE"; then
29373 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29375 for pgac_prefix in /usr /usr/local /opt /sw; do
29376 for pgac_infix in share lib; do
29377 for pgac_postfix in \
29378 sgml/stylesheets/nwalsh-modular \
29379 sgml/stylesheets/docbook \
29380 sgml/stylesheets/dsssl/docbook \
29381 sgml/docbook-dsssl \
29382 sgml/docbook/dsssl/modular \
29383 sgml/docbook/stylesheet/dsssl/modular \
29384 sgml/docbook/dsssl-stylesheets \
29385 sgml/dsssl/docbook-dsssl-nwalsh
29387 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29388 if test -r "$pgac_candidate/html/docbook.dsl" \
29389 && test -r "$pgac_candidate/print/docbook.dsl"
29391 pgac_cv_path_stylesheets=$pgac_candidate
29400 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29402 if test -n "$DOCBOOKSTYLE"; then
29403 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29404 $as_echo "$DOCBOOKSTYLE" >&6; }
29406 { $as_echo "$as_me:$LINENO: result: no" >&5
29407 $as_echo "no" >&6; }
29409 if test -n "$DOCBOOKSTYLE"; then
29410 for ac_prog in collateindex.pl
29412 # Extract the first word of "$ac_prog", so it can be a program name with args.
29413 set dummy $ac_prog; ac_word=$2
29414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29415 $as_echo_n "checking for $ac_word... " >&6; }
29416 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29417 $as_echo_n "(cached) " >&6
29419 case $COLLATEINDEX in
29421 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29425 for as_dir in $DOCBOOKSTYLE/bin $PATH
29428 test -z "$as_dir" && as_dir=.
29429 for ac_exec_ext in '' $ac_executable_extensions; do
29430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29431 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29442 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29443 if test -n "$COLLATEINDEX"; then
29444 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29445 $as_echo "$COLLATEINDEX" >&6; }
29447 { $as_echo "$as_me:$LINENO: result: no" >&5
29448 $as_echo "no" >&6; }
29452 test -n "$COLLATEINDEX" && break
29456 for ac_prog in collateindex.pl
29458 # Extract the first word of "$ac_prog", so it can be a program name with args.
29459 set dummy $ac_prog; ac_word=$2
29460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29461 $as_echo_n "checking for $ac_word... " >&6; }
29462 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29463 $as_echo_n "(cached) " >&6
29465 case $COLLATEINDEX in
29467 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29471 for as_dir in $PATH
29474 test -z "$as_dir" && as_dir=.
29475 for ac_exec_ext in '' $ac_executable_extensions; do
29476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29477 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29488 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29489 if test -n "$COLLATEINDEX"; then
29490 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29491 $as_echo "$COLLATEINDEX" >&6; }
29493 { $as_echo "$as_me:$LINENO: result: no" >&5
29494 $as_echo "no" >&6; }
29498 test -n "$COLLATEINDEX" && break
29502 for ac_prog in xsltproc
29504 # Extract the first word of "$ac_prog", so it can be a program name with args.
29505 set dummy $ac_prog; ac_word=$2
29506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29507 $as_echo_n "checking for $ac_word... " >&6; }
29508 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29509 $as_echo_n "(cached) " >&6
29511 if test -n "$XSLTPROC"; then
29512 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29515 for as_dir in $PATH
29518 test -z "$as_dir" && as_dir=.
29519 for ac_exec_ext in '' $ac_executable_extensions; do
29520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29521 ac_cv_prog_XSLTPROC="$ac_prog"
29522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29531 XSLTPROC=$ac_cv_prog_XSLTPROC
29532 if test -n "$XSLTPROC"; then
29533 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29534 $as_echo "$XSLTPROC" >&6; }
29536 { $as_echo "$as_me:$LINENO: result: no" >&5
29537 $as_echo "no" >&6; }
29541 test -n "$XSLTPROC" && break
29544 for ac_prog in osx sgml2xml sx
29546 # Extract the first word of "$ac_prog", so it can be a program name with args.
29547 set dummy $ac_prog; ac_word=$2
29548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29549 $as_echo_n "checking for $ac_word... " >&6; }
29550 if test "${ac_cv_prog_OSX+set}" = set; then
29551 $as_echo_n "(cached) " >&6
29553 if test -n "$OSX"; then
29554 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557 for as_dir in $PATH
29560 test -z "$as_dir" && as_dir=.
29561 for ac_exec_ext in '' $ac_executable_extensions; do
29562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29563 ac_cv_prog_OSX="$ac_prog"
29564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29573 OSX=$ac_cv_prog_OSX
29574 if test -n "$OSX"; then
29575 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29576 $as_echo "$OSX" >&6; }
29578 { $as_echo "$as_me:$LINENO: result: no" >&5
29579 $as_echo "no" >&6; }
29583 test -n "$OSX" && break
29589 # We have to run the thread test near the end so we have all our symbols
29590 # defined. Cross compiling throws a warning.
29592 if test "$enable_thread_safety" = yes; then
29593 if test "$PORTNAME" != "win32"
29595 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29596 $as_echo_n "checking thread safety of required library functions... " >&6; }
29600 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29601 LIBS="$LIBS $PTHREAD_LIBS"
29602 if test "$cross_compiling" = yes; then
29603 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29604 $as_echo "maybe" >&6; }
29605 { $as_echo "$as_me:$LINENO: WARNING:
29606 *** Skipping thread test program because of cross-compile build.
29607 *** Run the program in src/test/thread on the target machine.
29609 $as_echo "$as_me: WARNING:
29610 *** Skipping thread test program because of cross-compile build.
29611 *** Run the program in src/test/thread on the target machine.
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29620 #include "$srcdir/src/test/thread/thread_test.c"
29622 rm -f conftest$ac_exeext
29623 if { (ac_try="$ac_link"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 $as_echo "$ac_try_echo") >&5
29630 (eval "$ac_link") 2>&5
29632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634 { (case "(($ac_try" in
29635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636 *) ac_try_echo=$ac_try;;
29638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29639 $as_echo "$ac_try_echo") >&5
29640 (eval "$ac_try") 2>&5
29642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644 { $as_echo "$as_me:$LINENO: result: yes" >&5
29645 $as_echo "yes" >&6; }
29647 $as_echo "$as_me: program exited with status $ac_status" >&5
29648 $as_echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651 ( exit $ac_status )
29652 { $as_echo "$as_me:$LINENO: result: no" >&5
29653 $as_echo "no" >&6; }
29654 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29655 This platform is not thread-safe. Check the file 'config.log' or compile
29656 and run src/test/thread/thread_test for the exact reason.
29657 Use --disable-thread-safety to disable thread safety." >&5
29658 $as_echo "$as_me: error: thread test program failed
29659 This platform is not thread-safe. Check the file 'config.log' or compile
29660 and run src/test/thread/thread_test for the exact reason.
29661 Use --disable-thread-safety to disable thread safety." >&2;}
29662 { (exit 1); exit 1; }; }
29664 rm -rf conftest.dSYM
29665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29672 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29673 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29677 # If compiler will take -Wl,--as-needed (or various platform-specific
29678 # spellings thereof) then add that to LDFLAGS. This is much easier than
29679 # trying to filter LIBS to the minimum for each executable.
29680 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29681 # libreadline; therefore we postpone testing it until we know what library
29682 # dependencies readline has. The test code will try to link with $LIBS.
29683 if test "$with_readline" = yes; then
29684 link_test_func=readline
29686 link_test_func=exit
29689 if test "$PORTNAME" = "darwin"; then
29690 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29691 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29692 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29693 $as_echo_n "(cached) " >&6
29695 pgac_save_LDFLAGS=$LDFLAGS
29696 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29697 if test "$cross_compiling" = yes; then
29698 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29700 cat >conftest.$ac_ext <<_ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h. */
29706 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29715 rm -f conftest$ac_exeext
29716 if { (ac_try="$ac_link"
29717 case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29722 $as_echo "$ac_try_echo") >&5
29723 (eval "$ac_link") 2>&5
29725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29727 { (case "(($ac_try" in
29728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29729 *) ac_try_echo=$ac_try;;
29731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29732 $as_echo "$ac_try_echo") >&5
29733 (eval "$ac_try") 2>&5
29735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29739 $as_echo "$as_me: program exited with status $ac_status" >&5
29740 $as_echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29743 ( exit $ac_status )
29744 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29746 rm -rf conftest.dSYM
29747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29751 LDFLAGS="$pgac_save_LDFLAGS"
29753 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29754 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29755 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29756 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29759 elif test "$PORTNAME" = "openbsd"; then
29760 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29761 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29762 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29763 $as_echo_n "(cached) " >&6
29765 pgac_save_LDFLAGS=$LDFLAGS
29766 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29767 if test "$cross_compiling" = yes; then
29768 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29770 cat >conftest.$ac_ext <<_ACEOF
29773 cat confdefs.h >>conftest.$ac_ext
29774 cat >>conftest.$ac_ext <<_ACEOF
29775 /* end confdefs.h. */
29776 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29785 rm -f conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29792 $as_echo "$ac_try_echo") >&5
29793 (eval "$ac_link") 2>&5
29795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29802 $as_echo "$ac_try_echo") >&5
29803 (eval "$ac_try") 2>&5
29805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); }; }; then
29807 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29809 $as_echo "$as_me: program exited with status $ac_status" >&5
29810 $as_echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 ( exit $ac_status )
29814 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29816 rm -rf conftest.dSYM
29817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29821 LDFLAGS="$pgac_save_LDFLAGS"
29823 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29824 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29825 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29826 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29830 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29831 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29832 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29833 $as_echo_n "(cached) " >&6
29835 pgac_save_LDFLAGS=$LDFLAGS
29836 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29837 if test "$cross_compiling" = yes; then
29838 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29840 cat >conftest.$ac_ext <<_ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h. */
29846 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29855 rm -f conftest$ac_exeext
29856 if { (ac_try="$ac_link"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29862 $as_echo "$ac_try_echo") >&5
29863 (eval "$ac_link") 2>&5
29865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29867 { (case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29872 $as_echo "$ac_try_echo") >&5
29873 (eval "$ac_try") 2>&5
29875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); }; }; then
29877 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29879 $as_echo "$as_me: program exited with status $ac_status" >&5
29880 $as_echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ( exit $ac_status )
29884 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29886 rm -rf conftest.dSYM
29887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29891 LDFLAGS="$pgac_save_LDFLAGS"
29893 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29894 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29895 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29896 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29901 # Create compiler version string
29902 if test x"$GCC" = x"yes" ; then
29903 cc_string=`${CC} --version | sed q`
29904 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29905 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29906 cc_string=`${CC} -V 2>&1 | sed q`
29912 cat >>confdefs.h <<_ACEOF
29913 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29917 # Supply a numeric version string for use by 3rd party add-ons
29918 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29919 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29921 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29923 cat >>confdefs.h <<_ACEOF
29924 #define PG_VERSION_NUM $PG_VERSION_NUM
29929 # Begin output steps
29931 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29932 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29933 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29934 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29935 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29936 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29937 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29938 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29940 # prepare build tree if outside source tree
29941 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29942 # Note 2: /bin/pwd might be better than shell's built-in at getting
29943 # a symlink-free name.
29944 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29948 if test "$no_create" != yes; then
29949 $as_echo_n "preparing build tree... " >&6
29950 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29951 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29952 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29953 $as_echo "$as_me: error: failed" >&2;}
29954 { (exit 1); exit 1; }; }
29955 { $as_echo "$as_me:$LINENO: result: done" >&5
29956 $as_echo "done" >&6; }
29962 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29965 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}"
29968 if test "$PORTNAME" = "win32"; then
29969 ac_config_commands="$ac_config_commands check_win32_symlinks"
29973 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29976 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29979 cat >confcache <<\_ACEOF
29980 # This file is a shell script that caches the results of configure
29981 # tests run on this system so they can be shared between configure
29982 # scripts and configure runs, see configure's option --config-cache.
29983 # It is not useful on other systems. If it contains results you don't
29984 # want to keep, you may remove or edit it.
29986 # config.status only pays attention to the cache file if you give it
29987 # the --recheck option to rerun configure.
29989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29991 # following values.
29995 # The following way of writing the cache mishandles newlines in values,
29996 # but we know of no workaround that is simple, portable, and efficient.
29997 # So, we kill variables containing newlines.
29998 # Ultrix sh set writes to stderr and can't be redirected directly,
29999 # and sets the high bit in the cache file unless we assign to the vars.
30001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30002 eval ac_val=\$$ac_var
30006 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30010 _ | IFS | as_nl) ;; #(
30011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30012 *) $as_unset $ac_var ;;
30018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30019 *${as_nl}ac_space=\ *)
30020 # `set' does not quote correctly, so add quotes (double-quote
30021 # substitution turns \\\\ into \\, and sed turns \\ into \).
30024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30027 # `set' quotes correctly as required by POSIX, so do not add quotes.
30028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30042 if test -w "$cache_file"; then
30043 test "x$cache_file" != "x/dev/null" &&
30044 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30045 $as_echo "$as_me: updating cache $cache_file" >&6;}
30046 cat confcache >$cache_file
30048 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30055 # Let make expand exec_prefix.
30056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30058 DEFS=-DHAVE_CONFIG_H
30062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30063 # 1. Remove the extension, and $U if already installed.
30064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30067 # will be set to the directory where LIBOBJS objects are built.
30068 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30069 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30071 LIBOBJS=$ac_libobjs
30073 LTLIBOBJS=$ac_ltlibobjs
30078 : ${CONFIG_STATUS=./config.status}
30080 ac_clean_files_save=$ac_clean_files
30081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30082 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30083 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30084 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30086 # Generated by $as_me.
30087 # Run this file to recreate the current configuration.
30088 # Compiler output produced by configure, useful for debugging
30089 # configure, is in config.log if it exists.
30092 ac_cs_recheck=false
30094 SHELL=\${CONFIG_SHELL-$SHELL}
30097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30098 ## --------------------- ##
30099 ## M4sh Initialization. ##
30100 ## --------------------- ##
30102 # Be more Bourne compatible
30103 DUALCASE=1; export DUALCASE # for MKS sh
30104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30108 # is contrary to our usage. Disable this feature.
30109 alias -g '${1+"$@"}'='"$@"'
30110 setopt NO_GLOB_SUBST
30112 case `(set -o) 2>/dev/null` in
30113 *posix*) set -o posix ;;
30122 # Avoid depending upon Character Ranges.
30123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30126 as_cr_digits='0123456789'
30127 as_cr_alnum=$as_cr_Letters$as_cr_digits
30132 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30133 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30136 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30137 as_echo='printf %s\n'
30138 as_echo_n='printf %s'
30140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30142 as_echo_n='/usr/ucb/echo -n'
30144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30145 as_echo_n_body='eval
30149 expr "X$arg" : "X\\(.*\\)$as_nl";
30150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30154 export as_echo_n_body
30155 as_echo_n='sh -c $as_echo_n_body as_echo'
30157 export as_echo_body
30158 as_echo='sh -c $as_echo_body as_echo'
30161 # The user is always right.
30162 if test "${PATH_SEPARATOR+set}" != set; then
30164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30170 # Support unset when possible.
30171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30179 # We need space, tab and new line, in precisely that order. Quoting is
30180 # there to prevent editors from complaining about space-tab.
30181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30182 # splitting by setting IFS to empty value.)
30185 # Find who we are. Look in the path if we contain no directory separator.
30187 *[\\/]* ) as_myself=$0 ;;
30188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30189 for as_dir in $PATH
30192 test -z "$as_dir" && as_dir=.
30193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30199 # We did not find ourselves, most probably we were run as `sh COMMAND'
30200 # in which case we are not to be found in the path.
30201 if test "x$as_myself" = x; then
30204 if test ! -f "$as_myself"; then
30205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30206 { (exit 1); exit 1; }
30209 # Work around bugs in pre-3.0 UWIN ksh.
30210 for as_var in ENV MAIL MAILPATH
30211 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30223 # Required to use basename.
30224 if expr a : '\(a\)' >/dev/null 2>&1 &&
30225 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30232 as_basename=basename
30238 # Name of the executable.
30239 as_me=`$as_basename -- "$0" ||
30240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30241 X"$0" : 'X\(//\)$' \| \
30242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30244 sed '/^.*\/\([^/][^/]*\)\/*$/{
30263 as_lineno_1=$LINENO
30264 as_lineno_2=$LINENO
30265 test "x$as_lineno_1" != "x$as_lineno_2" &&
30266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30269 # uniformly replaced by the line number. The first 'sed' inserts a
30270 # line-number line after each line using $LINENO; the second 'sed'
30271 # does the real work. The second script uses 'N' to pair each
30272 # line-number line with the line containing $LINENO, and appends
30273 # trailing '-' during substitution so that $LINENO is not a special
30274 # case at line end.
30275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30276 # scripts with optimization help from Paolo Bonzini. Blame Lee
30277 # E. McMahon (1931-1989) for sed's syntax. :-)
30289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30292 ' >$as_me.lineno &&
30293 chmod +x "$as_me.lineno" ||
30294 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30295 { (exit 1); exit 1; }; }
30297 # Don't try to exec as it changes $[0], causing all sort of problems
30298 # (the dirname of $[0] is not the place where we might find the
30299 # original and so on. Autoconf is especially sensitive to this).
30300 . "./$as_me.lineno"
30301 # Exit status is that of the last command.
30306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30312 ECHO_C= ECHO_N= ECHO_T=
30313 case `echo -n x` in
30315 case `echo 'x\c'` in
30316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30322 if expr a : '\(a\)' >/dev/null 2>&1 &&
30323 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30329 rm -f conf$$ conf$$.exe conf$$.file
30330 if test -d conf$$.dir; then
30331 rm -f conf$$.dir/conf$$.file
30334 mkdir conf$$.dir 2>/dev/null
30336 if (echo >conf$$.file) 2>/dev/null; then
30337 if ln -s conf$$.file conf$$ 2>/dev/null; then
30339 # ... but there are two gotchas:
30340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30342 # In both cases, we have to default to `cp -p'.
30343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30345 elif ln conf$$.file conf$$ 2>/dev/null; then
30353 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30354 rmdir conf$$.dir 2>/dev/null
30356 if mkdir -p . 2>/dev/null; then
30359 test -d ./-p && rmdir ./-p
30363 if test -x / >/dev/null 2>&1; then
30364 as_test_x='test -x'
30366 if ls -dL / >/dev/null 2>&1; then
30373 if test -d "$1"; then
30379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30380 ???[sx]*):;;*)false;;esac;fi
30384 as_executable_p=$as_test_x
30386 # Sed expression to map a string onto a valid CPP name.
30387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30389 # Sed expression to map a string onto a valid variable name.
30390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30395 # Save the log message, to keep $[0] and so on meaningful, and to
30396 # report actual input values of CONFIG_FILES etc. instead of their
30397 # values after options handling.
30399 This file was extended by PostgreSQL $as_me 9.2devel, which was
30400 generated by GNU Autoconf 2.63. Invocation command line was
30402 CONFIG_FILES = $CONFIG_FILES
30403 CONFIG_HEADERS = $CONFIG_HEADERS
30404 CONFIG_LINKS = $CONFIG_LINKS
30405 CONFIG_COMMANDS = $CONFIG_COMMANDS
30408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30413 case $ac_config_files in *"
30414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30417 case $ac_config_headers in *"
30418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30423 # Files that config.status was made for.
30424 config_files="$ac_config_files"
30425 config_headers="$ac_config_headers"
30426 config_links="$ac_config_links"
30427 config_commands="$ac_config_commands"
30431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30433 \`$as_me' instantiates files from templates according to the
30434 current configuration.
30436 Usage: $0 [OPTION]... [FILE]...
30438 -h, --help print this help, then exit
30439 -V, --version print version number and configuration settings, then exit
30440 -q, --quiet, --silent
30441 do not print progress messages
30442 -d, --debug don't remove temporary files
30443 --recheck update $as_me by reconfiguring in the same conditions
30444 --file=FILE[:TEMPLATE]
30445 instantiate the configuration file FILE
30446 --header=FILE[:TEMPLATE]
30447 instantiate the configuration header FILE
30449 Configuration files:
30452 Configuration headers:
30455 Configuration links:
30458 Configuration commands:
30461 Report bugs to <bug-autoconf@gnu.org>."
30464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30466 PostgreSQL config.status 9.2devel
30467 configured by $0, generated by GNU Autoconf 2.63,
30468 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30470 Copyright (C) 2008 Free Software Foundation, Inc.
30471 This config.status script is free software; the Free Software Foundation
30472 gives unlimited permission to copy, distribute and modify it."
30478 test -n "\$AWK" || AWK=awk
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482 # The default lists apply if the user does not specify any file.
30488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30489 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30500 # Handling of the options.
30501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30503 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30504 $as_echo "$ac_cs_version"; exit ;;
30505 --debug | --debu | --deb | --de | --d | -d )
30507 --file | --fil | --fi | --f )
30510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30512 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30513 ac_need_defaults=false;;
30514 --header | --heade | --head | --hea )
30517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30519 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30520 ac_need_defaults=false;;
30522 # Conflict between --help and --header
30523 { $as_echo "$as_me: error: ambiguous option: $1
30524 Try \`$0 --help' for more information." >&2
30525 { (exit 1); exit 1; }; };;
30526 --help | --hel | -h )
30527 $as_echo "$ac_cs_usage"; exit ;;
30528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30529 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30532 # This is an error.
30533 -*) { $as_echo "$as_me: error: unrecognized option: $1
30534 Try \`$0 --help' for more information." >&2
30535 { (exit 1); exit 1; }; } ;;
30537 *) ac_config_targets="$ac_config_targets $1"
30538 ac_need_defaults=false ;;
30544 ac_configure_extra_args=
30546 if $ac_cs_silent; then
30548 ac_configure_extra_args="$ac_configure_extra_args --silent"
30552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553 if \$ac_cs_recheck; then
30554 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30556 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30557 CONFIG_SHELL='$SHELL'
30558 export CONFIG_SHELL
30563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30567 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30568 ## Running $as_me. ##
30574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30579 # Handling of arguments.
30580 for ac_config_target in $ac_config_targets
30582 case $ac_config_target in
30583 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30584 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30585 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30586 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30587 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30588 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30589 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30590 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30591 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30592 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30593 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30594 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30595 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30597 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30598 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30599 { (exit 1); exit 1; }; };;
30604 # If the user did not use the arguments to specify the items to instantiate,
30605 # then the envvar interface is used. Set only those that are not.
30606 # We use the long form for the default assignment because of an extremely
30607 # bizarre bug on SunOS 4.1.3.
30608 if $ac_need_defaults; then
30609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30610 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30611 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30615 # Have a temporary directory for convenience. Make it in the build tree
30616 # simply because there is no reason against having it here, and in addition,
30617 # creating and moving files from /tmp can sometimes cause problems.
30618 # Hook for its removal unless debugging.
30619 # Note that there is a small window in which the directory will not be cleaned:
30620 # after its creation but before its name has been assigned to `$tmp'.
30624 trap 'exit_status=$?
30625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30627 trap '{ (exit 1); exit 1; }' 1 2 13 15
30629 # Create a (secure) tmp directory for tmp files.
30632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30633 test -n "$tmp" && test -d "$tmp"
30636 tmp=./conf$$-$RANDOM
30637 (umask 077 && mkdir "$tmp")
30640 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30641 { (exit 1); exit 1; }
30644 # Set up the scripts for CONFIG_FILES section.
30645 # No need to generate them if there are no CONFIG_FILES.
30646 # This happens for instance with `./config.status config.h'.
30647 if test -n "$CONFIG_FILES"; then
30651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30655 ac_cs_awk_cr=$ac_cr
30658 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30663 echo "cat >conf$$subs.awk <<_ACEOF" &&
30664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30666 } >conf$$subs.sh ||
30667 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30668 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30669 { (exit 1); exit 1; }; }
30670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30672 for ac_last_try in false false false false false :; do
30673 . ./conf$$subs.sh ||
30674 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30675 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30676 { (exit 1); exit 1; }; }
30678 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30679 if test $ac_delim_n = $ac_delim_num; then
30681 elif $ac_last_try; then
30682 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30683 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30684 { (exit 1); exit 1; }; }
30686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30689 rm -f conf$$subs.sh
30691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30692 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30696 s/^/S["/; s/!.*/"]=/
30706 s/\(.\{148\}\).*/\1/
30708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30720 s/\(.\{148\}\).*/\1/
30722 s/["\\]/\\&/g; s/^/"/; s/$/"/
30726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30731 ' <conf$$subs.awk | sed '
30736 ' >>$CONFIG_STATUS || ac_write_fail=1
30737 rm -f conf$$subs.awk
30738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30740 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30741 for (key in S) S_is_set[key] = 1
30747 nfields = split(line, field, "@")
30749 len = length(field[1])
30750 for (i = 2; i < nfields; i++) {
30752 keylen = length(key)
30753 if (S_is_set[key]) {
30755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30756 len += length(value) + length(field[++i])
30767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30772 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30773 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30774 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30775 { (exit 1); exit 1; }; }
30778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30780 # trailing colons and then remove the whole line if VPATH becomes empty
30781 # (actually we leave an empty line to preserve line numbers).
30782 if test "x$srcdir" = x.; then
30783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30784 s/:*\$(srcdir):*/:/
30785 s/:*\${srcdir}:*/:/
30787 s/^\([^=]*=[ ]*\):*/\1/
30793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30794 fi # test -n "$CONFIG_FILES"
30796 # Set up the scripts for CONFIG_HEADERS section.
30797 # No need to generate them if there are no CONFIG_HEADERS.
30798 # This happens for instance with `./config.status Makefile'.
30799 if test -n "$CONFIG_HEADERS"; then
30800 cat >"$tmp/defines.awk" <<\_ACAWK ||
30804 # Transform confdefs.h into an awk script `defines.awk', embedded as
30805 # here-document in config.status, that substitutes the proper values into
30806 # config.h.in to produce config.h.
30808 # Create a delimiter string that does not exist in confdefs.h, to ease
30809 # handling of long lines.
30811 for ac_last_try in false false :; do
30812 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30813 if test -z "$ac_t"; then
30815 elif $ac_last_try; then
30816 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30817 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30818 { (exit 1); exit 1; }; }
30820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30824 # For the awk script, D is an array of macro values keyed by name,
30825 # likewise P contains macro parameters if any. Preserve backslash
30826 # newline sequences.
30828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30830 s/.\{148\}/&'"$ac_delim"'/g
30833 s/^[ ]*#[ ]*define[ ][ ]*/ /
30840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30847 D["\1"]=" \3\\\\\\n"\\/p
30849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30854 s/.\{148\}/&'"$ac_delim"'/g
30859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30864 ' <confdefs.h | sed '
30865 s/'"$ac_delim"'/"\\\
30866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30869 for (key in D) D_is_set[key] = 1
30872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30874 split(line, arg, " ")
30875 if (arg[1] == "#") {
30879 defundef = substr(arg[1], 2)
30882 split(mac1, mac2, "(") #)
30884 prefix = substr(line, 1, index(line, defundef) - 1)
30885 if (D_is_set[macro]) {
30886 # Preserve the white space surrounding the "#".
30887 print prefix "define", macro P[macro] D[macro]
30890 # Replace #undef with comments. This is necessary, for example,
30891 # in the case of _POSIX_SOURCE, which is predefined and required
30892 # on some systems where configure will not decide to define it.
30893 if (defundef == "undef") {
30894 print "/*", prefix defundef, macro, "*/"
30902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30903 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30904 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30905 { (exit 1); exit 1; }; }
30906 fi # test -n "$CONFIG_HEADERS"
30909 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30914 :[FHLC]) ac_mode=$ac_tag; continue;;
30916 case $ac_mode$ac_tag in
30918 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30919 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30920 { (exit 1); exit 1; }; };;
30921 :[FH]-) ac_tag=-:-;;
30922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30939 -) ac_f="$tmp/stdin";;
30940 *) # Look for the file first in the build tree, then in the source tree
30941 # (if the path is not absolute). The absolute path cannot be DOS-style,
30942 # because $ac_f cannot contain `:'.
30946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30948 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30949 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30950 { (exit 1); exit 1; }; };;
30952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30953 ac_file_inputs="$ac_file_inputs '$ac_f'"
30956 # Let's still pretend it is `configure' which instantiates (i.e., don't
30957 # use $as_me), people would be surprised to read:
30958 # /* config.h. Generated by config.status. */
30959 configure_input='Generated from '`
30960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30962 if test x"$ac_file" != x-; then
30963 configure_input="$ac_file. $configure_input"
30964 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30965 $as_echo "$as_me: creating $ac_file" >&6;}
30967 # Neutralize special characters interpreted by sed in replacement strings.
30968 case $configure_input in #(
30969 *\&* | *\|* | *\\* )
30970 ac_sed_conf_input=`$as_echo "$configure_input" |
30971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30972 *) ac_sed_conf_input=$configure_input;;
30976 *:-:* | *:-) cat >"$tmp/stdin" \
30977 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30979 { (exit 1); exit 1; }; } ;;
30984 ac_dir=`$as_dirname -- "$ac_file" ||
30985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30986 X"$ac_file" : 'X\(//\)[^/]' \| \
30987 X"$ac_file" : 'X\(//\)$' \| \
30988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30989 $as_echo X"$ac_file" |
30990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30994 /^X\(\/\/\)[^/].*/{
31009 -*) as_dir=./$as_dir;;
31011 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31016 *) as_qdir=$as_dir;;
31018 as_dirs="'$as_qdir' $as_dirs"
31019 as_dir=`$as_dirname -- "$as_dir" ||
31020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31021 X"$as_dir" : 'X\(//\)[^/]' \| \
31022 X"$as_dir" : 'X\(//\)$' \| \
31023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31024 $as_echo X"$as_dir" |
31025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31029 /^X\(\/\/\)[^/].*/{
31042 test -d "$as_dir" && break
31044 test -z "$as_dirs" || eval "mkdir $as_dirs"
31045 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31046 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31047 { (exit 1); exit 1; }; }; }
31051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31054 # A ".." for each directory in $ac_dir_suffix.
31055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31056 case $ac_top_builddir_sub in
31057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31061 ac_abs_top_builddir=$ac_pwd
31062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31063 # for backward compatibility:
31064 ac_top_builddir=$ac_top_build_prefix
31067 .) # We are building in place.
31069 ac_top_srcdir=$ac_top_builddir_sub
31070 ac_abs_top_srcdir=$ac_pwd ;;
31071 [\\/]* | ?:[\\/]* ) # Absolute name.
31072 ac_srcdir=$srcdir$ac_dir_suffix;
31073 ac_top_srcdir=$srcdir
31074 ac_abs_top_srcdir=$srcdir ;;
31075 *) # Relative name.
31076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31077 ac_top_srcdir=$ac_top_build_prefix$srcdir
31078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31089 ac_MKDIR_P=$MKDIR_P
31091 [\\/$]* | ?:[\\/]* ) ;;
31092 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31097 # If the template does not know about datarootdir, expand it.
31098 # FIXME: This hack should be removed a few years after 2.60.
31099 ac_datarootdir_hack=; ac_datarootdir_seen=
31112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31113 *datarootdir*) ac_datarootdir_seen=yes;;
31114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31115 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31119 ac_datarootdir_hack='
31120 s&@datadir@&$datadir&g
31121 s&@docdir@&$docdir&g
31122 s&@infodir@&$infodir&g
31123 s&@localedir@&$localedir&g
31124 s&@mandir@&$mandir&g
31125 s&\\\${datarootdir}&$datarootdir&g' ;;
31129 # Neutralize VPATH when `$srcdir' = `.'.
31130 # Shell code in configure.ac might set extrasub.
31131 # FIXME: do we really want to maintain this feature?
31132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31133 ac_sed_extra="$ac_vpsub
31136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31139 s|@configure_input@|$ac_sed_conf_input|;t t
31140 s&@top_builddir@&$ac_top_builddir_sub&;t t
31141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31142 s&@srcdir@&$ac_srcdir&;t t
31143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31144 s&@top_srcdir@&$ac_top_srcdir&;t t
31145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31146 s&@builddir@&$ac_builddir&;t t
31147 s&@abs_builddir@&$ac_abs_builddir&;t t
31148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31150 $ac_datarootdir_hack
31152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31155 { (exit 1); exit 1; }; }
31157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31160 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31161 which seems to be undefined. Please make sure it is defined." >&5
31162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31163 which seems to be undefined. Please make sure it is defined." >&2;}
31167 -) cat "$tmp/out" && rm -f "$tmp/out";;
31168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31170 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31171 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31172 { (exit 1); exit 1; }; }
31178 if test x"$ac_file" != x-; then
31180 $as_echo "/* $configure_input */" \
31181 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31182 } >"$tmp/config.h" \
31183 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31184 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31185 { (exit 1); exit 1; }; }
31186 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31187 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31191 mv "$tmp/config.h" "$ac_file" \
31192 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31193 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31194 { (exit 1); exit 1; }; }
31197 $as_echo "/* $configure_input */" \
31198 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31199 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31200 $as_echo "$as_me: error: could not create -" >&2;}
31201 { (exit 1); exit 1; }; }
31209 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31212 # Prefer the file from the source tree if names are identical.
31213 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31214 ac_source=$srcdir/$ac_source
31217 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31218 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31220 if test ! -r "$ac_source"; then
31221 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31222 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31223 { (exit 1); exit 1; }; }
31227 # Try a relative symlink, then a hard link, then a copy.
31229 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31230 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31232 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31233 ln "$ac_source" "$ac_file" 2>/dev/null ||
31234 cp -p "$ac_source" "$ac_file" ||
31235 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31236 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31237 { (exit 1); exit 1; }; }
31240 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31241 $as_echo "$as_me: executing $ac_file commands" >&6;}
31246 case $ac_file$ac_mode in
31247 "check_win32_symlinks":C)
31248 # Links sometimes fail undetected on Mingw -
31249 # so here we detect it and warn the user
31250 for FILE in $CONFIG_LINKS
31252 # test -e works for symlinks in the MinGW console
31253 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31254 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31257 "src/include/pg_config.h":H)
31258 # Update timestamp for pg_config.h (see Makefile.global)
31259 echo >src/include/stamp-h
31261 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31267 { (exit 0); exit 0; }
31269 chmod +x $CONFIG_STATUS
31270 ac_clean_files=$ac_clean_files_save
31272 test $ac_write_fail = 0 ||
31273 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31274 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31275 { (exit 1); exit 1; }; }
31278 # configure is writing to config.log, and then calls config.status.
31279 # config.status does its own redirection, appending to config.log.
31280 # Unfortunately, on DOS this fails, as config.log is still kept open
31281 # by configure, so config.status won't be able to write to it; its
31282 # output is simply discarded. So we exec the FD to /dev/null,
31283 # effectively closing config.log, so it can be properly (re)opened and
31284 # appended to by config.status. When coming back to configure, we
31285 # need to make the FD available again.
31286 if test "$no_create" != yes; then
31288 ac_config_status_args=
31289 test "$silent" = yes &&
31290 ac_config_status_args="$ac_config_status_args --quiet"
31292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31295 # would make configure fail if this is the last instruction.
31296 $ac_cs_success || { (exit 1); exit 1; }
31298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31299 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}