2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 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-2013, 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.4devel'
602 PACKAGE_STRING='PostgreSQL 9.4devel'
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
677 python_additional_libs
794 program_transform_name
806 enable_option_checking
811 enable_integer_datetimes
841 with_libedit_preferred
852 ac_precious_vars='build_alias
866 # Initialize some variables set by options.
868 ac_init_version=false
869 ac_unrecognized_opts=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name=s,x,x,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
926 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1174 -site=* | --site=* | --sit=*)
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval with_$ac_useropt=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=no ;;
1235 # Obsolete; use --with-x.
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1252 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287 { (exit 1); exit 1; }; } ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures PostgreSQL 9.4devel to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of PostgreSQL 9.4devel:";;
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --disable-integer-datetimes
1490 disable 64-bit integer date/time support
1491 --enable-nls[=LANGUAGES]
1492 enable Native Language Support
1493 --disable-rpath do not embed shared library search path in
1495 --disable-spinlocks do not use spinlocks
1496 --enable-debug build with debugging symbols (-g)
1497 --enable-profiling build with profiling enabled
1498 --enable-coverage build with coverage testing instrumentation
1499 --enable-dtrace build with DTrace support
1500 --enable-depend turn on automatic dependency tracking
1501 --enable-cassert enable assertion checks (for debugging)
1502 --disable-thread-safety disable thread-safety in client libraries
1503 --disable-largefile omit support for large files
1504 --disable-float4-byval disable float4 passed by value
1505 --disable-float8-byval disable float8 passed by value
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-template=NAME override operating system template
1511 --with-includes=DIRS look for additional header files in DIRS
1512 --with-libraries=DIRS look for additional libraries in DIRS
1513 --with-libs=DIRS alternative spelling of --with-libraries
1514 --with-pgport=PORTNUM set default port number [5432]
1515 --with-blocksize=BLOCKSIZE
1516 set table block size in kB [8]
1517 --with-segsize=SEGSIZE set table segment size in GB [1]
1518 --with-wal-blocksize=BLOCKSIZE
1519 set WAL block size in kB [8]
1520 --with-wal-segsize=SEGSIZE
1521 set WAL segment size in MB [16]
1522 --with-CC=CMD set compiler (deprecated)
1523 --with-tcl build Tcl modules (PL/Tcl)
1524 --with-tclconfig=DIR tclConfig.sh is in DIR
1525 --with-perl build Perl modules (PL/Perl)
1526 --with-python build Python modules (PL/Python)
1527 --with-gssapi build with GSSAPI support
1528 --with-krb5 build with Kerberos 5 support
1529 --with-krb-srvnam=NAME default service principal name in Kerberos
1531 --with-pam build with PAM support
1532 --with-ldap build with LDAP support
1533 --with-bonjour build with Bonjour support
1534 --with-openssl build with OpenSSL support
1535 --with-selinux build with SELinux support
1536 --without-readline do not use GNU Readline nor BSD Libedit for editing
1537 --with-libedit-preferred
1538 prefer BSD Libedit over GNU Readline
1539 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1540 --with-libxml build with XML support
1541 --with-libxslt use XSLT support when building contrib/xml2
1542 --with-system-tzdata=DIR
1543 use system time zone data in DIR
1544 --without-zlib do not use Zlib
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 LDFLAGS_EX extra linker flags for linking executables only
1557 LDFLAGS_SL extra linker flags for linking shared libraries only
1559 location of DocBook stylesheets
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 PostgreSQL configure 9.4devel
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1635 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by PostgreSQL $as_me 9.4devel, which was
1644 generated by GNU Autoconf 2.63. Invocation command line was
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1666 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1669 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1670 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1671 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 $as_echo "PATH: $as_dir"
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_must_keep_next=false
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1715 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 -* ) ac_must_keep_next=true ;;
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1767 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) $as_unset $ac_var ;;
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1808 if test -n "$ac_subst_files"; then
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 $as_echo "$ac_var='\''$ac_val'\''"
1826 if test -s confdefs.h; then
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886 ac_site_file1=$prefix/share/config.site
1887 ac_site_file2=$prefix/etc/config.site
1889 ac_site_file1=$ac_default_prefix/share/config.site
1890 ac_site_file2=$ac_default_prefix/etc/config.site
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 test "x$ac_site_file" = xNONE && continue
1895 if test -r "$ac_site_file"; then
1896 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920 # Check that the precious variables saved in the cache have kept the same
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 # differences in whitespace do not lead to failure.
1941 ac_old_val_w=`echo x $ac_old_val`
1942 ac_new_val_w=`echo x $ac_new_val`
1943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946 ac_cache_corrupted=:
1948 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950 eval $ac_var=\$ac_old_val
1952 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1953 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1954 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977 { (exit 1); exit 1; }; }
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 for ac_dir in config "$srcdir"/config; do
2017 if test -f "$ac_dir/install-sh"; then
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 elif test -f "$ac_dir/install.sh"; then
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 elif test -f "$ac_dir/shtool"; then
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047 configure_args=$ac_configure_args
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 $as_echo_n "(cached) " >&6
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2133 ac_save_IFS=$IFS; IFS='-'
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156 withval=$with_template;
2159 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166 { (exit 1); exit 1; }; }
2171 list) echo; ls "$srcdir/src/template"; exit;;
2172 *) if test -f "$srcdir/src/template/$with_template" ; then
2175 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177 { (exit 1); exit 1; }; }
2186 # --with-template not given
2189 aix*) template=aix ;;
2190 cygwin*) template=cygwin ;;
2191 darwin*) template=darwin ;;
2192 dragonfly*) template=netbsd ;;
2193 freebsd*) template=freebsd ;;
2194 hpux*) template=hpux ;;
2195 linux*|gnu*|k*bsd*-gnu)
2197 mingw*) template=win32 ;;
2198 netbsd*) template=netbsd ;;
2199 openbsd*) template=openbsd ;;
2200 osf*) template=osf ;;
2201 sco*) template=sco ;;
2202 solaris*) template=solaris ;;
2203 sysv5*) template=unixware ;;
2206 if test x"$template" = x"" ; then
2207 { { $as_echo "$as_me:$LINENO: error:
2208 *******************************************************************
2209 PostgreSQL has apparently not been ported to your platform yet.
2210 To try a manual configuration, look into the src/template directory
2211 for a similar platform and use the '--with-template=' option.
2213 Please also contact <pgsql-bugs@postgresql.org> to see about
2214 rectifying this. Include the above 'checking host system type...'
2216 *******************************************************************
2218 $as_echo "$as_me: error:
2219 *******************************************************************
2220 PostgreSQL has apparently not been ported to your platform yet.
2221 To try a manual configuration, look into the src/template directory
2222 for a similar platform and use the '--with-template=' option.
2224 Please also contact <pgsql-bugs@postgresql.org> to see about
2225 rectifying this. Include the above 'checking host system type...'
2227 *******************************************************************
2229 { (exit 1); exit 1; }; }
2237 { $as_echo "$as_me:$LINENO: result: $template" >&5
2238 $as_echo "$template" >&6; }
2243 # Initialize default assumption that we do not need separate assembly code
2244 # for TAS (test-and-set). This can be overridden by the template file
2245 # when it's executed.
2252 ## Command line options
2256 # Add non-standard directories to the include path
2261 # Check whether --with-includes was given.
2262 if test "${with_includes+set}" = set; then
2263 withval=$with_includes;
2266 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2267 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2272 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2273 { (exit 1); exit 1; }; }
2286 # Add non-standard directories to the library search path
2291 # Check whether --with-libraries was given.
2292 if test "${with_libraries+set}" = set; then
2293 withval=$with_libraries;
2296 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2297 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2302 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 LIBRARY_DIRS=$withval
2317 # Check whether --with-libs was given.
2318 if test "${with_libs+set}" = set; then
2322 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2323 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2324 { (exit 1); exit 1; }; }
2327 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2328 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2329 { (exit 1); exit 1; }; }
2332 LIBRARY_DIRS=$withval
2342 # 64-bit integer date/time storage: enabled by default.
2344 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2345 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2348 # Check whether --enable-integer-datetimes was given.
2349 if test "${enable_integer_datetimes+set}" = set; then
2350 enableval=$enable_integer_datetimes;
2354 cat >>confdefs.h <<\_ACEOF
2355 #define USE_INTEGER_DATETIMES 1
2363 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2364 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2365 { (exit 1); exit 1; }; }
2370 enable_integer_datetimes=yes
2372 cat >>confdefs.h <<\_ACEOF
2373 #define USE_INTEGER_DATETIMES 1
2379 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2380 $as_echo "$enable_integer_datetimes" >&6; }
2386 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2387 $as_echo_n "checking whether NLS is wanted... " >&6; }
2390 # Check whether --enable-nls was given.
2391 if test "${enable_nls+set}" = set; then
2392 enableval=$enable_nls;
2402 WANTED_LANGUAGES=$enableval
2412 if test "$enable_nls" = yes; then
2414 cat >>confdefs.h <<\_ACEOF
2415 #define ENABLE_NLS 1
2420 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2421 $as_echo "$enable_nls" >&6; }
2426 # Default port number (--with-pgport), default 5432
2428 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2429 $as_echo_n "checking for default port number... " >&6; }
2433 # Check whether --with-pgport was given.
2434 if test "${with_pgport+set}" = set; then
2435 withval=$with_pgport;
2438 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2439 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2440 { (exit 1); exit 1; }; }
2443 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2444 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2445 { (exit 1); exit 1; }; }
2448 default_port=$withval
2457 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2458 $as_echo "$default_port" >&6; }
2459 # Need both of these because some places want an integer and some a string
2461 cat >>confdefs.h <<_ACEOF
2462 #define DEF_PGPORT ${default_port}
2466 cat >>confdefs.h <<_ACEOF
2467 #define DEF_PGPORT_STR "${default_port}"
2473 # '-rpath'-like feature can be disabled
2477 # Check whether --enable-rpath was given.
2478 if test "${enable_rpath+set}" = set; then
2479 enableval=$enable_rpath;
2488 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2489 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2490 { (exit 1); exit 1; }; }
2507 # Check whether --enable-spinlocks was given.
2508 if test "${enable_spinlocks+set}" = set; then
2509 enableval=$enable_spinlocks;
2518 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2519 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2520 { (exit 1); exit 1; }; }
2525 enable_spinlocks=yes
2532 # --enable-debug adds -g to compiler flags
2536 # Check whether --enable-debug was given.
2537 if test "${enable_debug+set}" = set; then
2538 enableval=$enable_debug;
2547 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2548 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2549 { (exit 1); exit 1; }; }
2562 # --enable-profiling enables gcc profiling
2566 # Check whether --enable-profiling was given.
2567 if test "${enable_profiling+set}" = set; then
2568 enableval=$enable_profiling;
2577 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2578 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2579 { (exit 1); exit 1; }; }
2591 # --enable-coverage enables generation of code coverage metrics with gcov
2595 # Check whether --enable-coverage was given.
2596 if test "${enable_coverage+set}" = set; then
2597 enableval=$enable_coverage;
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_GCOV+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$GCOV"; then
2610 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_GCOV="$ac_prog"
2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 GCOV=$ac_cv_prog_GCOV
2630 if test -n "$GCOV"; then
2631 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2632 $as_echo "$GCOV" >&6; }
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2639 test -n "$GCOV" && break
2642 if test -z "$GCOV"; then
2643 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2644 $as_echo "$as_me: error: gcov not found" >&2;}
2645 { (exit 1); exit 1; }; }
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_LCOV+set}" = set; then
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$LCOV"; then
2657 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_LCOV="$ac_prog"
2667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 LCOV=$ac_cv_prog_LCOV
2677 if test -n "$LCOV"; then
2678 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2679 $as_echo "$LCOV" >&6; }
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$LCOV" && break
2689 if test -z "$LCOV"; then
2690 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2691 $as_echo "$as_me: error: lcov not found" >&2;}
2692 { (exit 1); exit 1; }; }
2694 for ac_prog in genhtml
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_GENHTML+set}" = set; then
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$GENHTML"; then
2704 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_GENHTML="$ac_prog"
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 GENHTML=$ac_cv_prog_GENHTML
2724 if test -n "$GENHTML"; then
2725 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2726 $as_echo "$GENHTML" >&6; }
2728 { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2733 test -n "$GENHTML" && break
2736 if test -z "$GENHTML"; then
2737 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2738 $as_echo "$as_me: error: genhtml not found" >&2;}
2739 { (exit 1); exit 1; }; }
2746 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2747 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2748 { (exit 1); exit 1; }; }
2765 # Check whether --enable-dtrace was given.
2766 if test "${enable_dtrace+set}" = set; then
2767 enableval=$enable_dtrace;
2770 for ac_prog in dtrace
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_DTRACE+set}" = set; then
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$DTRACE"; then
2780 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_DTRACE="$ac_prog"
2790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 DTRACE=$ac_cv_prog_DTRACE
2800 if test -n "$DTRACE"; then
2801 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2802 $as_echo "$DTRACE" >&6; }
2804 { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$DTRACE" && break
2812 if test -z "$DTRACE"; then
2813 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2814 $as_echo "$as_me: error: dtrace not found" >&2;}
2815 { (exit 1); exit 1; }; }
2823 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2824 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2825 { (exit 1); exit 1; }; }
2840 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2841 $as_echo_n "checking for block size... " >&6; }
2845 # Check whether --with-blocksize was given.
2846 if test "${with_blocksize+set}" = set; then
2847 withval=$with_blocksize;
2850 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2851 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2852 { (exit 1); exit 1; }; }
2855 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2856 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2857 { (exit 1); exit 1; }; }
2869 case ${blocksize} in
2876 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2877 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2878 { (exit 1); exit 1; }; }
2880 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2881 $as_echo "${blocksize}kB" >&6; }
2884 cat >>confdefs.h <<_ACEOF
2885 #define BLCKSZ ${BLCKSZ}
2890 # Relation segment size
2892 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2893 $as_echo_n "checking for segment size... " >&6; }
2897 # Check whether --with-segsize was given.
2898 if test "${with_segsize+set}" = set; then
2899 withval=$with_segsize;
2902 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2903 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2904 { (exit 1); exit 1; }; }
2907 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2908 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 # this expression is set up to avoid unnecessary integer overflow
2922 # blocksize is already guaranteed to be a factor of 1024
2923 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2924 test $? -eq 0 || exit 1
2925 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2926 $as_echo "${segsize}GB" >&6; }
2929 cat >>confdefs.h <<_ACEOF
2930 #define RELSEG_SIZE ${RELSEG_SIZE}
2937 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2938 $as_echo_n "checking for WAL block size... " >&6; }
2942 # Check whether --with-wal-blocksize was given.
2943 if test "${with_wal_blocksize+set}" = set; then
2944 withval=$with_wal_blocksize;
2947 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2949 { (exit 1); exit 1; }; }
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 wal_blocksize=$withval
2966 case ${wal_blocksize} in
2967 1) XLOG_BLCKSZ=1024;;
2968 2) XLOG_BLCKSZ=2048;;
2969 4) XLOG_BLCKSZ=4096;;
2970 8) XLOG_BLCKSZ=8192;;
2971 16) XLOG_BLCKSZ=16384;;
2972 32) XLOG_BLCKSZ=32768;;
2973 64) XLOG_BLCKSZ=65536;;
2974 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2975 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2976 { (exit 1); exit 1; }; }
2978 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2979 $as_echo "${wal_blocksize}kB" >&6; }
2982 cat >>confdefs.h <<_ACEOF
2983 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2990 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2991 $as_echo_n "checking for WAL segment size... " >&6; }
2995 # Check whether --with-wal-segsize was given.
2996 if test "${with_wal_segsize+set}" = set; then
2997 withval=$with_wal_segsize;
3000 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3001 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3002 { (exit 1); exit 1; }; }
3005 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3006 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3007 { (exit 1); exit 1; }; }
3010 wal_segsize=$withval
3019 case ${wal_segsize} in
3027 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3028 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3029 { (exit 1); exit 1; }; }
3031 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3032 $as_echo "${wal_segsize}MB" >&6; }
3035 cat >>confdefs.h <<_ACEOF
3036 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3044 # For historical reasons you can also use --with-CC to specify the C compiler
3045 # to use, although the standard way to do this is to set the CC environment
3050 # Check whether --with-CC was given.
3051 if test "${with_CC+set}" = set; then
3055 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3056 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3057 { (exit 1); exit 1; }; }
3060 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3061 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3062 { (exit 1); exit 1; }; }
3074 aix) pgac_cc_list="gcc xlc";;
3075 *) pgac_cc_list="gcc cc";;
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $pgac_cc_list
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3118 { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3126 if test -z "$CC"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3170 if test "x$ac_ct_CC" = x; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3196 { (ac_try="$ac_compiler --version >&5"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compiler --version >&5") 2>&5
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_compiler -v >&5") 2>&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compiler -V >&5") 2>&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258 for ac_file in $ac_files
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 if { (ac_try="$ac_link_default"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274 (eval "$ac_link_default") 2>&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3283 for ac_file in $ac_files ''
3285 test -f "$ac_file" || continue
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290 # We found the default executable, but exeext='' is most
3294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 # We set ac_cv_exeext here because the later test for it is not
3299 # safe: cross compilers may not add the suffix if given an `-o'
3300 # argument, so we may need to know it at that point already.
3301 # Even if this section looks crufty: it has the advantage of
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326 { (exit 77); exit 77; }; }; }
3329 ac_exeext=$ac_cv_exeext
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338 if { ac_try='./$ac_file'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_try") 2>&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3351 if test "$cross_compiling" = maybe; then
3354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362 { (exit 1); exit 1; }; }; }
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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 compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424 $as_echo_n "(cached) " >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; then
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483 $as_echo_n "(cached) " >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } && {
3518 test -z "$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 } && test -s conftest.$ac_objext; then
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545 $as_echo_n "(cached) " >&6
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3691 if test "$GCC" = yes; then
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 ac_cv_prog_cc_c89=no
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3728 s = g (p, va_arg (v,int));
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 CC="$ac_save_CC $ac_arg"
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_prog_cc_c89=$ac_arg
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3804 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own. We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3834 #ifndef __INTEL_COMPILER
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 . "$srcdir/src/template/$template" || exit
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else: If the template file set something, that is used.
3928 # else: If coverage was enabled, don't set anything.
3929 # else: If the compiler is GCC, then we use -O2.
3930 # else: If the compiler is something else, then we use -O, unless debugging.
3932 if test "$ac_env_CFLAGS_set" = set; then
3933 CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935 : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937 : # no optimization by default
3938 elif test "$GCC" = yes; then
3941 # if the user selected debug mode, don't use -O
3942 if test "$enable_debug" != yes; then
3947 # set CFLAGS_VECTOR from the environment, if available
3948 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3949 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3952 # Some versions of GCC support some additional useful warning flags.
3953 # Check whether they are supported, and add them to CFLAGS if so.
3954 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3955 # but has its own. Also check other compiler-specific flags here.
3957 if test "$GCC" = yes -a "$ICC" = no; then
3958 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3959 # These work in some but not all gcc versions
3960 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3961 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3962 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3965 pgac_save_CFLAGS=$CFLAGS
3966 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3967 ac_save_c_werror_flag=$ac_c_werror_flag
3968 ac_c_werror_flag=yes
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4004 $as_echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_c_werror_flag=$ac_save_c_werror_flag
4012 CFLAGS="$pgac_save_CFLAGS"
4014 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4015 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4016 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4017 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4020 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4021 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4022 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4023 $as_echo_n "(cached) " >&6
4025 pgac_save_CFLAGS=$CFLAGS
4026 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4027 ac_save_c_werror_flag=$ac_c_werror_flag
4028 ac_c_werror_flag=yes
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } && {
4059 test -z "$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.$ac_objext; then
4062 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4064 $as_echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 pgac_cv_prog_cc_cflags__Wendif_labels=no
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="$pgac_save_CFLAGS"
4074 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4075 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4076 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4077 CFLAGS="$CFLAGS -Wendif-labels"
4080 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4081 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4082 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4083 $as_echo_n "(cached) " >&6
4085 pgac_save_CFLAGS=$CFLAGS
4086 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4124 $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="$pgac_save_CFLAGS"
4134 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4135 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4136 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4137 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4140 # This was included in -Wall/-Wformat in older GCC versions
4141 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4142 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4143 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4144 $as_echo_n "(cached) " >&6
4146 pgac_save_CFLAGS=$CFLAGS
4147 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4148 ac_save_c_werror_flag=$ac_c_werror_flag
4149 ac_c_werror_flag=yes
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172 $as_echo "$ac_try_echo") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && {
4180 test -z "$ac_c_werror_flag" ||
4181 test ! -s conftest.err
4182 } && test -s conftest.$ac_objext; then
4183 pgac_cv_prog_cc_cflags__Wformat_security=yes
4185 $as_echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 pgac_cv_prog_cc_cflags__Wformat_security=no
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="$pgac_save_CFLAGS"
4195 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4196 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4197 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4198 CFLAGS="$CFLAGS -Wformat-security"
4201 # Disable strict-aliasing rules; needed for gcc 3.3+
4202 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4203 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4204 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4207 pgac_save_CFLAGS=$CFLAGS
4208 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4209 ac_save_c_werror_flag=$ac_c_werror_flag
4210 ac_c_werror_flag=yes
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4254 CFLAGS="$pgac_save_CFLAGS"
4256 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4257 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4258 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4259 CFLAGS="$CFLAGS -fno-strict-aliasing"
4262 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4263 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4264 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4265 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4266 $as_echo_n "(cached) " >&6
4268 pgac_save_CFLAGS=$CFLAGS
4269 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4270 ac_save_c_werror_flag=$ac_c_werror_flag
4271 ac_c_werror_flag=yes
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4294 $as_echo "$ac_try_echo") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest.$ac_objext; then
4305 pgac_cv_prog_cc_cflags__fwrapv=yes
4307 $as_echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 pgac_cv_prog_cc_cflags__fwrapv=no
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_c_werror_flag=$ac_save_c_werror_flag
4315 CFLAGS="$pgac_save_CFLAGS"
4317 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4318 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4319 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4320 CFLAGS="$CFLAGS -fwrapv"
4323 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4324 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4325 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4326 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4327 $as_echo_n "(cached) " >&6
4329 pgac_save_CFLAGS=$CFLAGS
4330 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4331 ac_save_c_werror_flag=$ac_c_werror_flag
4332 ac_c_werror_flag=yes
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && {
4363 test -z "$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 } && test -s conftest.$ac_objext; then
4366 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_c_werror_flag=$ac_save_c_werror_flag
4376 CFLAGS="$pgac_save_CFLAGS"
4378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4379 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4380 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4381 CFLAGS="$CFLAGS -fexcess-precision=standard"
4384 # Optimization flags for specific files that benefit from vectorization
4385 { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4386 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4387 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4388 $as_echo_n "(cached) " >&6
4390 pgac_save_CFLAGS=$CFLAGS
4391 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4392 ac_save_c_werror_flag=$ac_c_werror_flag
4393 ac_c_werror_flag=yes
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 pgac_cv_prog_cc_cflags__funroll_loops=yes
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 pgac_cv_prog_cc_cflags__funroll_loops=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 ac_c_werror_flag=$ac_save_c_werror_flag
4437 CFLAGS="$pgac_save_CFLAGS"
4439 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4440 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4441 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4442 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4445 { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4446 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4447 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4448 $as_echo_n "(cached) " >&6
4450 pgac_save_CFLAGS=$CFLAGS
4451 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4452 ac_save_c_werror_flag=$ac_c_werror_flag
4453 ac_c_werror_flag=yes
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest.$ac_objext; then
4487 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4489 $as_echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_c_werror_flag=$ac_save_c_werror_flag
4497 CFLAGS="$pgac_save_CFLAGS"
4499 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4500 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4501 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4502 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4505 elif test "$ICC" = yes; then
4506 # Intel's compiler has a bug/misoptimization in checking for
4507 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4508 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4509 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4510 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4511 $as_echo_n "(cached) " >&6
4513 pgac_save_CFLAGS=$CFLAGS
4514 CFLAGS="$pgac_save_CFLAGS -mp1"
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4532 rm -f conftest.$ac_objext
4533 if { (ac_try="$ac_compile"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
4550 pgac_cv_prog_cc_cflags__mp1=yes
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 pgac_cv_prog_cc_cflags__mp1=no
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4560 CFLAGS="$pgac_save_CFLAGS"
4562 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4563 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4564 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4565 CFLAGS="$CFLAGS -mp1"
4568 # Make sure strict aliasing is off (though this is said to be the default)
4569 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4570 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4571 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4574 pgac_save_CFLAGS=$CFLAGS
4575 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4576 ac_save_c_werror_flag=$ac_c_werror_flag
4577 ac_c_werror_flag=yes
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_compile") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4611 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4613 $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="$pgac_save_CFLAGS"
4623 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4624 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4625 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4626 CFLAGS="$CFLAGS -fno-strict-aliasing"
4629 elif test "$PORTNAME" = "aix"; then
4630 # AIX's xlc has to have strict aliasing turned off too
4631 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4632 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4633 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4634 $as_echo_n "(cached) " >&6
4636 pgac_save_CFLAGS=$CFLAGS
4637 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4638 ac_save_c_werror_flag=$ac_c_werror_flag
4639 ac_c_werror_flag=yes
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
4673 pgac_cv_prog_cc_cflags__qnoansialias=yes
4675 $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 pgac_cv_prog_cc_cflags__qnoansialias=no
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683 CFLAGS="$pgac_save_CFLAGS"
4685 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4686 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4687 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4688 CFLAGS="$CFLAGS -qnoansialias"
4691 elif test "$PORTNAME" = "hpux"; then
4692 # On some versions of HP-UX, libm functions do not set errno by default.
4693 # Fix that by using +Olibmerrno if the compiler recognizes it.
4694 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4695 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4696 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4697 $as_echo_n "(cached) " >&6
4699 pgac_save_CFLAGS=$CFLAGS
4700 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4701 ac_save_c_werror_flag=$ac_c_werror_flag
4702 ac_c_werror_flag=yes
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4718 rm -f conftest.$ac_objext
4719 if { (ac_try="$ac_compile"
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725 $as_echo "$ac_try_echo") >&5
4726 (eval "$ac_compile") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4736 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4738 $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_c_werror_flag=$ac_save_c_werror_flag
4746 CFLAGS="$pgac_save_CFLAGS"
4748 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4749 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4750 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4751 CFLAGS="$CFLAGS +Olibmerrno"
4756 CFLAGS_VECTOR=$CFLAGS_VECTOR
4759 # supply -g if --enable-debug
4760 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4764 # enable code coverage if --enable-coverage
4765 if test "$enable_coverage" = yes; then
4766 if test "$GCC" = yes; then
4767 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4769 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4770 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4771 { (exit 1); exit 1; }; }
4775 # enable profiling if --enable-profiling
4776 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4777 if test "$GCC" = yes; then
4779 cat >>confdefs.h <<\_ACEOF
4780 #define PROFILE_PID_DIR 1
4783 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4785 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4786 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4787 { (exit 1); exit 1; }; }
4791 # We already have this in Makefile.win32, but configure needs it too
4792 if test "$PORTNAME" = "win32"; then
4793 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4796 # Check if the compiler still works with the template settings
4797 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4798 $as_echo_n "checking whether the C compiler still works... " >&6; }
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (ac_try="$ac_link"
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821 $as_echo "$ac_try_echo") >&5
4822 (eval "$ac_link") 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && {
4829 test -z "$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 } && test -s conftest$ac_exeext && {
4832 test "$cross_compiling" = yes ||
4833 $as_test_x conftest$ac_exeext
4835 { $as_echo "$as_me:$LINENO: result: yes" >&5
4836 $as_echo "yes" >&6; }
4838 $as_echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 { $as_echo "$as_me:$LINENO: result: no" >&5
4842 $as_echo "no" >&6; }
4843 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4844 $as_echo "$as_me: error: cannot proceed" >&2;}
4845 { (exit 1); exit 1; }; }
4848 rm -rf conftest.dSYM
4849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4850 conftest$ac_exeext conftest.$ac_ext
4852 # Defend against gcc -ffast-math
4853 if test "$GCC" = yes; then
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4864 #ifdef __FAST_MATH__
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879 (eval "$ac_compile") 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && {
4886 test -z "$ac_c_werror_flag" ||
4887 test ! -s conftest.err
4888 } && test -s conftest.$ac_objext; then
4891 $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4895 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4896 { (exit 1); exit 1; }; }
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4909 # On Suns, sometimes $CPP names a directory.
4910 if test -n "$CPP" && test -d "$CPP"; then
4913 if test -z "$CPP"; then
4914 if test "${ac_cv_prog_CPP+set}" = set; then
4915 $as_echo_n "(cached) " >&6
4917 # Double quotes because CPP needs to be expanded
4918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4921 for ac_c_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 # include <limits.h>
4938 # include <assert.h>
4942 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4948 $as_echo "$ac_try_echo") >&5
4949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null && {
4956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4961 $as_echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 # Broken: fails on valid input.
4968 rm -f conftest.err conftest.$ac_ext
4970 # OK, works on sane cases. Now check whether nonexistent headers
4971 # can be detected and how.
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #include <ac_nonexistent.h>
4980 if { (ac_try="$ac_cpp conftest.$ac_ext"
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986 $as_echo "$ac_try_echo") >&5
4987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null && {
4994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4997 # Broken: success on invalid input.
5000 $as_echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 # Passes both tests.
5008 rm -f conftest.err conftest.$ac_ext
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then
5025 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5026 $as_echo "$CPP" >&6; }
5028 for ac_c_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5043 # include <limits.h>
5045 # include <assert.h>
5049 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055 $as_echo "$ac_try_echo") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5068 $as_echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5104 # Broken: success on invalid input.
5107 $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Passes both tests.
5115 rm -f conftest.err conftest.$ac_ext
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5123 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5125 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5126 See \`config.log' for more details." >&5
5127 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5128 See \`config.log' for more details." >&2;}
5129 { (exit 1); exit 1; }; }; }
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 # Set up TAS assembly code if needed; the template file has now had its
5143 # chance to request this.
5145 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5148 if test "$need_tas" = yes ; then
5157 # Automatic dependency tracking
5161 # Check whether --enable-depend was given.
5162 if test "${enable_depend+set}" = set; then
5163 enableval=$enable_depend;
5172 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5173 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5174 { (exit 1); exit 1; }; }
5188 # Enable assert checks
5192 # Check whether --enable-cassert was given.
5193 if test "${enable_cassert+set}" = set; then
5194 enableval=$enable_cassert;
5198 cat >>confdefs.h <<\_ACEOF
5199 #define USE_ASSERT_CHECKING 1
5207 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5208 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5209 { (exit 1); exit 1; }; }
5222 # Include directories
5225 IFS="${IFS}${PATH_SEPARATOR}"
5226 # SRCH_INC comes from the template file
5227 for dir in $with_includes $SRCH_INC; do
5228 if test -d "$dir"; then
5229 INCLUDES="$INCLUDES -I$dir"
5231 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5232 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5240 # Library directories
5243 IFS="${IFS}${PATH_SEPARATOR}"
5244 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5245 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5246 if test -d "$dir"; then
5247 LIBDIRS="$LIBDIRS -L$dir"
5249 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5250 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5256 # Enable thread-safe client libraries
5258 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5259 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5262 # Check whether --enable-thread-safety was given.
5263 if test "${enable_thread_safety+set}" = set; then
5264 enableval=$enable_thread_safety;
5273 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5274 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5275 { (exit 1); exit 1; }; }
5280 enable_thread_safety=yes
5285 if test "$enable_thread_safety" = yes; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_THREAD_SAFETY 1
5292 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5293 $as_echo "$enable_thread_safety" >&6; }
5297 # Optionally build Tcl modules (PL/Tcl)
5299 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5300 $as_echo_n "checking whether to build with Tcl... " >&6; }
5304 # Check whether --with-tcl was given.
5305 if test "${with_tcl+set}" = set; then
5315 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5316 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5317 { (exit 1); exit 1; }; }
5327 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5328 $as_echo "$with_tcl" >&6; }
5331 # We see if the path to the Tcl/Tk configuration scripts is specified.
5332 # This will override the use of tclsh to find the paths to search.
5337 # Check whether --with-tclconfig was given.
5338 if test "${with_tclconfig+set}" = set; then
5339 withval=$with_tclconfig;
5342 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5343 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5344 { (exit 1); exit 1; }; }
5347 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5348 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5349 { (exit 1); exit 1; }; }
5361 # Optionally build Perl modules (PL/Perl)
5363 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5364 $as_echo_n "checking whether to build Perl modules... " >&6; }
5368 # Check whether --with-perl was given.
5369 if test "${with_perl+set}" = set; then
5379 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5380 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5381 { (exit 1); exit 1; }; }
5391 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5392 $as_echo "$with_perl" >&6; }
5396 # Optionally build Python modules (PL/Python)
5398 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5399 $as_echo_n "checking whether to build Python modules... " >&6; }
5403 # Check whether --with-python was given.
5404 if test "${with_python+set}" = set; then
5405 withval=$with_python;
5414 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5415 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5416 { (exit 1); exit 1; }; }
5426 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5427 $as_echo "$with_python" >&6; }
5433 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5434 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5438 # Check whether --with-gssapi was given.
5439 if test "${with_gssapi+set}" = set; then
5440 withval=$with_gssapi;
5445 cat >>confdefs.h <<\_ACEOF
5446 #define ENABLE_GSS 1
5449 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5456 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5457 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5458 { (exit 1); exit 1; }; }
5468 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5469 $as_echo "$with_gssapi" >&6; }
5474 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5475 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5479 # Check whether --with-krb5 was given.
5480 if test "${with_krb5+set}" = set; then
5486 cat >>confdefs.h <<\_ACEOF
5490 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5497 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5498 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5499 { (exit 1); exit 1; }; }
5509 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5510 $as_echo "$with_krb5" >&6; }
5517 # Kerberos configuration parameters
5522 # Check whether --with-krb-srvnam was given.
5523 if test "${with_krb_srvnam+set}" = set; then
5524 withval=$with_krb_srvnam;
5527 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5528 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5529 { (exit 1); exit 1; }; }
5532 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5533 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5534 { (exit 1); exit 1; }; }
5542 with_krb_srvnam="postgres"
5547 cat >>confdefs.h <<_ACEOF
5548 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5556 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5557 $as_echo_n "checking whether to build with PAM support... " >&6; }
5561 # Check whether --with-pam was given.
5562 if test "${with_pam+set}" = set; then
5567 cat >>confdefs.h <<\_ACEOF
5576 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5577 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5578 { (exit 1); exit 1; }; }
5588 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5589 $as_echo "$with_pam" >&6; }
5595 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5596 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5600 # Check whether --with-ldap was given.
5601 if test "${with_ldap+set}" = set; then
5606 cat >>confdefs.h <<\_ACEOF
5615 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5616 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5617 { (exit 1); exit 1; }; }
5627 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5628 $as_echo "$with_ldap" >&6; }
5634 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5635 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5639 # Check whether --with-bonjour was given.
5640 if test "${with_bonjour+set}" = set; then
5641 withval=$with_bonjour;
5645 cat >>confdefs.h <<\_ACEOF
5646 #define USE_BONJOUR 1
5654 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5655 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5656 { (exit 1); exit 1; }; }
5666 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5667 $as_echo "$with_bonjour" >&6; }
5673 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5674 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5678 # Check whether --with-openssl was given.
5679 if test "${with_openssl+set}" = set; then
5680 withval=$with_openssl;
5684 cat >>confdefs.h <<\_ACEOF
5693 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5694 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5695 { (exit 1); exit 1; }; }
5705 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5706 $as_echo "$with_openssl" >&6; }
5712 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5713 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5717 # Check whether --with-selinux was given.
5718 if test "${with_selinux+set}" = set; then
5719 withval=$with_selinux;
5728 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5729 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5730 { (exit 1); exit 1; }; }
5741 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5742 $as_echo "$with_selinux" >&6; }
5750 # Check whether --with-readline was given.
5751 if test "${with_readline+set}" = set; then
5752 withval=$with_readline;
5761 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5762 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5763 { (exit 1); exit 1; }; }
5773 # readline on MinGW has problems with backslashes in psql and other bugs.
5774 # This is particularly a problem with non-US code pages.
5775 # Therefore disable its use until we understand the cause. 2004-07-20
5776 if test "$PORTNAME" = "win32"; then
5777 if test "$with_readline" = yes; then
5778 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5779 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5791 # Check whether --with-libedit-preferred was given.
5792 if test "${with_libedit_preferred+set}" = set; then
5793 withval=$with_libedit_preferred;
5802 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5803 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5804 { (exit 1); exit 1; }; }
5809 with_libedit_preferred=no
5822 # Check whether --with-ossp-uuid was given.
5823 if test "${with_ossp_uuid+set}" = set; then
5824 withval=$with_ossp_uuid;
5833 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5835 { (exit 1); exit 1; }; }
5854 # Check whether --with-libxml was given.
5855 if test "${with_libxml+set}" = set; then
5856 withval=$with_libxml;
5860 cat >>confdefs.h <<\_ACEOF
5861 #define USE_LIBXML 1
5869 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5870 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5871 { (exit 1); exit 1; }; }
5882 if test "$with_libxml" = yes ; then
5883 for ac_prog in xml2-config
5885 # Extract the first word of "$ac_prog", so it can be a program name with args.
5886 set dummy $ac_prog; ac_word=$2
5887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$XML2_CONFIG"; then
5893 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_XML2_CONFIG="$ac_prog"
5903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5913 if test -n "$XML2_CONFIG"; then
5914 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5915 $as_echo "$XML2_CONFIG" >&6; }
5917 { $as_echo "$as_me:$LINENO: result: no" >&5
5918 $as_echo "no" >&6; }
5922 test -n "$XML2_CONFIG" && break
5925 if test -n "$XML2_CONFIG"; then
5926 for pgac_option in `$XML2_CONFIG --cflags`; do
5927 case $pgac_option in
5928 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5931 for pgac_option in `$XML2_CONFIG --libs`; do
5932 case $pgac_option in
5933 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5947 # Check whether --with-libxslt was given.
5948 if test "${with_libxslt+set}" = set; then
5949 withval=$with_libxslt;
5953 cat >>confdefs.h <<\_ACEOF
5954 #define USE_LIBXSLT 1
5962 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5963 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5964 { (exit 1); exit 1; }; }
5984 # Check whether --with-system-tzdata was given.
5985 if test "${with_system_tzdata+set}" = set; then
5986 withval=$with_system_tzdata;
5989 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5990 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5991 { (exit 1); exit 1; }; }
5994 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5995 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5996 { (exit 1); exit 1; }; }
6014 # Check whether --with-zlib was given.
6015 if test "${with_zlib+set}" = set; then
6025 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6026 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6027 { (exit 1); exit 1; }; }
6043 # Assume system is ELF if it predefines __ELF__ as 1,
6044 # otherwise believe host_os based default.
6046 freebsd1*|freebsd2*) elf=no;;
6047 freebsd3*|freebsd4*) elf=yes;;
6051 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6052 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6053 if test "${ac_cv_path_GREP+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6056 if test -z "$GREP"; then
6057 ac_path_GREP_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6063 test -z "$as_dir" && as_dir=.
6064 for ac_prog in grep ggrep; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6067 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6068 # Check for GNU ac_path_GREP and select it if it is found.
6069 # Check for GNU $ac_path_GREP
6070 case `"$ac_path_GREP" --version 2>&1` in
6072 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6075 $as_echo_n 0123456789 >"conftest.in"
6078 cat "conftest.in" "conftest.in" >"conftest.tmp"
6079 mv "conftest.tmp" "conftest.in"
6080 cp "conftest.in" "conftest.nl"
6081 $as_echo 'GREP' >> "conftest.nl"
6082 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084 ac_count=`expr $ac_count + 1`
6085 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6086 # Best one so far, save it but keep looking for a better one
6087 ac_cv_path_GREP="$ac_path_GREP"
6088 ac_path_GREP_max=$ac_count
6090 # 10*(2^10) chars as input seems more than enough
6091 test $ac_count -gt 10 && break
6093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 $ac_path_GREP_found && break 3
6101 if test -z "$ac_cv_path_GREP"; then
6102 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6103 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6104 { (exit 1); exit 1; }; }
6107 ac_cv_path_GREP=$GREP
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6112 $as_echo "$ac_cv_path_GREP" >&6; }
6113 GREP="$ac_cv_path_GREP"
6116 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6117 $as_echo_n "checking for egrep... " >&6; }
6118 if test "${ac_cv_path_EGREP+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6121 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6122 then ac_cv_path_EGREP="$GREP -E"
6124 if test -z "$EGREP"; then
6125 ac_path_EGREP_found=false
6126 # Loop through the user's path and test for each of PROGNAME-LIST
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 test -z "$as_dir" && as_dir=.
6132 for ac_prog in egrep; do
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6135 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6136 # Check for GNU ac_path_EGREP and select it if it is found.
6137 # Check for GNU $ac_path_EGREP
6138 case `"$ac_path_EGREP" --version 2>&1` in
6140 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6143 $as_echo_n 0123456789 >"conftest.in"
6146 cat "conftest.in" "conftest.in" >"conftest.tmp"
6147 mv "conftest.tmp" "conftest.in"
6148 cp "conftest.in" "conftest.nl"
6149 $as_echo 'EGREP' >> "conftest.nl"
6150 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6152 ac_count=`expr $ac_count + 1`
6153 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6154 # Best one so far, save it but keep looking for a better one
6155 ac_cv_path_EGREP="$ac_path_EGREP"
6156 ac_path_EGREP_max=$ac_count
6158 # 10*(2^10) chars as input seems more than enough
6159 test $ac_count -gt 10 && break
6161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 $ac_path_EGREP_found && break 3
6169 if test -z "$ac_cv_path_EGREP"; then
6170 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6171 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6172 { (exit 1); exit 1; }; }
6175 ac_cv_path_EGREP=$EGREP
6180 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6181 $as_echo "$ac_cv_path_EGREP" >&6; }
6182 EGREP="$ac_cv_path_EGREP"
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197 $EGREP "yes" >/dev/null 2>&1; then
6200 if test "X$elf" = "Xyes" ; then
6214 CPPFLAGS="$CPPFLAGS $INCLUDES"
6215 LDFLAGS="$LDFLAGS $LIBDIRS"
6221 # Check whether --with-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then
6223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6229 if test "$GCC" = yes; then
6230 # Check if gcc -print-prog-name=ld gives a path.
6231 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6232 $as_echo_n "checking for ld used by GCC... " >&6; }
6235 # gcc leaves a trailing carriage return which upsets mingw
6236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6241 # Accept absolute paths.
6242 [\\/]* | [A-Za-z]:[\\/]*)
6243 re_direlt='/[^/][^/]*/\.\./'
6244 # Canonicalize the path of ld
6245 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6247 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6249 test -z "$LD" && LD="$ac_prog"
6252 # If it fails, then pretend we aren't using GCC.
6256 # If it is relative, then search for the first ld in PATH.
6260 elif test "$with_gnu_ld" = yes; then
6261 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6262 $as_echo_n "checking for GNU ld... " >&6; }
6264 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6265 $as_echo_n "checking for non-GNU ld... " >&6; }
6267 if test "${ac_cv_path_LD+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6270 if test -z "$LD"; then
6271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6272 for ac_dir in $PATH; do
6273 test -z "$ac_dir" && ac_dir=.
6274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6275 ac_cv_path_LD="$ac_dir/$ac_prog"
6276 # Check to see if the program is GNU ld. I'd rather use --version,
6277 # but apparently some GNU ld's only accept -v.
6278 # Break only if it was the GNU/non-GNU ld that we prefer.
6279 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6280 test "$with_gnu_ld" != no && break
6282 test "$with_gnu_ld" != yes && break
6288 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6293 if test -n "$LD"; then
6294 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6295 $as_echo "$LD" >&6; }
6297 { $as_echo "$as_me:$LINENO: result: no" >&5
6298 $as_echo "no" >&6; }
6300 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6301 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6302 { (exit 1); exit 1; }; }
6303 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6305 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6309 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6310 ac_cv_prog_gnu_ld=yes
6312 ac_cv_prog_gnu_ld=no
6315 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6316 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$ac_cv_prog_gnu_ld
6322 case $host_os in sysv5*)
6323 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6324 $as_echo_n "checking whether ld -R works... " >&6; }
6325 if test "${pgac_cv_prog_ld_R+set}" = set; then
6326 $as_echo_n "(cached) " >&6
6329 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6345 rm -f conftest.$ac_objext conftest$ac_exeext
6346 if { (ac_try="$ac_link"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_link") 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest$ac_exeext && {
6363 test "$cross_compiling" = yes ||
6364 $as_test_x conftest$ac_exeext
6366 pgac_cv_prog_ld_R=yes
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 pgac_cv_prog_ld_R=no
6374 rm -rf conftest.dSYM
6375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LDFLAGS=$pgac_save_LDFLAGS
6380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6381 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6382 ld_R_works=$pgac_cv_prog_ld_R
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_RANLIB+set}" = set; then
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$RANLIB"; then
6394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 RANLIB=$ac_cv_prog_RANLIB
6414 if test -n "$RANLIB"; then
6415 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6416 $as_echo "$RANLIB" >&6; }
6418 { $as_echo "$as_me:$LINENO: result: no" >&5
6419 $as_echo "no" >&6; }
6424 if test -z "$ac_cv_prog_RANLIB"; then
6425 ac_ct_RANLIB=$RANLIB
6426 # Extract the first word of "ranlib", so it can be a program name with args.
6427 set dummy ranlib; ac_word=$2
6428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6431 $as_echo_n "(cached) " >&6
6433 if test -n "$ac_ct_RANLIB"; then
6434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_RANLIB="ranlib"
6444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6454 if test -n "$ac_ct_RANLIB"; then
6455 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6456 $as_echo "$ac_ct_RANLIB" >&6; }
6458 { $as_echo "$as_me:$LINENO: result: no" >&5
6459 $as_echo "no" >&6; }
6462 if test "x$ac_ct_RANLIB" = x; then
6465 case $cross_compiling:$ac_tool_warned in
6467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6471 RANLIB=$ac_ct_RANLIB
6474 RANLIB="$ac_cv_prog_RANLIB"
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}strip; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_STRIP+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$STRIP"; then
6487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 STRIP=$ac_cv_prog_STRIP
6507 if test -n "$STRIP"; then
6508 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6509 $as_echo "$STRIP" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_prog_STRIP"; then
6519 # Extract the first word of "strip", so it can be a program name with args.
6520 set dummy strip; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$ac_ct_STRIP"; then
6527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_ac_ct_STRIP="strip"
6537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6547 if test -n "$ac_ct_STRIP"; then
6548 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6549 $as_echo "$ac_ct_STRIP" >&6; }
6551 { $as_echo "$as_me:$LINENO: result: no" >&5
6552 $as_echo "no" >&6; }
6555 if test "x$ac_ct_STRIP" = x; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6567 STRIP="$ac_cv_prog_STRIP"
6571 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6572 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6573 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6574 STRIP_STATIC_LIB="$STRIP -x"
6575 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6582 STRIP_STATIC_LIB=$STRIP
6583 STRIP_SHARED_LIB=$STRIP
6584 { $as_echo "$as_me:$LINENO: result: yes" >&5
6585 $as_echo "yes" >&6; }
6590 { $as_echo "$as_me:$LINENO: result: no" >&5
6591 $as_echo "no" >&6; }
6598 if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}ar; ac_word=$2
6601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if test "${ac_cv_prog_AR+set}" = set; then
6604 $as_echo_n "(cached) " >&6
6606 if test -n "$AR"; then
6607 ac_cv_prog_AR="$AR" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_AR="${ac_tool_prefix}ar"
6617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 if test -n "$AR"; then
6628 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6629 $as_echo "$AR" >&6; }
6631 { $as_echo "$as_me:$LINENO: result: no" >&5
6632 $as_echo "no" >&6; }
6637 if test -z "$ac_cv_prog_AR"; then
6639 # Extract the first word of "ar", so it can be a program name with args.
6640 set dummy ar; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$ac_ct_AR"; then
6647 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_ac_ct_AR="ar"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6667 if test -n "$ac_ct_AR"; then
6668 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6669 $as_echo "$ac_ct_AR" >&6; }
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6675 if test "x$ac_ct_AR" = x; then
6678 case $cross_compiling:$ac_tool_warned in
6680 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6690 if test "$PORTNAME" = "win32"; then
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$DLLTOOL"; then
6700 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 DLLTOOL=$ac_cv_prog_DLLTOOL
6720 if test -n "$DLLTOOL"; then
6721 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6722 $as_echo "$DLLTOOL" >&6; }
6724 { $as_echo "$as_me:$LINENO: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_DLLTOOL"; then
6731 ac_ct_DLLTOOL=$DLLTOOL
6732 # Extract the first word of "dlltool", so it can be a program name with args.
6733 set dummy dlltool; ac_word=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$ac_ct_DLLTOOL"; then
6740 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6760 if test -n "$ac_ct_DLLTOOL"; then
6761 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6762 $as_echo "$ac_ct_DLLTOOL" >&6; }
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_DLLTOOL" = x; then
6771 case $cross_compiling:$ac_tool_warned in
6773 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6777 DLLTOOL=$ac_ct_DLLTOOL
6780 DLLTOOL="$ac_cv_prog_DLLTOOL"
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6789 $as_echo_n "(cached) " >&6
6791 if test -n "$DLLWRAP"; then
6792 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 DLLWRAP=$ac_cv_prog_DLLWRAP
6812 if test -n "$DLLWRAP"; then
6813 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6814 $as_echo "$DLLWRAP" >&6; }
6816 { $as_echo "$as_me:$LINENO: result: no" >&5
6817 $as_echo "no" >&6; }
6822 if test -z "$ac_cv_prog_DLLWRAP"; then
6823 ac_ct_DLLWRAP=$DLLWRAP
6824 # Extract the first word of "dllwrap", so it can be a program name with args.
6825 set dummy dllwrap; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6829 $as_echo_n "(cached) " >&6
6831 if test -n "$ac_ct_DLLWRAP"; then
6832 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6852 if test -n "$ac_ct_DLLWRAP"; then
6853 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6854 $as_echo "$ac_ct_DLLWRAP" >&6; }
6856 { $as_echo "$as_me:$LINENO: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$ac_ct_DLLWRAP" = x; then
6863 case $cross_compiling:$ac_tool_warned in
6865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6869 DLLWRAP=$ac_ct_DLLWRAP
6872 DLLWRAP="$ac_cv_prog_DLLWRAP"
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}windres; ac_word=$2
6878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_WINDRES+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$WINDRES"; then
6884 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 WINDRES=$ac_cv_prog_WINDRES
6904 if test -n "$WINDRES"; then
6905 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6906 $as_echo "$WINDRES" >&6; }
6908 { $as_echo "$as_me:$LINENO: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_WINDRES"; then
6915 ac_ct_WINDRES=$WINDRES
6916 # Extract the first word of "windres", so it can be a program name with args.
6917 set dummy windres; ac_word=$2
6918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6923 if test -n "$ac_ct_WINDRES"; then
6924 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_WINDRES="windres"
6934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6944 if test -n "$ac_ct_WINDRES"; then
6945 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6946 $as_echo "$ac_ct_WINDRES" >&6; }
6948 { $as_echo "$as_me:$LINENO: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_WINDRES" = x; then
6955 case $cross_compiling:$ac_tool_warned in
6957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6961 WINDRES=$ac_ct_WINDRES
6964 WINDRES="$ac_cv_prog_WINDRES"
6969 # Find a good install program. We prefer a C program (faster),
6970 # so one script is as good as another. But avoid the broken or
6971 # incompatible versions:
6972 # SysV /etc/install, /usr/sbin/install
6973 # SunOS /usr/etc/install
6974 # IRIX /sbin/install
6976 # AmigaOS /C/install, which installs bootblocks on floppy discs
6977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6980 # OS/2's system install, which has a completely different semantic
6981 # ./install, which can be erroneously created by make from ./install.sh.
6982 # Reject install programs that cannot install multiple files.
6983 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6985 if test -z "$INSTALL"; then
6986 if test "${ac_cv_path_install+set}" = set; then
6987 $as_echo_n "(cached) " >&6
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 # Account for people who put trailing slashes in PATH elements.
6996 ./ | .// | /cC/* | \
6997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7001 # OSF1 and SCO ODT 3.0 have their own names for install.
7002 # Don't use installbsd from OSF since it installs stuff as root
7004 for ac_prog in ginstall scoinst install; do
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7007 if test $ac_prog = install &&
7008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7009 # AIX install. It has an incompatible calling convention.
7011 elif test $ac_prog = install &&
7012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7013 # program-specific install script used by HP pwplus--don't use.
7016 rm -rf conftest.one conftest.two conftest.dir
7017 echo one > conftest.one
7018 echo two > conftest.two
7020 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7021 test -s conftest.one && test -s conftest.two &&
7022 test -s conftest.dir/conftest.one &&
7023 test -s conftest.dir/conftest.two
7025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7038 rm -rf conftest.one conftest.two conftest.dir
7041 if test "${ac_cv_path_install+set}" = set; then
7042 INSTALL=$ac_cv_path_install
7044 # As a last resort, use the slow shell script. Don't cache a
7045 # value for INSTALL within a source directory, because that will
7046 # break other packages using the cache if that directory is
7047 # removed, or if the value is a relative name.
7048 INSTALL=$ac_install_sh
7051 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7052 $as_echo "$INSTALL" >&6; }
7054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7055 # It thinks the first close brace ends the variable substitution.
7056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7062 # When Autoconf chooses install-sh as install program it tries to generate
7063 # a relative path to it in each makefile where it subsitutes it. This clashes
7064 # with our Makefile.global concept. This workaround helps.
7066 *install-sh*) install_bin='';;
7067 *) install_bin=$INSTALL;;
7071 # Extract the first word of "tar", so it can be a program name with args.
7072 set dummy tar; ac_word=$2
7073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_path_TAR+set}" = set; then
7076 $as_echo_n "(cached) " >&6
7080 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 if test -n "$TAR"; then
7103 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7104 $as_echo "$TAR" >&6; }
7106 { $as_echo "$as_me:$LINENO: result: no" >&5
7107 $as_echo "no" >&6; }
7111 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7112 $as_echo_n "checking whether ln -s works... " >&6; }
7114 if test "$LN_S" = "ln -s"; then
7115 { $as_echo "$as_me:$LINENO: result: yes" >&5
7116 $as_echo "yes" >&6; }
7118 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7119 $as_echo "no, using $LN_S" >&6; }
7122 for ac_prog in gawk mawk nawk awk
7124 # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_AWK+set}" = set; then
7129 $as_echo_n "(cached) " >&6
7131 if test -n "$AWK"; then
7132 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_AWK="$ac_prog"
7142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 if test -n "$AWK"; then
7153 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7154 $as_echo "$AWK" >&6; }
7156 { $as_echo "$as_me:$LINENO: result: no" >&5
7157 $as_echo "no" >&6; }
7161 test -n "$AWK" && break
7164 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7165 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7166 if test -z "$MKDIR_P"; then
7167 if test "${ac_cv_path_mkdir+set}" = set; then
7168 $as_echo_n "(cached) " >&6
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7174 test -z "$as_dir" && as_dir=.
7175 for ac_prog in mkdir gmkdir; do
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7179 'mkdir (GNU coreutils) '* | \
7180 'mkdir (coreutils) '* | \
7181 'mkdir (fileutils) '4.1*)
7182 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7192 if test "${ac_cv_path_mkdir+set}" = set; then
7193 MKDIR_P="$ac_cv_path_mkdir -p"
7195 # As a last resort, use the slow shell script. Don't cache a
7196 # value for MKDIR_P within a source directory, because that will
7197 # break other packages using the cache if that directory is
7198 # removed, or if the value is a relative name.
7199 test -d ./--version && rmdir ./--version
7200 MKDIR_P="$ac_install_sh -d"
7203 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7204 $as_echo "$MKDIR_P" >&6; }
7206 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7207 # a relative path to it in each makefile where it subsitutes it. This clashes
7208 # with our Makefile.global concept. This workaround helps.
7210 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7213 # Let the user override the search
7214 if test -z "$BISON"; then
7215 for ac_prog in bison
7217 # Extract the first word of "$ac_prog", so it can be a program name with args.
7218 set dummy $ac_prog; ac_word=$2
7219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_path_BISON+set}" = set; then
7222 $as_echo_n "(cached) " >&6
7226 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 BISON=$ac_cv_path_BISON
7248 if test -n "$BISON"; then
7249 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7250 $as_echo "$BISON" >&6; }
7252 { $as_echo "$as_me:$LINENO: result: no" >&5
7253 $as_echo "no" >&6; }
7257 test -n "$BISON" && break
7262 if test "$BISON"; then
7263 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7264 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7265 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7266 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7268 { $as_echo "$as_me:$LINENO: WARNING:
7269 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7270 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7271 $as_echo "$as_me: WARNING:
7272 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7273 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7278 if test -z "$BISON"; then
7279 { $as_echo "$as_me:$LINENO: WARNING:
7280 *** Without Bison you will not be able to build PostgreSQL from Git nor
7281 *** change any of the parser definition files. You can obtain Bison from
7282 *** a GNU mirror site. (If you are using the official distribution of
7283 *** PostgreSQL then you do not need to worry about this, because the Bison
7284 *** output is pre-generated.)" >&5
7285 $as_echo "$as_me: WARNING:
7286 *** Without Bison you will not be able to build PostgreSQL from Git nor
7287 *** change any of the parser definition files. You can obtain Bison from
7288 *** a GNU mirror site. (If you are using the official distribution of
7289 *** PostgreSQL then you do not need to worry about this, because the Bison
7290 *** output is pre-generated.)" >&2;}
7292 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7295 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7296 $as_echo_n "checking for flex... " >&6; }
7297 if test "${pgac_cv_path_flex+set}" = set; then
7298 $as_echo_n "(cached) " >&6
7300 # Let the user override the test
7301 if test -n "$FLEX"; then
7302 pgac_cv_path_flex=$FLEX
7306 for pgac_dir in $PATH; do
7308 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7311 for pgac_prog in flex lex; do
7312 pgac_candidate="$pgac_dir/$pgac_prog"
7313 if test -f "$pgac_candidate" \
7314 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7316 echo '%%' > conftest.l
7317 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7318 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7319 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7321 pgac_cv_path_flex=$pgac_candidate
7324 { $as_echo "$as_me:$LINENO: WARNING:
7325 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7326 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7327 $as_echo "$as_me: WARNING:
7328 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7329 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7335 rm -f conftest.l lex.yy.c
7336 : ${pgac_cv_path_flex=no}
7340 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7341 $as_echo "$pgac_cv_path_flex" >&6; }
7342 if test x"$pgac_cv_path_flex" = x"no"; then
7343 { $as_echo "$as_me:$LINENO: WARNING:
7344 *** Without Flex you will not be able to build PostgreSQL from Git nor
7345 *** change any of the scanner definition files. You can obtain Flex from
7346 *** a GNU mirror site. (If you are using the official distribution of
7347 *** PostgreSQL then you do not need to worry about this because the Flex
7348 *** output is pre-generated.)" >&5
7349 $as_echo "$as_me: WARNING:
7350 *** Without Flex you will not be able to build PostgreSQL from Git nor
7351 *** change any of the scanner definition files. You can obtain Flex from
7352 *** a GNU mirror site. (If you are using the official distribution of
7353 *** PostgreSQL then you do not need to worry about this because the Flex
7354 *** output is pre-generated.)" >&2;}
7358 FLEX=$pgac_cv_path_flex
7359 pgac_flex_version=`$FLEX --version 2>/dev/null`
7360 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7361 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7368 # Let the user override the search
7369 if test -z "$PERL"; then
7370 # Extract the first word of "perl", so it can be a program name with args.
7371 set dummy perl; ac_word=$2
7372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_path_PERL+set}" = set; then
7375 $as_echo_n "(cached) " >&6
7379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 PERL=$ac_cv_path_PERL
7401 if test -n "$PERL"; then
7402 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7403 $as_echo "$PERL" >&6; }
7405 { $as_echo "$as_me:$LINENO: result: no" >&5
7406 $as_echo "no" >&6; }
7412 if test "$PERL"; then
7413 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'`
7414 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7415 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7416 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7417 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7419 { $as_echo "$as_me:$LINENO: WARNING:
7420 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7421 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7422 $as_echo "$as_me: WARNING:
7423 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7424 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7429 if test -z "$PERL"; then
7430 { $as_echo "$as_me:$LINENO: WARNING:
7431 *** Without Perl you will not be able to build PostgreSQL from Git.
7432 *** You can obtain Perl from any CPAN mirror site.
7433 *** (If you are using the official distribution of PostgreSQL then you do not
7434 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7435 $as_echo "$as_me: WARNING:
7436 *** Without Perl you will not be able to build PostgreSQL from Git.
7437 *** You can obtain Perl from any CPAN mirror site.
7438 *** (If you are using the official distribution of PostgreSQL then you do not
7439 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7442 if test "$with_perl" = yes; then
7443 if test -z "$PERL"; then
7444 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7445 $as_echo "$as_me: error: Perl not found" >&2;}
7446 { (exit 1); exit 1; }; }
7449 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7450 $as_echo_n "checking for Perl archlibexp... " >&6; }
7451 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7452 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7453 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7454 $as_echo "$perl_archlibexp" >&6; }
7455 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7456 $as_echo_n "checking for Perl privlibexp... " >&6; }
7457 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7458 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7459 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7460 $as_echo "$perl_privlibexp" >&6; }
7461 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7462 $as_echo_n "checking for Perl useshrplib... " >&6; }
7463 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7464 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7465 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7466 $as_echo "$perl_useshrplib" >&6; }
7468 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7469 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7470 if test "$PORTNAME" = "win32" ; then
7471 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7472 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7474 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7475 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7476 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7478 if test -z "$perl_embed_ldflags" ; then
7479 { $as_echo "$as_me:$LINENO: result: no" >&5
7480 $as_echo "no" >&6; }
7481 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7482 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7484 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7485 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7487 { (exit 1); exit 1; }; }
7489 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7490 $as_echo "$perl_embed_ldflags" >&6; }
7495 if test "$with_python" = yes; then
7496 # Extract the first word of "python", so it can be a program name with args.
7497 set dummy python; ac_word=$2
7498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_path_PYTHON+set}" = set; then
7501 $as_echo_n "(cached) " >&6
7505 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 PYTHON=$ac_cv_path_PYTHON
7527 if test -n "$PYTHON"; then
7528 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7529 $as_echo "$PYTHON" >&6; }
7531 { $as_echo "$as_me:$LINENO: result: no" >&5
7532 $as_echo "no" >&6; }
7536 if test x"$PYTHON" = x""; then
7537 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7538 $as_echo "$as_me: error: Python not found" >&2;}
7539 { (exit 1); exit 1; }; }
7543 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7544 $as_echo_n "checking for Python distutils module... " >&6; }
7545 if "${PYTHON}" -c 'import distutils' 2>&5
7547 { $as_echo "$as_me:$LINENO: result: yes" >&5
7548 $as_echo "yes" >&6; }
7550 { $as_echo "$as_me:$LINENO: result: no" >&5
7551 $as_echo "no" >&6; }
7552 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7553 $as_echo "$as_me: error: distutils module not found" >&2;}
7554 { (exit 1); exit 1; }; }
7556 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7557 $as_echo_n "checking Python configuration directory... " >&6; }
7558 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7559 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7560 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7561 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7562 $as_echo "$python_configdir" >&6; }
7564 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7565 $as_echo_n "checking Python include directories... " >&6; }
7566 python_includespec=`${PYTHON} -c "
7567 import distutils.sysconfig
7568 a = '-I' + distutils.sysconfig.get_python_inc(False)
7569 b = '-I' + distutils.sysconfig.get_python_inc(True)
7573 print(a + ' ' + b)"`
7574 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7575 $as_echo "$python_includespec" >&6; }
7579 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7580 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7582 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7583 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7584 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7585 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7586 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7587 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7589 if test -n "$python_framework"; then
7590 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7591 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7592 python_enable_shared=1
7593 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7595 # New way: use the official shared library
7596 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7597 python_libspec="-L${python_libdir} -l${ldlibrary}"
7599 # Old way: use libpython from python_configdir
7600 python_libdir="${python_configdir}"
7601 # LDVERSION was introduced in Python 3.2.
7602 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7603 if test x"${python_ldversion}" = x""; then
7604 python_ldversion=$python_version
7606 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7609 if test -z "$python_framework"; then
7610 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7613 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7614 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7617 # threaded python is not supported on OpenBSD
7618 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7619 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7620 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7621 if test "$pythreads" = "1"; then
7622 { $as_echo "$as_me:$LINENO: result: yes" >&5
7623 $as_echo "yes" >&6; }
7626 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7627 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7628 { (exit 1); exit 1; }; }
7632 { $as_echo "$as_me:$LINENO: result: no" >&5
7633 $as_echo "no" >&6; }
7639 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7640 # Extract the first word of "zic", so it can be a program name with args.
7641 set dummy zic; ac_word=$2
7642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_path_ZIC+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7649 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 if test -n "$ZIC"; then
7672 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7673 $as_echo "$ZIC" >&6; }
7675 { $as_echo "$as_me:$LINENO: result: no" >&5
7676 $as_echo "no" >&6; }
7680 if test -z "$ZIC"; then
7681 { { $as_echo "$as_me:$LINENO: error:
7682 When cross-compiling, either use the option --with-system-tzdata to use
7683 existing time-zone data, or set the environment variable ZIC to a zic
7684 program to use during the build." >&5
7685 $as_echo "$as_me: error:
7686 When cross-compiling, either use the option --with-system-tzdata to use
7687 existing time-zone data, or set the environment variable ZIC to a zic
7688 program to use during the build." >&2;}
7689 { (exit 1); exit 1; }; }
7697 ## Most libraries are included only if they demonstrably provide a function
7698 ## we need, but libm is an exception: always include it, because there are
7699 ## too many compilers that play cute optimization games that will break
7700 ## probes for standard functions such as pow().
7704 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7705 $as_echo_n "checking for main in -lm... " >&6; }
7706 if test "${ac_cv_lib_m_main+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7709 ac_check_lib_save_LIBS=$LIBS
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_link") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest$ac_exeext && {
7745 test "$cross_compiling" = yes ||
7746 $as_test_x conftest$ac_exeext
7748 ac_cv_lib_m_main=yes
7750 $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7756 rm -rf conftest.dSYM
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7762 $as_echo "$ac_cv_lib_m_main" >&6; }
7763 if test "x$ac_cv_lib_m_main" = x""yes; then
7764 cat >>confdefs.h <<_ACEOF
7772 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7773 $as_echo_n "checking for library containing setproctitle... " >&6; }
7774 if test "${ac_cv_search_setproctitle+set}" = set; then
7775 $as_echo_n "(cached) " >&6
7777 ac_func_search_save_LIBS=$LIBS
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7791 char setproctitle ();
7795 return setproctitle ();
7800 for ac_lib in '' util; do
7801 if test -z "$ac_lib"; then
7802 ac_res="none required"
7805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (ac_try="$ac_link"
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7814 $as_echo "$ac_try_echo") >&5
7815 (eval "$ac_link") 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } && {
7822 test -z "$ac_c_werror_flag" ||
7823 test ! -s conftest.err
7824 } && test -s conftest$ac_exeext && {
7825 test "$cross_compiling" = yes ||
7826 $as_test_x conftest$ac_exeext
7828 ac_cv_search_setproctitle=$ac_res
7830 $as_echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7836 rm -rf conftest.dSYM
7837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7839 if test "${ac_cv_search_setproctitle+set}" = set; then
7843 if test "${ac_cv_search_setproctitle+set}" = set; then
7846 ac_cv_search_setproctitle=no
7849 LIBS=$ac_func_search_save_LIBS
7851 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7852 $as_echo "$ac_cv_search_setproctitle" >&6; }
7853 ac_res=$ac_cv_search_setproctitle
7854 if test "$ac_res" != no; then
7855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7859 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7860 $as_echo_n "checking for library containing dlopen... " >&6; }
7861 if test "${ac_cv_search_dlopen+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7864 ac_func_search_save_LIBS=$LIBS
7865 cat >conftest.$ac_ext <<_ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7872 /* Override any GCC internal prototype to avoid an error.
7873 Use char because int might match the return type of a GCC
7874 builtin and then its argument prototype would still apply. */
7887 for ac_lib in '' dl; do
7888 if test -z "$ac_lib"; then
7889 ac_res="none required"
7892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7901 $as_echo "$ac_try_echo") >&5
7902 (eval "$ac_link") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest$ac_exeext && {
7912 test "$cross_compiling" = yes ||
7913 $as_test_x conftest$ac_exeext
7915 ac_cv_search_dlopen=$ac_res
7917 $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7923 rm -rf conftest.dSYM
7924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7926 if test "${ac_cv_search_dlopen+set}" = set; then
7930 if test "${ac_cv_search_dlopen+set}" = set; then
7933 ac_cv_search_dlopen=no
7936 LIBS=$ac_func_search_save_LIBS
7938 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7939 $as_echo "$ac_cv_search_dlopen" >&6; }
7940 ac_res=$ac_cv_search_dlopen
7941 if test "$ac_res" != no; then
7942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7946 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7947 $as_echo_n "checking for library containing socket... " >&6; }
7948 if test "${ac_cv_search_socket+set}" = set; then
7949 $as_echo_n "(cached) " >&6
7951 ac_func_search_save_LIBS=$LIBS
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7959 /* Override any GCC internal prototype to avoid an error.
7960 Use char because int might match the return type of a GCC
7961 builtin and then its argument prototype would still apply. */
7974 for ac_lib in '' socket wsock32; do
7975 if test -z "$ac_lib"; then
7976 ac_res="none required"
7979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7988 $as_echo "$ac_try_echo") >&5
7989 (eval "$ac_link") 2>conftest.er1
7991 grep -v '^ *+' conftest.er1 >conftest.err
7993 cat conftest.err >&5
7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest$ac_exeext && {
7999 test "$cross_compiling" = yes ||
8000 $as_test_x conftest$ac_exeext
8002 ac_cv_search_socket=$ac_res
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8010 rm -rf conftest.dSYM
8011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013 if test "${ac_cv_search_socket+set}" = set; then
8017 if test "${ac_cv_search_socket+set}" = set; then
8020 ac_cv_search_socket=no
8023 LIBS=$ac_func_search_save_LIBS
8025 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8026 $as_echo "$ac_cv_search_socket" >&6; }
8027 ac_res=$ac_cv_search_socket
8028 if test "$ac_res" != no; then
8029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8033 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8034 $as_echo_n "checking for library containing shl_load... " >&6; }
8035 if test "${ac_cv_search_shl_load+set}" = set; then
8036 $as_echo_n "(cached) " >&6
8038 ac_func_search_save_LIBS=$LIBS
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8061 for ac_lib in '' dld; do
8062 if test -z "$ac_lib"; then
8063 ac_res="none required"
8066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest$ac_exeext && {
8086 test "$cross_compiling" = yes ||
8087 $as_test_x conftest$ac_exeext
8089 ac_cv_search_shl_load=$ac_res
8091 $as_echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8097 rm -rf conftest.dSYM
8098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100 if test "${ac_cv_search_shl_load+set}" = set; then
8104 if test "${ac_cv_search_shl_load+set}" = set; then
8107 ac_cv_search_shl_load=no
8110 LIBS=$ac_func_search_save_LIBS
8112 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8113 $as_echo "$ac_cv_search_shl_load" >&6; }
8114 ac_res=$ac_cv_search_shl_load
8115 if test "$ac_res" != no; then
8116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8120 # We only use libld in port/dynloader/aix.c
8123 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8124 $as_echo_n "checking for library containing ldopen... " >&6; }
8125 if test "${ac_cv_search_ldopen+set}" = set; then
8126 $as_echo_n "(cached) " >&6
8128 ac_func_search_save_LIBS=$LIBS
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8136 /* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8151 for ac_lib in '' ld; do
8152 if test -z "$ac_lib"; then
8153 ac_res="none required"
8156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166 (eval "$ac_link") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest$ac_exeext && {
8176 test "$cross_compiling" = yes ||
8177 $as_test_x conftest$ac_exeext
8179 ac_cv_search_ldopen=$ac_res
8181 $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8187 rm -rf conftest.dSYM
8188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8190 if test "${ac_cv_search_ldopen+set}" = set; then
8194 if test "${ac_cv_search_ldopen+set}" = set; then
8197 ac_cv_search_ldopen=no
8200 LIBS=$ac_func_search_save_LIBS
8202 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8203 $as_echo "$ac_cv_search_ldopen" >&6; }
8204 ac_res=$ac_cv_search_ldopen
8205 if test "$ac_res" != no; then
8206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8212 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8213 $as_echo_n "checking for library containing getopt_long... " >&6; }
8214 if test "${ac_cv_search_getopt_long+set}" = set; then
8215 $as_echo_n "(cached) " >&6
8217 ac_func_search_save_LIBS=$LIBS
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8225 /* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8231 char getopt_long ();
8235 return getopt_long ();
8240 for ac_lib in '' getopt gnugetopt; do
8241 if test -z "$ac_lib"; then
8242 ac_res="none required"
8245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_link") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest$ac_exeext && {
8265 test "$cross_compiling" = yes ||
8266 $as_test_x conftest$ac_exeext
8268 ac_cv_search_getopt_long=$ac_res
8270 $as_echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -rf conftest.dSYM
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 if test "${ac_cv_search_getopt_long+set}" = set; then
8283 if test "${ac_cv_search_getopt_long+set}" = set; then
8286 ac_cv_search_getopt_long=no
8289 LIBS=$ac_func_search_save_LIBS
8291 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8292 $as_echo "$ac_cv_search_getopt_long" >&6; }
8293 ac_res=$ac_cv_search_getopt_long
8294 if test "$ac_res" != no; then
8295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8299 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8300 $as_echo_n "checking for library containing crypt... " >&6; }
8301 if test "${ac_cv_search_crypt+set}" = set; then
8302 $as_echo_n "(cached) " >&6
8304 ac_func_search_save_LIBS=$LIBS
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8312 /* Override any GCC internal prototype to avoid an error.
8313 Use char because int might match the return type of a GCC
8314 builtin and then its argument prototype would still apply. */
8327 for ac_lib in '' crypt; do
8328 if test -z "$ac_lib"; then
8329 ac_res="none required"
8332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_link") 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest$ac_exeext && {
8352 test "$cross_compiling" = yes ||
8353 $as_test_x conftest$ac_exeext
8355 ac_cv_search_crypt=$ac_res
8357 $as_echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8363 rm -rf conftest.dSYM
8364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366 if test "${ac_cv_search_crypt+set}" = set; then
8370 if test "${ac_cv_search_crypt+set}" = set; then
8373 ac_cv_search_crypt=no
8376 LIBS=$ac_func_search_save_LIBS
8378 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8379 $as_echo "$ac_cv_search_crypt" >&6; }
8380 ac_res=$ac_cv_search_crypt
8381 if test "$ac_res" != no; then
8382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8386 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
8387 $as_echo_n "checking for library containing shm_open... " >&6; }
8388 if test "${ac_cv_search_shm_open+set}" = set; then
8389 $as_echo_n "(cached) " >&6
8391 ac_func_search_save_LIBS=$LIBS
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 /* Override any GCC internal prototype to avoid an error.
8400 Use char because int might match the return type of a GCC
8401 builtin and then its argument prototype would still apply. */
8414 for ac_lib in '' rt; do
8415 if test -z "$ac_lib"; then
8416 ac_res="none required"
8419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (ac_try="$ac_link"
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428 $as_echo "$ac_try_echo") >&5
8429 (eval "$ac_link") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest$ac_exeext && {
8439 test "$cross_compiling" = yes ||
8440 $as_test_x conftest$ac_exeext
8442 ac_cv_search_shm_open=$ac_res
8444 $as_echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest.dSYM
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8453 if test "${ac_cv_search_shm_open+set}" = set; then
8457 if test "${ac_cv_search_shm_open+set}" = set; then
8460 ac_cv_search_shm_open=no
8463 LIBS=$ac_func_search_save_LIBS
8465 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
8466 $as_echo "$ac_cv_search_shm_open" >&6; }
8467 ac_res=$ac_cv_search_shm_open
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8473 { $as_echo "$as_me:$LINENO: checking for library containing shm_unlink" >&5
8474 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8475 if test "${ac_cv_search_shm_unlink+set}" = set; then
8476 $as_echo_n "(cached) " >&6
8478 ac_func_search_save_LIBS=$LIBS
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8486 /* Override any GCC internal prototype to avoid an error.
8487 Use char because int might match the return type of a GCC
8488 builtin and then its argument prototype would still apply. */
8496 return shm_unlink ();
8501 for ac_lib in '' rt; do
8502 if test -z "$ac_lib"; then
8503 ac_res="none required"
8506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (ac_try="$ac_link"
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8515 $as_echo "$ac_try_echo") >&5
8516 (eval "$ac_link") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest$ac_exeext && {
8526 test "$cross_compiling" = yes ||
8527 $as_test_x conftest$ac_exeext
8529 ac_cv_search_shm_unlink=$ac_res
8531 $as_echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8537 rm -rf conftest.dSYM
8538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540 if test "${ac_cv_search_shm_unlink+set}" = set; then
8544 if test "${ac_cv_search_shm_unlink+set}" = set; then
8547 ac_cv_search_shm_unlink=no
8550 LIBS=$ac_func_search_save_LIBS
8552 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_unlink" >&5
8553 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8554 ac_res=$ac_cv_search_shm_unlink
8555 if test "$ac_res" != no; then
8556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8561 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8562 $as_echo_n "checking for library containing fdatasync... " >&6; }
8563 if test "${ac_cv_search_fdatasync+set}" = set; then
8564 $as_echo_n "(cached) " >&6
8566 ac_func_search_save_LIBS=$LIBS
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 /* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8584 return fdatasync ();
8589 for ac_lib in '' rt posix4; do
8590 if test -z "$ac_lib"; then
8591 ac_res="none required"
8594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_link") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest$ac_exeext && {
8614 test "$cross_compiling" = yes ||
8615 $as_test_x conftest$ac_exeext
8617 ac_cv_search_fdatasync=$ac_res
8619 $as_echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8625 rm -rf conftest.dSYM
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628 if test "${ac_cv_search_fdatasync+set}" = set; then
8632 if test "${ac_cv_search_fdatasync+set}" = set; then
8635 ac_cv_search_fdatasync=no
8638 LIBS=$ac_func_search_save_LIBS
8640 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8641 $as_echo "$ac_cv_search_fdatasync" >&6; }
8642 ac_res=$ac_cv_search_fdatasync
8643 if test "$ac_res" != no; then
8644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8648 # Required for thread_test.c on Solaris 2.5:
8649 # Other ports use it too (HP-UX) so test unconditionally
8650 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8651 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8652 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8653 $as_echo_n "(cached) " >&6
8655 ac_func_search_save_LIBS=$LIBS
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any GCC internal prototype to avoid an error.
8664 Use char because int might match the return type of a GCC
8665 builtin and then its argument prototype would still apply. */
8669 char gethostbyname_r ();
8673 return gethostbyname_r ();
8678 for ac_lib in '' nsl; do
8679 if test -z "$ac_lib"; then
8680 ac_res="none required"
8683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (ac_try="$ac_link"
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8692 $as_echo "$ac_try_echo") >&5
8693 (eval "$ac_link") 2>conftest.er1
8695 grep -v '^ *+' conftest.er1 >conftest.err
8697 cat conftest.err >&5
8698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest$ac_exeext && {
8703 test "$cross_compiling" = yes ||
8704 $as_test_x conftest$ac_exeext
8706 ac_cv_search_gethostbyname_r=$ac_res
8708 $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8714 rm -rf conftest.dSYM
8715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8717 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8721 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8724 ac_cv_search_gethostbyname_r=no
8727 LIBS=$ac_func_search_save_LIBS
8729 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8730 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8731 ac_res=$ac_cv_search_gethostbyname_r
8732 if test "$ac_res" != no; then
8733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8738 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8739 $as_echo_n "checking for library containing shmget... " >&6; }
8740 if test "${ac_cv_search_shmget+set}" = set; then
8741 $as_echo_n "(cached) " >&6
8743 ac_func_search_save_LIBS=$LIBS
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8766 for ac_lib in '' cygipc; do
8767 if test -z "$ac_lib"; then
8768 ac_res="none required"
8771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (ac_try="$ac_link"
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext && {
8791 test "$cross_compiling" = yes ||
8792 $as_test_x conftest$ac_exeext
8794 ac_cv_search_shmget=$ac_res
8796 $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8802 rm -rf conftest.dSYM
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 if test "${ac_cv_search_shmget+set}" = set; then
8809 if test "${ac_cv_search_shmget+set}" = set; then
8812 ac_cv_search_shmget=no
8815 LIBS=$ac_func_search_save_LIBS
8817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8818 $as_echo "$ac_cv_search_shmget" >&6; }
8819 ac_res=$ac_cv_search_shmget
8820 if test "$ac_res" != no; then
8821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8826 if test "$with_readline" = yes; then
8829 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8830 $as_echo_n "checking for library containing readline... " >&6; }
8831 if test "${pgac_cv_check_readline+set}" = set; then
8832 $as_echo_n "(cached) " >&6
8834 pgac_cv_check_readline=no
8835 pgac_save_LIBS=$LIBS
8836 if test x"$with_libedit_preferred" != x"yes"
8837 then READLINE_ORDER="-lreadline -ledit"
8838 else READLINE_ORDER="-ledit -lreadline"
8840 for pgac_rllib in $READLINE_ORDER ; do
8841 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8842 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8850 /* Override any GCC internal prototype to avoid an error.
8851 Use char because int might match the return type of a GCC
8852 builtin and then its argument prototype would still apply. */
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_link") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest$ac_exeext && {
8883 test "$cross_compiling" = yes ||
8884 $as_test_x conftest$ac_exeext
8887 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8888 # recognize dependent libraries; assume curses is needed if we didn't
8889 # find any dependency.
8891 netbsd* | openbsd* | irix*)
8892 if test x"$pgac_lib" = x"" ; then
8893 pgac_lib=" -lcurses"
8897 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8907 rm -rf conftest.dSYM
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8911 if test "$pgac_cv_check_readline" != no ; then
8915 LIBS=$pgac_save_LIBS
8918 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8919 $as_echo "$pgac_cv_check_readline" >&6; }
8920 if test "$pgac_cv_check_readline" != no ; then
8921 LIBS="$pgac_cv_check_readline $LIBS"
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_LIBREADLINE 1
8930 if test x"$pgac_cv_check_readline" = x"no"; then
8931 { { $as_echo "$as_me:$LINENO: error: readline library not found
8932 If you have readline already installed, see config.log for details on the
8933 failure. It is possible the compiler isn't looking in the proper directory.
8934 Use --without-readline to disable readline support." >&5
8935 $as_echo "$as_me: error: readline library not found
8936 If you have readline already installed, see config.log for details on the
8937 failure. It is possible the compiler isn't looking in the proper directory.
8938 Use --without-readline to disable readline support." >&2;}
8939 { (exit 1); exit 1; }; }
8943 if test "$with_zlib" = yes; then
8945 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8946 $as_echo_n "checking for inflate in -lz... " >&6; }
8947 if test "${ac_cv_lib_z_inflate+set}" = set; then
8948 $as_echo_n "(cached) " >&6
8950 ac_check_lib_save_LIBS=$LIBS
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (ac_try="$ac_link"
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_link") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest$ac_exeext && {
8992 test "$cross_compiling" = yes ||
8993 $as_test_x conftest$ac_exeext
8995 ac_cv_lib_z_inflate=yes
8997 $as_echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_lib_z_inflate=no
9003 rm -rf conftest.dSYM
9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005 conftest$ac_exeext conftest.$ac_ext
9006 LIBS=$ac_check_lib_save_LIBS
9008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
9009 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9010 if test "x$ac_cv_lib_z_inflate" = x""yes; then
9011 cat >>confdefs.h <<_ACEOF
9018 { { $as_echo "$as_me:$LINENO: error: zlib library not found
9019 If you have zlib already installed, see config.log for details on the
9020 failure. It is possible the compiler isn't looking in the proper directory.
9021 Use --without-zlib to disable zlib support." >&5
9022 $as_echo "$as_me: error: zlib library not found
9023 If you have zlib already installed, see config.log for details on the
9024 failure. It is possible the compiler isn't looking in the proper directory.
9025 Use --without-zlib to disable zlib support." >&2;}
9026 { (exit 1); exit 1; }; }
9031 if test "$enable_spinlocks" = yes; then
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_SPINLOCKS 1
9038 { $as_echo "$as_me:$LINENO: WARNING:
9039 *** Not using spinlocks will cause poor performance." >&5
9040 $as_echo "$as_me: WARNING:
9041 *** Not using spinlocks will cause poor performance." >&2;}
9044 if test "$with_gssapi" = yes ; then
9045 if test "$PORTNAME" != "win32"; then
9046 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
9047 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9048 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9049 $as_echo_n "(cached) " >&6
9051 ac_func_search_save_LIBS=$LIBS
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9059 /* Override any GCC internal prototype to avoid an error.
9060 Use char because int might match the return type of a GCC
9061 builtin and then its argument prototype would still apply. */
9065 char gss_init_sec_context ();
9069 return gss_init_sec_context ();
9074 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9075 if test -z "$ac_lib"; then
9076 ac_res="none required"
9079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (ac_try="$ac_link"
9084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9085 *) ac_try_echo=$ac_try;;
9087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9088 $as_echo "$ac_try_echo") >&5
9089 (eval "$ac_link") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest$ac_exeext && {
9099 test "$cross_compiling" = yes ||
9100 $as_test_x conftest$ac_exeext
9102 ac_cv_search_gss_init_sec_context=$ac_res
9104 $as_echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9110 rm -rf conftest.dSYM
9111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9117 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9120 ac_cv_search_gss_init_sec_context=no
9123 LIBS=$ac_func_search_save_LIBS
9125 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
9126 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9127 ac_res=$ac_cv_search_gss_init_sec_context
9128 if test "$ac_res" != no; then
9129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9132 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
9133 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
9134 { (exit 1); exit 1; }; }
9138 LIBS="$LIBS -lgssapi32"
9142 if test "$with_krb5" = yes ; then
9143 if test "$PORTNAME" != "win32"; then
9144 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9145 $as_echo_n "checking for library containing com_err... " >&6; }
9146 if test "${ac_cv_search_com_err+set}" = set; then
9147 $as_echo_n "(cached) " >&6
9149 ac_func_search_save_LIBS=$LIBS
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9172 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9173 if test -z "$ac_lib"; then
9174 ac_res="none required"
9177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (ac_try="$ac_link"
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9186 $as_echo "$ac_try_echo") >&5
9187 (eval "$ac_link") 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest$ac_exeext && {
9197 test "$cross_compiling" = yes ||
9198 $as_test_x conftest$ac_exeext
9200 ac_cv_search_com_err=$ac_res
9202 $as_echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9208 rm -rf conftest.dSYM
9209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211 if test "${ac_cv_search_com_err+set}" = set; then
9215 if test "${ac_cv_search_com_err+set}" = set; then
9218 ac_cv_search_com_err=no
9221 LIBS=$ac_func_search_save_LIBS
9223 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9224 $as_echo "$ac_cv_search_com_err" >&6; }
9225 ac_res=$ac_cv_search_com_err
9226 if test "$ac_res" != no; then
9227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9230 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9231 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9232 { (exit 1); exit 1; }; }
9235 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9236 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9237 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9238 $as_echo_n "(cached) " >&6
9240 ac_func_search_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9254 char krb5_sendauth ();
9258 return krb5_sendauth ();
9263 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9264 if test -z "$ac_lib"; then
9265 ac_res="none required"
9268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9277 $as_echo "$ac_try_echo") >&5
9278 (eval "$ac_link") 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && {
9285 test -z "$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 } && test -s conftest$ac_exeext && {
9288 test "$cross_compiling" = yes ||
9289 $as_test_x conftest$ac_exeext
9291 ac_cv_search_krb5_sendauth=$ac_res
9293 $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9302 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9306 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9309 ac_cv_search_krb5_sendauth=no
9312 LIBS=$ac_func_search_save_LIBS
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9315 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9316 ac_res=$ac_cv_search_krb5_sendauth
9317 if test "$ac_res" != no; then
9318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9321 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9322 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9323 { (exit 1); exit 1; }; }
9327 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9328 $as_echo_n "checking for library containing com_err... " >&6; }
9329 if test "${ac_cv_search_com_err+set}" = set; then
9330 $as_echo_n "(cached) " >&6
9332 ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9355 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9356 if test -z "$ac_lib"; then
9357 ac_res="none required"
9360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9369 $as_echo "$ac_try_echo") >&5
9370 (eval "$ac_link") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext && {
9380 test "$cross_compiling" = yes ||
9381 $as_test_x conftest$ac_exeext
9383 ac_cv_search_com_err=$ac_res
9385 $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9391 rm -rf conftest.dSYM
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9394 if test "${ac_cv_search_com_err+set}" = set; then
9398 if test "${ac_cv_search_com_err+set}" = set; then
9401 ac_cv_search_com_err=no
9404 LIBS=$ac_func_search_save_LIBS
9406 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9407 $as_echo "$ac_cv_search_com_err" >&6; }
9408 ac_res=$ac_cv_search_com_err
9409 if test "$ac_res" != no; then
9410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9413 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9414 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9415 { (exit 1); exit 1; }; }
9421 if test "$with_openssl" = yes ; then
9422 if test "$PORTNAME" != "win32"; then
9424 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9425 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9426 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9427 $as_echo_n "(cached) " >&6
9429 ac_check_lib_save_LIBS=$LIBS
9430 LIBS="-lcrypto $LIBS"
9431 cat >conftest.$ac_ext <<_ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9438 /* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9444 char CRYPTO_new_ex_data ();
9448 return CRYPTO_new_ex_data ();
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9460 $as_echo "$ac_try_echo") >&5
9461 (eval "$ac_link") 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext && {
9471 test "$cross_compiling" = yes ||
9472 $as_test_x conftest$ac_exeext
9474 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9476 $as_echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9482 rm -rf conftest.dSYM
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484 conftest$ac_exeext conftest.$ac_ext
9485 LIBS=$ac_check_lib_save_LIBS
9487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9488 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9489 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_LIBCRYPTO 1
9494 LIBS="-lcrypto $LIBS"
9497 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9498 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9499 { (exit 1); exit 1; }; }
9503 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9504 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9505 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9506 $as_echo_n "(cached) " >&6
9508 ac_check_lib_save_LIBS=$LIBS
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9523 char SSL_library_init ();
9527 return SSL_library_init ();
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext && {
9550 test "$cross_compiling" = yes ||
9551 $as_test_x conftest$ac_exeext
9553 ac_cv_lib_ssl_SSL_library_init=yes
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_cv_lib_ssl_SSL_library_init=no
9561 rm -rf conftest.dSYM
9562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_lib_save_LIBS
9566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9567 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9568 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_LIBSSL 1
9576 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9577 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9578 { (exit 1); exit 1; }; }
9582 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9583 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9584 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9585 $as_echo_n "(cached) " >&6
9587 ac_func_search_save_LIBS=$LIBS
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9601 char CRYPTO_new_ex_data ();
9605 return CRYPTO_new_ex_data ();
9610 for ac_lib in '' eay32 crypto; do
9611 if test -z "$ac_lib"; then
9612 ac_res="none required"
9615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9624 $as_echo "$ac_try_echo") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext && {
9635 test "$cross_compiling" = yes ||
9636 $as_test_x conftest$ac_exeext
9638 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9640 $as_echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9646 rm -rf conftest.dSYM
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9649 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9653 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9656 ac_cv_search_CRYPTO_new_ex_data=no
9659 LIBS=$ac_func_search_save_LIBS
9661 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9662 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9663 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9664 if test "$ac_res" != no; then
9665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9668 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9669 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9670 { (exit 1); exit 1; }; }
9673 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9674 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9675 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9676 $as_echo_n "(cached) " >&6
9678 ac_func_search_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9692 char SSL_library_init ();
9696 return SSL_library_init ();
9701 for ac_lib in '' ssleay32 ssl; do
9702 if test -z "$ac_lib"; then
9703 ac_res="none required"
9706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_link") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest$ac_exeext && {
9726 test "$cross_compiling" = yes ||
9727 $as_test_x conftest$ac_exeext
9729 ac_cv_search_SSL_library_init=$ac_res
9731 $as_echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9737 rm -rf conftest.dSYM
9738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9744 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9747 ac_cv_search_SSL_library_init=no
9750 LIBS=$ac_func_search_save_LIBS
9752 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9753 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9754 ac_res=$ac_cv_search_SSL_library_init
9755 if test "$ac_res" != no; then
9756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9759 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9760 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9761 { (exit 1); exit 1; }; }
9767 if test "$with_pam" = yes ; then
9769 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9770 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9771 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9772 $as_echo_n "(cached) " >&6
9774 ac_check_lib_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9793 return pam_start ();
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806 (eval "$ac_link") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest$ac_exeext && {
9816 test "$cross_compiling" = yes ||
9817 $as_test_x conftest$ac_exeext
9819 ac_cv_lib_pam_pam_start=yes
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_lib_pam_pam_start=no
9827 rm -rf conftest.dSYM
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9833 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9834 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9835 cat >>confdefs.h <<_ACEOF
9836 #define HAVE_LIBPAM 1
9842 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9843 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9844 { (exit 1); exit 1; }; }
9849 if test "$with_libxml" = yes ; then
9851 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9852 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9853 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9854 $as_echo_n "(cached) " >&6
9856 ac_check_lib_save_LIBS=$LIBS
9858 cat >conftest.$ac_ext <<_ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9871 char xmlSaveToBuffer ();
9875 return xmlSaveToBuffer ();
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888 (eval "$ac_link") 2>conftest.er1
9890 grep -v '^ *+' conftest.er1 >conftest.err
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest$ac_exeext && {
9898 test "$cross_compiling" = yes ||
9899 $as_test_x conftest$ac_exeext
9901 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9903 $as_echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_cv_lib_xml2_xmlSaveToBuffer=no
9909 rm -rf conftest.dSYM
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9915 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9916 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9917 cat >>confdefs.h <<_ACEOF
9918 #define HAVE_LIBXML2 1
9924 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9925 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9926 { (exit 1); exit 1; }; }
9931 if test "$with_libxslt" = yes ; then
9933 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9934 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9935 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9936 $as_echo_n "(cached) " >&6
9938 ac_check_lib_save_LIBS=$LIBS
9940 cat >conftest.$ac_ext <<_ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any GCC internal prototype to avoid an error.
9948 Use char because int might match the return type of a GCC
9949 builtin and then its argument prototype would still apply. */
9953 char xsltCleanupGlobals ();
9957 return xsltCleanupGlobals ();
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970 (eval "$ac_link") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext && {
9980 test "$cross_compiling" = yes ||
9981 $as_test_x conftest$ac_exeext
9983 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9985 $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_lib_xslt_xsltCleanupGlobals=no
9991 rm -rf conftest.dSYM
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_lib_save_LIBS
9996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9997 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9998 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define HAVE_LIBXSLT 1
10003 LIBS="-lxslt $LIBS"
10006 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
10007 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
10008 { (exit 1); exit 1; }; }
10013 # for contrib/sepgsql
10014 if test "$with_selinux" = yes; then
10016 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
10017 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10018 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10021 ac_check_lib_save_LIBS=$LIBS
10022 LIBS="-lselinux $LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10036 char security_compute_create_name ();
10040 return security_compute_create_name ();
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
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_link") 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_exeext && {
10063 test "$cross_compiling" = yes ||
10064 $as_test_x conftest$ac_exeext
10066 ac_cv_lib_selinux_security_compute_create_name=yes
10068 $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_lib_selinux_security_compute_create_name=no
10074 rm -rf conftest.dSYM
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10080 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10081 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
10082 cat >>confdefs.h <<_ACEOF
10083 #define HAVE_LIBSELINUX 1
10086 LIBS="-lselinux $LIBS"
10089 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
10090 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
10091 { (exit 1); exit 1; }; }
10096 # for contrib/uuid-ossp
10097 if test "$with_ossp_uuid" = yes ; then
10098 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
10099 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10100 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lossp-uuid $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10118 char uuid_export ();
10122 return uuid_export ();
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10134 $as_echo "$ac_try_echo") >&5
10135 (eval "$ac_link") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest$ac_exeext && {
10145 test "$cross_compiling" = yes ||
10146 $as_test_x conftest$ac_exeext
10148 ac_cv_lib_ossp_uuid_uuid_export=yes
10150 $as_echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_ossp_uuid_uuid_export=no
10156 rm -rf conftest.dSYM
10157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10162 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10163 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
10164 OSSP_UUID_LIBS="-lossp-uuid"
10166 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
10167 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10168 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
10169 $as_echo_n "(cached) " >&6
10171 ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-luuid $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10186 char uuid_export ();
10190 return uuid_export ();
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext && {
10213 test "$cross_compiling" = yes ||
10214 $as_test_x conftest$ac_exeext
10216 ac_cv_lib_uuid_uuid_export=yes
10218 $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_cv_lib_uuid_uuid_export=no
10224 rm -rf conftest.dSYM
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226 conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10230 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10231 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10232 OSSP_UUID_LIBS="-luuid"
10234 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10235 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10236 { (exit 1); exit 1; }; }
10249 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10250 $as_echo_n "checking for ANSI C header files... " >&6; }
10251 if test "${ac_cv_header_stdc+set}" = set; then
10252 $as_echo_n "(cached) " >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10260 #include <stdlib.h>
10261 #include <stdarg.h>
10262 #include <string.h>
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281 (eval "$ac_compile") 2>conftest.er1
10283 grep -v '^ *+' conftest.er1 >conftest.err
10285 cat conftest.err >&5
10286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.$ac_objext; then
10291 ac_cv_header_stdc=yes
10293 $as_echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_cv_header_stdc=no
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 if test $ac_cv_header_stdc = yes; then
10302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <string.h>
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313 $EGREP "memchr" >/dev/null 2>&1; then
10316 ac_cv_header_stdc=no
10322 if test $ac_cv_header_stdc = yes; then
10323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 #include <stdlib.h>
10333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10334 $EGREP "free" >/dev/null 2>&1; then
10337 ac_cv_header_stdc=no
10343 if test $ac_cv_header_stdc = yes; then
10344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10345 if test "$cross_compiling" = yes; then
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10355 #include <stdlib.h>
10356 #if ((' ' & 0x0FF) == 0x020)
10357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10360 # define ISLOWER(c) \
10361 (('a' <= (c) && (c) <= 'i') \
10362 || ('j' <= (c) && (c) <= 'r') \
10363 || ('s' <= (c) && (c) <= 'z'))
10364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10372 for (i = 0; i < 256; i++)
10373 if (XOR (islower (i), ISLOWER (i))
10374 || toupper (i) != TOUPPER (i))
10379 rm -f conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10386 $as_echo "$ac_try_echo") >&5
10387 (eval "$ac_link") 2>&5
10389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396 $as_echo "$ac_try_echo") >&5
10397 (eval "$ac_try") 2>&5
10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10403 $as_echo "$as_me: program exited with status $ac_status" >&5
10404 $as_echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ( exit $ac_status )
10408 ac_cv_header_stdc=no
10410 rm -rf conftest.dSYM
10411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10418 $as_echo "$ac_cv_header_stdc" >&6; }
10419 if test $ac_cv_header_stdc = yes; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define STDC_HEADERS 1
10427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10438 inttypes.h stdint.h unistd.h
10440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444 $as_echo_n "(cached) " >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 $ac_includes_default
10454 #include <$ac_header>
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464 (eval "$ac_compile") 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest.$ac_objext; then
10474 eval "$as_ac_Header=yes"
10476 $as_echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 eval "$as_ac_Header=no"
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10484 ac_res=`eval 'as_val=${'$as_ac_Header'}
10485 $as_echo "$as_val"'`
10486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10487 $as_echo "$ac_res" >&6; }
10488 as_val=`eval 'as_val=${'$as_ac_Header'}
10489 $as_echo "$as_val"'`
10490 if test "x$as_val" = x""yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10527 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 $as_echo_n "checking for $ac_header... " >&6; }
10533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10534 $as_echo_n "(cached) " >&6
10536 ac_res=`eval 'as_val=${'$as_ac_Header'}
10537 $as_echo "$as_val"'`
10538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10539 $as_echo "$ac_res" >&6; }
10541 # Is the header compilable?
10542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10543 $as_echo_n "checking $ac_header usability... " >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 $ac_includes_default
10551 #include <$ac_header>
10553 rm -f conftest.$ac_objext
10554 if { (ac_try="$ac_compile"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560 $as_echo "$ac_try_echo") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.$ac_objext; then
10571 ac_header_compiler=yes
10573 $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_header_compiler=no
10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581 $as_echo "$ac_header_compiler" >&6; }
10583 # Is the header present?
10584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10585 $as_echo_n "checking $ac_header presence... " >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <$ac_header>
10594 if { (ac_try="$ac_cpp conftest.$ac_ext"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } >/dev/null && {
10608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10611 ac_header_preproc=yes
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_preproc=no
10619 rm -f conftest.err conftest.$ac_ext
10620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 $as_echo "$ac_header_preproc" >&6; }
10623 # So? What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10630 ac_header_preproc=yes
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646 ## ---------------------------------------- ##
10647 ## Report this to pgsql-bugs@postgresql.org ##
10648 ## ---------------------------------------- ##
10650 ) | sed "s/^/$as_me: WARNING: /" >&2
10653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10666 as_val=`eval 'as_val=${'$as_ac_Header'}
10667 $as_echo "$as_val"'`
10668 if test "x$as_val" = x""yes; then
10669 cat >>confdefs.h <<_ACEOF
10670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10678 # On BSD, test for net/if.h will fail unless sys/socket.h
10679 # is included first.
10681 for ac_header in net/if.h
10683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 $as_echo_n "checking for $ac_header... " >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 $as_echo_n "(cached) " >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10696 #ifdef HAVE_SYS_SOCKET_H
10697 #include <sys/socket.h>
10701 #include <$ac_header>
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 eval "$as_ac_Header=yes"
10723 $as_echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 eval "$as_ac_Header=no"
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 ac_res=`eval 'as_val=${'$as_ac_Header'}
10732 $as_echo "$as_val"'`
10733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10734 $as_echo "$ac_res" >&6; }
10735 as_val=`eval 'as_val=${'$as_ac_Header'}
10736 $as_echo "$as_val"'`
10737 if test "x$as_val" = x""yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10747 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10748 # is included first.
10750 for ac_header in sys/ucred.h
10752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 $as_echo_n "checking for $ac_header... " >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 $as_echo_n "(cached) " >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 #include <sys/param.h>
10768 #include <$ac_header>
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10777 $as_echo "$ac_try_echo") >&5
10778 (eval "$ac_compile") 2>conftest.er1
10780 grep -v '^ *+' conftest.er1 >conftest.err
10782 cat conftest.err >&5
10783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest.$ac_objext; then
10788 eval "$as_ac_Header=yes"
10790 $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 eval "$as_ac_Header=no"
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 ac_res=`eval 'as_val=${'$as_ac_Header'}
10799 $as_echo "$as_val"'`
10800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10801 $as_echo "$ac_res" >&6; }
10802 as_val=`eval 'as_val=${'$as_ac_Header'}
10803 $as_echo "$as_val"'`
10804 if test "x$as_val" = x""yes; then
10805 cat >>confdefs.h <<_ACEOF
10806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 # At least on IRIX, test for netinet/tcp.h will fail unless
10815 # netinet/in.h is included first.
10817 for ac_header in netinet/in.h
10819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 $as_echo_n "checking for $ac_header... " >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 $as_echo_n "(cached) " >&6
10826 ac_res=`eval 'as_val=${'$as_ac_Header'}
10827 $as_echo "$as_val"'`
10828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10829 $as_echo "$ac_res" >&6; }
10831 # Is the header compilable?
10832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10833 $as_echo_n "checking $ac_header usability... " >&6; }
10834 cat >conftest.$ac_ext <<_ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 $ac_includes_default
10841 #include <$ac_header>
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10861 ac_header_compiler=yes
10863 $as_echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_compiler=no
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 $as_echo "$ac_header_compiler" >&6; }
10873 # Is the header present?
10874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875 $as_echo_n "checking $ac_header presence... " >&6; }
10876 cat >conftest.$ac_ext <<_ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <$ac_header>
10884 if { (ac_try="$ac_cpp conftest.$ac_ext"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } >/dev/null && {
10898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10901 ac_header_preproc=yes
10903 $as_echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_header_preproc=no
10909 rm -f conftest.err conftest.$ac_ext
10910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 $as_echo "$ac_header_preproc" >&6; }
10913 # So? What about this header?
10914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10920 ac_header_preproc=yes
10923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10936 ## ---------------------------------------- ##
10937 ## Report this to pgsql-bugs@postgresql.org ##
10938 ## ---------------------------------------- ##
10940 ) | sed "s/^/$as_me: WARNING: /" >&2
10943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10944 $as_echo_n "checking for $ac_header... " >&6; }
10945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946 $as_echo_n "(cached) " >&6
10948 eval "$as_ac_Header=\$ac_header_preproc"
10950 ac_res=`eval 'as_val=${'$as_ac_Header'}
10951 $as_echo "$as_val"'`
10952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10953 $as_echo "$ac_res" >&6; }
10956 as_val=`eval 'as_val=${'$as_ac_Header'}
10957 $as_echo "$as_val"'`
10958 if test "x$as_val" = x""yes; then
10959 cat >>confdefs.h <<_ACEOF
10960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 for ac_header in netinet/tcp.h
10970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 $as_echo_n "checking for $ac_header... " >&6; }
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974 $as_echo_n "(cached) " >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10983 #ifdef HAVE_NETINET_IN_H
10984 #include <netinet/in.h>
10988 #include <$ac_header>
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11008 eval "$as_ac_Header=yes"
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_Header=no"
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 ac_res=`eval 'as_val=${'$as_ac_Header'}
11019 $as_echo "$as_val"'`
11020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11021 $as_echo "$ac_res" >&6; }
11022 as_val=`eval 'as_val=${'$as_ac_Header'}
11023 $as_echo "$as_val"'`
11024 if test "x$as_val" = x""yes; then
11025 cat >>confdefs.h <<_ACEOF
11026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
11036 for ac_header in readline/readline.h
11038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 $as_echo_n "checking for $ac_header... " >&6; }
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043 $as_echo_n "(cached) " >&6
11045 ac_res=`eval 'as_val=${'$as_ac_Header'}
11046 $as_echo "$as_val"'`
11047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11048 $as_echo "$ac_res" >&6; }
11050 # Is the header compilable?
11051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11052 $as_echo_n "checking $ac_header usability... " >&6; }
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 $ac_includes_default
11060 #include <$ac_header>
11062 rm -f conftest.$ac_objext
11063 if { (ac_try="$ac_compile"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069 $as_echo "$ac_try_echo") >&5
11070 (eval "$ac_compile") 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest.$ac_objext; then
11080 ac_header_compiler=yes
11082 $as_echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_compiler=no
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 $as_echo "$ac_header_compiler" >&6; }
11092 # Is the header present?
11093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 $as_echo_n "checking $ac_header presence... " >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <$ac_header>
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11109 $as_echo "$ac_try_echo") >&5
11110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11112 grep -v '^ *+' conftest.er1 >conftest.err
11114 cat conftest.err >&5
11115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } >/dev/null && {
11117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11118 test ! -s conftest.err
11120 ac_header_preproc=yes
11122 $as_echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 ac_header_preproc=no
11128 rm -f conftest.err conftest.$ac_ext
11129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11130 $as_echo "$ac_header_preproc" >&6; }
11132 # So? What about this header?
11133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11139 ac_header_preproc=yes
11142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11155 ## ---------------------------------------- ##
11156 ## Report this to pgsql-bugs@postgresql.org ##
11157 ## ---------------------------------------- ##
11159 ) | sed "s/^/$as_me: WARNING: /" >&2
11162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 $as_echo_n "checking for $ac_header... " >&6; }
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165 $as_echo_n "(cached) " >&6
11167 eval "$as_ac_Header=\$ac_header_preproc"
11169 ac_res=`eval 'as_val=${'$as_ac_Header'}
11170 $as_echo "$as_val"'`
11171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11172 $as_echo "$ac_res" >&6; }
11175 as_val=`eval 'as_val=${'$as_ac_Header'}
11176 $as_echo "$as_val"'`
11177 if test "x$as_val" = x""yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11184 for ac_header in readline.h
11186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 $as_echo_n "checking for $ac_header... " >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191 $as_echo_n "(cached) " >&6
11193 ac_res=`eval 'as_val=${'$as_ac_Header'}
11194 $as_echo "$as_val"'`
11195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11198 # Is the header compilable?
11199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200 $as_echo_n "checking $ac_header usability... " >&6; }
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 $ac_includes_default
11208 #include <$ac_header>
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11217 $as_echo "$ac_try_echo") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11220 grep -v '^ *+' conftest.er1 >conftest.err
11222 cat conftest.err >&5
11223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && {
11225 test -z "$ac_c_werror_flag" ||
11226 test ! -s conftest.err
11227 } && test -s conftest.$ac_objext; then
11228 ac_header_compiler=yes
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ac_header_compiler=no
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 $as_echo "$ac_header_compiler" >&6; }
11240 # Is the header present?
11241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 $as_echo_n "checking $ac_header presence... " >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <$ac_header>
11251 if { (ac_try="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null && {
11265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11268 ac_header_preproc=yes
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_header_preproc=no
11276 rm -f conftest.err conftest.$ac_ext
11277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 $as_echo "$ac_header_preproc" >&6; }
11280 # So? What about this header?
11281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287 ac_header_preproc=yes
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11303 ## ---------------------------------------- ##
11304 ## Report this to pgsql-bugs@postgresql.org ##
11305 ## ---------------------------------------- ##
11307 ) | sed "s/^/$as_me: WARNING: /" >&2
11310 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11311 $as_echo_n "checking for $ac_header... " >&6; }
11312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11313 $as_echo_n "(cached) " >&6
11315 eval "$as_ac_Header=\$ac_header_preproc"
11317 ac_res=`eval 'as_val=${'$as_ac_Header'}
11318 $as_echo "$as_val"'`
11319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11320 $as_echo "$ac_res" >&6; }
11323 as_val=`eval 'as_val=${'$as_ac_Header'}
11324 $as_echo "$as_val"'`
11325 if test "x$as_val" = x""yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331 { { $as_echo "$as_me:$LINENO: error: readline header not found
11332 If you have readline already installed, see config.log for details on the
11333 failure. It is possible the compiler isn't looking in the proper directory.
11334 Use --without-readline to disable readline support." >&5
11335 $as_echo "$as_me: error: readline header not found
11336 If you have readline already installed, see config.log for details on the
11337 failure. It is possible the compiler isn't looking in the proper directory.
11338 Use --without-readline to disable readline support." >&2;}
11339 { (exit 1); exit 1; }; }
11349 for ac_header in readline/history.h
11351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11354 $as_echo_n "checking for $ac_header... " >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11356 $as_echo_n "(cached) " >&6
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11363 # Is the header compilable?
11364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 $as_echo_n "checking $ac_header usability... " >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <$ac_header>
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382 $as_echo "$ac_try_echo") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11385 grep -v '^ *+' conftest.er1 >conftest.err
11387 cat conftest.err >&5
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_c_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest.$ac_objext; then
11393 ac_header_compiler=yes
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 ac_header_compiler=no
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 $as_echo "$ac_header_compiler" >&6; }
11405 # Is the header present?
11406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11407 $as_echo_n "checking $ac_header presence... " >&6; }
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <$ac_header>
11416 if { (ac_try="$ac_cpp conftest.$ac_ext"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11422 $as_echo "$ac_try_echo") >&5
11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev/null && {
11430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11433 ac_header_preproc=yes
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_preproc=no
11441 rm -f conftest.err conftest.$ac_ext
11442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 $as_echo "$ac_header_preproc" >&6; }
11445 # So? What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11452 ac_header_preproc=yes
11455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11462 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11468 ## ---------------------------------------- ##
11469 ## Report this to pgsql-bugs@postgresql.org ##
11470 ## ---------------------------------------- ##
11472 ) | sed "s/^/$as_me: WARNING: /" >&2
11475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 $as_echo_n "checking for $ac_header... " >&6; }
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 $as_echo_n "(cached) " >&6
11480 eval "$as_ac_Header=\$ac_header_preproc"
11482 ac_res=`eval 'as_val=${'$as_ac_Header'}
11483 $as_echo "$as_val"'`
11484 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11485 $as_echo "$ac_res" >&6; }
11488 as_val=`eval 'as_val=${'$as_ac_Header'}
11489 $as_echo "$as_val"'`
11490 if test "x$as_val" = x""yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11497 for ac_header in history.h
11499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11502 $as_echo_n "checking for $ac_header... " >&6; }
11503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11504 $as_echo_n "(cached) " >&6
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507 $as_echo "$as_val"'`
11508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11511 # Is the header compilable?
11512 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513 $as_echo_n "checking $ac_header usability... " >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 #include <$ac_header>
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530 $as_echo "$ac_try_echo") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest.$ac_objext; then
11541 ac_header_compiler=yes
11543 $as_echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_header_compiler=no
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 $as_echo "$ac_header_compiler" >&6; }
11553 # Is the header present?
11554 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11555 $as_echo_n "checking $ac_header presence... " >&6; }
11556 cat >conftest.$ac_ext <<_ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <$ac_header>
11564 if { (ac_try="$ac_cpp conftest.$ac_ext"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } >/dev/null && {
11578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11581 ac_header_preproc=yes
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_header_preproc=no
11589 rm -f conftest.err conftest.$ac_ext
11590 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 $as_echo "$ac_header_preproc" >&6; }
11593 # So? What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11597 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11600 ac_header_preproc=yes
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11616 ## ---------------------------------------- ##
11617 ## Report this to pgsql-bugs@postgresql.org ##
11618 ## ---------------------------------------- ##
11620 ) | sed "s/^/$as_me: WARNING: /" >&2
11623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11624 $as_echo_n "checking for $ac_header... " >&6; }
11625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11626 $as_echo_n "(cached) " >&6
11628 eval "$as_ac_Header=\$ac_header_preproc"
11630 ac_res=`eval 'as_val=${'$as_ac_Header'}
11631 $as_echo "$as_val"'`
11632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11633 $as_echo "$ac_res" >&6; }
11636 as_val=`eval 'as_val=${'$as_ac_Header'}
11637 $as_echo "$as_val"'`
11638 if test "x$as_val" = x""yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 { { $as_echo "$as_me:$LINENO: error: history header not found
11645 If you have readline already installed, see config.log for details on the
11646 failure. It is possible the compiler isn't looking in the proper directory.
11647 Use --without-readline to disable readline support." >&5
11648 $as_echo "$as_me: error: history header not found
11649 If you have readline already installed, see config.log for details on the
11650 failure. It is possible the compiler isn't looking in the proper directory.
11651 Use --without-readline to disable readline support." >&2;}
11652 { (exit 1); exit 1; }; }
11663 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11664 # Some installations of libedit usurp /usr/include/readline/, which seems
11665 # bad practice, since in combined installations readline will have its headers
11666 # there. We might have to resort to AC_EGREP checks to make sure we found
11667 # the proper header...
11669 for ac_header in editline/readline.h
11671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11674 $as_echo_n "checking for $ac_header... " >&6; }
11675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11676 $as_echo_n "(cached) " >&6
11678 ac_res=`eval 'as_val=${'$as_ac_Header'}
11679 $as_echo "$as_val"'`
11680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11681 $as_echo "$ac_res" >&6; }
11683 # Is the header compilable?
11684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11685 $as_echo_n "checking $ac_header usability... " >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11693 #include <$ac_header>
11695 rm -f conftest.$ac_objext
11696 if { (ac_try="$ac_compile"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703 (eval "$ac_compile") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
11713 ac_header_compiler=yes
11715 $as_echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_header_compiler=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723 $as_echo "$ac_header_compiler" >&6; }
11725 # Is the header present?
11726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727 $as_echo_n "checking $ac_header presence... " >&6; }
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 #include <$ac_header>
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } >/dev/null && {
11750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11753 ac_header_preproc=yes
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_header_preproc=no
11761 rm -f conftest.err conftest.$ac_ext
11762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11763 $as_echo "$ac_header_preproc" >&6; }
11765 # So? What about this header?
11766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11772 ac_header_preproc=yes
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11782 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11788 ## ---------------------------------------- ##
11789 ## Report this to pgsql-bugs@postgresql.org ##
11790 ## ---------------------------------------- ##
11792 ) | sed "s/^/$as_me: WARNING: /" >&2
11795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 $as_echo_n "checking for $ac_header... " >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 $as_echo_n "(cached) " >&6
11800 eval "$as_ac_Header=\$ac_header_preproc"
11802 ac_res=`eval 'as_val=${'$as_ac_Header'}
11803 $as_echo "$as_val"'`
11804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11805 $as_echo "$ac_res" >&6; }
11808 as_val=`eval 'as_val=${'$as_ac_Header'}
11809 $as_echo "$as_val"'`
11810 if test "x$as_val" = x""yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11817 for ac_header in readline.h
11819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11822 $as_echo_n "checking for $ac_header... " >&6; }
11823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11824 $as_echo_n "(cached) " >&6
11826 ac_res=`eval 'as_val=${'$as_ac_Header'}
11827 $as_echo "$as_val"'`
11828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11829 $as_echo "$ac_res" >&6; }
11831 # Is the header compilable?
11832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11833 $as_echo_n "checking $ac_header usability... " >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 #include <$ac_header>
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850 $as_echo "$ac_try_echo") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_header_compiler=yes
11863 $as_echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_header_compiler=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871 $as_echo "$ac_header_compiler" >&6; }
11873 # Is the header present?
11874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11875 $as_echo_n "checking $ac_header presence... " >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <$ac_header>
11884 if { (ac_try="$ac_cpp conftest.$ac_ext"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11890 $as_echo "$ac_try_echo") >&5
11891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null && {
11898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11901 ac_header_preproc=yes
11903 $as_echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_header_preproc=no
11909 rm -f conftest.err conftest.$ac_ext
11910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 $as_echo "$ac_header_preproc" >&6; }
11913 # So? What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920 ac_header_preproc=yes
11923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11936 ## ---------------------------------------- ##
11937 ## Report this to pgsql-bugs@postgresql.org ##
11938 ## ---------------------------------------- ##
11940 ) | sed "s/^/$as_me: WARNING: /" >&2
11943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 $as_echo_n "checking for $ac_header... " >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 $as_echo_n "(cached) " >&6
11948 eval "$as_ac_Header=\$ac_header_preproc"
11950 ac_res=`eval 'as_val=${'$as_ac_Header'}
11951 $as_echo "$as_val"'`
11952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11953 $as_echo "$ac_res" >&6; }
11956 as_val=`eval 'as_val=${'$as_ac_Header'}
11957 $as_echo "$as_val"'`
11958 if test "x$as_val" = x""yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 for ac_header in readline/readline.h
11967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11970 $as_echo_n "checking for $ac_header... " >&6; }
11971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972 $as_echo_n "(cached) " >&6
11974 ac_res=`eval 'as_val=${'$as_ac_Header'}
11975 $as_echo "$as_val"'`
11976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11977 $as_echo "$ac_res" >&6; }
11979 # Is the header compilable?
11980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11981 $as_echo_n "checking $ac_header usability... " >&6; }
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <$ac_header>
11991 rm -f conftest.$ac_objext
11992 if { (ac_try="$ac_compile"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11998 $as_echo "$ac_try_echo") >&5
11999 (eval "$ac_compile") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest.$ac_objext; then
12009 ac_header_compiler=yes
12011 $as_echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_header_compiler=no
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12019 $as_echo "$ac_header_compiler" >&6; }
12021 # Is the header present?
12022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12023 $as_echo_n "checking $ac_header presence... " >&6; }
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <$ac_header>
12032 if { (ac_try="$ac_cpp conftest.$ac_ext"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038 $as_echo "$ac_try_echo") >&5
12039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev/null && {
12046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12049 ac_header_preproc=yes
12051 $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_header_preproc=no
12057 rm -f conftest.err conftest.$ac_ext
12058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 $as_echo "$ac_header_preproc" >&6; }
12061 # So? What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc=yes
12071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12078 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12084 ## ---------------------------------------- ##
12085 ## Report this to pgsql-bugs@postgresql.org ##
12086 ## ---------------------------------------- ##
12088 ) | sed "s/^/$as_me: WARNING: /" >&2
12091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 $as_echo_n "checking for $ac_header... " >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 $as_echo_n "(cached) " >&6
12096 eval "$as_ac_Header=\$ac_header_preproc"
12098 ac_res=`eval 'as_val=${'$as_ac_Header'}
12099 $as_echo "$as_val"'`
12100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12101 $as_echo "$ac_res" >&6; }
12104 as_val=`eval 'as_val=${'$as_ac_Header'}
12105 $as_echo "$as_val"'`
12106 if test "x$as_val" = x""yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112 { { $as_echo "$as_me:$LINENO: error: readline header not found
12113 If you have libedit already installed, see config.log for details on the
12114 failure. It is possible the compiler isn't looking in the proper directory.
12115 Use --without-readline to disable libedit support." >&5
12116 $as_echo "$as_me: error: readline header not found
12117 If you have libedit already installed, see config.log for details on the
12118 failure. It is possible the compiler isn't looking in the proper directory.
12119 Use --without-readline to disable libedit support." >&2;}
12120 { (exit 1); exit 1; }; }
12133 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12134 # not be there at all. Hence, don't complain if not found. We must check
12135 # though, since in yet other versions it is an independent header.
12137 for ac_header in editline/history.h
12139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12142 $as_echo_n "checking for $ac_header... " >&6; }
12143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12144 $as_echo_n "(cached) " >&6
12146 ac_res=`eval 'as_val=${'$as_ac_Header'}
12147 $as_echo "$as_val"'`
12148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12149 $as_echo "$ac_res" >&6; }
12151 # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12153 $as_echo_n "checking $ac_header usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 #include <$ac_header>
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_header_compiler=yes
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_header_compiler=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12195 $as_echo_n "checking $ac_header presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #include <$ac_header>
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null && {
12218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12221 ac_header_preproc=yes
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 $as_echo_n "checking for $ac_header... " >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 $as_echo_n "(cached) " >&6
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval 'as_val=${'$as_ac_Header'}
12271 $as_echo "$as_val"'`
12272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12273 $as_echo "$ac_res" >&6; }
12276 as_val=`eval 'as_val=${'$as_ac_Header'}
12277 $as_echo "$as_val"'`
12278 if test "x$as_val" = x""yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 for ac_header in history.h
12287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 $as_echo_n "checking for $ac_header... " >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292 $as_echo_n "(cached) " >&6
12294 ac_res=`eval 'as_val=${'$as_ac_Header'}
12295 $as_echo "$as_val"'`
12296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12297 $as_echo "$ac_res" >&6; }
12299 # Is the header compilable?
12300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12301 $as_echo_n "checking $ac_header usability... " >&6; }
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 $ac_includes_default
12309 #include <$ac_header>
12311 rm -f conftest.$ac_objext
12312 if { (ac_try="$ac_compile"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12318 $as_echo "$ac_try_echo") >&5
12319 (eval "$ac_compile") 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest.$ac_objext; then
12329 ac_header_compiler=yes
12331 $as_echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_header_compiler=no
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 $as_echo "$ac_header_compiler" >&6; }
12341 # Is the header present?
12342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 $as_echo_n "checking $ac_header presence... " >&6; }
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 #include <$ac_header>
12352 if { (ac_try="$ac_cpp conftest.$ac_ext"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12358 $as_echo "$ac_try_echo") >&5
12359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } >/dev/null && {
12366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12369 ac_header_preproc=yes
12371 $as_echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_header_preproc=no
12377 rm -f conftest.err conftest.$ac_ext
12378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 $as_echo "$ac_header_preproc" >&6; }
12381 # So? What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12404 ## ---------------------------------------- ##
12405 ## Report this to pgsql-bugs@postgresql.org ##
12406 ## ---------------------------------------- ##
12408 ) | sed "s/^/$as_me: WARNING: /" >&2
12411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 $as_echo_n "checking for $ac_header... " >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 $as_echo_n "(cached) " >&6
12416 eval "$as_ac_Header=\$ac_header_preproc"
12418 ac_res=`eval 'as_val=${'$as_ac_Header'}
12419 $as_echo "$as_val"'`
12420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12424 as_val=`eval 'as_val=${'$as_ac_Header'}
12425 $as_echo "$as_val"'`
12426 if test "x$as_val" = x""yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12433 for ac_header in readline/history.h
12435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 $as_echo_n "checking for $ac_header... " >&6; }
12439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12440 $as_echo_n "(cached) " >&6
12442 ac_res=`eval 'as_val=${'$as_ac_Header'}
12443 $as_echo "$as_val"'`
12444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12445 $as_echo "$ac_res" >&6; }
12447 # Is the header compilable?
12448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449 $as_echo_n "checking $ac_header usability... " >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 #include <$ac_header>
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466 $as_echo "$ac_try_echo") >&5
12467 (eval "$ac_compile") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
12477 ac_header_compiler=yes
12479 $as_echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_header_compiler=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12487 $as_echo "$ac_header_compiler" >&6; }
12489 # Is the header present?
12490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12491 $as_echo_n "checking $ac_header presence... " >&6; }
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <$ac_header>
12500 if { (ac_try="$ac_cpp conftest.$ac_ext"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12506 $as_echo "$ac_try_echo") >&5
12507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } >/dev/null && {
12514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12517 ac_header_preproc=yes
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_header_preproc=no
12525 rm -f conftest.err conftest.$ac_ext
12526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12527 $as_echo "$ac_header_preproc" >&6; }
12529 # So? What about this header?
12530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12536 ac_header_preproc=yes
12539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12542 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12546 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12552 ## ---------------------------------------- ##
12553 ## Report this to pgsql-bugs@postgresql.org ##
12554 ## ---------------------------------------- ##
12556 ) | sed "s/^/$as_me: WARNING: /" >&2
12559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12560 $as_echo_n "checking for $ac_header... " >&6; }
12561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12562 $as_echo_n "(cached) " >&6
12564 eval "$as_ac_Header=\$ac_header_preproc"
12566 ac_res=`eval 'as_val=${'$as_ac_Header'}
12567 $as_echo "$as_val"'`
12568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12569 $as_echo "$ac_res" >&6; }
12572 as_val=`eval 'as_val=${'$as_ac_Header'}
12573 $as_echo "$as_val"'`
12574 if test "x$as_val" = x""yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12593 if test "$with_zlib" = yes; then
12594 if test "${ac_cv_header_zlib_h+set}" = set; then
12595 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12596 $as_echo_n "checking for zlib.h... " >&6; }
12597 if test "${ac_cv_header_zlib_h+set}" = set; then
12598 $as_echo_n "(cached) " >&6
12600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12601 $as_echo "$ac_cv_header_zlib_h" >&6; }
12603 # Is the header compilable?
12604 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12605 $as_echo_n "checking zlib.h usability... " >&6; }
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 $ac_includes_default
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12622 $as_echo "$ac_try_echo") >&5
12623 (eval "$ac_compile") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest.$ac_objext; then
12633 ac_header_compiler=yes
12635 $as_echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_header_compiler=no
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643 $as_echo "$ac_header_compiler" >&6; }
12645 # Is the header present?
12646 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12647 $as_echo_n "checking zlib.h presence... " >&6; }
12648 cat >conftest.$ac_ext <<_ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12656 if { (ac_try="$ac_cpp conftest.$ac_ext"
12657 case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12662 $as_echo "$ac_try_echo") >&5
12663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } >/dev/null && {
12670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12671 test ! -s conftest.err
12673 ac_header_preproc=yes
12675 $as_echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 ac_header_preproc=no
12681 rm -f conftest.err conftest.$ac_ext
12682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683 $as_echo "$ac_header_preproc" >&6; }
12685 # So? What about this header?
12686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12688 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12689 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12691 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12692 ac_header_preproc=yes
12695 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12696 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12697 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12698 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12699 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12700 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12701 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12702 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12704 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12705 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12706 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12708 ## ---------------------------------------- ##
12709 ## Report this to pgsql-bugs@postgresql.org ##
12710 ## ---------------------------------------- ##
12712 ) | sed "s/^/$as_me: WARNING: /" >&2
12715 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12716 $as_echo_n "checking for zlib.h... " >&6; }
12717 if test "${ac_cv_header_zlib_h+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12720 ac_cv_header_zlib_h=$ac_header_preproc
12722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12723 $as_echo "$ac_cv_header_zlib_h" >&6; }
12726 if test "x$ac_cv_header_zlib_h" = x""yes; then
12729 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12730 If you have zlib already installed, see config.log for details on the
12731 failure. It is possible the compiler isn't looking in the proper directory.
12732 Use --without-zlib to disable zlib support." >&5
12733 $as_echo "$as_me: error: zlib header not found
12734 If you have zlib already installed, see config.log for details on the
12735 failure. It is possible the compiler isn't looking in the proper directory.
12736 Use --without-zlib to disable zlib support." >&2;}
12737 { (exit 1); exit 1; }; }
12743 if test "$with_gssapi" = yes ; then
12745 for ac_header in gssapi/gssapi.h
12747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 $as_echo_n "checking for $ac_header... " >&6; }
12751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12752 $as_echo_n "(cached) " >&6
12754 ac_res=`eval 'as_val=${'$as_ac_Header'}
12755 $as_echo "$as_val"'`
12756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12757 $as_echo "$ac_res" >&6; }
12759 # Is the header compilable?
12760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12761 $as_echo_n "checking $ac_header usability... " >&6; }
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12768 $ac_includes_default
12769 #include <$ac_header>
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12778 $as_echo "$ac_try_echo") >&5
12779 (eval "$ac_compile") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest.$ac_objext; then
12789 ac_header_compiler=yes
12791 $as_echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_header_compiler=no
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 $as_echo "$ac_header_compiler" >&6; }
12801 # Is the header present?
12802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12803 $as_echo_n "checking $ac_header presence... " >&6; }
12804 cat >conftest.$ac_ext <<_ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <$ac_header>
12812 if { (ac_try="$ac_cpp conftest.$ac_ext"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } >/dev/null && {
12826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12829 ac_header_preproc=yes
12831 $as_echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 ac_header_preproc=no
12837 rm -f conftest.err conftest.$ac_ext
12838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12839 $as_echo "$ac_header_preproc" >&6; }
12841 # So? What about this header?
12842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12848 ac_header_preproc=yes
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12854 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12858 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12864 ## ---------------------------------------- ##
12865 ## Report this to pgsql-bugs@postgresql.org ##
12866 ## ---------------------------------------- ##
12868 ) | sed "s/^/$as_me: WARNING: /" >&2
12871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12872 $as_echo_n "checking for $ac_header... " >&6; }
12873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12874 $as_echo_n "(cached) " >&6
12876 eval "$as_ac_Header=\$ac_header_preproc"
12878 ac_res=`eval 'as_val=${'$as_ac_Header'}
12879 $as_echo "$as_val"'`
12880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12881 $as_echo "$ac_res" >&6; }
12884 as_val=`eval 'as_val=${'$as_ac_Header'}
12885 $as_echo "$as_val"'`
12886 if test "x$as_val" = x""yes; then
12887 cat >>confdefs.h <<_ACEOF
12888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12893 for ac_header in gssapi.h
12895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12898 $as_echo_n "checking for $ac_header... " >&6; }
12899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12900 $as_echo_n "(cached) " >&6
12902 ac_res=`eval 'as_val=${'$as_ac_Header'}
12903 $as_echo "$as_val"'`
12904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12905 $as_echo "$ac_res" >&6; }
12907 # Is the header compilable?
12908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12909 $as_echo_n "checking $ac_header usability... " >&6; }
12910 cat >conftest.$ac_ext <<_ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 $ac_includes_default
12917 #include <$ac_header>
12919 rm -f conftest.$ac_objext
12920 if { (ac_try="$ac_compile"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12926 $as_echo "$ac_try_echo") >&5
12927 (eval "$ac_compile") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && {
12934 test -z "$ac_c_werror_flag" ||
12935 test ! -s conftest.err
12936 } && test -s conftest.$ac_objext; then
12937 ac_header_compiler=yes
12939 $as_echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_header_compiler=no
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12947 $as_echo "$ac_header_compiler" >&6; }
12949 # Is the header present?
12950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12951 $as_echo_n "checking $ac_header presence... " >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <$ac_header>
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12966 $as_echo "$ac_try_echo") >&5
12967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } >/dev/null && {
12974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12977 ac_header_preproc=yes
12979 $as_echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_header_preproc=no
12985 rm -f conftest.err conftest.$ac_ext
12986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12987 $as_echo "$ac_header_preproc" >&6; }
12989 # So? What about this header?
12990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12996 ac_header_preproc=yes
12999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13002 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13006 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13012 ## ---------------------------------------- ##
13013 ## Report this to pgsql-bugs@postgresql.org ##
13014 ## ---------------------------------------- ##
13016 ) | sed "s/^/$as_me: WARNING: /" >&2
13019 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13020 $as_echo_n "checking for $ac_header... " >&6; }
13021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13022 $as_echo_n "(cached) " >&6
13024 eval "$as_ac_Header=\$ac_header_preproc"
13026 ac_res=`eval 'as_val=${'$as_ac_Header'}
13027 $as_echo "$as_val"'`
13028 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13029 $as_echo "$ac_res" >&6; }
13032 as_val=`eval 'as_val=${'$as_ac_Header'}
13033 $as_echo "$as_val"'`
13034 if test "x$as_val" = x""yes; then
13035 cat >>confdefs.h <<_ACEOF
13036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13040 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
13041 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
13042 { (exit 1); exit 1; }; }
13053 if test "$with_krb5" = yes ; then
13054 if test "${ac_cv_header_krb5_h+set}" = set; then
13055 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13056 $as_echo_n "checking for krb5.h... " >&6; }
13057 if test "${ac_cv_header_krb5_h+set}" = set; then
13058 $as_echo_n "(cached) " >&6
13060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13061 $as_echo "$ac_cv_header_krb5_h" >&6; }
13063 # Is the header compilable?
13064 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
13065 $as_echo_n "checking krb5.h usability... " >&6; }
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 $ac_includes_default
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 ac_header_compiler=yes
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_header_compiler=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13103 $as_echo "$ac_header_compiler" >&6; }
13105 # Is the header present?
13106 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
13107 $as_echo_n "checking krb5.h presence... " >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13122 $as_echo "$ac_try_echo") >&5
13123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } >/dev/null && {
13130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13133 ac_header_preproc=yes
13135 $as_echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_header_preproc=no
13141 rm -f conftest.err conftest.$ac_ext
13142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13143 $as_echo "$ac_header_preproc" >&6; }
13145 # So? What about this header?
13146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13148 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
13149 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13150 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
13151 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
13152 ac_header_preproc=yes
13155 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
13156 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
13157 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
13158 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
13159 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
13160 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
13161 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
13162 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
13163 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
13164 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
13165 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
13166 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
13168 ## ---------------------------------------- ##
13169 ## Report this to pgsql-bugs@postgresql.org ##
13170 ## ---------------------------------------- ##
13172 ) | sed "s/^/$as_me: WARNING: /" >&2
13175 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13176 $as_echo_n "checking for krb5.h... " >&6; }
13177 if test "${ac_cv_header_krb5_h+set}" = set; then
13178 $as_echo_n "(cached) " >&6
13180 ac_cv_header_krb5_h=$ac_header_preproc
13182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13183 $as_echo "$ac_cv_header_krb5_h" >&6; }
13186 if test "x$ac_cv_header_krb5_h" = x""yes; then
13189 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13190 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13191 { (exit 1); exit 1; }; }
13197 if test "$with_openssl" = yes ; then
13198 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13199 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13200 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13201 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13202 $as_echo_n "(cached) " >&6
13204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13205 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13207 # Is the header compilable?
13208 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13209 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13210 cat >conftest.$ac_ext <<_ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 $ac_includes_default
13217 #include <openssl/ssl.h>
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13226 $as_echo "$ac_try_echo") >&5
13227 (eval "$ac_compile") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } && {
13234 test -z "$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13236 } && test -s conftest.$ac_objext; then
13237 ac_header_compiler=yes
13239 $as_echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_header_compiler=no
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13247 $as_echo "$ac_header_compiler" >&6; }
13249 # Is the header present?
13250 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13251 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 #include <openssl/ssl.h>
13260 if { (ac_try="$ac_cpp conftest.$ac_ext"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266 $as_echo "$ac_try_echo") >&5
13267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } >/dev/null && {
13274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13275 test ! -s conftest.err
13277 ac_header_preproc=yes
13279 $as_echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_header_preproc=no
13285 rm -f conftest.err conftest.$ac_ext
13286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13287 $as_echo "$ac_header_preproc" >&6; }
13289 # So? What about this header?
13290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13292 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13293 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13294 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13295 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13296 ac_header_preproc=yes
13299 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13300 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13301 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13302 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13304 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13306 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13308 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13310 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13312 ## ---------------------------------------- ##
13313 ## Report this to pgsql-bugs@postgresql.org ##
13314 ## ---------------------------------------- ##
13316 ) | sed "s/^/$as_me: WARNING: /" >&2
13319 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13320 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13321 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13322 $as_echo_n "(cached) " >&6
13324 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13327 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13330 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13333 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13334 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13335 { (exit 1); exit 1; }; }
13339 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13340 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13341 $as_echo_n "checking for openssl/err.h... " >&6; }
13342 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13343 $as_echo_n "(cached) " >&6
13345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13346 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13348 # Is the header compilable?
13349 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13350 $as_echo_n "checking openssl/err.h usability... " >&6; }
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 #include <openssl/err.h>
13360 rm -f conftest.$ac_objext
13361 if { (ac_try="$ac_compile"
13362 case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13378 ac_header_compiler=yes
13380 $as_echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_header_compiler=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13388 $as_echo "$ac_header_compiler" >&6; }
13390 # Is the header present?
13391 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13392 $as_echo_n "checking openssl/err.h presence... " >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 #include <openssl/err.h>
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407 $as_echo "$ac_try_echo") >&5
13408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } >/dev/null && {
13415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13418 ac_header_preproc=yes
13420 $as_echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_header_preproc=no
13426 rm -f conftest.err conftest.$ac_ext
13427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13428 $as_echo "$ac_header_preproc" >&6; }
13430 # So? What about this header?
13431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13433 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13434 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13435 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13436 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13437 ac_header_preproc=yes
13440 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13441 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13442 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13443 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13444 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13445 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13446 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13447 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13448 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13449 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13450 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13451 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13453 ## ---------------------------------------- ##
13454 ## Report this to pgsql-bugs@postgresql.org ##
13455 ## ---------------------------------------- ##
13457 ) | sed "s/^/$as_me: WARNING: /" >&2
13460 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13461 $as_echo_n "checking for openssl/err.h... " >&6; }
13462 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13463 $as_echo_n "(cached) " >&6
13465 ac_cv_header_openssl_err_h=$ac_header_preproc
13467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13468 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13471 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13474 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13475 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13476 { (exit 1); exit 1; }; }
13482 if test "$with_pam" = yes ; then
13484 for ac_header in security/pam_appl.h
13486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13488 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13489 $as_echo_n "checking for $ac_header... " >&6; }
13490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491 $as_echo_n "(cached) " >&6
13493 ac_res=`eval 'as_val=${'$as_ac_Header'}
13494 $as_echo "$as_val"'`
13495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13496 $as_echo "$ac_res" >&6; }
13498 # Is the header compilable?
13499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13500 $as_echo_n "checking $ac_header usability... " >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13507 $ac_includes_default
13508 #include <$ac_header>
13510 rm -f conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13517 $as_echo "$ac_try_echo") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13520 grep -v '^ *+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
13528 ac_header_compiler=yes
13530 $as_echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 ac_header_compiler=no
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13538 $as_echo "$ac_header_compiler" >&6; }
13540 # Is the header present?
13541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13542 $as_echo_n "checking $ac_header presence... " >&6; }
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 #include <$ac_header>
13551 if { (ac_try="$ac_cpp conftest.$ac_ext"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13557 $as_echo "$ac_try_echo") >&5
13558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev/null && {
13565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13566 test ! -s conftest.err
13568 ac_header_preproc=yes
13570 $as_echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_header_preproc=no
13576 rm -f conftest.err conftest.$ac_ext
13577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13578 $as_echo "$ac_header_preproc" >&6; }
13580 # So? What about this header?
13581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13587 ac_header_preproc=yes
13590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13593 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13597 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13603 ## ---------------------------------------- ##
13604 ## Report this to pgsql-bugs@postgresql.org ##
13605 ## ---------------------------------------- ##
13607 ) | sed "s/^/$as_me: WARNING: /" >&2
13610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13611 $as_echo_n "checking for $ac_header... " >&6; }
13612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13613 $as_echo_n "(cached) " >&6
13615 eval "$as_ac_Header=\$ac_header_preproc"
13617 ac_res=`eval 'as_val=${'$as_ac_Header'}
13618 $as_echo "$as_val"'`
13619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13620 $as_echo "$ac_res" >&6; }
13623 as_val=`eval 'as_val=${'$as_ac_Header'}
13624 $as_echo "$as_val"'`
13625 if test "x$as_val" = x""yes; then
13626 cat >>confdefs.h <<_ACEOF
13627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632 for ac_header in pam/pam_appl.h
13634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13637 $as_echo_n "checking for $ac_header... " >&6; }
13638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13639 $as_echo_n "(cached) " >&6
13641 ac_res=`eval 'as_val=${'$as_ac_Header'}
13642 $as_echo "$as_val"'`
13643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13644 $as_echo "$ac_res" >&6; }
13646 # Is the header compilable?
13647 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13648 $as_echo_n "checking $ac_header usability... " >&6; }
13649 cat >conftest.$ac_ext <<_ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13656 #include <$ac_header>
13658 rm -f conftest.$ac_objext
13659 if { (ac_try="$ac_compile"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666 (eval "$ac_compile") 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && {
13673 test -z "$ac_c_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest.$ac_objext; then
13676 ac_header_compiler=yes
13678 $as_echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_header_compiler=no
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13686 $as_echo "$ac_header_compiler" >&6; }
13688 # Is the header present?
13689 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13690 $as_echo_n "checking $ac_header presence... " >&6; }
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 #include <$ac_header>
13699 if { (ac_try="$ac_cpp conftest.$ac_ext"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } >/dev/null && {
13713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13716 ac_header_preproc=yes
13718 $as_echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13721 ac_header_preproc=no
13724 rm -f conftest.err conftest.$ac_ext
13725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13726 $as_echo "$ac_header_preproc" >&6; }
13728 # So? What about this header?
13729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13732 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13735 ac_header_preproc=yes
13738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13739 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13741 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13743 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13751 ## ---------------------------------------- ##
13752 ## Report this to pgsql-bugs@postgresql.org ##
13753 ## ---------------------------------------- ##
13755 ) | sed "s/^/$as_me: WARNING: /" >&2
13758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 $as_echo_n "checking for $ac_header... " >&6; }
13760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13761 $as_echo_n "(cached) " >&6
13763 eval "$as_ac_Header=\$ac_header_preproc"
13765 ac_res=`eval 'as_val=${'$as_ac_Header'}
13766 $as_echo "$as_val"'`
13767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13768 $as_echo "$ac_res" >&6; }
13771 as_val=`eval 'as_val=${'$as_ac_Header'}
13772 $as_echo "$as_val"'`
13773 if test "x$as_val" = x""yes; then
13774 cat >>confdefs.h <<_ACEOF
13775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13779 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13780 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13781 { (exit 1); exit 1; }; }
13792 if test "$with_libxml" = yes ; then
13793 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13794 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13795 $as_echo_n "checking for libxml/parser.h... " >&6; }
13796 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13797 $as_echo_n "(cached) " >&6
13799 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13800 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13802 # Is the header compilable?
13803 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13804 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811 $ac_includes_default
13812 #include <libxml/parser.h>
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13821 $as_echo "$ac_try_echo") >&5
13822 (eval "$ac_compile") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest.$ac_objext; then
13832 ac_header_compiler=yes
13834 $as_echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 ac_header_compiler=no
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13842 $as_echo "$ac_header_compiler" >&6; }
13844 # Is the header present?
13845 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13846 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 #include <libxml/parser.h>
13855 if { (ac_try="$ac_cpp conftest.$ac_ext"
13856 case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13861 $as_echo "$ac_try_echo") >&5
13862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864 grep -v '^ *+' conftest.er1 >conftest.err
13866 cat conftest.err >&5
13867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } >/dev/null && {
13869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13872 ac_header_preproc=yes
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 ac_header_preproc=no
13880 rm -f conftest.err conftest.$ac_ext
13881 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13882 $as_echo "$ac_header_preproc" >&6; }
13884 # So? What about this header?
13885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13887 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13888 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13889 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13890 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13891 ac_header_preproc=yes
13894 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13895 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13896 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13897 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13898 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13899 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13900 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13901 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13903 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13905 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13907 ## ---------------------------------------- ##
13908 ## Report this to pgsql-bugs@postgresql.org ##
13909 ## ---------------------------------------- ##
13911 ) | sed "s/^/$as_me: WARNING: /" >&2
13914 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13915 $as_echo_n "checking for libxml/parser.h... " >&6; }
13916 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13917 $as_echo_n "(cached) " >&6
13919 ac_cv_header_libxml_parser_h=$ac_header_preproc
13921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13922 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13925 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13928 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13929 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13930 { (exit 1); exit 1; }; }
13936 if test "$with_libxslt" = yes ; then
13937 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13938 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13939 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13940 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13944 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13946 # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13948 $as_echo_n "checking libxslt/xslt.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 <libxslt/xslt.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 libxslt/xslt.h presence" >&5
13990 $as_echo_n "checking libxslt/xslt.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 <libxslt/xslt.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: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
14035 ac_header_preproc=yes
14038 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
14040 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
14042 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
14044 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
14046 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
14048 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: libxslt/xslt.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 libxslt/xslt.h" >&5
14059 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
14060 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14061 $as_echo_n "(cached) " >&6
14063 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14066 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
14069 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
14072 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
14073 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
14074 { (exit 1); exit 1; }; }
14080 if test "$with_ldap" = yes ; then
14081 if test "$PORTNAME" != "win32"; then
14083 for ac_header in ldap.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
14230 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14231 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14232 { (exit 1); exit 1; }; }
14239 for ac_header in winldap.h
14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14243 $as_echo_n "checking for $ac_header... " >&6; }
14244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14245 $as_echo_n "(cached) " >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14254 #include <windows.h>
14257 #include <$ac_header>
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14266 $as_echo "$ac_try_echo") >&5
14267 (eval "$ac_compile") 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && {
14274 test -z "$ac_c_werror_flag" ||
14275 test ! -s conftest.err
14276 } && test -s conftest.$ac_objext; then
14277 eval "$as_ac_Header=yes"
14279 $as_echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 eval "$as_ac_Header=no"
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 ac_res=`eval 'as_val=${'$as_ac_Header'}
14288 $as_echo "$as_val"'`
14289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14290 $as_echo "$ac_res" >&6; }
14291 as_val=`eval 'as_val=${'$as_ac_Header'}
14292 $as_echo "$as_val"'`
14293 if test "x$as_val" = x""yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14299 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14300 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14301 { (exit 1); exit 1; }; }
14309 if test "$with_bonjour" = yes ; then
14310 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14311 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14312 $as_echo_n "checking for dns_sd.h... " >&6; }
14313 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14314 $as_echo_n "(cached) " >&6
14316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14317 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14319 # Is the header compilable?
14320 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14321 $as_echo_n "checking dns_sd.h usability... " >&6; }
14322 cat >conftest.$ac_ext <<_ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14328 $ac_includes_default
14329 #include <dns_sd.h>
14331 rm -f conftest.$ac_objext
14332 if { (ac_try="$ac_compile"
14333 case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14338 $as_echo "$ac_try_echo") >&5
14339 (eval "$ac_compile") 2>conftest.er1
14341 grep -v '^ *+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest.$ac_objext; then
14349 ac_header_compiler=yes
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_header_compiler=no
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359 $as_echo "$ac_header_compiler" >&6; }
14361 # Is the header present?
14362 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14363 $as_echo_n "checking dns_sd.h presence... " >&6; }
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <dns_sd.h>
14372 if { (ac_try="$ac_cpp conftest.$ac_ext"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14378 $as_echo "$ac_try_echo") >&5
14379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
14383 cat conftest.err >&5
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } >/dev/null && {
14386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14389 ac_header_preproc=yes
14391 $as_echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_header_preproc=no
14397 rm -f conftest.err conftest.$ac_ext
14398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14399 $as_echo "$ac_header_preproc" >&6; }
14401 # So? What about this header?
14402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14404 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14405 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14407 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14408 ac_header_preproc=yes
14411 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14412 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14413 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14414 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14415 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14416 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14417 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14418 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14419 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14420 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14421 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14422 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14424 ## ---------------------------------------- ##
14425 ## Report this to pgsql-bugs@postgresql.org ##
14426 ## ---------------------------------------- ##
14428 ) | sed "s/^/$as_me: WARNING: /" >&2
14431 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14432 $as_echo_n "checking for dns_sd.h... " >&6; }
14433 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14436 ac_cv_header_dns_sd_h=$ac_header_preproc
14438 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14439 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14442 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14445 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14446 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14447 { (exit 1); exit 1; }; }
14453 # for contrib/uuid-ossp
14454 if test "$with_ossp_uuid" = yes ; then
14456 for ac_header in ossp/uuid.h
14458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 $as_echo_n "checking for $ac_header... " >&6; }
14462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14463 $as_echo_n "(cached) " >&6
14465 ac_res=`eval 'as_val=${'$as_ac_Header'}
14466 $as_echo "$as_val"'`
14467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14468 $as_echo "$ac_res" >&6; }
14470 # Is the header compilable?
14471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14472 $as_echo_n "checking $ac_header usability... " >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <$ac_header>
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490 (eval "$ac_compile") 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest.$ac_objext; then
14500 ac_header_compiler=yes
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_compiler=no
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 $as_echo "$ac_header_compiler" >&6; }
14512 # Is the header present?
14513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514 $as_echo_n "checking $ac_header presence... " >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <$ac_header>
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14529 $as_echo "$ac_try_echo") >&5
14530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } >/dev/null && {
14537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14540 ac_header_preproc=yes
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_preproc=no
14548 rm -f conftest.err conftest.$ac_ext
14549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14550 $as_echo "$ac_header_preproc" >&6; }
14552 # So? What about this header?
14553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14559 ac_header_preproc=yes
14562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14569 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14575 ## ---------------------------------------- ##
14576 ## Report this to pgsql-bugs@postgresql.org ##
14577 ## ---------------------------------------- ##
14579 ) | sed "s/^/$as_me: WARNING: /" >&2
14582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14583 $as_echo_n "checking for $ac_header... " >&6; }
14584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14585 $as_echo_n "(cached) " >&6
14587 eval "$as_ac_Header=\$ac_header_preproc"
14589 ac_res=`eval 'as_val=${'$as_ac_Header'}
14590 $as_echo "$as_val"'`
14591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14592 $as_echo "$ac_res" >&6; }
14595 as_val=`eval 'as_val=${'$as_ac_Header'}
14596 $as_echo "$as_val"'`
14597 if test "x$as_val" = x""yes; then
14598 cat >>confdefs.h <<_ACEOF
14599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14605 for ac_header in uuid.h
14607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14610 $as_echo_n "checking for $ac_header... " >&6; }
14611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14612 $as_echo_n "(cached) " >&6
14614 ac_res=`eval 'as_val=${'$as_ac_Header'}
14615 $as_echo "$as_val"'`
14616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14617 $as_echo "$ac_res" >&6; }
14619 # Is the header compilable?
14620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621 $as_echo_n "checking $ac_header usability... " >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 #include <$ac_header>
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639 (eval "$ac_compile") 2>conftest.er1
14641 grep -v '^ *+' conftest.er1 >conftest.err
14643 cat conftest.err >&5
14644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest.$ac_objext; then
14649 ac_header_compiler=yes
14651 $as_echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_header_compiler=no
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 $as_echo "$ac_header_compiler" >&6; }
14661 # Is the header present?
14662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14663 $as_echo_n "checking $ac_header presence... " >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include <$ac_header>
14672 if { (ac_try="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } >/dev/null && {
14686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14689 ac_header_preproc=yes
14691 $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ac_header_preproc=no
14697 rm -f conftest.err conftest.$ac_ext
14698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14699 $as_echo "$ac_header_preproc" >&6; }
14701 # So? What about this header?
14702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14708 ac_header_preproc=yes
14711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14724 ## ---------------------------------------- ##
14725 ## Report this to pgsql-bugs@postgresql.org ##
14726 ## ---------------------------------------- ##
14728 ) | sed "s/^/$as_me: WARNING: /" >&2
14731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14732 $as_echo_n "checking for $ac_header... " >&6; }
14733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14734 $as_echo_n "(cached) " >&6
14736 eval "$as_ac_Header=\$ac_header_preproc"
14738 ac_res=`eval 'as_val=${'$as_ac_Header'}
14739 $as_echo "$as_val"'`
14740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14741 $as_echo "$ac_res" >&6; }
14744 as_val=`eval 'as_val=${'$as_ac_Header'}
14745 $as_echo "$as_val"'`
14746 if test "x$as_val" = x""yes; then
14747 cat >>confdefs.h <<_ACEOF
14748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14753 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14754 { (exit 1); exit 1; }; }
14765 if test "$PORTNAME" = "win32" ; then
14767 for ac_header in crtdefs.h
14769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14772 $as_echo_n "checking for $ac_header... " >&6; }
14773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14774 $as_echo_n "(cached) " >&6
14776 ac_res=`eval 'as_val=${'$as_ac_Header'}
14777 $as_echo "$as_val"'`
14778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14779 $as_echo "$ac_res" >&6; }
14781 # Is the header compilable?
14782 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14783 $as_echo_n "checking $ac_header usability... " >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <$ac_header>
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800 $as_echo "$ac_try_echo") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_header_compiler=yes
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 $as_echo "$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 $as_echo_n "checking $ac_header presence... " >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <$ac_header>
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } >/dev/null && {
14848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14851 ac_header_preproc=yes
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_header_preproc=no
14859 rm -f conftest.err conftest.$ac_ext
14860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 $as_echo "$ac_header_preproc" >&6; }
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14867 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14874 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14876 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14878 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14880 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14884 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14886 ## ---------------------------------------- ##
14887 ## Report this to pgsql-bugs@postgresql.org ##
14888 ## ---------------------------------------- ##
14890 ) | sed "s/^/$as_me: WARNING: /" >&2
14893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 $as_echo_n "checking for $ac_header... " >&6; }
14895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14896 $as_echo_n "(cached) " >&6
14898 eval "$as_ac_Header=\$ac_header_preproc"
14900 ac_res=`eval 'as_val=${'$as_ac_Header'}
14901 $as_echo "$as_val"'`
14902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14903 $as_echo "$ac_res" >&6; }
14906 as_val=`eval 'as_val=${'$as_ac_Header'}
14907 $as_echo "$as_val"'`
14908 if test "x$as_val" = x""yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14920 ## Types, structures, compiler characteristics
14924 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14925 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14926 if test "${ac_cv_c_bigendian+set}" = set; then
14927 $as_echo_n "(cached) " >&6
14929 ac_cv_c_bigendian=unknown
14930 # See if we're dealing with a universal compiler.
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #ifndef __APPLE_CC__
14938 not a universal capable compiler
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest.$ac_objext; then
14962 # Check for potential -arch flags. It is not universal unless
14963 # there are some -arch flags. Note that *ppc* also matches
14964 # ppc64. This check is also rather less than ideal.
14965 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14966 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14969 $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 if test $ac_cv_c_bigendian = unknown; then
14977 # See if sys/param.h defines the BYTE_ORDER macro.
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 #include <sys/types.h>
14985 #include <sys/param.h>
14990 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14991 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14993 bogus endian macros
15000 rm -f conftest.$ac_objext
15001 if { (ac_try="$ac_compile"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008 (eval "$ac_compile") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest.$ac_objext; then
15018 # It does; now see whether it defined to BIG_ENDIAN or not.
15019 cat >conftest.$ac_ext <<_ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <sys/types.h>
15026 #include <sys/param.h>
15031 #if BYTE_ORDER != BIG_ENDIAN
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_compile") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest.$ac_objext; then
15057 ac_cv_c_bigendian=yes
15059 $as_echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_cv_c_bigendian=no
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 if test $ac_cv_c_bigendian = unknown; then
15076 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <limits.h>
15088 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15089 bogus endian macros
15096 rm -f conftest.$ac_objext
15097 if { (ac_try="$ac_compile"
15098 case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15103 $as_echo "$ac_try_echo") >&5
15104 (eval "$ac_compile") 2>conftest.er1
15106 grep -v '^ *+' conftest.er1 >conftest.err
15108 cat conftest.err >&5
15109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } && {
15111 test -z "$ac_c_werror_flag" ||
15112 test ! -s conftest.err
15113 } && test -s conftest.$ac_objext; then
15114 # It does; now see whether it defined to _BIG_ENDIAN or not.
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <limits.h>
15126 #ifndef _BIG_ENDIAN
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142 (eval "$ac_compile") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_c_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest.$ac_objext; then
15152 ac_cv_c_bigendian=yes
15154 $as_echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_cv_c_bigendian=no
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 $as_echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 if test $ac_cv_c_bigendian = unknown; then
15171 # Compile a test program.
15172 if test "$cross_compiling" = yes; then
15173 # Try to guess by grepping values from an object file.
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 short int ascii_mm[] =
15181 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15182 short int ascii_ii[] =
15183 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15184 int use_ascii (int i) {
15185 return ascii_mm[i] + ascii_ii[i];
15187 short int ebcdic_ii[] =
15188 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15189 short int ebcdic_mm[] =
15190 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15191 int use_ebcdic (int i) {
15192 return ebcdic_mm[i] + ebcdic_ii[i];
15199 return use_ascii (foo) == use_ebcdic (foo);
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15211 $as_echo "$ac_try_echo") >&5
15212 (eval "$ac_compile") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1 >conftest.err
15216 cat conftest.err >&5
15217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest.$ac_objext; then
15222 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15223 ac_cv_c_bigendian=yes
15225 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15226 if test "$ac_cv_c_bigendian" = unknown; then
15227 ac_cv_c_bigendian=no
15229 # finding both strings is unlikely to happen, but who knows?
15230 ac_cv_c_bigendian=unknown
15234 $as_echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15253 /* Are we little or big endian? From Harbison&Steele. */
15257 char c[sizeof (long int)];
15260 return u.c[sizeof (long int) - 1] == 1;
15266 rm -f conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15273 $as_echo "$ac_try_echo") >&5
15274 (eval "$ac_link") 2>&5
15276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15283 $as_echo "$ac_try_echo") >&5
15284 (eval "$ac_try") 2>&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_cv_c_bigendian=no
15290 $as_echo "$as_me: program exited with status $ac_status" >&5
15291 $as_echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 ( exit $ac_status )
15295 ac_cv_c_bigendian=yes
15297 rm -rf conftest.dSYM
15298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15304 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15305 $as_echo "$ac_cv_c_bigendian" >&6; }
15306 case $ac_cv_c_bigendian in #(
15308 cat >>confdefs.h <<\_ACEOF
15309 #define WORDS_BIGENDIAN 1
15316 cat >>confdefs.h <<\_ACEOF
15317 #define AC_APPLE_UNIVERSAL_BUILD 1
15322 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15323 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15324 $as_echo "$as_me: error: unknown endianness
15325 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15326 { (exit 1); exit 1; }; } ;;
15329 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15330 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15331 if test "${ac_cv_c_const+set}" = set; then
15332 $as_echo_n "(cached) " >&6
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15344 /* FIXME: Include the comments suggested by Paul. */
15345 #ifndef __cplusplus
15346 /* Ultrix mips cc rejects this. */
15347 typedef int charset[2];
15349 /* SunOS 4.1.1 cc rejects this. */
15350 char const *const *pcpcc;
15352 /* NEC SVR4.0.2 mips cc rejects this. */
15353 struct point {int x, y;};
15354 static struct point const zero = {0,0};
15355 /* AIX XL C 1.02.0.0 rejects this.
15356 It does not let you subtract one const X* pointer from another in
15357 an arm of an if-expression whose if-part is not a constant
15359 const char *g = "string";
15360 pcpcc = &g + (g ? g-g : 0);
15361 /* HPUX 7.0 cc rejects these. */
15363 ppc = (char**) pcpcc;
15364 pcpcc = (char const *const *) ppc;
15365 { /* SCO 3.2v4 cc rejects this. */
15367 char const *s = 0 ? (char *) 0 : (char const *) 0;
15372 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15373 int x[] = {25, 17};
15374 const int *foo = &x[0];
15377 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15378 typedef const int *iptr;
15382 { /* AIX XL C 1.02.0.0 rejects this saying
15383 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15384 struct s { int j; const int *ap[3]; };
15385 struct s *b; b->j = 5;
15387 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15388 const int foo = 10;
15389 if (!foo) return 0;
15391 return !cs[0] && !zero.x;
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15405 $as_echo "$ac_try_echo") >&5
15406 (eval "$ac_compile") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && {
15413 test -z "$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15415 } && test -s conftest.$ac_objext; then
15418 $as_echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15427 $as_echo "$ac_cv_c_const" >&6; }
15428 if test $ac_cv_c_const = no; then
15430 cat >>confdefs.h <<\_ACEOF
15436 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15437 $as_echo_n "checking for inline... " >&6; }
15438 if test "${ac_cv_c_inline+set}" = set; then
15439 $as_echo_n "(cached) " >&6
15442 for ac_kw in inline __inline__ __inline; do
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 #ifndef __cplusplus
15451 static $ac_kw foo_t static_foo () {return 0; }
15452 $ac_kw foo_t foo () {return 0; }
15456 rm -f conftest.$ac_objext
15457 if { (ac_try="$ac_compile"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_compile") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest.$ac_objext; then
15474 ac_cv_c_inline=$ac_kw
15476 $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 test "$ac_cv_c_inline" != no && break
15487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15488 $as_echo "$ac_cv_c_inline" >&6; }
15491 case $ac_cv_c_inline in
15494 case $ac_cv_c_inline in
15496 *) ac_val=$ac_cv_c_inline;;
15498 cat >>confdefs.h <<_ACEOF
15499 #ifndef __cplusplus
15500 #define inline $ac_val
15506 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15507 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15508 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15509 $as_echo_n "(cached) " >&6
15511 pgac_cv_c_inline_quietly=no
15512 if test "$ac_cv_c_inline" != no; then
15513 pgac_c_inline_save_werror=$ac_c_werror_flag
15514 ac_c_werror_flag=yes
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 static inline int fun () {return 0;}
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (ac_try="$ac_link"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538 (eval "$ac_link") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest$ac_exeext && {
15548 test "$cross_compiling" = yes ||
15549 $as_test_x conftest$ac_exeext
15551 pgac_cv_c_inline_quietly=yes
15553 $as_echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15559 rm -rf conftest.dSYM
15560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15561 conftest$ac_exeext conftest.$ac_ext
15562 ac_c_werror_flag=$pgac_c_inline_save_werror
15565 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15566 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15567 if test "$pgac_cv_c_inline_quietly" != no; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define PG_USE_INLINE 1
15575 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15576 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15577 if test "${ac_cv_c_stringize+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15588 char *s = x(teststring);
15590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15591 $EGREP "#teststring" >/dev/null 2>&1; then
15592 ac_cv_c_stringize=no
15594 ac_cv_c_stringize=yes
15599 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15600 $as_echo "$ac_cv_c_stringize" >&6; }
15601 if test $ac_cv_c_stringize = yes; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define HAVE_STRINGIZE 1
15610 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15611 $as_echo_n "checking for flexible array members... " >&6; }
15612 if test "${ac_cv_c_flexmember+set}" = set; then
15613 $as_echo_n "(cached) " >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <stdlib.h>
15623 #include <stddef.h>
15624 struct s { int n; double d[]; };
15628 int m = getchar ();
15629 struct s *p = malloc (offsetof (struct s, d)
15630 + m * sizeof (double));
15632 return p->d != (double *) NULL;
15637 rm -f conftest.$ac_objext
15638 if { (ac_try="$ac_compile"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15644 $as_echo "$ac_try_echo") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } && {
15652 test -z "$ac_c_werror_flag" ||
15653 test ! -s conftest.err
15654 } && test -s conftest.$ac_objext; then
15655 ac_cv_c_flexmember=yes
15657 $as_echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_c_flexmember=no
15663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15666 $as_echo "$ac_cv_c_flexmember" >&6; }
15667 if test $ac_cv_c_flexmember = yes; then
15669 cat >>confdefs.h <<\_ACEOF
15670 #define FLEXIBLE_ARRAY_MEMBER /**/
15674 cat >>confdefs.h <<\_ACEOF
15675 #define FLEXIBLE_ARRAY_MEMBER 1
15680 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15681 $as_echo_n "checking for signed types... " >&6; }
15682 if test "${pgac_cv_c_signed+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15695 signed char c; signed short s; signed int i;
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15718 pgac_cv_c_signed=yes
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 pgac_cv_c_signed=no
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15729 $as_echo "$pgac_cv_c_signed" >&6; }
15730 if test x"$pgac_cv_c_signed" = xno ; then
15732 cat >>confdefs.h <<\_ACEOF
15733 #define signed /**/
15737 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15738 $as_echo_n "checking for working volatile... " >&6; }
15739 if test "${ac_cv_c_volatile+set}" = set; then
15740 $as_echo_n "(cached) " >&6
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15754 int * volatile y = (int *) 0;
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_cv_c_volatile=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_cv_c_volatile=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15789 $as_echo "$ac_cv_c_volatile" >&6; }
15790 if test $ac_cv_c_volatile = no; then
15792 cat >>confdefs.h <<\_ACEOF
15793 #define volatile /**/
15798 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15799 $as_echo_n "checking for __func__... " >&6; }
15800 if test "${pgac_cv_funcname_func_support+set}" = set; then
15801 $as_echo_n "(cached) " >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15813 printf("%s\n", __func__);
15818 rm -f conftest.$ac_objext
15819 if { (ac_try="$ac_compile"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15825 $as_echo "$ac_try_echo") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 pgac_cv_funcname_func_support=yes
15838 $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 pgac_cv_funcname_func_support=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15847 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15848 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_FUNCNAME__FUNC 1
15855 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15856 $as_echo_n "checking for __FUNCTION__... " >&6; }
15857 if test "${pgac_cv_funcname_function_support+set}" = set; then
15858 $as_echo_n "(cached) " >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15870 printf("%s\n", __FUNCTION__);
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest.$ac_objext; then
15893 pgac_cv_funcname_function_support=yes
15895 $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 pgac_cv_funcname_function_support=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15904 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15905 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE_FUNCNAME__FUNCTION 1
15913 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15914 $as_echo_n "checking for _Static_assert... " >&6; }
15915 if test "${pgac_cv__static_assert+set}" = set; then
15916 $as_echo_n "(cached) " >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15928 ({ _Static_assert(1, "foo"); })
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (ac_try="$ac_link"
15935 case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15940 $as_echo "$ac_try_echo") >&5
15941 (eval "$ac_link") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest$ac_exeext && {
15951 test "$cross_compiling" = yes ||
15952 $as_test_x conftest$ac_exeext
15954 pgac_cv__static_assert=yes
15956 $as_echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 pgac_cv__static_assert=no
15962 rm -rf conftest.dSYM
15963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15964 conftest$ac_exeext conftest.$ac_ext
15966 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15967 $as_echo "$pgac_cv__static_assert" >&6; }
15968 if test x"$pgac_cv__static_assert" = xyes ; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE__STATIC_ASSERT 1
15975 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15976 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15977 if test "${pgac_cv__types_compatible+set}" = set; then
15978 $as_echo_n "(cached) " >&6
15980 cat >conftest.$ac_ext <<_ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15990 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15995 rm -f conftest.$ac_objext
15996 if { (ac_try="$ac_compile"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 pgac_cv__types_compatible=yes
16015 $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 pgac_cv__types_compatible=no
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
16024 $as_echo "$pgac_cv__types_compatible" >&6; }
16025 if test x"$pgac_cv__types_compatible" = xyes ; then
16027 cat >>confdefs.h <<\_ACEOF
16028 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
16032 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
16033 $as_echo_n "checking for __builtin_constant_p... " >&6; }
16034 if test "${pgac_cv__builtin_constant_p+set}" = set; then
16035 $as_echo_n "(cached) " >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 static int x; static int y[__builtin_constant_p(x) ? x : 1];
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16059 $as_echo "$ac_try_echo") >&5
16060 (eval "$ac_compile") 2>conftest.er1
16062 grep -v '^ *+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } && {
16067 test -z "$ac_c_werror_flag" ||
16068 test ! -s conftest.err
16069 } && test -s conftest.$ac_objext; then
16070 pgac_cv__builtin_constant_p=yes
16072 $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 pgac_cv__builtin_constant_p=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
16081 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
16082 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
16084 cat >>confdefs.h <<\_ACEOF
16085 #define HAVE__BUILTIN_CONSTANT_P 1
16089 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
16090 $as_echo_n "checking for __builtin_unreachable... " >&6; }
16091 if test "${pgac_cv__builtin_unreachable+set}" = set; then
16092 $as_echo_n "(cached) " >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16104 __builtin_unreachable();
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116 $as_echo "$ac_try_echo") >&5
16117 (eval "$ac_link") 2>conftest.er1
16119 grep -v '^ *+' conftest.er1 >conftest.err
16121 cat conftest.err >&5
16122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } && {
16124 test -z "$ac_c_werror_flag" ||
16125 test ! -s conftest.err
16126 } && test -s conftest$ac_exeext && {
16127 test "$cross_compiling" = yes ||
16128 $as_test_x conftest$ac_exeext
16130 pgac_cv__builtin_unreachable=yes
16132 $as_echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 pgac_cv__builtin_unreachable=no
16138 rm -rf conftest.dSYM
16139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16140 conftest$ac_exeext conftest.$ac_ext
16142 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
16143 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
16144 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE__BUILTIN_UNREACHABLE 1
16151 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
16152 $as_echo_n "checking for __VA_ARGS__... " >&6; }
16153 if test "${pgac_cv__va_args+set}" = set; then
16154 $as_echo_n "(cached) " >&6
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16166 #define debug(...) fprintf(stderr, __VA_ARGS__)
16167 debug("%s", "blarg");
16173 rm -f conftest.$ac_objext
16174 if { (ac_try="$ac_compile"
16175 case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16180 $as_echo "$ac_try_echo") >&5
16181 (eval "$ac_compile") 2>conftest.er1
16183 grep -v '^ *+' conftest.er1 >conftest.err
16185 cat conftest.err >&5
16186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } && {
16188 test -z "$ac_c_werror_flag" ||
16189 test ! -s conftest.err
16190 } && test -s conftest.$ac_objext; then
16191 pgac_cv__va_args=yes
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 pgac_cv__va_args=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16202 $as_echo "$pgac_cv__va_args" >&6; }
16203 if test x"$pgac_cv__va_args" = xyes ; then
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE__VA_ARGS 1
16210 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16211 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16212 if test "${ac_cv_struct_tm+set}" = set; then
16213 $as_echo_n "(cached) " >&6
16215 cat >conftest.$ac_ext <<_ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16221 #include <sys/types.h>
16228 int *p = &tm.tm_sec;
16234 rm -f conftest.$ac_objext
16235 if { (ac_try="$ac_compile"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16241 $as_echo "$ac_try_echo") >&5
16242 (eval "$ac_compile") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest.$ac_objext; then
16252 ac_cv_struct_tm=time.h
16254 $as_echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_struct_tm=sys/time.h
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16263 $as_echo "$ac_cv_struct_tm" >&6; }
16264 if test $ac_cv_struct_tm = sys/time.h; then
16266 cat >>confdefs.h <<\_ACEOF
16267 #define TM_IN_SYS_TIME 1
16272 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16273 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16274 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16275 $as_echo_n "(cached) " >&6
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <sys/types.h>
16284 #include <$ac_cv_struct_tm>
16290 static struct tm ac_aggr;
16291 if (ac_aggr.tm_zone)
16297 rm -f conftest.$ac_objext
16298 if { (ac_try="$ac_compile"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304 $as_echo "$ac_try_echo") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest.$ac_objext; then
16315 ac_cv_member_struct_tm_tm_zone=yes
16317 $as_echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326 #include <sys/types.h>
16327 #include <$ac_cv_struct_tm>
16333 static struct tm ac_aggr;
16334 if (sizeof ac_aggr.tm_zone)
16340 rm -f conftest.$ac_objext
16341 if { (ac_try="$ac_compile"
16342 case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16347 $as_echo "$ac_try_echo") >&5
16348 (eval "$ac_compile") 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } && {
16355 test -z "$ac_c_werror_flag" ||
16356 test ! -s conftest.err
16357 } && test -s conftest.$ac_objext; then
16358 ac_cv_member_struct_tm_tm_zone=yes
16360 $as_echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_member_struct_tm_tm_zone=no
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16372 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16373 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16375 cat >>confdefs.h <<_ACEOF
16376 #define HAVE_STRUCT_TM_TM_ZONE 1
16382 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16384 cat >>confdefs.h <<\_ACEOF
16385 #define HAVE_TM_ZONE 1
16389 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16390 $as_echo_n "checking for tzname... " >&6; }
16391 if test "${ac_cv_var_tzname+set}" = set; then
16392 $as_echo_n "(cached) " >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16401 #ifndef tzname /* For SGI. */
16402 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16420 $as_echo "$ac_try_echo") >&5
16421 (eval "$ac_link") 2>conftest.er1
16423 grep -v '^ *+' conftest.er1 >conftest.err
16425 cat conftest.err >&5
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } && {
16428 test -z "$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 } && test -s conftest$ac_exeext && {
16431 test "$cross_compiling" = yes ||
16432 $as_test_x conftest$ac_exeext
16434 ac_cv_var_tzname=yes
16436 $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_cv_var_tzname=no
16442 rm -rf conftest.dSYM
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444 conftest$ac_exeext conftest.$ac_ext
16446 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16447 $as_echo "$ac_cv_var_tzname" >&6; }
16448 if test $ac_cv_var_tzname = yes; then
16450 cat >>confdefs.h <<\_ACEOF
16451 #define HAVE_TZNAME 1
16456 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16457 $as_echo_n "checking for union semun... " >&6; }
16458 if test "${ac_cv_type_union_semun+set}" = set; then
16459 $as_echo_n "(cached) " >&6
16461 ac_cv_type_union_semun=no
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <sys/types.h>
16469 #include <sys/ipc.h>
16470 #include <sys/sem.h>
16475 if (sizeof (union semun))
16481 rm -f conftest.$ac_objext
16482 if { (ac_try="$ac_compile"
16483 case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16488 $as_echo "$ac_try_echo") >&5
16489 (eval "$ac_compile") 2>conftest.er1
16491 grep -v '^ *+' conftest.er1 >conftest.err
16493 cat conftest.err >&5
16494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } && {
16496 test -z "$ac_c_werror_flag" ||
16497 test ! -s conftest.err
16498 } && test -s conftest.$ac_objext; then
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 #include <sys/types.h>
16506 #include <sys/ipc.h>
16507 #include <sys/sem.h>
16512 if (sizeof ((union semun)))
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16525 $as_echo "$ac_try_echo") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest.$ac_objext; then
16538 $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_type_union_semun=yes
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 $as_echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16555 $as_echo "$ac_cv_type_union_semun" >&6; }
16556 if test "x$ac_cv_type_union_semun" = x""yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_UNION_SEMUN 1
16565 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16566 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16567 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16568 $as_echo_n "(cached) " >&6
16570 ac_cv_type_struct_sockaddr_un=no
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 #include <sys/types.h>
16578 #ifdef HAVE_SYS_UN_H
16579 #include <sys/un.h>
16586 if (sizeof (struct sockaddr_un))
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600 (eval "$ac_compile") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest.$ac_objext; then
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <sys/types.h>
16617 #ifdef HAVE_SYS_UN_H
16618 #include <sys/un.h>
16625 if (sizeof ((struct sockaddr_un)))
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16638 $as_echo "$ac_try_echo") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest.$ac_objext; then
16651 $as_echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_type_struct_sockaddr_un=yes
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 $as_echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16668 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16669 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16671 cat >>confdefs.h <<\_ACEOF
16672 #define HAVE_UNIX_SOCKETS 1
16677 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16678 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16679 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16680 $as_echo_n "(cached) " >&6
16682 ac_cv_type_struct_sockaddr_storage=no
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 #include <sys/types.h>
16690 #ifdef HAVE_SYS_SOCKET_H
16691 #include <sys/socket.h>
16698 if (sizeof (struct sockaddr_storage))
16704 rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16711 $as_echo "$ac_try_echo") >&5
16712 (eval "$ac_compile") 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } && {
16719 test -z "$ac_c_werror_flag" ||
16720 test ! -s conftest.err
16721 } && test -s conftest.$ac_objext; then
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #ifdef HAVE_SYS_SOCKET_H
16730 #include <sys/socket.h>
16737 if (sizeof ((struct sockaddr_storage)))
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16750 $as_echo "$ac_try_echo") >&5
16751 (eval "$ac_compile") 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest.$ac_objext; then
16763 $as_echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ac_cv_type_struct_sockaddr_storage=yes
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16780 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16781 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16790 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16791 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16792 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16793 $as_echo_n "(cached) " >&6
16795 cat >conftest.$ac_ext <<_ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 #include <sys/types.h>
16802 #ifdef HAVE_SYS_SOCKET_H
16803 #include <sys/socket.h>
16810 static struct sockaddr_storage ac_aggr;
16811 if (ac_aggr.ss_family)
16817 rm -f conftest.$ac_objext
16818 if { (ac_try="$ac_compile"
16819 case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16824 $as_echo "$ac_try_echo") >&5
16825 (eval "$ac_compile") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && {
16832 test -z "$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 } && test -s conftest.$ac_objext; then
16835 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16837 $as_echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 cat >conftest.$ac_ext <<_ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 #include <sys/types.h>
16847 #ifdef HAVE_SYS_SOCKET_H
16848 #include <sys/socket.h>
16855 static struct sockaddr_storage ac_aggr;
16856 if (sizeof ac_aggr.ss_family)
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16869 $as_echo "$ac_try_echo") >&5
16870 (eval "$ac_compile") 2>conftest.er1
16872 grep -v '^ *+' conftest.er1 >conftest.err
16874 cat conftest.err >&5
16875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } && {
16877 test -z "$ac_c_werror_flag" ||
16878 test ! -s conftest.err
16879 } && test -s conftest.$ac_objext; then
16880 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16882 $as_echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_cv_member_struct_sockaddr_storage_ss_family=no
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16894 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16895 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16903 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16904 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16905 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16906 $as_echo_n "(cached) " >&6
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <sys/types.h>
16915 #ifdef HAVE_SYS_SOCKET_H
16916 #include <sys/socket.h>
16923 static struct sockaddr_storage ac_aggr;
16924 if (ac_aggr.__ss_family)
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16937 $as_echo "$ac_try_echo") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest.$ac_objext; then
16948 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 #include <sys/types.h>
16960 #ifdef HAVE_SYS_SOCKET_H
16961 #include <sys/socket.h>
16968 static struct sockaddr_storage ac_aggr;
16969 if (sizeof ac_aggr.__ss_family)
16975 rm -f conftest.$ac_objext
16976 if { (ac_try="$ac_compile"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16982 $as_echo "$ac_try_echo") >&5
16983 (eval "$ac_compile") 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } && {
16990 test -z "$ac_c_werror_flag" ||
16991 test ! -s conftest.err
16992 } && test -s conftest.$ac_objext; then
16993 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16995 $as_echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ac_cv_member_struct_sockaddr_storage___ss_family=no
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
17007 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
17008 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
17016 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
17017 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
17018 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
17019 $as_echo_n "(cached) " >&6
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 #include <sys/types.h>
17028 #ifdef HAVE_SYS_SOCKET_H
17029 #include <sys/socket.h>
17036 static struct sockaddr_storage ac_aggr;
17037 if (ac_aggr.ss_len)
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050 $as_echo "$ac_try_echo") >&5
17051 (eval "$ac_compile") 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && {
17058 test -z "$ac_c_werror_flag" ||
17059 test ! -s conftest.err
17060 } && test -s conftest.$ac_objext; then
17061 ac_cv_member_struct_sockaddr_storage_ss_len=yes
17063 $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 #include <sys/types.h>
17073 #ifdef HAVE_SYS_SOCKET_H
17074 #include <sys/socket.h>
17081 static struct sockaddr_storage ac_aggr;
17082 if (sizeof ac_aggr.ss_len)
17088 rm -f conftest.$ac_objext
17089 if { (ac_try="$ac_compile"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096 (eval "$ac_compile") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest.$ac_objext; then
17106 ac_cv_member_struct_sockaddr_storage_ss_len=yes
17108 $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ac_cv_member_struct_sockaddr_storage_ss_len=no
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
17120 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
17121 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
17129 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
17130 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
17131 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
17132 $as_echo_n "(cached) " >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 #include <sys/types.h>
17141 #ifdef HAVE_SYS_SOCKET_H
17142 #include <sys/socket.h>
17149 static struct sockaddr_storage ac_aggr;
17150 if (ac_aggr.__ss_len)
17156 rm -f conftest.$ac_objext
17157 if { (ac_try="$ac_compile"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest.$ac_objext; then
17174 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17176 $as_echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 #include <sys/types.h>
17186 #ifdef HAVE_SYS_SOCKET_H
17187 #include <sys/socket.h>
17194 static struct sockaddr_storage ac_aggr;
17195 if (sizeof ac_aggr.__ss_len)
17201 rm -f conftest.$ac_objext
17202 if { (ac_try="$ac_compile"
17203 case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17208 $as_echo "$ac_try_echo") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest.$ac_objext; then
17219 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17221 $as_echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ac_cv_member_struct_sockaddr_storage___ss_len=no
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17233 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17234 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17236 cat >>confdefs.h <<_ACEOF
17237 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17242 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17243 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17244 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17245 $as_echo_n "(cached) " >&6
17247 cat >conftest.$ac_ext <<_ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 #include <sys/types.h>
17254 #ifdef HAVE_SYS_SOCKET_H
17255 #include <sys/socket.h>
17262 static struct sockaddr ac_aggr;
17263 if (ac_aggr.sa_len)
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest.$ac_objext; then
17287 ac_cv_member_struct_sockaddr_sa_len=yes
17289 $as_echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <sys/types.h>
17299 #ifdef HAVE_SYS_SOCKET_H
17300 #include <sys/socket.h>
17307 static struct sockaddr ac_aggr;
17308 if (sizeof ac_aggr.sa_len)
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322 (eval "$ac_compile") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest.$ac_objext; then
17332 ac_cv_member_struct_sockaddr_sa_len=yes
17334 $as_echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 ac_cv_member_struct_sockaddr_sa_len=no
17340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17346 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17347 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17356 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17357 $as_echo_n "checking for struct addrinfo... " >&6; }
17358 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17359 $as_echo_n "(cached) " >&6
17361 ac_cv_type_struct_addrinfo=no
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <sys/types.h>
17369 #include <sys/socket.h>
17376 if (sizeof (struct addrinfo))
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17389 $as_echo "$ac_try_echo") >&5
17390 (eval "$ac_compile") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && {
17397 test -z "$ac_c_werror_flag" ||
17398 test ! -s conftest.err
17399 } && test -s conftest.$ac_objext; then
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 #include <sys/types.h>
17407 #include <sys/socket.h>
17414 if (sizeof ((struct addrinfo)))
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17427 $as_echo "$ac_try_echo") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.$ac_objext; then
17440 $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_type_struct_addrinfo=yes
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17457 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17458 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define HAVE_STRUCT_ADDRINFO 1
17468 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17469 $as_echo_n "checking for intptr_t... " >&6; }
17470 if test "${ac_cv_type_intptr_t+set}" = set; then
17471 $as_echo_n "(cached) " >&6
17473 ac_cv_type_intptr_t=no
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 $ac_includes_default
17484 if (sizeof (intptr_t))
17490 rm -f conftest.$ac_objext
17491 if { (ac_try="$ac_compile"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17497 $as_echo "$ac_try_echo") >&5
17498 (eval "$ac_compile") 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest.$ac_objext; then
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 $ac_includes_default
17518 if (sizeof ((intptr_t)))
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17531 $as_echo "$ac_try_echo") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && {
17539 test -z "$ac_c_werror_flag" ||
17540 test ! -s conftest.err
17541 } && test -s conftest.$ac_objext; then
17544 $as_echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_type_intptr_t=yes
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17561 $as_echo "$ac_cv_type_intptr_t" >&6; }
17562 if test "x$ac_cv_type_intptr_t" = x""yes; then
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_INTPTR_T 1
17569 for ac_type in 'int' 'long int' 'long long int'; do
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 $ac_includes_default
17580 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17594 $as_echo "$ac_try_echo") >&5
17595 (eval "$ac_compile") 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } && {
17602 test -z "$ac_c_werror_flag" ||
17603 test ! -s conftest.err
17604 } && test -s conftest.$ac_objext; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define intptr_t $ac_type
17612 $as_echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17619 test -z "$ac_type" && break
17625 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17626 $as_echo_n "checking for uintptr_t... " >&6; }
17627 if test "${ac_cv_type_uintptr_t+set}" = set; then
17628 $as_echo_n "(cached) " >&6
17630 ac_cv_type_uintptr_t=no
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 $ac_includes_default
17641 if (sizeof (uintptr_t))
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest.$ac_objext; then
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17675 if (sizeof ((uintptr_t)))
17681 rm -f conftest.$ac_objext
17682 if { (ac_try="$ac_compile"
17683 case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17688 $as_echo "$ac_try_echo") >&5
17689 (eval "$ac_compile") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest.$ac_objext; then
17701 $as_echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_cv_type_uintptr_t=yes
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 $as_echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17718 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17719 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_UINTPTR_T 1
17726 for ac_type in 'unsigned int' 'unsigned long int' \
17727 'unsigned long long int'; do
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 $ac_includes_default
17738 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752 $as_echo "$ac_try_echo") >&5
17753 (eval "$ac_compile") 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } && {
17760 test -z "$ac_c_werror_flag" ||
17761 test ! -s conftest.err
17762 } && test -s conftest.$ac_objext; then
17764 cat >>confdefs.h <<_ACEOF
17765 #define uintptr_t $ac_type
17770 $as_echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 test -z "$ac_type" && break
17783 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17784 $as_echo_n "checking for long long int... " >&6; }
17785 if test "${ac_cv_type_long_long_int+set}" = set; then
17786 $as_echo_n "(cached) " >&6
17788 cat >conftest.$ac_ext <<_ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 /* For now, do not test the preprocessor; as of 2007 there are too many
17796 implementations with broken preprocessors. Perhaps this can
17797 be revisited in 2012. In the meantime, code should not expect
17798 #if to work with literals wider than 32 bits. */
17799 /* Test literals. */
17800 long long int ll = 9223372036854775807ll;
17801 long long int nll = -9223372036854775807LL;
17802 unsigned long long int ull = 18446744073709551615ULL;
17803 /* Test constant expressions. */
17804 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17806 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17812 /* Test availability of runtime routines for shift and division. */
17813 long long int llmax = 9223372036854775807ll;
17814 unsigned long long int ullmax = 18446744073709551615ull;
17815 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17816 | (llmax / ll) | (llmax % ll)
17817 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17818 | (ullmax / ull) | (ullmax % ull));
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17845 if test "$cross_compiling" = yes; then
17846 ac_cv_type_long_long_int=yes
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <limits.h>
17857 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17858 # define LLONG_MAX (HALF - 1 + HALF)
17863 long long int n = 1;
17867 long long int m = n << i;
17870 if (LLONG_MAX / 2 < m)
17878 rm -f conftest$ac_exeext
17879 if { (ac_try="$ac_link"
17880 case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17885 $as_echo "$ac_try_echo") >&5
17886 (eval "$ac_link") 2>&5
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17890 { (case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17895 $as_echo "$ac_try_echo") >&5
17896 (eval "$ac_try") 2>&5
17898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_type_long_long_int=yes
17902 $as_echo "$as_me: program exited with status $ac_status" >&5
17903 $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ( exit $ac_status )
17907 ac_cv_type_long_long_int=no
17909 rm -rf conftest.dSYM
17910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17915 $as_echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_cv_type_long_long_int=no
17921 rm -rf conftest.dSYM
17922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17923 conftest$ac_exeext conftest.$ac_ext
17925 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17926 $as_echo "$ac_cv_type_long_long_int" >&6; }
17927 if test $ac_cv_type_long_long_int = yes; then
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_LONG_LONG_INT 1
17936 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17937 $as_echo_n "checking for locale_t... " >&6; }
17938 if test "${pgac_cv_type_locale_t+set}" = set; then
17939 $as_echo_n "(cached) " >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 #include <locale.h>
17957 rm -f conftest.$ac_objext
17958 if { (ac_try="$ac_compile"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965 (eval "$ac_compile") 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } && {
17972 test -z "$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17974 } && test -s conftest.$ac_objext; then
17975 pgac_cv_type_locale_t=yes
17977 $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 #include <xlocale.h>
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 pgac_cv_type_locale_t='yes (in xlocale.h)'
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 pgac_cv_type_locale_t=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: $pgac_cv_type_locale_t" >&5
18028 $as_echo "$pgac_cv_type_locale_t" >&6; }
18029 if test "$pgac_cv_type_locale_t" != no; then
18031 cat >>confdefs.h <<\_ACEOF
18032 #define HAVE_LOCALE_T 1
18036 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
18038 cat >>confdefs.h <<\_ACEOF
18039 #define LOCALE_T_IN_XLOCALE 1
18044 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
18045 $as_echo_n "checking for struct cmsgcred... " >&6; }
18046 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
18047 $as_echo_n "(cached) " >&6
18049 ac_cv_type_struct_cmsgcred=no
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include <sys/socket.h>
18057 #include <sys/param.h>
18058 #ifdef HAVE_SYS_UCRED_H
18059 #include <sys/ucred.h>
18065 if (sizeof (struct cmsgcred))
18071 rm -f conftest.$ac_objext
18072 if { (ac_try="$ac_compile"
18073 case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18078 $as_echo "$ac_try_echo") >&5
18079 (eval "$ac_compile") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && {
18086 test -z "$ac_c_werror_flag" ||
18087 test ! -s conftest.err
18088 } && test -s conftest.$ac_objext; then
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 #include <sys/socket.h>
18096 #include <sys/param.h>
18097 #ifdef HAVE_SYS_UCRED_H
18098 #include <sys/ucred.h>
18104 if (sizeof ((struct cmsgcred)))
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118 (eval "$ac_compile") 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest.$ac_objext; then
18130 $as_echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 ac_cv_type_struct_cmsgcred=yes
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 $as_echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
18147 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
18148 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
18150 cat >>confdefs.h <<_ACEOF
18151 #define HAVE_STRUCT_CMSGCRED 1
18158 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
18159 $as_echo_n "checking for struct option... " >&6; }
18160 if test "${ac_cv_type_struct_option+set}" = set; then
18161 $as_echo_n "(cached) " >&6
18163 ac_cv_type_struct_option=no
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #ifdef HAVE_GETOPT_H
18171 #include <getopt.h>
18177 if (sizeof (struct option))
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18190 $as_echo "$ac_try_echo") >&5
18191 (eval "$ac_compile") 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } && {
18198 test -z "$ac_c_werror_flag" ||
18199 test ! -s conftest.err
18200 } && test -s conftest.$ac_objext; then
18201 cat >conftest.$ac_ext <<_ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 #ifdef HAVE_GETOPT_H
18208 #include <getopt.h>
18214 if (sizeof ((struct option)))
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18227 $as_echo "$ac_try_echo") >&5
18228 (eval "$ac_compile") 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } && {
18235 test -z "$ac_c_werror_flag" ||
18236 test ! -s conftest.err
18237 } && test -s conftest.$ac_objext; then
18240 $as_echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 ac_cv_type_struct_option=yes
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248 $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18257 $as_echo "$ac_cv_type_struct_option" >&6; }
18258 if test "x$ac_cv_type_struct_option" = x""yes; then
18260 cat >>confdefs.h <<_ACEOF
18261 #define HAVE_STRUCT_OPTION 1
18268 if test "$with_zlib" = yes; then
18269 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18270 # did not). While we could work around the lack of z_streamp, it
18271 # seems unwise to encourage people to use such old zlib versions...
18272 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18273 $as_echo_n "checking for z_streamp... " >&6; }
18274 if test "${ac_cv_type_z_streamp+set}" = set; then
18275 $as_echo_n "(cached) " >&6
18277 ac_cv_type_z_streamp=no
18278 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18289 if (sizeof (z_streamp))
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18302 $as_echo "$ac_try_echo") >&5
18303 (eval "$ac_compile") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest.$ac_objext; then
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18324 if (sizeof ((z_streamp)))
18330 rm -f conftest.$ac_objext
18331 if { (ac_try="$ac_compile"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_compile") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest.$ac_objext; then
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_cv_type_z_streamp=yes
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358 $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18367 $as_echo "$ac_cv_type_z_streamp" >&6; }
18368 if test "x$ac_cv_type_z_streamp" = x""yes; then
18371 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18372 Use --without-zlib to disable zlib support." >&5
18373 $as_echo "$as_me: error: zlib version is too old
18374 Use --without-zlib to disable zlib support." >&2;}
18375 { (exit 1); exit 1; }; }
18380 if test "$with_krb5" = yes; then
18381 # Check for differences between MIT and Heimdal (KTH) releases
18382 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18383 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18384 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18385 $as_echo_n "(cached) " >&6
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18398 static krb5_ticket ac_aggr;
18399 if (ac_aggr.enc_part2)
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18412 $as_echo "$ac_try_echo") >&5
18413 (eval "$ac_compile") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } && {
18420 test -z "$ac_c_werror_flag" ||
18421 test ! -s conftest.err
18422 } && test -s conftest.$ac_objext; then
18423 ac_cv_member_krb5_ticket_enc_part2=yes
18425 $as_echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 cat >conftest.$ac_ext <<_ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18439 static krb5_ticket ac_aggr;
18440 if (sizeof ac_aggr.enc_part2)
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453 $as_echo "$ac_try_echo") >&5
18454 (eval "$ac_compile") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } && {
18461 test -z "$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 } && test -s conftest.$ac_objext; then
18464 ac_cv_member_krb5_ticket_enc_part2=yes
18466 $as_echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_cv_member_krb5_ticket_enc_part2=no
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18478 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18479 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define HAVE_KRB5_TICKET_ENC_PART2 1
18487 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18488 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18489 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18490 $as_echo_n "(cached) " >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18503 static krb5_ticket ac_aggr;
18504 if (ac_aggr.client)
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517 $as_echo "$ac_try_echo") >&5
18518 (eval "$ac_compile") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest.$ac_objext; then
18528 ac_cv_member_krb5_ticket_client=yes
18530 $as_echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 cat >conftest.$ac_ext <<_ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18544 static krb5_ticket ac_aggr;
18545 if (sizeof ac_aggr.client)
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559 (eval "$ac_compile") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && {
18566 test -z "$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18568 } && test -s conftest.$ac_objext; then
18569 ac_cv_member_krb5_ticket_client=yes
18571 $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_cv_member_krb5_ticket_client=no
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18583 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18584 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18586 cat >>confdefs.h <<_ACEOF
18587 #define HAVE_KRB5_TICKET_CLIENT 1
18592 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18593 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18594 { (exit 1); exit 1; }; }
18599 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18600 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18601 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18602 $as_echo_n "(cached) " >&6
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18615 static krb5_error ac_aggr;
18616 if (ac_aggr.text.data)
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18629 $as_echo "$ac_try_echo") >&5
18630 (eval "$ac_compile") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest.$ac_objext; then
18640 ac_cv_member_krb5_error_text_data=yes
18642 $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18656 static krb5_error ac_aggr;
18657 if (sizeof ac_aggr.text.data)
18663 rm -f conftest.$ac_objext
18664 if { (ac_try="$ac_compile"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671 (eval "$ac_compile") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest.$ac_objext; then
18681 ac_cv_member_krb5_error_text_data=yes
18683 $as_echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_member_krb5_error_text_data=no
18689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18695 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18696 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18704 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18705 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18706 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18707 $as_echo_n "(cached) " >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18720 static krb5_error ac_aggr;
18721 if (ac_aggr.e_data)
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18734 $as_echo "$ac_try_echo") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_cv_member_krb5_error_e_data=yes
18747 $as_echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18761 static krb5_error ac_aggr;
18762 if (sizeof ac_aggr.e_data)
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18775 $as_echo "$ac_try_echo") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest.$ac_objext; then
18786 ac_cv_member_krb5_error_e_data=yes
18788 $as_echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_member_krb5_error_e_data=no
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18800 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18801 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_KRB5_ERROR_E_DATA 1
18809 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18810 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18811 { (exit 1); exit 1; }; }
18817 # Win32 requires headers to be loaded for __stdcall, so can't use
18818 # AC_CHECK_FUNCS here.
18819 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18820 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18831 krb5_free_unparsed_name(NULL,NULL);
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844 (eval "$ac_link") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest$ac_exeext && {
18854 test "$cross_compiling" = yes ||
18855 $as_test_x conftest$ac_exeext
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18862 { $as_echo "$as_me:$LINENO: result: yes" >&5
18863 $as_echo "yes" >&6; }
18865 $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 { $as_echo "$as_me:$LINENO: result: no" >&5
18869 $as_echo "no" >&6; }
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874 conftest$ac_exeext conftest.$ac_ext
18877 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18880 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18881 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18892 int a = 0; int *p = &a; int r;
18893 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18898 rm -f conftest.$ac_objext
18899 if { (ac_try="$ac_compile"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18905 $as_echo "$ac_try_echo") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest.$ac_objext; then
18916 pgac_cv_have_ppc_mutex_hint=yes
18918 $as_echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 pgac_cv_have_ppc_mutex_hint=no
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18926 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18927 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18937 # Check largefile support. You might think this is a system service not a
18938 # compiler characteristic, but you'd be wrong. We must check this before
18939 # probing existence of related functions such as fseeko, since the largefile
18940 # defines can affect what is generated for that.
18941 if test "$PORTNAME" != "win32"; then
18942 # Check whether --enable-largefile was given.
18943 if test "${enable_largefile+set}" = set; then
18944 enableval=$enable_largefile;
18947 if test "$enable_largefile" != no; then
18949 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18951 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18952 $as_echo_n "(cached) " >&6
18954 ac_cv_sys_largefile_CC=no
18955 if test "$GCC" != yes; then
18958 # IRIX 6.2 and later do not support large files by default,
18959 # so use the C compiler's -n32 option if that helps.
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 #include <sys/types.h>
18967 /* Check that off_t can represent 2**63 - 1 correctly.
18968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18969 since some C++ compilers masquerading as C compilers
18970 incorrectly reject 9223372036854775807. */
18971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18973 && LARGE_OFF_T % 2147483647 == 1)
18983 rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18990 $as_echo "$ac_try_echo") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18993 grep -v '^ *+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.$ac_objext; then
19003 $as_echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19009 rm -f core conftest.err conftest.$ac_objext
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_cv_sys_largefile_CC=' -n32'; break
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19037 rm -f core conftest.err conftest.$ac_objext
19041 rm -f conftest.$ac_ext
19044 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19045 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19046 if test "$ac_cv_sys_largefile_CC" != no; then
19047 CC=$CC$ac_cv_sys_largefile_CC
19050 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19051 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19052 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19053 $as_echo_n "(cached) " >&6
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 #include <sys/types.h>
19063 /* Check that off_t can represent 2**63 - 1 correctly.
19064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19065 since some C++ compilers masquerading as C compilers
19066 incorrectly reject 9223372036854775807. */
19067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19069 && LARGE_OFF_T % 2147483647 == 1)
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19086 $as_echo "$ac_try_echo") >&5
19087 (eval "$ac_compile") 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && {
19094 test -z "$ac_c_werror_flag" ||
19095 test ! -s conftest.err
19096 } && test -s conftest.$ac_objext; then
19097 ac_cv_sys_file_offset_bits=no; break
19099 $as_echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 #define _FILE_OFFSET_BITS 64
19113 #include <sys/types.h>
19114 /* Check that off_t can represent 2**63 - 1 correctly.
19115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19116 since some C++ compilers masquerading as C compilers
19117 incorrectly reject 9223372036854775807. */
19118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19120 && LARGE_OFF_T % 2147483647 == 1)
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137 $as_echo "$ac_try_echo") >&5
19138 (eval "$ac_compile") 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest.$ac_objext; then
19148 ac_cv_sys_file_offset_bits=64; break
19150 $as_echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19157 ac_cv_sys_file_offset_bits=unknown
19161 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19163 case $ac_cv_sys_file_offset_bits in #(
19166 cat >>confdefs.h <<_ACEOF
19167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19172 if test $ac_cv_sys_file_offset_bits = unknown; then
19173 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19175 if test "${ac_cv_sys_large_files+set}" = set; then
19176 $as_echo_n "(cached) " >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <sys/types.h>
19186 /* Check that off_t can represent 2**63 - 1 correctly.
19187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19188 since some C++ compilers masquerading as C compilers
19189 incorrectly reject 9223372036854775807. */
19190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19192 && LARGE_OFF_T % 2147483647 == 1)
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19209 $as_echo "$ac_try_echo") >&5
19210 (eval "$ac_compile") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest.$ac_objext; then
19220 ac_cv_sys_large_files=no; break
19222 $as_echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 #define _LARGE_FILES 1
19236 #include <sys/types.h>
19237 /* Check that off_t can represent 2**63 - 1 correctly.
19238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19239 since some C++ compilers masquerading as C compilers
19240 incorrectly reject 9223372036854775807. */
19241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19243 && LARGE_OFF_T % 2147483647 == 1)
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19260 $as_echo "$ac_try_echo") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_sys_large_files=1; break
19273 $as_echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 ac_cv_sys_large_files=unknown
19284 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19285 $as_echo "$ac_cv_sys_large_files" >&6; }
19286 case $ac_cv_sys_large_files in #(
19289 cat >>confdefs.h <<_ACEOF
19290 #define _LARGE_FILES $ac_cv_sys_large_files
19300 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19301 # The cast to long int works around a bug in the HP C Compiler
19302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19304 # This bug is HP SR number 8606223364.
19305 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19306 $as_echo_n "checking size of off_t... " >&6; }
19307 if test "${ac_cv_sizeof_off_t+set}" = set; then
19308 $as_echo_n "(cached) " >&6
19310 if test "$cross_compiling" = yes; then
19311 # Depending upon the size, compute the lo and hi bounds.
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 $ac_includes_default
19322 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337 (eval "$ac_compile") 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest.$ac_objext; then
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 $ac_includes_default
19359 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 ac_hi=$ac_mid; break
19386 $as_echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_lo=`expr $ac_mid + 1`
19390 if test $ac_lo -le $ac_mid; then
19394 ac_mid=`expr 2 '*' $ac_mid + 1`
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19400 $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 $ac_includes_default
19413 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19427 $as_echo "$ac_try_echo") >&5
19428 (eval "$ac_compile") 2>conftest.er1
19430 grep -v '^ *+' conftest.er1 >conftest.err
19432 cat conftest.err >&5
19433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest.$ac_objext; then
19440 cat >conftest.$ac_ext <<_ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446 $ac_includes_default
19450 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19457 rm -f conftest.$ac_objext
19458 if { (ac_try="$ac_compile"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19464 $as_echo "$ac_try_echo") >&5
19465 (eval "$ac_compile") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && {
19472 test -z "$ac_c_werror_flag" ||
19473 test ! -s conftest.err
19474 } && test -s conftest.$ac_objext; then
19475 ac_lo=$ac_mid; break
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_hi=`expr '(' $ac_mid ')' - 1`
19481 if test $ac_mid -le $ac_hi; then
19485 ac_mid=`expr 2 '*' $ac_mid`
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 # Binary search between lo and hi bounds.
19502 while test "x$ac_lo" != "x$ac_hi"; do
19503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19514 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19521 rm -f conftest.$ac_objext
19522 if { (ac_try="$ac_compile"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19528 $as_echo "$ac_try_echo") >&5
19529 (eval "$ac_compile") 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest.$ac_objext; then
19541 $as_echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_lo=`expr '(' $ac_mid ')' + 1`
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19551 '') if test "$ac_cv_type_off_t" = yes; then
19552 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19554 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19555 See \`config.log' for more details." >&5
19556 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19557 See \`config.log' for more details." >&2;}
19558 { (exit 77); exit 77; }; }; }
19560 ac_cv_sizeof_off_t=0
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 $ac_includes_default
19571 static long int longval () { return (long int) (sizeof (off_t)); }
19572 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19574 #include <stdlib.h>
19579 FILE *f = fopen ("conftest.val", "w");
19582 if (((long int) (sizeof (off_t))) < 0)
19584 long int i = longval ();
19585 if (i != ((long int) (sizeof (off_t))))
19587 fprintf (f, "%ld", i);
19591 unsigned long int i = ulongval ();
19592 if (i != ((long int) (sizeof (off_t))))
19594 fprintf (f, "%lu", i);
19596 /* Do not output a trailing newline, as this causes \r\n confusion
19597 on some platforms. */
19598 return ferror (f) || fclose (f) != 0;
19604 rm -f conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612 (eval "$ac_link") 2>&5
19614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19621 $as_echo "$ac_try_echo") >&5
19622 (eval "$ac_try") 2>&5
19624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 ac_cv_sizeof_off_t=`cat conftest.val`
19628 $as_echo "$as_me: program exited with status $ac_status" >&5
19629 $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ( exit $ac_status )
19633 if test "$ac_cv_type_off_t" = yes; then
19634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19636 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19637 See \`config.log' for more details." >&5
19638 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19639 See \`config.log' for more details." >&2;}
19640 { (exit 77); exit 77; }; }; }
19642 ac_cv_sizeof_off_t=0
19645 rm -rf conftest.dSYM
19646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19650 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19651 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19655 cat >>confdefs.h <<_ACEOF
19656 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19661 # If we don't have largefile support, can't handle segsize >= 2GB.
19662 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19663 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19664 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19665 { (exit 1); exit 1; }; }
19670 ## Functions, global variables
19673 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19674 $as_echo_n "checking for int timezone... " >&6; }
19675 if test "${pgac_cv_var_int_timezone+set}" = set; then
19676 $as_echo_n "(cached) " >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19690 res = timezone / 60;
19692 res = _timezone / 60;
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_link") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext && {
19716 test "$cross_compiling" = yes ||
19717 $as_test_x conftest$ac_exeext
19719 pgac_cv_var_int_timezone=yes
19721 $as_echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 pgac_cv_var_int_timezone=no
19727 rm -rf conftest.dSYM
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729 conftest$ac_exeext conftest.$ac_ext
19731 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19732 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19733 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_INT_TIMEZONE 1
19740 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19741 $as_echo_n "checking types of arguments for accept()... " >&6; }
19742 if test "${ac_cv_func_accept_return+set}" = set; then
19743 $as_echo_n "(cached) " >&6
19745 if test "${ac_cv_func_accept_arg1+set}" = set; then
19746 $as_echo_n "(cached) " >&6
19748 if test "${ac_cv_func_accept_arg2+set}" = set; then
19749 $as_echo_n "(cached) " >&6
19751 if test "${ac_cv_func_accept_arg3+set}" = set; then
19752 $as_echo_n "(cached) " >&6
19754 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19755 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19756 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19757 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 #ifdef HAVE_SYS_TYPES_H
19765 #include <sys/types.h>
19767 #ifdef HAVE_SYS_SOCKET_H
19768 #include <sys/socket.h>
19770 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19779 rm -f conftest.$ac_objext
19780 if { (ac_try="$ac_compile"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19786 $as_echo "$ac_try_echo") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_not_found=no; break 4
19799 $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 if test "$ac_not_found" = yes; then
19811 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19812 $as_echo "$as_me: error: could not determine argument types" >&2;}
19813 { (exit 1); exit 1; }; }
19815 if test "$ac_cv_func_accept_arg3" = "void"; then
19816 ac_cv_func_accept_arg3=int
19826 { $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
19827 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19829 cat >>confdefs.h <<_ACEOF
19830 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19834 cat >>confdefs.h <<_ACEOF
19835 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19839 cat >>confdefs.h <<_ACEOF
19840 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19844 cat >>confdefs.h <<_ACEOF
19845 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19849 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19850 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19851 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19852 $as_echo_n "(cached) " >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <sys/time.h>
19864 struct timeval *tp;
19865 struct timezone *tzp;
19866 gettimeofday(tp,tzp);
19871 rm -f conftest.$ac_objext
19872 if { (ac_try="$ac_compile"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19878 $as_echo "$ac_try_echo") >&5
19879 (eval "$ac_compile") 2>conftest.er1
19881 grep -v '^ *+' conftest.er1 >conftest.err
19883 cat conftest.err >&5
19884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } && {
19886 test -z "$ac_c_werror_flag" ||
19887 test ! -s conftest.err
19888 } && test -s conftest.$ac_objext; then
19889 pgac_cv_func_gettimeofday_1arg=no
19891 $as_echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 pgac_cv_func_gettimeofday_1arg=yes
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19900 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19901 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define GETTIMEOFDAY_1ARG 1
19911 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19912 # symbols that that library has no business exposing to the world. Pending
19913 # acquisition of a clue by those developers, ignore libedit (including its
19914 # possible alias of libreadline) while checking for everything else.
19915 LIBS_including_readline="$LIBS"
19916 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19940 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19943 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19944 $as_echo_n "checking for $ac_func... " >&6; }
19945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19946 $as_echo_n "(cached) " >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19956 #define $ac_func innocuous_$ac_func
19958 /* System header to define __stub macros and hopefully few prototypes,
19959 which can conflict with char $ac_func (); below.
19960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19961 <limits.h> exists even on freestanding compilers. */
19964 # include <limits.h>
19966 # include <assert.h>
19971 /* Override any GCC internal prototype to avoid an error.
19972 Use char because int might match the return type of a GCC
19973 builtin and then its argument prototype would still apply. */
19978 /* The GNU C library defines this for functions which it implements
19979 to always fail with ENOSYS. Some functions are actually named
19980 something starting with __ and the normal name is an alias. */
19981 #if defined __stub_$ac_func || defined __stub___$ac_func
19988 return $ac_func ();
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001 (eval "$ac_link") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext && {
20011 test "$cross_compiling" = yes ||
20012 $as_test_x conftest$ac_exeext
20014 eval "$as_ac_var=yes"
20016 $as_echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 eval "$as_ac_var=no"
20022 rm -rf conftest.dSYM
20023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20024 conftest$ac_exeext conftest.$ac_ext
20026 ac_res=`eval 'as_val=${'$as_ac_var'}
20027 $as_echo "$as_val"'`
20028 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20029 $as_echo "$ac_res" >&6; }
20030 as_val=`eval 'as_val=${'$as_ac_var'}
20031 $as_echo "$as_val"'`
20032 if test "x$as_val" = x""yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20042 for ac_func in fseeko
20044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20045 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20046 $as_echo_n "checking for $ac_func... " >&6; }
20047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20048 $as_echo_n "(cached) " >&6
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20058 #define $ac_func innocuous_$ac_func
20060 /* System header to define __stub macros and hopefully few prototypes,
20061 which can conflict with char $ac_func (); below.
20062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063 <limits.h> exists even on freestanding compilers. */
20066 # include <limits.h>
20068 # include <assert.h>
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20080 /* The GNU C library defines this for functions which it implements
20081 to always fail with ENOSYS. Some functions are actually named
20082 something starting with __ and the normal name is an alias. */
20083 #if defined __stub_$ac_func || defined __stub___$ac_func
20090 return $ac_func ();
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20102 $as_echo "$ac_try_echo") >&5
20103 (eval "$ac_link") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1 >conftest.err
20107 cat conftest.err >&5
20108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest$ac_exeext && {
20113 test "$cross_compiling" = yes ||
20114 $as_test_x conftest$ac_exeext
20116 eval "$as_ac_var=yes"
20118 $as_echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 eval "$as_ac_var=no"
20124 rm -rf conftest.dSYM
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126 conftest$ac_exeext conftest.$ac_ext
20128 ac_res=`eval 'as_val=${'$as_ac_var'}
20129 $as_echo "$as_val"'`
20130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20131 $as_echo "$ac_res" >&6; }
20132 as_val=`eval 'as_val=${'$as_ac_var'}
20133 $as_echo "$as_val"'`
20134 if test "x$as_val" = x""yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20140 case " $LIBOBJS " in
20141 *" $ac_func.$ac_objext "* ) ;;
20142 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20151 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
20152 # Mingw uses macros to access Win32 API calls
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_FSEEKO 1
20159 ac_cv_func_fseeko=yes;;
20161 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20162 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20163 if test "${ac_cv_sys_largefile_source+set}" = set; then
20164 $as_echo_n "(cached) " >&6
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <sys/types.h> /* for off_t */
20178 int (*fp) (FILE *, off_t, int) = fseeko;
20179 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192 (eval "$ac_link") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest$ac_exeext && {
20202 test "$cross_compiling" = yes ||
20203 $as_test_x conftest$ac_exeext
20205 ac_cv_sys_largefile_source=no; break
20207 $as_echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20213 rm -rf conftest.dSYM
20214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20215 conftest$ac_exeext conftest.$ac_ext
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #define _LARGEFILE_SOURCE 1
20223 #include <sys/types.h> /* for off_t */
20228 int (*fp) (FILE *, off_t, int) = fseeko;
20229 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242 (eval "$ac_link") 2>conftest.er1
20244 grep -v '^ *+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest$ac_exeext && {
20252 test "$cross_compiling" = yes ||
20253 $as_test_x conftest$ac_exeext
20255 ac_cv_sys_largefile_source=1; break
20257 $as_echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20263 rm -rf conftest.dSYM
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265 conftest$ac_exeext conftest.$ac_ext
20266 ac_cv_sys_largefile_source=unknown
20270 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20271 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20272 case $ac_cv_sys_largefile_source in #(
20275 cat >>confdefs.h <<_ACEOF
20276 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20282 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20283 # in glibc 2.1.3, but that breaks too many other things.
20284 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20285 if test $ac_cv_sys_largefile_source != unknown; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_FSEEKO 1
20295 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20296 # by calling it, 2009-04-02
20297 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20298 if test "$PORTNAME" != "solaris"; then
20300 for ac_func in posix_fadvise
20302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20304 $as_echo_n "checking for $ac_func... " >&6; }
20305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20306 $as_echo_n "(cached) " >&6
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20316 #define $ac_func innocuous_$ac_func
20318 /* System header to define __stub macros and hopefully few prototypes,
20319 which can conflict with char $ac_func (); below.
20320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20321 <limits.h> exists even on freestanding compilers. */
20324 # include <limits.h>
20326 # include <assert.h>
20331 /* Override any GCC internal prototype to avoid an error.
20332 Use char because int might match the return type of a GCC
20333 builtin and then its argument prototype would still apply. */
20338 /* The GNU C library defines this for functions which it implements
20339 to always fail with ENOSYS. Some functions are actually named
20340 something starting with __ and the normal name is an alias. */
20341 #if defined __stub_$ac_func || defined __stub___$ac_func
20348 return $ac_func ();
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_link") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest$ac_exeext && {
20371 test "$cross_compiling" = yes ||
20372 $as_test_x conftest$ac_exeext
20374 eval "$as_ac_var=yes"
20376 $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 eval "$as_ac_var=no"
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20386 ac_res=`eval 'as_val=${'$as_ac_var'}
20387 $as_echo "$as_val"'`
20388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20390 as_val=`eval 'as_val=${'$as_ac_var'}
20391 $as_echo "$as_val"'`
20392 if test "x$as_val" = x""yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20400 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20401 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20402 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20403 $as_echo_n "(cached) " >&6
20405 cat >conftest.$ac_ext <<_ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20416 #ifndef posix_fadvise
20417 (void) posix_fadvise;
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_cv_have_decl_posix_fadvise=yes
20444 $as_echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_have_decl_posix_fadvise=no
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20453 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20454 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_DECL_POSIX_FADVISE 1
20462 cat >>confdefs.h <<_ACEOF
20463 #define HAVE_DECL_POSIX_FADVISE 0
20472 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20473 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20474 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20475 $as_echo_n "(cached) " >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 #include <unistd.h>
20496 rm -f conftest.$ac_objext
20497 if { (ac_try="$ac_compile"
20498 case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20503 $as_echo "$ac_try_echo") >&5
20504 (eval "$ac_compile") 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest.$ac_objext; then
20514 ac_cv_have_decl_fdatasync=yes
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 ac_cv_have_decl_fdatasync=no
20522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20525 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20526 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20528 cat >>confdefs.h <<_ACEOF
20529 #define HAVE_DECL_FDATASYNC 1
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL_FDATASYNC 0
20542 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20543 $as_echo_n "checking whether strlcat is declared... " >&6; }
20544 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20545 $as_echo_n "(cached) " >&6
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_have_decl_strlcat=yes
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_have_decl_strlcat=no
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20594 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20595 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20597 cat >>confdefs.h <<_ACEOF
20598 #define HAVE_DECL_STRLCAT 1
20603 cat >>confdefs.h <<_ACEOF
20604 #define HAVE_DECL_STRLCAT 0
20609 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20610 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20611 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20612 $as_echo_n "(cached) " >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20639 $as_echo "$ac_try_echo") >&5
20640 (eval "$ac_compile") 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } && {
20647 test -z "$ac_c_werror_flag" ||
20648 test ! -s conftest.err
20649 } && test -s conftest.$ac_objext; then
20650 ac_cv_have_decl_strlcpy=yes
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_have_decl_strlcpy=no
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20661 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20662 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_DECL_STRLCPY 1
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_STRLCPY 0
20678 # This is probably only present on Darwin, but may as well check always
20679 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20680 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20681 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20682 $as_echo_n "(cached) " >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20695 #ifndef F_FULLFSYNC
20696 (void) F_FULLFSYNC;
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.$ac_objext; then
20721 ac_cv_have_decl_F_FULLFSYNC=yes
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_cv_have_decl_F_FULLFSYNC=no
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20732 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20733 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_DECL_F_FULLFSYNC 1
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_DECL_F_FULLFSYNC 0
20751 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20752 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20753 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20754 $as_echo_n "(cached) " >&6
20756 ac_cv_type_struct_sockaddr_in6=no
20757 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 #include <netinet/in.h>
20769 if (sizeof (struct sockaddr_in6))
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest.$ac_objext; then
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20800 #include <netinet/in.h>
20805 if (sizeof ((struct sockaddr_in6)))
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20818 $as_echo "$ac_try_echo") >&5
20819 (eval "$ac_compile") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest.$ac_objext; then
20831 $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_cv_type_struct_sockaddr_in6=yes
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 $as_echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20848 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20849 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_IPV6 1
20860 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20861 $as_echo_n "checking for PS_STRINGS... " >&6; }
20862 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20863 $as_echo_n "(cached) " >&6
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 #include <machine/vmparam.h>
20872 #include <sys/exec.h>
20877 PS_STRINGS->ps_nargvstr = 1;
20878 PS_STRINGS->ps_argvstr = "foo";
20883 rm -f conftest.$ac_objext conftest$ac_exeext
20884 if { (ac_try="$ac_link"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20890 $as_echo "$ac_try_echo") >&5
20891 (eval "$ac_link") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest$ac_exeext && {
20901 test "$cross_compiling" = yes ||
20902 $as_test_x conftest$ac_exeext
20904 pgac_cv_var_PS_STRINGS=yes
20906 $as_echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 pgac_cv_var_PS_STRINGS=no
20912 rm -rf conftest.dSYM
20913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20914 conftest$ac_exeext conftest.$ac_ext
20916 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20917 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20918 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_PS_STRINGS 1
20927 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20928 # is missing. Yes, there are machines that have only one. We may
20929 # also decide to use snprintf.c if snprintf() is present but does not
20930 # have all the features we need --- see below.
20932 if test "$PORTNAME" = "win32"; then
20933 # Win32 gets snprintf.c built unconditionally.
20935 # To properly translate all NLS languages strings, we must support the
20936 # *printf() %$ format, which allows *printf() arguments to be selected
20937 # by position in the translated string.
20939 # libintl versions < 0.13 use the native *printf() functions, and Win32
20940 # *printf() doesn't understand %$, so we must use our /port versions,
20941 # which do understand %$. libintl versions >= 0.13 include their own
20942 # *printf versions on Win32. The libintl 0.13 release note text is:
20944 # C format strings with positions, as they arise when a translator
20945 # needs to reorder a sentence, are now supported on all platforms.
20946 # On those few platforms (NetBSD and Woe32) for which the native
20947 # printf()/fprintf()/... functions don't support such format
20948 # strings, replacements are provided through <libintl.h>.
20950 # We could use libintl >= 0.13's *printf() if we were sure that we had
20951 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20952 # to guarantee that, it is best to just use our own, so we are sure to
20953 # get %$ support. In include/port.h we disable the *printf() macros
20954 # that might have been defined by libintl.
20956 # We do this unconditionally whether NLS is used or not so we are sure
20957 # that all Win32 libraries and binaries behave the same.
20958 pgac_need_repl_snprintf=yes
20960 pgac_need_repl_snprintf=no
20962 for ac_func in snprintf
20964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 $as_echo_n "checking for $ac_func... " >&6; }
20967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968 $as_echo_n "(cached) " >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20978 #define $ac_func innocuous_$ac_func
20980 /* System header to define __stub macros and hopefully few prototypes,
20981 which can conflict with char $ac_func (); below.
20982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983 <limits.h> exists even on freestanding compilers. */
20986 # include <limits.h>
20988 # include <assert.h>
20993 /* Override any GCC internal prototype to avoid an error.
20994 Use char because int might match the return type of a GCC
20995 builtin and then its argument prototype would still apply. */
21000 /* The GNU C library defines this for functions which it implements
21001 to always fail with ENOSYS. Some functions are actually named
21002 something starting with __ and the normal name is an alias. */
21003 #if defined __stub_$ac_func || defined __stub___$ac_func
21010 return $ac_func ();
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023 (eval "$ac_link") 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && {
21030 test -z "$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 } && test -s conftest$ac_exeext && {
21033 test "$cross_compiling" = yes ||
21034 $as_test_x conftest$ac_exeext
21036 eval "$as_ac_var=yes"
21038 $as_echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 eval "$as_ac_var=no"
21044 rm -rf conftest.dSYM
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21048 ac_res=`eval 'as_val=${'$as_ac_var'}
21049 $as_echo "$as_val"'`
21050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21051 $as_echo "$ac_res" >&6; }
21052 as_val=`eval 'as_val=${'$as_ac_var'}
21053 $as_echo "$as_val"'`
21054 if test "x$as_val" = x""yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21060 pgac_need_repl_snprintf=yes
21065 for ac_func in vsnprintf
21067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21069 $as_echo_n "checking for $ac_func... " >&6; }
21070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21071 $as_echo_n "(cached) " >&6
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21081 #define $ac_func innocuous_$ac_func
21083 /* System header to define __stub macros and hopefully few prototypes,
21084 which can conflict with char $ac_func (); below.
21085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21086 <limits.h> exists even on freestanding compilers. */
21089 # include <limits.h>
21091 # include <assert.h>
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21103 /* The GNU C library defines this for functions which it implements
21104 to always fail with ENOSYS. Some functions are actually named
21105 something starting with __ and the normal name is an alias. */
21106 #if defined __stub_$ac_func || defined __stub___$ac_func
21113 return $ac_func ();
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21125 $as_echo "$ac_try_echo") >&5
21126 (eval "$ac_link") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext && {
21136 test "$cross_compiling" = yes ||
21137 $as_test_x conftest$ac_exeext
21139 eval "$as_ac_var=yes"
21141 $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 eval "$as_ac_var=no"
21147 rm -rf conftest.dSYM
21148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21149 conftest$ac_exeext conftest.$ac_ext
21151 ac_res=`eval 'as_val=${'$as_ac_var'}
21152 $as_echo "$as_val"'`
21153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21154 $as_echo "$ac_res" >&6; }
21155 as_val=`eval 'as_val=${'$as_ac_var'}
21156 $as_echo "$as_val"'`
21157 if test "x$as_val" = x""yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21163 pgac_need_repl_snprintf=yes
21170 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
21171 # include/c.h will provide declarations. Note this is a separate test
21172 # from whether the functions exist in the C library --- there are
21173 # systems that have the functions but don't bother to declare them :-(
21175 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21176 $as_echo_n "checking whether snprintf is declared... " >&6; }
21177 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21178 $as_echo_n "(cached) " >&6
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21216 ac_cv_have_decl_snprintf=yes
21218 $as_echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_cv_have_decl_snprintf=no
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21227 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21228 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_DECL_SNPRINTF 1
21236 cat >>confdefs.h <<_ACEOF
21237 #define HAVE_DECL_SNPRINTF 0
21242 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21243 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21244 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21245 $as_echo_n "(cached) " >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21272 $as_echo "$ac_try_echo") >&5
21273 (eval "$ac_compile") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
21283 ac_cv_have_decl_vsnprintf=yes
21285 $as_echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21288 ac_cv_have_decl_vsnprintf=no
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21294 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21295 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_DECL_VSNPRINTF 1
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE_DECL_VSNPRINTF 0
21313 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21314 $as_echo_n "checking for isinf... " >&6; }
21315 if test "${ac_cv_func_isinf+set}" = set; then
21316 $as_echo_n "(cached) " >&6
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21326 double glob_double;
21331 return isinf(glob_double) ? 0 : 1;
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (ac_try="$ac_link"
21338 case "(($ac_try" in
21339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340 *) ac_try_echo=$ac_try;;
21342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21343 $as_echo "$ac_try_echo") >&5
21344 (eval "$ac_link") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest$ac_exeext && {
21354 test "$cross_compiling" = yes ||
21355 $as_test_x conftest$ac_exeext
21357 ac_cv_func_isinf=yes
21359 $as_echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21362 ac_cv_func_isinf=no
21365 rm -rf conftest.dSYM
21366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21367 conftest$ac_exeext conftest.$ac_ext
21369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21370 $as_echo "$ac_cv_func_isinf" >&6; }
21372 if test $ac_cv_func_isinf = yes ; then
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_ISINF 1
21379 case " $LIBOBJS " in
21380 *" isinf.$ac_objext "* ) ;;
21381 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21385 # Look for a way to implement a substitute for isinf()
21390 for ac_func in fpclass fp_class fp_class_d class
21392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21394 $as_echo_n "checking for $ac_func... " >&6; }
21395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21396 $as_echo_n "(cached) " >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21406 #define $ac_func innocuous_$ac_func
21408 /* System header to define __stub macros and hopefully few prototypes,
21409 which can conflict with char $ac_func (); below.
21410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21411 <limits.h> exists even on freestanding compilers. */
21414 # include <limits.h>
21416 # include <assert.h>
21421 /* Override any GCC internal prototype to avoid an error.
21422 Use char because int might match the return type of a GCC
21423 builtin and then its argument prototype would still apply. */
21428 /* The GNU C library defines this for functions which it implements
21429 to always fail with ENOSYS. Some functions are actually named
21430 something starting with __ and the normal name is an alias. */
21431 #if defined __stub_$ac_func || defined __stub___$ac_func
21438 return $ac_func ();
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (ac_try="$ac_link"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451 (eval "$ac_link") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest$ac_exeext && {
21461 test "$cross_compiling" = yes ||
21462 $as_test_x conftest$ac_exeext
21464 eval "$as_ac_var=yes"
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 eval "$as_ac_var=no"
21472 rm -rf conftest.dSYM
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474 conftest$ac_exeext conftest.$ac_ext
21476 ac_res=`eval 'as_val=${'$as_ac_var'}
21477 $as_echo "$as_val"'`
21478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21479 $as_echo "$ac_res" >&6; }
21480 as_val=`eval 'as_val=${'$as_ac_var'}
21481 $as_echo "$as_val"'`
21482 if test "x$as_val" = x""yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21503 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21507 $as_echo_n "checking for $ac_func... " >&6; }
21508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21509 $as_echo_n "(cached) " >&6
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21519 #define $ac_func innocuous_$ac_func
21521 /* System header to define __stub macros and hopefully few prototypes,
21522 which can conflict with char $ac_func (); below.
21523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21524 <limits.h> exists even on freestanding compilers. */
21527 # include <limits.h>
21529 # include <assert.h>
21534 /* Override any GCC internal prototype to avoid an error.
21535 Use char because int might match the return type of a GCC
21536 builtin and then its argument prototype would still apply. */
21541 /* The GNU C library defines this for functions which it implements
21542 to always fail with ENOSYS. Some functions are actually named
21543 something starting with __ and the normal name is an alias. */
21544 #if defined __stub_$ac_func || defined __stub___$ac_func
21551 return $ac_func ();
21556 rm -f conftest.$ac_objext conftest$ac_exeext
21557 if { (ac_try="$ac_link"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21563 $as_echo "$ac_try_echo") >&5
21564 (eval "$ac_link") 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest$ac_exeext && {
21574 test "$cross_compiling" = yes ||
21575 $as_test_x conftest$ac_exeext
21577 eval "$as_ac_var=yes"
21579 $as_echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 eval "$as_ac_var=no"
21585 rm -rf conftest.dSYM
21586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21587 conftest$ac_exeext conftest.$ac_ext
21589 ac_res=`eval 'as_val=${'$as_ac_var'}
21590 $as_echo "$as_val"'`
21591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21592 $as_echo "$ac_res" >&6; }
21593 as_val=`eval 'as_val=${'$as_ac_var'}
21594 $as_echo "$as_val"'`
21595 if test "x$as_val" = x""yes; then
21596 cat >>confdefs.h <<_ACEOF
21597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21601 case " $LIBOBJS " in
21602 *" $ac_func.$ac_objext "* ) ;;
21603 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21614 # Windows uses a specialised env handler
21615 # and doesn't need a replacement getpeereid because it doesn't use
21619 cat >>confdefs.h <<\_ACEOF
21620 #define HAVE_UNSETENV 1
21624 cat >>confdefs.h <<\_ACEOF
21625 #define HAVE_GETPEEREID 1
21628 ac_cv_func_unsetenv=yes
21629 ac_cv_func_getpeereid=yes;;
21633 for ac_func in unsetenv getpeereid
21635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21637 $as_echo_n "checking for $ac_func... " >&6; }
21638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639 $as_echo_n "(cached) " >&6
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21649 #define $ac_func innocuous_$ac_func
21651 /* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char $ac_func (); below.
21653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654 <limits.h> exists even on freestanding compilers. */
21657 # include <limits.h>
21659 # include <assert.h>
21664 /* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21671 /* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674 #if defined __stub_$ac_func || defined __stub___$ac_func
21681 return $ac_func ();
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693 $as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21707 eval "$as_ac_var=yes"
21709 $as_echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 eval "$as_ac_var=no"
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21719 ac_res=`eval 'as_val=${'$as_ac_var'}
21720 $as_echo "$as_val"'`
21721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722 $as_echo "$ac_res" >&6; }
21723 as_val=`eval 'as_val=${'$as_ac_var'}
21724 $as_echo "$as_val"'`
21725 if test "x$as_val" = x""yes; then
21726 cat >>confdefs.h <<_ACEOF
21727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21731 case " $LIBOBJS " in
21732 *" $ac_func.$ac_objext "* ) ;;
21733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21744 # System's version of getaddrinfo(), if any, may be used only if we found
21745 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21746 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21747 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21748 # because we want to use our own getaddrinfo.c on Windows anyway.)
21749 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21751 for ac_func in getaddrinfo
21753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21754 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21755 $as_echo_n "checking for $ac_func... " >&6; }
21756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21757 $as_echo_n "(cached) " >&6
21759 cat >conftest.$ac_ext <<_ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21767 #define $ac_func innocuous_$ac_func
21769 /* System header to define __stub macros and hopefully few prototypes,
21770 which can conflict with char $ac_func (); below.
21771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21772 <limits.h> exists even on freestanding compilers. */
21775 # include <limits.h>
21777 # include <assert.h>
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21789 /* The GNU C library defines this for functions which it implements
21790 to always fail with ENOSYS. Some functions are actually named
21791 something starting with __ and the normal name is an alias. */
21792 #if defined __stub_$ac_func || defined __stub___$ac_func
21799 return $ac_func ();
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812 (eval "$ac_link") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext && {
21822 test "$cross_compiling" = yes ||
21823 $as_test_x conftest$ac_exeext
21825 eval "$as_ac_var=yes"
21827 $as_echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 eval "$as_ac_var=no"
21833 rm -rf conftest.dSYM
21834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21835 conftest$ac_exeext conftest.$ac_ext
21837 ac_res=`eval 'as_val=${'$as_ac_var'}
21838 $as_echo "$as_val"'`
21839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21840 $as_echo "$ac_res" >&6; }
21841 as_val=`eval 'as_val=${'$as_ac_var'}
21842 $as_echo "$as_val"'`
21843 if test "x$as_val" = x""yes; then
21844 cat >>confdefs.h <<_ACEOF
21845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21849 case " $LIBOBJS " in
21850 *" $ac_func.$ac_objext "* ) ;;
21851 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21860 case " $LIBOBJS " in
21861 *" getaddrinfo.$ac_objext "* ) ;;
21862 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21868 # Similarly, use system's getopt_long() only if system provides struct option.
21869 if test x"$ac_cv_type_struct_option" = xyes ; then
21871 for ac_func in getopt_long
21873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21875 $as_echo_n "checking for $ac_func... " >&6; }
21876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21877 $as_echo_n "(cached) " >&6
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21887 #define $ac_func innocuous_$ac_func
21889 /* System header to define __stub macros and hopefully few prototypes,
21890 which can conflict with char $ac_func (); below.
21891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21892 <limits.h> exists even on freestanding compilers. */
21895 # include <limits.h>
21897 # include <assert.h>
21902 /* Override any GCC internal prototype to avoid an error.
21903 Use char because int might match the return type of a GCC
21904 builtin and then its argument prototype would still apply. */
21909 /* The GNU C library defines this for functions which it implements
21910 to always fail with ENOSYS. Some functions are actually named
21911 something starting with __ and the normal name is an alias. */
21912 #if defined __stub_$ac_func || defined __stub___$ac_func
21919 return $ac_func ();
21924 rm -f conftest.$ac_objext conftest$ac_exeext
21925 if { (ac_try="$ac_link"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_link") 2>conftest.er1
21934 grep -v '^ *+' conftest.er1 >conftest.err
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest$ac_exeext && {
21942 test "$cross_compiling" = yes ||
21943 $as_test_x conftest$ac_exeext
21945 eval "$as_ac_var=yes"
21947 $as_echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21950 eval "$as_ac_var=no"
21953 rm -rf conftest.dSYM
21954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21955 conftest$ac_exeext conftest.$ac_ext
21957 ac_res=`eval 'as_val=${'$as_ac_var'}
21958 $as_echo "$as_val"'`
21959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21960 $as_echo "$ac_res" >&6; }
21961 as_val=`eval 'as_val=${'$as_ac_var'}
21962 $as_echo "$as_val"'`
21963 if test "x$as_val" = x""yes; then
21964 cat >>confdefs.h <<_ACEOF
21965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21969 case " $LIBOBJS " in
21970 *" $ac_func.$ac_objext "* ) ;;
21971 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21980 case " $LIBOBJS " in
21981 *" getopt_long.$ac_objext "* ) ;;
21982 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21988 # Solaris' getopt() doesn't do what we want for long options, so always use
21989 # our version on that platform.
21990 if test "$PORTNAME" = "solaris"; then
21991 case " $LIBOBJS " in
21992 *" getopt.$ac_objext "* ) ;;
21993 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21999 # mingw has adopted a GNU-centric interpretation of optind/optreset,
22000 # so always use our version on Windows.
22001 if test "$PORTNAME" = "win32"; then
22002 case " $LIBOBJS " in
22003 *" getopt.$ac_objext "* ) ;;
22004 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
22008 case " $LIBOBJS " in
22009 *" getopt_long.$ac_objext "* ) ;;
22010 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
22017 if test "$PORTNAME" = "win32"; then
22019 for ac_func in gettimeofday
22021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22023 $as_echo_n "checking for $ac_func... " >&6; }
22024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22025 $as_echo_n "(cached) " >&6
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22035 #define $ac_func innocuous_$ac_func
22037 /* System header to define __stub macros and hopefully few prototypes,
22038 which can conflict with char $ac_func (); below.
22039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22040 <limits.h> exists even on freestanding compilers. */
22043 # include <limits.h>
22045 # include <assert.h>
22050 /* Override any GCC internal prototype to avoid an error.
22051 Use char because int might match the return type of a GCC
22052 builtin and then its argument prototype would still apply. */
22057 /* The GNU C library defines this for functions which it implements
22058 to always fail with ENOSYS. Some functions are actually named
22059 something starting with __ and the normal name is an alias. */
22060 #if defined __stub_$ac_func || defined __stub___$ac_func
22067 return $ac_func ();
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22079 $as_echo "$ac_try_echo") >&5
22080 (eval "$ac_link") 2>conftest.er1
22082 grep -v '^ *+' conftest.er1 >conftest.err
22084 cat conftest.err >&5
22085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } && {
22087 test -z "$ac_c_werror_flag" ||
22088 test ! -s conftest.err
22089 } && test -s conftest$ac_exeext && {
22090 test "$cross_compiling" = yes ||
22091 $as_test_x conftest$ac_exeext
22093 eval "$as_ac_var=yes"
22095 $as_echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22098 eval "$as_ac_var=no"
22101 rm -rf conftest.dSYM
22102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22103 conftest$ac_exeext conftest.$ac_ext
22105 ac_res=`eval 'as_val=${'$as_ac_var'}
22106 $as_echo "$as_val"'`
22107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22108 $as_echo "$ac_res" >&6; }
22109 as_val=`eval 'as_val=${'$as_ac_var'}
22110 $as_echo "$as_val"'`
22111 if test "x$as_val" = x""yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22117 case " $LIBOBJS " in
22118 *" $ac_func.$ac_objext "* ) ;;
22119 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22127 case " $LIBOBJS " in
22128 *" kill.$ac_objext "* ) ;;
22129 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
22133 case " $LIBOBJS " in
22134 *" open.$ac_objext "* ) ;;
22135 *) LIBOBJS="$LIBOBJS open.$ac_objext"
22139 case " $LIBOBJS " in
22140 *" win32env.$ac_objext "* ) ;;
22141 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
22145 case " $LIBOBJS " in
22146 *" win32error.$ac_objext "* ) ;;
22147 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
22151 case " $LIBOBJS " in
22152 *" win32setlocale.$ac_objext "* ) ;;
22153 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
22158 cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_SYMLINK 1
22162 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
22163 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
22164 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
22165 $as_echo_n "(cached) " >&6
22167 ac_cv_type_MINIDUMP_TYPE=no
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22175 #define WIN32_LEAN_AND_MEAN
22176 #include <windows.h>
22177 #include <string.h>
22178 #include <dbghelp.h>
22183 if (sizeof (MINIDUMP_TYPE))
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197 (eval "$ac_compile") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } && {
22204 test -z "$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 } && test -s conftest.$ac_objext; then
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22214 #define WIN32_LEAN_AND_MEAN
22215 #include <windows.h>
22216 #include <string.h>
22217 #include <dbghelp.h>
22222 if (sizeof ((MINIDUMP_TYPE)))
22228 rm -f conftest.$ac_objext
22229 if { (ac_try="$ac_compile"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_compile") 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest.$ac_objext; then
22248 $as_echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 ac_cv_type_MINIDUMP_TYPE=yes
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 $as_echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22265 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22266 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_MINIDUMP_TYPE 1
22272 pgac_minidump_type=yes
22274 pgac_minidump_type=no
22278 if test x"$pgac_minidump_type" = x"yes" ; then
22279 have_win32_dbghelp=yes
22282 have_win32_dbghelp=no
22286 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22287 $as_echo_n "checking for sigsetjmp... " >&6; }
22288 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22289 $as_echo_n "(cached) " >&6
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 #include <setjmp.h>
22301 sigjmp_buf x; sigsetjmp(x, 1);
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314 (eval "$ac_link") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest$ac_exeext && {
22324 test "$cross_compiling" = yes ||
22325 $as_test_x conftest$ac_exeext
22327 pgac_cv_func_sigsetjmp=yes
22329 $as_echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 pgac_cv_func_sigsetjmp=no
22335 rm -rf conftest.dSYM
22336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22337 conftest$ac_exeext conftest.$ac_ext
22339 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22340 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22341 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_SIGSETJMP 1
22349 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22350 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22351 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22352 $as_echo_n "(cached) " >&6
22354 cat >conftest.$ac_ext <<_ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 #include <signal.h>
22361 /* NetBSD declares sys_siglist in unistd.h. */
22362 #ifdef HAVE_UNISTD_H
22363 # include <unistd.h>
22370 #ifndef sys_siglist
22371 (void) sys_siglist;
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_compile") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest.$ac_objext; then
22396 ac_cv_have_decl_sys_siglist=yes
22398 $as_echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 ac_cv_have_decl_sys_siglist=no
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22407 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22408 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_DECL_SYS_SIGLIST 1
22416 cat >>confdefs.h <<_ACEOF
22417 #define HAVE_DECL_SYS_SIGLIST 0
22426 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22427 $as_echo_n "checking for syslog... " >&6; }
22428 if test "${ac_cv_func_syslog+set}" = set; then
22429 $as_echo_n "(cached) " >&6
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22439 #define syslog innocuous_syslog
22441 /* System header to define __stub macros and hopefully few prototypes,
22442 which can conflict with char syslog (); below.
22443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22444 <limits.h> exists even on freestanding compilers. */
22447 # include <limits.h>
22449 # include <assert.h>
22454 /* Override any GCC internal prototype to avoid an error.
22455 Use char because int might match the return type of a GCC
22456 builtin and then its argument prototype would still apply. */
22461 /* The GNU C library defines this for functions which it implements
22462 to always fail with ENOSYS. Some functions are actually named
22463 something starting with __ and the normal name is an alias. */
22464 #if defined __stub_syslog || defined __stub___syslog
22476 rm -f conftest.$ac_objext conftest$ac_exeext
22477 if { (ac_try="$ac_link"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22483 $as_echo "$ac_try_echo") >&5
22484 (eval "$ac_link") 2>conftest.er1
22486 grep -v '^ *+' conftest.er1 >conftest.err
22488 cat conftest.err >&5
22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } && {
22491 test -z "$ac_c_werror_flag" ||
22492 test ! -s conftest.err
22493 } && test -s conftest$ac_exeext && {
22494 test "$cross_compiling" = yes ||
22495 $as_test_x conftest$ac_exeext
22497 ac_cv_func_syslog=yes
22499 $as_echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_cv_func_syslog=no
22505 rm -rf conftest.dSYM
22506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22507 conftest$ac_exeext conftest.$ac_ext
22509 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22510 $as_echo "$ac_cv_func_syslog" >&6; }
22511 if test "x$ac_cv_func_syslog" = x""yes; then
22512 if test "${ac_cv_header_syslog_h+set}" = set; then
22513 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22514 $as_echo_n "checking for syslog.h... " >&6; }
22515 if test "${ac_cv_header_syslog_h+set}" = set; then
22516 $as_echo_n "(cached) " >&6
22518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22519 $as_echo "$ac_cv_header_syslog_h" >&6; }
22521 # Is the header compilable?
22522 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22523 $as_echo_n "checking syslog.h usability... " >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 #include <syslog.h>
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541 (eval "$ac_compile") 2>conftest.er1
22543 grep -v '^ *+' conftest.er1 >conftest.err
22545 cat conftest.err >&5
22546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest.$ac_objext; then
22551 ac_header_compiler=yes
22553 $as_echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_header_compiler=no
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561 $as_echo "$ac_header_compiler" >&6; }
22563 # Is the header present?
22564 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22565 $as_echo_n "checking syslog.h presence... " >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 #include <syslog.h>
22574 if { (ac_try="$ac_cpp conftest.$ac_ext"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } >/dev/null && {
22588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22591 ac_header_preproc=yes
22593 $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_header_preproc=no
22599 rm -f conftest.err conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601 $as_echo "$ac_header_preproc" >&6; }
22603 # So? What about this header?
22604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22606 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22607 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22609 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22610 ac_header_preproc=yes
22613 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22614 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22615 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22616 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22617 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22618 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22619 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22620 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22621 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22622 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22623 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22624 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22626 ## ---------------------------------------- ##
22627 ## Report this to pgsql-bugs@postgresql.org ##
22628 ## ---------------------------------------- ##
22630 ) | sed "s/^/$as_me: WARNING: /" >&2
22633 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22634 $as_echo_n "checking for syslog.h... " >&6; }
22635 if test "${ac_cv_header_syslog_h+set}" = set; then
22636 $as_echo_n "(cached) " >&6
22638 ac_cv_header_syslog_h=$ac_header_preproc
22640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22641 $as_echo "$ac_cv_header_syslog_h" >&6; }
22644 if test "x$ac_cv_header_syslog_h" = x""yes; then
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_SYSLOG 1
22656 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22657 $as_echo_n "checking for opterr... " >&6; }
22658 if test "${pgac_cv_var_int_opterr+set}" = set; then
22659 $as_echo_n "(cached) " >&6
22661 cat >conftest.$ac_ext <<_ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 #include <unistd.h>
22671 extern int opterr; opterr = 1;
22676 rm -f conftest.$ac_objext conftest$ac_exeext
22677 if { (ac_try="$ac_link"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683 $as_echo "$ac_try_echo") >&5
22684 (eval "$ac_link") 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest$ac_exeext && {
22694 test "$cross_compiling" = yes ||
22695 $as_test_x conftest$ac_exeext
22697 pgac_cv_var_int_opterr=yes
22699 $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 pgac_cv_var_int_opterr=no
22705 rm -rf conftest.dSYM
22706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22707 conftest$ac_exeext conftest.$ac_ext
22709 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22710 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22711 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22713 cat >>confdefs.h <<\_ACEOF
22714 #define HAVE_INT_OPTERR 1
22719 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22720 $as_echo_n "checking for optreset... " >&6; }
22721 if test "${pgac_cv_var_int_optreset+set}" = set; then
22722 $as_echo_n "(cached) " >&6
22724 cat >conftest.$ac_ext <<_ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 #include <unistd.h>
22734 extern int optreset; optreset = 1;
22739 rm -f conftest.$ac_objext conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22746 $as_echo "$ac_try_echo") >&5
22747 (eval "$ac_link") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest$ac_exeext && {
22757 test "$cross_compiling" = yes ||
22758 $as_test_x conftest$ac_exeext
22760 pgac_cv_var_int_optreset=yes
22762 $as_echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 pgac_cv_var_int_optreset=no
22768 rm -rf conftest.dSYM
22769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22770 conftest$ac_exeext conftest.$ac_ext
22772 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22773 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22774 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_INT_OPTRESET 1
22784 for ac_func in strtoll strtoq
22786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22788 $as_echo_n "checking for $ac_func... " >&6; }
22789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22790 $as_echo_n "(cached) " >&6
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22800 #define $ac_func innocuous_$ac_func
22802 /* System header to define __stub macros and hopefully few prototypes,
22803 which can conflict with char $ac_func (); below.
22804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22805 <limits.h> exists even on freestanding compilers. */
22808 # include <limits.h>
22810 # include <assert.h>
22815 /* Override any GCC internal prototype to avoid an error.
22816 Use char because int might match the return type of a GCC
22817 builtin and then its argument prototype would still apply. */
22822 /* The GNU C library defines this for functions which it implements
22823 to always fail with ENOSYS. Some functions are actually named
22824 something starting with __ and the normal name is an alias. */
22825 #if defined __stub_$ac_func || defined __stub___$ac_func
22832 return $ac_func ();
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22844 $as_echo "$ac_try_echo") >&5
22845 (eval "$ac_link") 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest$ac_exeext && {
22855 test "$cross_compiling" = yes ||
22856 $as_test_x conftest$ac_exeext
22858 eval "$as_ac_var=yes"
22860 $as_echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 eval "$as_ac_var=no"
22866 rm -rf conftest.dSYM
22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868 conftest$ac_exeext conftest.$ac_ext
22870 ac_res=`eval 'as_val=${'$as_ac_var'}
22871 $as_echo "$as_val"'`
22872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22873 $as_echo "$ac_res" >&6; }
22874 as_val=`eval 'as_val=${'$as_ac_var'}
22875 $as_echo "$as_val"'`
22876 if test "x$as_val" = x""yes; then
22877 cat >>confdefs.h <<_ACEOF
22878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22886 for ac_func in strtoull strtouq
22888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22890 $as_echo_n "checking for $ac_func... " >&6; }
22891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22892 $as_echo_n "(cached) " >&6
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22902 #define $ac_func innocuous_$ac_func
22904 /* System header to define __stub macros and hopefully few prototypes,
22905 which can conflict with char $ac_func (); below.
22906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22907 <limits.h> exists even on freestanding compilers. */
22910 # include <limits.h>
22912 # include <assert.h>
22917 /* Override any GCC internal prototype to avoid an error.
22918 Use char because int might match the return type of a GCC
22919 builtin and then its argument prototype would still apply. */
22924 /* The GNU C library defines this for functions which it implements
22925 to always fail with ENOSYS. Some functions are actually named
22926 something starting with __ and the normal name is an alias. */
22927 #if defined __stub_$ac_func || defined __stub___$ac_func
22934 return $ac_func ();
22939 rm -f conftest.$ac_objext conftest$ac_exeext
22940 if { (ac_try="$ac_link"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22946 $as_echo "$ac_try_echo") >&5
22947 (eval "$ac_link") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } && {
22954 test -z "$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 } && test -s conftest$ac_exeext && {
22957 test "$cross_compiling" = yes ||
22958 $as_test_x conftest$ac_exeext
22960 eval "$as_ac_var=yes"
22962 $as_echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 eval "$as_ac_var=no"
22968 rm -rf conftest.dSYM
22969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22970 conftest$ac_exeext conftest.$ac_ext
22972 ac_res=`eval 'as_val=${'$as_ac_var'}
22973 $as_echo "$as_val"'`
22974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22975 $as_echo "$ac_res" >&6; }
22976 as_val=`eval 'as_val=${'$as_ac_var'}
22977 $as_echo "$as_val"'`
22978 if test "x$as_val" = x""yes; then
22979 cat >>confdefs.h <<_ACEOF
22980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22987 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22988 $as_echo_n "checking for builtin locking functions... " >&6; }
22989 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22990 $as_echo_n "(cached) " >&6
22992 cat >conftest.$ac_ext <<_ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
23003 __sync_lock_test_and_set(&lock, 1);
23004 __sync_lock_release(&lock);
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017 (eval "$ac_link") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest$ac_exeext && {
23027 test "$cross_compiling" = yes ||
23028 $as_test_x conftest$ac_exeext
23030 pgac_cv_gcc_int_atomics="yes"
23032 $as_echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 pgac_cv_gcc_int_atomics="no"
23038 rm -rf conftest.dSYM
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040 conftest$ac_exeext conftest.$ac_ext
23042 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
23043 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
23044 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
23046 cat >>confdefs.h <<\_ACEOF
23047 #define HAVE_GCC_INT_ATOMICS 1
23052 # Lastly, restore full LIBS list and check for readline/libedit symbols
23053 LIBS="$LIBS_including_readline"
23055 if test "$with_readline" = yes; then
23056 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
23057 $as_echo_n "checking for rl_completion_append_character... " >&6; }
23058 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
23059 $as_echo_n "(cached) " >&6
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23068 #ifdef HAVE_READLINE_READLINE_H
23069 # include <readline/readline.h>
23070 #elif defined(HAVE_READLINE_H)
23071 # include <readline.h>
23077 rl_completion_append_character = 'x';
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (ac_try="$ac_link"
23084 case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23089 $as_echo "$ac_try_echo") >&5
23090 (eval "$ac_link") 2>conftest.er1
23092 grep -v '^ *+' conftest.er1 >conftest.err
23094 cat conftest.err >&5
23095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && {
23097 test -z "$ac_c_werror_flag" ||
23098 test ! -s conftest.err
23099 } && test -s conftest$ac_exeext && {
23100 test "$cross_compiling" = yes ||
23101 $as_test_x conftest$ac_exeext
23103 pgac_cv_var_rl_completion_append_character=yes
23105 $as_echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 pgac_cv_var_rl_completion_append_character=no
23111 rm -rf conftest.dSYM
23112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23113 conftest$ac_exeext conftest.$ac_ext
23115 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
23116 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
23117 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23126 for ac_func in rl_completion_matches rl_filename_completion_function
23128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23130 $as_echo_n "checking for $ac_func... " >&6; }
23131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23132 $as_echo_n "(cached) " >&6
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23142 #define $ac_func innocuous_$ac_func
23144 /* System header to define __stub macros and hopefully few prototypes,
23145 which can conflict with char $ac_func (); below.
23146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23147 <limits.h> exists even on freestanding compilers. */
23150 # include <limits.h>
23152 # include <assert.h>
23157 /* Override any GCC internal prototype to avoid an error.
23158 Use char because int might match the return type of a GCC
23159 builtin and then its argument prototype would still apply. */
23164 /* The GNU C library defines this for functions which it implements
23165 to always fail with ENOSYS. Some functions are actually named
23166 something starting with __ and the normal name is an alias. */
23167 #if defined __stub_$ac_func || defined __stub___$ac_func
23174 return $ac_func ();
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (ac_try="$ac_link"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23186 $as_echo "$ac_try_echo") >&5
23187 (eval "$ac_link") 2>conftest.er1
23189 grep -v '^ *+' conftest.er1 >conftest.err
23191 cat conftest.err >&5
23192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } && {
23194 test -z "$ac_c_werror_flag" ||
23195 test ! -s conftest.err
23196 } && test -s conftest$ac_exeext && {
23197 test "$cross_compiling" = yes ||
23198 $as_test_x conftest$ac_exeext
23200 eval "$as_ac_var=yes"
23202 $as_echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 eval "$as_ac_var=no"
23208 rm -rf conftest.dSYM
23209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23210 conftest$ac_exeext conftest.$ac_ext
23212 ac_res=`eval 'as_val=${'$as_ac_var'}
23213 $as_echo "$as_val"'`
23214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23215 $as_echo "$ac_res" >&6; }
23216 as_val=`eval 'as_val=${'$as_ac_var'}
23217 $as_echo "$as_val"'`
23218 if test "x$as_val" = x""yes; then
23219 cat >>confdefs.h <<_ACEOF
23220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23228 for ac_func in append_history history_truncate_file
23230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23232 $as_echo_n "checking for $ac_func... " >&6; }
23233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23234 $as_echo_n "(cached) " >&6
23236 cat >conftest.$ac_ext <<_ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23244 #define $ac_func innocuous_$ac_func
23246 /* System header to define __stub macros and hopefully few prototypes,
23247 which can conflict with char $ac_func (); below.
23248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23249 <limits.h> exists even on freestanding compilers. */
23252 # include <limits.h>
23254 # include <assert.h>
23259 /* Override any GCC internal prototype to avoid an error.
23260 Use char because int might match the return type of a GCC
23261 builtin and then its argument prototype would still apply. */
23266 /* The GNU C library defines this for functions which it implements
23267 to always fail with ENOSYS. Some functions are actually named
23268 something starting with __ and the normal name is an alias. */
23269 #if defined __stub_$ac_func || defined __stub___$ac_func
23276 return $ac_func ();
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (ac_try="$ac_link"
23283 case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23288 $as_echo "$ac_try_echo") >&5
23289 (eval "$ac_link") 2>conftest.er1
23291 grep -v '^ *+' conftest.er1 >conftest.err
23293 cat conftest.err >&5
23294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } && {
23296 test -z "$ac_c_werror_flag" ||
23297 test ! -s conftest.err
23298 } && test -s conftest$ac_exeext && {
23299 test "$cross_compiling" = yes ||
23300 $as_test_x conftest$ac_exeext
23302 eval "$as_ac_var=yes"
23304 $as_echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 eval "$as_ac_var=no"
23310 rm -rf conftest.dSYM
23311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23312 conftest$ac_exeext conftest.$ac_ext
23314 ac_res=`eval 'as_val=${'$as_ac_var'}
23315 $as_echo "$as_val"'`
23316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23317 $as_echo "$ac_res" >&6; }
23318 as_val=`eval 'as_val=${'$as_ac_var'}
23319 $as_echo "$as_val"'`
23320 if test "x$as_val" = x""yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23334 # For each platform, we need to know about any special compile and link
23335 # libraries, and whether the normal C function names are thread-safe.
23336 # See the comment at the top of src/port/thread.c for more information.
23337 # WIN32 doesn't need the pthread tests; it always uses threads
23338 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23343 ac_cpp='$CPP $CPPFLAGS'
23344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23350 # We used to check for pthread.h first, but this fails if pthread.h
23351 # requires special compiler flags (e.g. on True64 or Sequent).
23352 # It gets checked for in the link test anyway.
23354 # First of all, check if the user has set any of the PTHREAD_LIBS,
23355 # etcetera environment variables, and if threads linking works using
23357 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23358 save_CFLAGS="$CFLAGS"
23359 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23361 LIBS="$PTHREAD_LIBS $LIBS"
23362 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23363 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23371 /* Override any GCC internal prototype to avoid an error.
23372 Use char because int might match the return type of a GCC
23373 builtin and then its argument prototype would still apply. */
23377 char pthread_join ();
23381 return pthread_join ();
23386 rm -f conftest.$ac_objext conftest$ac_exeext
23387 if { (ac_try="$ac_link"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23393 $as_echo "$ac_try_echo") >&5
23394 (eval "$ac_link") 2>conftest.er1
23396 grep -v '^ *+' conftest.er1 >conftest.err
23398 cat conftest.err >&5
23399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && {
23401 test -z "$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 } && test -s conftest$ac_exeext && {
23404 test "$cross_compiling" = yes ||
23405 $as_test_x conftest$ac_exeext
23409 $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23415 rm -rf conftest.dSYM
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417 conftest$ac_exeext conftest.$ac_ext
23418 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23419 $as_echo "$acx_pthread_ok" >&6; }
23420 if test x"$acx_pthread_ok" = xno; then
23425 CFLAGS="$save_CFLAGS"
23428 # We must check for the threads library under a number of different
23429 # names; the ordering is very important because some systems
23430 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23431 # libraries is broken (non-POSIX).
23433 # Create a list of thread flags to try. Items starting with a "-" are
23434 # C compiler flags, and other items are library names, except for "none"
23435 # which indicates that we try without any flags at all, and "pthread-config"
23436 # which is a program returning the flags for the Pth emulation library.
23438 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23440 # The ordering *is* (sometimes) important. Some notes on the
23441 # individual items follow:
23443 # pthreads: AIX (must check this before -lpthread)
23444 # none: in case threads are in libc; should be tried before -Kthread and
23445 # other compiler flags to prevent continual compiler warnings
23446 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23447 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23448 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23449 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23450 # -pthreads: Solaris/gcc
23451 # -mthreads: Mingw32/gcc, Lynx/gcc
23452 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23453 # doesn't hurt to check since this sometimes defines pthreads too;
23454 # also defines -D_REENTRANT)
23455 # pthread: Linux, etcetera
23456 # --thread-safe: KAI C++
23457 # pthread-config: use pthread-config program (for GNU Pth library)
23459 case "${host_cpu}-${host_os}" in
23462 # On Solaris (at least, for some versions), libc contains stubbed
23463 # (non-functional) versions of the pthreads routines, so link-based
23464 # tests will erroneously succeed. (We need to link with -pthread or
23465 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23466 # a function called by this macro, so we could check for that, but
23467 # who knows whether they'll stub that too in a future libc.) So,
23468 # we'll just look for -pthreads and -lpthread first:
23470 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23474 if test x"$acx_pthread_ok" = xno; then
23475 for flag in $acx_pthread_flags; do
23477 tryPTHREAD_CFLAGS=""
23481 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23482 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23486 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23487 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23488 tryPTHREAD_CFLAGS="$flag"
23492 # skip this if we already have flags defined, for PostgreSQL
23493 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23494 # Extract the first word of "pthread-config", so it can be a program name with args.
23495 set dummy pthread-config; ac_word=$2
23496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23497 $as_echo_n "checking for $ac_word... " >&6; }
23498 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23499 $as_echo_n "(cached) " >&6
23501 if test -n "$acx_pthread_config"; then
23502 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23508 test -z "$as_dir" && as_dir=.
23509 for ac_exec_ext in '' $ac_executable_extensions; do
23510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23511 ac_cv_prog_acx_pthread_config="yes"
23512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23519 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23522 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23523 if test -n "$acx_pthread_config"; then
23524 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23525 $as_echo "$acx_pthread_config" >&6; }
23527 { $as_echo "$as_me:$LINENO: result: no" >&5
23528 $as_echo "no" >&6; }
23532 if test x"$acx_pthread_config" = xno; then continue; fi
23533 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23534 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23538 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23539 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23540 tryPTHREAD_LIBS="-l$flag"
23545 save_CFLAGS="$CFLAGS"
23546 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23547 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23549 # Check for various functions. We must include pthread.h,
23550 # since some functions may be macros. (On the Sequent, we
23551 # need a special flag -Kthread to make this header compile.)
23552 # We check for pthread_join because it is in -lpthread on IRIX
23553 # while pthread_create is in libc. We check for pthread_attr_init
23554 # due to DEC craziness with -lpthreads. We check for
23555 # pthread_cleanup_push because it is one of the few pthread
23556 # functions on Solaris that doesn't have a non-functional libc stub.
23557 # We try pthread_create on general principles.
23558 cat >conftest.$ac_ext <<_ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 #include <pthread.h>
23568 pthread_t th; pthread_join(th, 0);
23569 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23570 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_link") 2>conftest.er1
23585 grep -v '^ *+' conftest.er1 >conftest.err
23587 cat conftest.err >&5
23588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest$ac_exeext && {
23593 test "$cross_compiling" = yes ||
23594 $as_test_x conftest$ac_exeext
23598 $as_echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23604 rm -rf conftest.dSYM
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606 conftest$ac_exeext conftest.$ac_ext
23608 if test "x$acx_pthread_ok" = xyes; then
23609 # Don't use options that are ignored by the compiler.
23610 # We find them by checking stderror.
23611 cat >conftest.$ac_ext <<_ACEOF
23613 main (int argc, char **argv)
23620 rm -f conftest.$ac_objext conftest$ac_exeext
23621 # Check both linking and compiling, because they might tolerate different options.
23622 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23623 # we continue with more flags because Linux needs -lpthread
23624 # for libpq builds on PostgreSQL. The test above only
23625 # tests for building binaries, not shared libraries.
23626 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23627 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23628 else acx_pthread_ok=no
23633 CFLAGS="$save_CFLAGS"
23635 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23636 $as_echo "$acx_pthread_ok" >&6; }
23640 # Various other checks:
23641 if test "x$acx_pthread_ok" = xyes; then
23643 LIBS="$PTHREAD_LIBS $LIBS"
23644 save_CFLAGS="$CFLAGS"
23645 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23647 # Detect AIX lossage: threads are created detached by default
23648 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23649 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23650 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 #include <pthread.h>
23661 int attr=PTHREAD_CREATE_JOINABLE;
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673 $as_echo "$ac_try_echo") >&5
23674 (eval "$ac_link") 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest$ac_exeext && {
23684 test "$cross_compiling" = yes ||
23685 $as_test_x conftest$ac_exeext
23687 ok=PTHREAD_CREATE_JOINABLE
23689 $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23695 rm -rf conftest.dSYM
23696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23697 conftest$ac_exeext conftest.$ac_ext
23698 if test x"$ok" = xunknown; then
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23705 #include <pthread.h>
23709 int attr=PTHREAD_CREATE_UNDETACHED;
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23721 $as_echo "$ac_try_echo") >&5
23722 (eval "$ac_link") 2>conftest.er1
23724 grep -v '^ *+' conftest.er1 >conftest.err
23726 cat conftest.err >&5
23727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } && {
23729 test -z "$ac_c_werror_flag" ||
23730 test ! -s conftest.err
23731 } && test -s conftest$ac_exeext && {
23732 test "$cross_compiling" = yes ||
23733 $as_test_x conftest$ac_exeext
23735 ok=PTHREAD_CREATE_UNDETACHED
23737 $as_echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23743 rm -rf conftest.dSYM
23744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23745 conftest$ac_exeext conftest.$ac_ext
23747 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23749 cat >>confdefs.h <<\_ACEOF
23750 #define PTHREAD_CREATE_JOINABLE $ok
23754 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23755 $as_echo "${ok}" >&6; }
23756 if test x"$ok" = xunknown; then
23757 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23758 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23761 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23762 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23764 # We always add these in PostgreSQL
23765 # case "${host_cpu}-${host_os}" in
23766 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23767 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23769 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23770 $as_echo "${flag}" >&6; }
23771 if test "x$flag" != xno; then
23772 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23776 CFLAGS="$save_CFLAGS"
23778 # Supporting cc_r would require a special CC in all places that
23779 # use libpq, and that is ugly, so we don't do it. Users can still
23780 # define their compiler as cc_r to do thread builds of everything.
23781 # More AIX lossage: must compile with cc_r
23782 # Extract the first word of "cc_r", so it can be a program name with args.
23783 set dummy cc_r; ac_word=$2
23784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23785 $as_echo_n "checking for $ac_word... " >&6; }
23786 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23787 $as_echo_n "(cached) " >&6
23789 if test -n "$PTHREAD_CC"; then
23790 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23793 for as_dir in $PATH
23796 test -z "$as_dir" && as_dir=.
23797 for ac_exec_ext in '' $ac_executable_extensions; do
23798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23799 ac_cv_prog_PTHREAD_CC="cc_r"
23800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23807 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23810 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23811 if test -n "$PTHREAD_CC"; then
23812 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23813 $as_echo "$PTHREAD_CC" >&6; }
23815 { $as_echo "$as_me:$LINENO: result: no" >&5
23816 $as_echo "no" >&6; }
23828 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23829 if test x"$acx_pthread_ok" = xyes; then
23831 cat >>confdefs.h <<\_ACEOF
23832 #define HAVE_PTHREAD 1
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23848 # Some platforms use these, so just define them. They can't hurt if they
23849 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23850 # enables 5-arg getpwuid_r, among other things.
23851 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23854 # At this point, we don't want to muck with the compiler name for threading.
23855 # Let's see who fails, perhaps AIX. 2004-04-23
23856 if test "$PTHREAD_CC" != "$CC"; then
23857 { { $as_echo "$as_me:$LINENO: error:
23858 PostgreSQL does not support platforms that require a special compiler
23859 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23860 $as_echo "$as_me: error:
23861 PostgreSQL does not support platforms that require a special compiler
23862 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23863 { (exit 1); exit 1; }; }
23866 # Check for *_r functions
23869 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23870 LIBS="$LIBS $PTHREAD_LIBS"
23872 if test "$PORTNAME" != "win32"; then
23873 if test "${ac_cv_header_pthread_h+set}" = set; then
23874 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23875 $as_echo_n "checking for pthread.h... " >&6; }
23876 if test "${ac_cv_header_pthread_h+set}" = set; then
23877 $as_echo_n "(cached) " >&6
23879 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23880 $as_echo "$ac_cv_header_pthread_h" >&6; }
23882 # Is the header compilable?
23883 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23884 $as_echo_n "checking pthread.h usability... " >&6; }
23885 cat >conftest.$ac_ext <<_ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891 $ac_includes_default
23892 #include <pthread.h>
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902 (eval "$ac_compile") 2>conftest.er1
23904 grep -v '^ *+' conftest.er1 >conftest.err
23906 cat conftest.err >&5
23907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } && {
23909 test -z "$ac_c_werror_flag" ||
23910 test ! -s conftest.err
23911 } && test -s conftest.$ac_objext; then
23912 ac_header_compiler=yes
23914 $as_echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23917 ac_header_compiler=no
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23922 $as_echo "$ac_header_compiler" >&6; }
23924 # Is the header present?
23925 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23926 $as_echo_n "checking pthread.h presence... " >&6; }
23927 cat >conftest.$ac_ext <<_ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 #include <pthread.h>
23935 if { (ac_try="$ac_cpp conftest.$ac_ext"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23941 $as_echo "$ac_try_echo") >&5
23942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23944 grep -v '^ *+' conftest.er1 >conftest.err
23946 cat conftest.err >&5
23947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } >/dev/null && {
23949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23952 ac_header_preproc=yes
23954 $as_echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_header_preproc=no
23960 rm -f conftest.err conftest.$ac_ext
23961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962 $as_echo "$ac_header_preproc" >&6; }
23964 # So? What about this header?
23965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23967 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23968 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23969 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23970 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23971 ac_header_preproc=yes
23974 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23975 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23976 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23977 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23978 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23979 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23980 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23981 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23982 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23983 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23984 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23985 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23987 ## ---------------------------------------- ##
23988 ## Report this to pgsql-bugs@postgresql.org ##
23989 ## ---------------------------------------- ##
23991 ) | sed "s/^/$as_me: WARNING: /" >&2
23994 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23995 $as_echo_n "checking for pthread.h... " >&6; }
23996 if test "${ac_cv_header_pthread_h+set}" = set; then
23997 $as_echo_n "(cached) " >&6
23999 ac_cv_header_pthread_h=$ac_header_preproc
24001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
24002 $as_echo "$ac_cv_header_pthread_h" >&6; }
24005 if test "x$ac_cv_header_pthread_h" = x""yes; then
24008 { { $as_echo "$as_me:$LINENO: error:
24009 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
24010 $as_echo "$as_me: error:
24011 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
24012 { (exit 1); exit 1; }; }
24021 for ac_func in strerror_r getpwuid_r gethostbyname_r
24023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24025 $as_echo_n "checking for $ac_func... " >&6; }
24026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24027 $as_echo_n "(cached) " >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24037 #define $ac_func innocuous_$ac_func
24039 /* System header to define __stub macros and hopefully few prototypes,
24040 which can conflict with char $ac_func (); below.
24041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24042 <limits.h> exists even on freestanding compilers. */
24045 # include <limits.h>
24047 # include <assert.h>
24052 /* Override any GCC internal prototype to avoid an error.
24053 Use char because int might match the return type of a GCC
24054 builtin and then its argument prototype would still apply. */
24059 /* The GNU C library defines this for functions which it implements
24060 to always fail with ENOSYS. Some functions are actually named
24061 something starting with __ and the normal name is an alias. */
24062 #if defined __stub_$ac_func || defined __stub___$ac_func
24069 return $ac_func ();
24074 rm -f conftest.$ac_objext conftest$ac_exeext
24075 if { (ac_try="$ac_link"
24076 case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24081 $as_echo "$ac_try_echo") >&5
24082 (eval "$ac_link") 2>conftest.er1
24084 grep -v '^ *+' conftest.er1 >conftest.err
24086 cat conftest.err >&5
24087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest$ac_exeext && {
24092 test "$cross_compiling" = yes ||
24093 $as_test_x conftest$ac_exeext
24095 eval "$as_ac_var=yes"
24097 $as_echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 eval "$as_ac_var=no"
24103 rm -rf conftest.dSYM
24104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105 conftest$ac_exeext conftest.$ac_ext
24107 ac_res=`eval 'as_val=${'$as_ac_var'}
24108 $as_echo "$as_val"'`
24109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24110 $as_echo "$ac_res" >&6; }
24111 as_val=`eval 'as_val=${'$as_ac_var'}
24112 $as_echo "$as_val"'`
24113 if test "x$as_val" = x""yes; then
24114 cat >>confdefs.h <<_ACEOF
24115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24122 # Do test here with the proper thread flags
24123 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
24124 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
24125 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
24126 $as_echo_n "(cached) " >&6
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 #include <sys/types.h>
24140 struct passwd *space;
24143 struct passwd **result;
24144 getpwuid_r(uid, space, buf, bufsize, result);
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24156 $as_echo "$ac_try_echo") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24159 grep -v '^ *+' conftest.er1 >conftest.err
24161 cat conftest.err >&5
24162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest.$ac_objext; then
24167 pgac_cv_func_getpwuid_r_5arg=yes
24169 $as_echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24172 pgac_cv_func_getpwuid_r_5arg=no
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24178 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24179 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24181 cat >>confdefs.h <<\_ACEOF
24182 #define GETPWUID_R_5ARG 1
24187 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24188 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24189 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24190 $as_echo_n "(cached) " >&6
24192 cat >conftest.$ac_ext <<_ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24198 #include <string.h>
24203 int strerror_r(int, char *, size_t);
24205 /* Older AIX has 'int' for the third argument so we don't test the args. */
24212 rm -f conftest.$ac_objext
24213 if { (ac_try="$ac_compile"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24219 $as_echo "$ac_try_echo") >&5
24220 (eval "$ac_compile") 2>conftest.er1
24222 grep -v '^ *+' conftest.er1 >conftest.err
24224 cat conftest.err >&5
24225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } && {
24227 test -z "$ac_c_werror_flag" ||
24228 test ! -s conftest.err
24229 } && test -s conftest.$ac_objext; then
24230 pgac_cv_func_strerror_r_int=yes
24232 $as_echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24235 pgac_cv_func_strerror_r_int=no
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24241 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24242 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24244 cat >>confdefs.h <<\_ACEOF
24245 #define STRERROR_R_INT 1
24255 # do not use values from template file
24264 # We can test for libldap_r only after we know PTHREAD_LIBS
24265 if test "$with_ldap" = yes ; then
24267 if test "$PORTNAME" != "win32"; then
24269 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24270 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24271 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24272 $as_echo_n "(cached) " >&6
24274 ac_check_lib_save_LIBS=$LIBS
24275 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24283 /* Override any GCC internal prototype to avoid an error.
24284 Use char because int might match the return type of a GCC
24285 builtin and then its argument prototype would still apply. */
24293 return ldap_bind ();
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_link") 2>conftest.er1
24308 grep -v '^ *+' conftest.er1 >conftest.err
24310 cat conftest.err >&5
24311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } && {
24313 test -z "$ac_c_werror_flag" ||
24314 test ! -s conftest.err
24315 } && test -s conftest$ac_exeext && {
24316 test "$cross_compiling" = yes ||
24317 $as_test_x conftest$ac_exeext
24319 ac_cv_lib_ldap_ldap_bind=yes
24321 $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ac_cv_lib_ldap_ldap_bind=no
24327 rm -rf conftest.dSYM
24328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24329 conftest$ac_exeext conftest.$ac_ext
24330 LIBS=$ac_check_lib_save_LIBS
24332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24333 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24334 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24335 cat >>confdefs.h <<_ACEOF
24336 #define HAVE_LIBLDAP 1
24339 LIBS="-lldap $LIBS"
24342 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24343 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24344 { (exit 1); exit 1; }; }
24347 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24348 if test "$enable_thread_safety" = yes; then
24349 # on some platforms ldap_r fails to link without PTHREAD_LIBS
24351 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24352 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24353 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24354 $as_echo_n "(cached) " >&6
24356 ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24365 /* Override any GCC internal prototype to avoid an error.
24366 Use char because int might match the return type of a GCC
24367 builtin and then its argument prototype would still apply. */
24371 char ldap_simple_bind ();
24375 return ldap_simple_bind ();
24380 rm -f conftest.$ac_objext conftest$ac_exeext
24381 if { (ac_try="$ac_link"
24382 case "(($ac_try" in
24383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384 *) ac_try_echo=$ac_try;;
24386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24387 $as_echo "$ac_try_echo") >&5
24388 (eval "$ac_link") 2>conftest.er1
24390 grep -v '^ *+' conftest.er1 >conftest.err
24392 cat conftest.err >&5
24393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } && {
24395 test -z "$ac_c_werror_flag" ||
24396 test ! -s conftest.err
24397 } && test -s conftest$ac_exeext && {
24398 test "$cross_compiling" = yes ||
24399 $as_test_x conftest$ac_exeext
24401 ac_cv_lib_ldap_r_ldap_simple_bind=yes
24403 $as_echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 ac_cv_lib_ldap_r_ldap_simple_bind=no
24409 rm -rf conftest.dSYM
24410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24411 conftest$ac_exeext conftest.$ac_ext
24412 LIBS=$ac_check_lib_save_LIBS
24414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24415 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24416 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24417 cat >>confdefs.h <<_ACEOF
24418 #define HAVE_LIBLDAP_R 1
24421 LIBS="-lldap_r $LIBS"
24424 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24425 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24426 { (exit 1); exit 1; }; }
24429 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24431 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24435 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24436 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24437 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24438 $as_echo_n "(cached) " >&6
24440 ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lwldap32 $LIBS"
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24449 /* Override any GCC internal prototype to avoid an error.
24450 Use char because int might match the return type of a GCC
24451 builtin and then its argument prototype would still apply. */
24459 return ldap_bind ();
24464 rm -f conftest.$ac_objext conftest$ac_exeext
24465 if { (ac_try="$ac_link"
24466 case "(($ac_try" in
24467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468 *) ac_try_echo=$ac_try;;
24470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24471 $as_echo "$ac_try_echo") >&5
24472 (eval "$ac_link") 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && {
24479 test -z "$ac_c_werror_flag" ||
24480 test ! -s conftest.err
24481 } && test -s conftest$ac_exeext && {
24482 test "$cross_compiling" = yes ||
24483 $as_test_x conftest$ac_exeext
24485 ac_cv_lib_wldap32_ldap_bind=yes
24487 $as_echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24490 ac_cv_lib_wldap32_ldap_bind=no
24493 rm -rf conftest.dSYM
24494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24495 conftest$ac_exeext conftest.$ac_ext
24496 LIBS=$ac_check_lib_save_LIBS
24498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24499 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24500 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_LIBWLDAP32 1
24505 LIBS="-lwldap32 $LIBS"
24508 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24509 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24510 { (exit 1); exit 1; }; }
24513 LDAP_LIBS_FE="-lwldap32"
24514 LDAP_LIBS_BE="-lwldap32"
24522 # This test makes sure that run tests work at all. Sometimes a shared
24523 # library is found by the linker, but the runtime linker can't find it.
24524 # This check should come after all modifications of compiler or linker
24525 # variables, and before any other run tests.
24526 { $as_echo "$as_me:$LINENO: checking test program" >&5
24527 $as_echo_n "checking test program... " >&6; }
24528 if test "$cross_compiling" = yes; then
24529 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24530 $as_echo "cross-compiling" >&6; }
24532 cat >conftest.$ac_ext <<_ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h. */
24538 int main() { return 0; }
24540 rm -f conftest$ac_exeext
24541 if { (ac_try="$ac_link"
24542 case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24547 $as_echo "$ac_try_echo") >&5
24548 (eval "$ac_link") 2>&5
24550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558 (eval "$ac_try") 2>&5
24560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; }; then
24562 { $as_echo "$as_me:$LINENO: result: ok" >&5
24563 $as_echo "ok" >&6; }
24565 $as_echo "$as_me: program exited with status $ac_status" >&5
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ( exit $ac_status )
24570 { $as_echo "$as_me:$LINENO: result: failed" >&5
24571 $as_echo "failed" >&6; }
24572 { { $as_echo "$as_me:$LINENO: error:
24573 Could not execute a simple test program. This may be a problem
24574 related to locating shared libraries. Check the file 'config.log'
24575 for the exact reason." >&5
24576 $as_echo "$as_me: error:
24577 Could not execute a simple test program. This may be a problem
24578 related to locating shared libraries. Check the file 'config.log'
24579 for the exact reason." >&2;}
24580 { (exit 1); exit 1; }; }
24582 rm -rf conftest.dSYM
24583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24588 # --------------------
24589 # Run tests below here
24590 # --------------------
24592 # Force use of our snprintf if system's doesn't do arg control
24593 # See comment above at snprintf test for details.
24594 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24595 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24596 $as_echo_n "checking whether printf supports argument control... " >&6; }
24597 if test "${pgac_cv_printf_arg_control+set}" = set; then
24598 $as_echo_n "(cached) " >&6
24600 if test "$cross_compiling" = yes; then
24601 pgac_cv_printf_arg_control=cross
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24610 #include <string.h>
24616 /* can it swap arguments? */
24617 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24618 if (strcmp(buf, "4 3") != 0)
24623 rm -f conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24630 $as_echo "$ac_try_echo") >&5
24631 (eval "$ac_link") 2>&5
24633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24635 { (case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24640 $as_echo "$ac_try_echo") >&5
24641 (eval "$ac_try") 2>&5
24643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; }; then
24645 pgac_cv_printf_arg_control=yes
24647 $as_echo "$as_me: program exited with status $ac_status" >&5
24648 $as_echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24651 ( exit $ac_status )
24652 pgac_cv_printf_arg_control=no
24654 rm -rf conftest.dSYM
24655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24661 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24662 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24664 if test $pgac_cv_printf_arg_control != yes ; then
24665 pgac_need_repl_snprintf=yes
24672 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24673 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24674 if test "${pgac_cv_type_long_int_64+set}" = set; then
24675 $as_echo_n "(cached) " >&6
24677 if test "$cross_compiling" = yes; then
24678 # If cross-compiling, check the size reported by the compiler and
24679 # trust that the arithmetic works.
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24690 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24697 rm -f conftest.$ac_objext
24698 if { (ac_try="$ac_compile"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24704 $as_echo "$ac_try_echo") >&5
24705 (eval "$ac_compile") 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest.$ac_objext; then
24715 pgac_cv_type_long_int_64=yes
24717 $as_echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 pgac_cv_type_long_int_64=no
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24725 cat >conftest.$ac_ext <<_ACEOF
24728 cat confdefs.h >>conftest.$ac_ext
24729 cat >>conftest.$ac_ext <<_ACEOF
24730 /* end confdefs.h. */
24731 typedef long int ac_int64;
24734 * These are globals to discourage the compiler from folding all the
24735 * arithmetic tests down to compile-time constants.
24737 ac_int64 a = 20000001;
24738 ac_int64 b = 40000005;
24740 int does_int64_work()
24744 if (sizeof(ac_int64) != 8)
24745 return 0; /* definitely not the right size */
24747 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24755 exit(! does_int64_work());
24758 rm -f conftest$ac_exeext
24759 if { (ac_try="$ac_link"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766 (eval "$ac_link") 2>&5
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24770 { (case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776 (eval "$ac_try") 2>&5
24778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 pgac_cv_type_long_int_64=yes
24782 $as_echo "$as_me: program exited with status $ac_status" >&5
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ( exit $ac_status )
24787 pgac_cv_type_long_int_64=no
24789 rm -rf conftest.dSYM
24790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24796 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24798 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24799 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24801 cat >>confdefs.h <<\_ACEOF
24802 #define HAVE_LONG_INT_64 1
24808 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24809 pg_int64_type="long int"
24811 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24812 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24813 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24814 $as_echo_n "(cached) " >&6
24816 if test "$cross_compiling" = yes; then
24817 # If cross-compiling, check the size reported by the compiler and
24818 # trust that the arithmetic works.
24819 cat >conftest.$ac_ext <<_ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24829 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24843 $as_echo "$ac_try_echo") >&5
24844 (eval "$ac_compile") 2>conftest.er1
24846 grep -v '^ *+' conftest.er1 >conftest.err
24848 cat conftest.err >&5
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); } && {
24851 test -z "$ac_c_werror_flag" ||
24852 test ! -s conftest.err
24853 } && test -s conftest.$ac_objext; then
24854 pgac_cv_type_long_long_int_64=yes
24856 $as_echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24859 pgac_cv_type_long_long_int_64=no
24862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 typedef long long int ac_int64;
24873 * These are globals to discourage the compiler from folding all the
24874 * arithmetic tests down to compile-time constants.
24876 ac_int64 a = 20000001;
24877 ac_int64 b = 40000005;
24879 int does_int64_work()
24883 if (sizeof(ac_int64) != 8)
24884 return 0; /* definitely not the right size */
24886 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24894 exit(! does_int64_work());
24897 rm -f conftest$ac_exeext
24898 if { (ac_try="$ac_link"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_link") 2>&5
24907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909 { (case "(($ac_try" in
24910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911 *) ac_try_echo=$ac_try;;
24913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24914 $as_echo "$ac_try_echo") >&5
24915 (eval "$ac_try") 2>&5
24917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 pgac_cv_type_long_long_int_64=yes
24921 $as_echo "$as_me: program exited with status $ac_status" >&5
24922 $as_echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ( exit $ac_status )
24926 pgac_cv_type_long_long_int_64=no
24928 rm -rf conftest.dSYM
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24934 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24935 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24937 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24938 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24940 cat >>confdefs.h <<\_ACEOF
24941 #define HAVE_LONG_LONG_INT_64 1
24946 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24947 pg_int64_type="long long int"
24949 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24950 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24951 { (exit 1); exit 1; }; }
24956 cat >>confdefs.h <<_ACEOF
24957 #define PG_INT64_TYPE $pg_int64_type
24962 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24963 cat >conftest.$ac_ext <<_ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24970 #define INT64CONST(x) x##LL
24971 long long int foo = INT64CONST(0x1234567890123456);
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24988 $as_echo "$ac_try_echo") >&5
24989 (eval "$ac_compile") 2>conftest.er1
24991 grep -v '^ *+' conftest.er1 >conftest.err
24993 cat conftest.err >&5
24994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); } && {
24996 test -z "$ac_c_werror_flag" ||
24997 test ! -s conftest.err
24998 } && test -s conftest.$ac_objext; then
25000 cat >>confdefs.h <<\_ACEOF
25001 #define HAVE_LL_CONSTANTS 1
25005 $as_echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015 # If we found "long int" is 64 bits, assume snprintf handles it. If
25016 # we found we need to use "long long int", better check. We cope with
25017 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
25018 # work, fall back to our own snprintf emulation (which we know uses %lld).
25020 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
25021 if test $pgac_need_repl_snprintf = no; then
25022 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
25023 $as_echo_n "checking snprintf format for long long int... " >&6; }
25024 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
25025 $as_echo_n "(cached) " >&6
25027 for pgac_format in '%lld' '%qd' '%I64d'; do
25028 if test "$cross_compiling" = yes; then
25029 pgac_cv_snprintf_long_long_int_format=cross; break
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25038 typedef long long int ac_int64;
25039 #define INT64_FORMAT "$pgac_format"
25041 ac_int64 a = 20000001;
25042 ac_int64 b = 40000005;
25044 int does_int64_snprintf_work()
25049 if (sizeof(ac_int64) != 8)
25050 return 0; /* doesn't look like the right size */
25053 snprintf(buf, 100, INT64_FORMAT, c);
25054 if (strcmp(buf, "800000140000005") != 0)
25055 return 0; /* either multiply or snprintf is busted */
25059 exit(! does_int64_snprintf_work());
25062 rm -f conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25069 $as_echo "$ac_try_echo") >&5
25070 (eval "$ac_link") 2>&5
25072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25074 { (case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080 (eval "$ac_try") 2>&5
25082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
25086 $as_echo "$as_me: program exited with status $ac_status" >&5
25087 $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25091 rm -rf conftest.dSYM
25092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25099 LONG_LONG_INT_FORMAT=''
25101 case $pgac_cv_snprintf_long_long_int_format in
25102 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
25103 $as_echo "cannot test (not on host machine)" >&6; };;
25104 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
25105 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
25106 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
25107 *) { $as_echo "$as_me:$LINENO: result: none" >&5
25108 $as_echo "none" >&6; };;
25110 if test "$LONG_LONG_INT_FORMAT" = ""; then
25111 # Force usage of our own snprintf, since system snprintf is broken
25112 pgac_need_repl_snprintf=yes
25113 LONG_LONG_INT_FORMAT='%lld'
25116 # Here if we previously decided we needed to use our own snprintf
25117 LONG_LONG_INT_FORMAT='%lld'
25119 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
25120 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
25121 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
25123 # Here if we are not using 'long long int' at all
25124 INT64_FORMAT='"%ld"'
25125 UINT64_FORMAT='"%lu"'
25129 cat >>confdefs.h <<_ACEOF
25130 #define INT64_FORMAT $INT64_FORMAT
25135 cat >>confdefs.h <<_ACEOF
25136 #define UINT64_FORMAT $UINT64_FORMAT
25140 # Now we have checked all the reasons to replace snprintf
25141 if test $pgac_need_repl_snprintf = yes; then
25143 cat >>confdefs.h <<\_ACEOF
25144 #define USE_REPL_SNPRINTF 1
25147 case " $LIBOBJS " in
25148 *" snprintf.$ac_objext "* ) ;;
25149 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25155 # Check size of void *, size_t (enables tweaks for > 32bit address space)
25156 # The cast to long int works around a bug in the HP C Compiler
25157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25159 # This bug is HP SR number 8606223364.
25160 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
25161 $as_echo_n "checking size of void *... " >&6; }
25162 if test "${ac_cv_sizeof_void_p+set}" = set; then
25163 $as_echo_n "(cached) " >&6
25165 if test "$cross_compiling" = yes; then
25166 # Depending upon the size, compute the lo and hi bounds.
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25173 $ac_includes_default
25177 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 $ac_includes_default
25214 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25221 rm -f conftest.$ac_objext
25222 if { (ac_try="$ac_compile"
25223 case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25228 $as_echo "$ac_try_echo") >&5
25229 (eval "$ac_compile") 2>conftest.er1
25231 grep -v '^ *+' conftest.er1 >conftest.err
25233 cat conftest.err >&5
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } && {
25236 test -z "$ac_c_werror_flag" ||
25237 test ! -s conftest.err
25238 } && test -s conftest.$ac_objext; then
25239 ac_hi=$ac_mid; break
25241 $as_echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25244 ac_lo=`expr $ac_mid + 1`
25245 if test $ac_lo -le $ac_mid; then
25249 ac_mid=`expr 2 '*' $ac_mid + 1`
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25255 $as_echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 cat >conftest.$ac_ext <<_ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h. */
25264 $ac_includes_default
25268 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25275 rm -f conftest.$ac_objext
25276 if { (ac_try="$ac_compile"
25277 case "(($ac_try" in
25278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25282 $as_echo "$ac_try_echo") >&5
25283 (eval "$ac_compile") 2>conftest.er1
25285 grep -v '^ *+' conftest.er1 >conftest.err
25287 cat conftest.err >&5
25288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && {
25290 test -z "$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 } && test -s conftest.$ac_objext; then
25295 cat >conftest.$ac_ext <<_ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 $ac_includes_default
25305 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319 $as_echo "$ac_try_echo") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 ac_lo=$ac_mid; break
25332 $as_echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_hi=`expr '(' $ac_mid ')' - 1`
25336 if test $ac_mid -le $ac_hi; then
25340 ac_mid=`expr 2 '*' $ac_mid`
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 $as_echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 # Binary search between lo and hi bounds.
25357 while test "x$ac_lo" != "x$ac_hi"; do
25358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 $ac_includes_default
25369 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383 $as_echo "$ac_try_echo") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25386 grep -v '^ *+' conftest.er1 >conftest.err
25388 cat conftest.err >&5
25389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25396 $as_echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 ac_lo=`expr '(' $ac_mid ')' + 1`
25402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25406 '') if test "$ac_cv_type_void_p" = yes; then
25407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25409 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25410 See \`config.log' for more details." >&5
25411 $as_echo "$as_me: error: cannot compute sizeof (void *)
25412 See \`config.log' for more details." >&2;}
25413 { (exit 77); exit 77; }; }; }
25415 ac_cv_sizeof_void_p=0
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 $ac_includes_default
25426 static long int longval () { return (long int) (sizeof (void *)); }
25427 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25429 #include <stdlib.h>
25434 FILE *f = fopen ("conftest.val", "w");
25437 if (((long int) (sizeof (void *))) < 0)
25439 long int i = longval ();
25440 if (i != ((long int) (sizeof (void *))))
25442 fprintf (f, "%ld", i);
25446 unsigned long int i = ulongval ();
25447 if (i != ((long int) (sizeof (void *))))
25449 fprintf (f, "%lu", i);
25451 /* Do not output a trailing newline, as this causes \r\n confusion
25452 on some platforms. */
25453 return ferror (f) || fclose (f) != 0;
25459 rm -f conftest$ac_exeext
25460 if { (ac_try="$ac_link"
25461 case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25466 $as_echo "$ac_try_echo") >&5
25467 (eval "$ac_link") 2>&5
25469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25471 { (case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25476 $as_echo "$ac_try_echo") >&5
25477 (eval "$ac_try") 2>&5
25479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; }; then
25481 ac_cv_sizeof_void_p=`cat conftest.val`
25483 $as_echo "$as_me: program exited with status $ac_status" >&5
25484 $as_echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25487 ( exit $ac_status )
25488 if test "$ac_cv_type_void_p" = yes; then
25489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25491 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25492 See \`config.log' for more details." >&5
25493 $as_echo "$as_me: error: cannot compute sizeof (void *)
25494 See \`config.log' for more details." >&2;}
25495 { (exit 77); exit 77; }; }; }
25497 ac_cv_sizeof_void_p=0
25500 rm -rf conftest.dSYM
25501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25505 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25510 cat >>confdefs.h <<_ACEOF
25511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25515 # The cast to long int works around a bug in the HP C Compiler
25516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25518 # This bug is HP SR number 8606223364.
25519 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25520 $as_echo_n "checking size of size_t... " >&6; }
25521 if test "${ac_cv_sizeof_size_t+set}" = set; then
25522 $as_echo_n "(cached) " >&6
25524 if test "$cross_compiling" = yes; then
25525 # Depending upon the size, compute the lo and hi bounds.
25526 cat >conftest.$ac_ext <<_ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25532 $ac_includes_default
25536 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25543 rm -f conftest.$ac_objext
25544 if { (ac_try="$ac_compile"
25545 case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25550 $as_echo "$ac_try_echo") >&5
25551 (eval "$ac_compile") 2>conftest.er1
25553 grep -v '^ *+' conftest.er1 >conftest.err
25555 cat conftest.err >&5
25556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } && {
25558 test -z "$ac_c_werror_flag" ||
25559 test ! -s conftest.err
25560 } && test -s conftest.$ac_objext; then
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569 $ac_includes_default
25573 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25587 $as_echo "$ac_try_echo") >&5
25588 (eval "$ac_compile") 2>conftest.er1
25590 grep -v '^ *+' conftest.er1 >conftest.err
25592 cat conftest.err >&5
25593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } && {
25595 test -z "$ac_c_werror_flag" ||
25596 test ! -s conftest.err
25597 } && test -s conftest.$ac_objext; then
25598 ac_hi=$ac_mid; break
25600 $as_echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 ac_lo=`expr $ac_mid + 1`
25604 if test $ac_lo -le $ac_mid; then
25608 ac_mid=`expr 2 '*' $ac_mid + 1`
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 $as_echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25623 $ac_includes_default
25627 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25634 rm -f conftest.$ac_objext
25635 if { (ac_try="$ac_compile"
25636 case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25641 $as_echo "$ac_try_echo") >&5
25642 (eval "$ac_compile") 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } && {
25649 test -z "$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 } && test -s conftest.$ac_objext; then
25654 cat >conftest.$ac_ext <<_ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25660 $ac_includes_default
25664 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_compile") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest.$ac_objext; then
25689 ac_lo=$ac_mid; break
25691 $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ac_hi=`expr '(' $ac_mid ')' - 1`
25695 if test $ac_mid -le $ac_hi; then
25699 ac_mid=`expr 2 '*' $ac_mid`
25702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 $as_echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 # Binary search between lo and hi bounds.
25716 while test "x$ac_lo" != "x$ac_hi"; do
25717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724 $ac_includes_default
25728 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25735 rm -f conftest.$ac_objext
25736 if { (ac_try="$ac_compile"
25737 case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25742 $as_echo "$ac_try_echo") >&5
25743 (eval "$ac_compile") 2>conftest.er1
25745 grep -v '^ *+' conftest.er1 >conftest.err
25747 cat conftest.err >&5
25748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } && {
25750 test -z "$ac_c_werror_flag" ||
25751 test ! -s conftest.err
25752 } && test -s conftest.$ac_objext; then
25755 $as_echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25758 ac_lo=`expr '(' $ac_mid ')' + 1`
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25765 '') if test "$ac_cv_type_size_t" = yes; then
25766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25768 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25769 See \`config.log' for more details." >&5
25770 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25771 See \`config.log' for more details." >&2;}
25772 { (exit 77); exit 77; }; }; }
25774 ac_cv_sizeof_size_t=0
25778 cat >conftest.$ac_ext <<_ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 $ac_includes_default
25785 static long int longval () { return (long int) (sizeof (size_t)); }
25786 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25788 #include <stdlib.h>
25793 FILE *f = fopen ("conftest.val", "w");
25796 if (((long int) (sizeof (size_t))) < 0)
25798 long int i = longval ();
25799 if (i != ((long int) (sizeof (size_t))))
25801 fprintf (f, "%ld", i);
25805 unsigned long int i = ulongval ();
25806 if (i != ((long int) (sizeof (size_t))))
25808 fprintf (f, "%lu", i);
25810 /* Do not output a trailing newline, as this causes \r\n confusion
25811 on some platforms. */
25812 return ferror (f) || fclose (f) != 0;
25818 rm -f conftest$ac_exeext
25819 if { (ac_try="$ac_link"
25820 case "(($ac_try" in
25821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822 *) ac_try_echo=$ac_try;;
25824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25825 $as_echo "$ac_try_echo") >&5
25826 (eval "$ac_link") 2>&5
25828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25830 { (case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836 (eval "$ac_try") 2>&5
25838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); }; }; then
25840 ac_cv_sizeof_size_t=`cat conftest.val`
25842 $as_echo "$as_me: program exited with status $ac_status" >&5
25843 $as_echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25846 ( exit $ac_status )
25847 if test "$ac_cv_type_size_t" = yes; then
25848 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25850 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25851 See \`config.log' for more details." >&5
25852 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25853 See \`config.log' for more details." >&2;}
25854 { (exit 77); exit 77; }; }; }
25856 ac_cv_sizeof_size_t=0
25859 rm -rf conftest.dSYM
25860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25864 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25865 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25869 cat >>confdefs.h <<_ACEOF
25870 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25874 # The cast to long int works around a bug in the HP C Compiler
25875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25877 # This bug is HP SR number 8606223364.
25878 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25879 $as_echo_n "checking size of long... " >&6; }
25880 if test "${ac_cv_sizeof_long+set}" = set; then
25881 $as_echo_n "(cached) " >&6
25883 if test "$cross_compiling" = yes; then
25884 # Depending upon the size, compute the lo and hi bounds.
25885 cat >conftest.$ac_ext <<_ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 $ac_includes_default
25895 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25902 rm -f conftest.$ac_objext
25903 if { (ac_try="$ac_compile"
25904 case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_compile") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest.$ac_objext; then
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25932 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943 *) ac_try_echo=$ac_try;;
25945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25946 $as_echo "$ac_try_echo") >&5
25947 (eval "$ac_compile") 2>conftest.er1
25949 grep -v '^ *+' conftest.er1 >conftest.err
25951 cat conftest.err >&5
25952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } && {
25954 test -z "$ac_c_werror_flag" ||
25955 test ! -s conftest.err
25956 } && test -s conftest.$ac_objext; then
25957 ac_hi=$ac_mid; break
25959 $as_echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25962 ac_lo=`expr $ac_mid + 1`
25963 if test $ac_lo -le $ac_mid; then
25967 ac_mid=`expr 2 '*' $ac_mid + 1`
25970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 $as_echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
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
25986 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25993 rm -f conftest.$ac_objext
25994 if { (ac_try="$ac_compile"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26000 $as_echo "$ac_try_echo") >&5
26001 (eval "$ac_compile") 2>conftest.er1
26003 grep -v '^ *+' conftest.er1 >conftest.err
26005 cat conftest.err >&5
26006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } && {
26008 test -z "$ac_c_werror_flag" ||
26009 test ! -s conftest.err
26010 } && test -s conftest.$ac_objext; then
26013 cat >conftest.$ac_ext <<_ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 $ac_includes_default
26023 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26030 rm -f conftest.$ac_objext
26031 if { (ac_try="$ac_compile"
26032 case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26037 $as_echo "$ac_try_echo") >&5
26038 (eval "$ac_compile") 2>conftest.er1
26040 grep -v '^ *+' conftest.er1 >conftest.err
26042 cat conftest.err >&5
26043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } && {
26045 test -z "$ac_c_werror_flag" ||
26046 test ! -s conftest.err
26047 } && test -s conftest.$ac_objext; then
26048 ac_lo=$ac_mid; break
26050 $as_echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ac_hi=`expr '(' $ac_mid ')' - 1`
26054 if test $ac_mid -le $ac_hi; then
26058 ac_mid=`expr 2 '*' $ac_mid`
26061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064 $as_echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 # Binary search between lo and hi bounds.
26075 while test "x$ac_lo" != "x$ac_hi"; do
26076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26077 cat >conftest.$ac_ext <<_ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h. */
26083 $ac_includes_default
26087 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest.$ac_objext; then
26114 $as_echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_lo=`expr '(' $ac_mid ')' + 1`
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123 ?*) ac_cv_sizeof_long=$ac_lo;;
26124 '') if test "$ac_cv_type_long" = yes; then
26125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26127 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26128 See \`config.log' for more details." >&5
26129 $as_echo "$as_me: error: cannot compute sizeof (long)
26130 See \`config.log' for more details." >&2;}
26131 { (exit 77); exit 77; }; }; }
26133 ac_cv_sizeof_long=0
26137 cat >conftest.$ac_ext <<_ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 $ac_includes_default
26144 static long int longval () { return (long int) (sizeof (long)); }
26145 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26147 #include <stdlib.h>
26152 FILE *f = fopen ("conftest.val", "w");
26155 if (((long int) (sizeof (long))) < 0)
26157 long int i = longval ();
26158 if (i != ((long int) (sizeof (long))))
26160 fprintf (f, "%ld", i);
26164 unsigned long int i = ulongval ();
26165 if (i != ((long int) (sizeof (long))))
26167 fprintf (f, "%lu", i);
26169 /* Do not output a trailing newline, as this causes \r\n confusion
26170 on some platforms. */
26171 return ferror (f) || fclose (f) != 0;
26177 rm -f conftest$ac_exeext
26178 if { (ac_try="$ac_link"
26179 case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26184 $as_echo "$ac_try_echo") >&5
26185 (eval "$ac_link") 2>&5
26187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26189 { (case "(($ac_try" in
26190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191 *) ac_try_echo=$ac_try;;
26193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26194 $as_echo "$ac_try_echo") >&5
26195 (eval "$ac_try") 2>&5
26197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199 ac_cv_sizeof_long=`cat conftest.val`
26201 $as_echo "$as_me: program exited with status $ac_status" >&5
26202 $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 ( exit $ac_status )
26206 if test "$ac_cv_type_long" = yes; then
26207 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26209 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26210 See \`config.log' for more details." >&5
26211 $as_echo "$as_me: error: cannot compute sizeof (long)
26212 See \`config.log' for more details." >&2;}
26213 { (exit 77); exit 77; }; }; }
26215 ac_cv_sizeof_long=0
26218 rm -rf conftest.dSYM
26219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26224 $as_echo "$ac_cv_sizeof_long" >&6; }
26228 cat >>confdefs.h <<_ACEOF
26229 #define SIZEOF_LONG $ac_cv_sizeof_long
26234 # Decide whether float4 is passed by value: user-selectable, enabled by default
26235 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26236 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26239 # Check whether --enable-float4-byval was given.
26240 if test "${enable_float4_byval+set}" = set; then
26241 enableval=$enable_float4_byval;
26245 cat >>confdefs.h <<\_ACEOF
26246 #define USE_FLOAT4_BYVAL 1
26249 float4passbyval=true
26252 float4passbyval=false
26255 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26256 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26257 { (exit 1); exit 1; }; }
26262 enable_float4_byval=yes
26264 cat >>confdefs.h <<\_ACEOF
26265 #define USE_FLOAT4_BYVAL 1
26268 float4passbyval=true
26272 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26273 $as_echo "$enable_float4_byval" >&6; }
26275 cat >>confdefs.h <<_ACEOF
26276 #define FLOAT4PASSBYVAL $float4passbyval
26280 # Decide whether float8 is passed by value.
26281 # Note: this setting also controls int8 and related types such as timestamp.
26282 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26283 # If not, trying to select it is an error.
26284 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26285 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26286 if test $ac_cv_sizeof_void_p -ge 8 ; then
26289 # Check whether --enable-float8-byval was given.
26290 if test "${enable_float8_byval+set}" = set; then
26291 enableval=$enable_float8_byval;
26300 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26301 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26302 { (exit 1); exit 1; }; }
26307 enable_float8_byval=yes
26315 # Check whether --enable-float8-byval was given.
26316 if test "${enable_float8_byval+set}" = set; then
26317 enableval=$enable_float8_byval;
26326 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26327 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26328 { (exit 1); exit 1; }; }
26333 enable_float8_byval=no
26338 if test "$enable_float8_byval" = yes ; then
26339 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26340 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26341 { (exit 1); exit 1; }; }
26344 if test "$enable_float8_byval" = yes ; then
26346 cat >>confdefs.h <<\_ACEOF
26347 #define USE_FLOAT8_BYVAL 1
26350 float8passbyval=true
26352 float8passbyval=false
26354 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26355 $as_echo "$enable_float8_byval" >&6; }
26357 cat >>confdefs.h <<_ACEOF
26358 #define FLOAT8PASSBYVAL $float8passbyval
26362 # Determine memory alignment requirements for the basic C data types.
26364 # The cast to long int works around a bug in the HP C Compiler,
26365 # see AC_CHECK_SIZEOF for more information.
26366 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26367 $as_echo_n "checking alignment of short... " >&6; }
26368 if test "${ac_cv_alignof_short+set}" = set; then
26369 $as_echo_n "(cached) " >&6
26371 if test "$cross_compiling" = yes; then
26372 # Depending upon the size, compute the lo and hi bounds.
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 $ac_includes_default
26381 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26383 typedef struct { char x; short y; } ac__type_alignof_;
26387 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402 (eval "$ac_compile") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } && {
26409 test -z "$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26411 } && test -s conftest.$ac_objext; then
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26420 $ac_includes_default
26422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26424 typedef struct { char x; short y; } ac__type_alignof_;
26428 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26435 rm -f conftest.$ac_objext
26436 if { (ac_try="$ac_compile"
26437 case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26442 $as_echo "$ac_try_echo") >&5
26443 (eval "$ac_compile") 2>conftest.er1
26445 grep -v '^ *+' conftest.er1 >conftest.err
26447 cat conftest.err >&5
26448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); } && {
26450 test -z "$ac_c_werror_flag" ||
26451 test ! -s conftest.err
26452 } && test -s conftest.$ac_objext; then
26453 ac_hi=$ac_mid; break
26455 $as_echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26458 ac_lo=`expr $ac_mid + 1`
26459 if test $ac_lo -le $ac_mid; then
26463 ac_mid=`expr 2 '*' $ac_mid + 1`
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26469 $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 cat >conftest.$ac_ext <<_ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26478 $ac_includes_default
26480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26482 typedef struct { char x; short y; } ac__type_alignof_;
26486 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26500 $as_echo "$ac_try_echo") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26513 cat >conftest.$ac_ext <<_ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h. */
26519 $ac_includes_default
26521 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26523 typedef struct { char x; short y; } ac__type_alignof_;
26527 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26534 rm -f conftest.$ac_objext
26535 if { (ac_try="$ac_compile"
26536 case "(($ac_try" in
26537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26538 *) ac_try_echo=$ac_try;;
26540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26541 $as_echo "$ac_try_echo") >&5
26542 (eval "$ac_compile") 2>conftest.er1
26544 grep -v '^ *+' conftest.er1 >conftest.err
26546 cat conftest.err >&5
26547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } && {
26549 test -z "$ac_c_werror_flag" ||
26550 test ! -s conftest.err
26551 } && test -s conftest.$ac_objext; then
26552 ac_lo=$ac_mid; break
26554 $as_echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26557 ac_hi=`expr '(' $ac_mid ')' - 1`
26558 if test $ac_mid -le $ac_hi; then
26562 ac_mid=`expr 2 '*' $ac_mid`
26565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 $as_echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 # Binary search between lo and hi bounds.
26579 while test "x$ac_lo" != "x$ac_hi"; do
26580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26581 cat >conftest.$ac_ext <<_ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26587 $ac_includes_default
26589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26591 typedef struct { char x; short y; } ac__type_alignof_;
26595 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606 *) ac_try_echo=$ac_try;;
26608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26609 $as_echo "$ac_try_echo") >&5
26610 (eval "$ac_compile") 2>conftest.er1
26612 grep -v '^ *+' conftest.er1 >conftest.err
26614 cat conftest.err >&5
26615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } && {
26617 test -z "$ac_c_werror_flag" ||
26618 test ! -s conftest.err
26619 } && test -s conftest.$ac_objext; then
26622 $as_echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26625 ac_lo=`expr '(' $ac_mid ')' + 1`
26628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26631 ?*) ac_cv_alignof_short=$ac_lo;;
26632 '') if test "$ac_cv_type_short" = yes; then
26633 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26635 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26636 See \`config.log' for more details." >&5
26637 $as_echo "$as_me: error: cannot compute alignment of short
26638 See \`config.log' for more details." >&2;}
26639 { (exit 77); exit 77; }; }; }
26641 ac_cv_alignof_short=0
26645 cat >conftest.$ac_ext <<_ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 $ac_includes_default
26653 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26655 typedef struct { char x; short y; } ac__type_alignof_;
26656 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26657 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26659 #include <stdlib.h>
26664 FILE *f = fopen ("conftest.val", "w");
26667 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26669 long int i = longval ();
26670 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26672 fprintf (f, "%ld", i);
26676 unsigned long int i = ulongval ();
26677 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26679 fprintf (f, "%lu", i);
26681 /* Do not output a trailing newline, as this causes \r\n confusion
26682 on some platforms. */
26683 return ferror (f) || fclose (f) != 0;
26689 rm -f conftest$ac_exeext
26690 if { (ac_try="$ac_link"
26691 case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26696 $as_echo "$ac_try_echo") >&5
26697 (eval "$ac_link") 2>&5
26699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26701 { (case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26706 $as_echo "$ac_try_echo") >&5
26707 (eval "$ac_try") 2>&5
26709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 ac_cv_alignof_short=`cat conftest.val`
26713 $as_echo "$as_me: program exited with status $ac_status" >&5
26714 $as_echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717 ( exit $ac_status )
26718 if test "$ac_cv_type_short" = yes; then
26719 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26721 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26722 See \`config.log' for more details." >&5
26723 $as_echo "$as_me: error: cannot compute alignment of short
26724 See \`config.log' for more details." >&2;}
26725 { (exit 77); exit 77; }; }; }
26727 ac_cv_alignof_short=0
26730 rm -rf conftest.dSYM
26731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26735 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26736 $as_echo "$ac_cv_alignof_short" >&6; }
26740 cat >>confdefs.h <<_ACEOF
26741 #define ALIGNOF_SHORT $ac_cv_alignof_short
26745 # The cast to long int works around a bug in the HP C Compiler,
26746 # see AC_CHECK_SIZEOF for more information.
26747 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26748 $as_echo_n "checking alignment of int... " >&6; }
26749 if test "${ac_cv_alignof_int+set}" = set; then
26750 $as_echo_n "(cached) " >&6
26752 if test "$cross_compiling" = yes; then
26753 # Depending upon the size, compute the lo and hi bounds.
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760 $ac_includes_default
26762 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26764 typedef struct { char x; int y; } ac__type_alignof_;
26768 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26775 rm -f conftest.$ac_objext
26776 if { (ac_try="$ac_compile"
26777 case "(($ac_try" in
26778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779 *) ac_try_echo=$ac_try;;
26781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26782 $as_echo "$ac_try_echo") >&5
26783 (eval "$ac_compile") 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest.$ac_objext; then
26795 cat >conftest.$ac_ext <<_ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26801 $ac_includes_default
26803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26805 typedef struct { char x; int y; } ac__type_alignof_;
26809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26816 rm -f conftest.$ac_objext
26817 if { (ac_try="$ac_compile"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26823 $as_echo "$ac_try_echo") >&5
26824 (eval "$ac_compile") 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } && {
26831 test -z "$ac_c_werror_flag" ||
26832 test ! -s conftest.err
26833 } && test -s conftest.$ac_objext; then
26834 ac_hi=$ac_mid; break
26836 $as_echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_lo=`expr $ac_mid + 1`
26840 if test $ac_lo -le $ac_mid; then
26844 ac_mid=`expr 2 '*' $ac_mid + 1`
26847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26850 $as_echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 $ac_includes_default
26861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26863 typedef struct { char x; int y; } ac__type_alignof_;
26867 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26874 rm -f conftest.$ac_objext
26875 if { (ac_try="$ac_compile"
26876 case "(($ac_try" in
26877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878 *) ac_try_echo=$ac_try;;
26880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26881 $as_echo "$ac_try_echo") >&5
26882 (eval "$ac_compile") 2>conftest.er1
26884 grep -v '^ *+' conftest.er1 >conftest.err
26886 cat conftest.err >&5
26887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } && {
26889 test -z "$ac_c_werror_flag" ||
26890 test ! -s conftest.err
26891 } && test -s conftest.$ac_objext; then
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 $ac_includes_default
26902 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26904 typedef struct { char x; int y; } ac__type_alignof_;
26908 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26915 rm -f conftest.$ac_objext
26916 if { (ac_try="$ac_compile"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26922 $as_echo "$ac_try_echo") >&5
26923 (eval "$ac_compile") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1 >conftest.err
26927 cat conftest.err >&5
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && {
26930 test -z "$ac_c_werror_flag" ||
26931 test ! -s conftest.err
26932 } && test -s conftest.$ac_objext; then
26933 ac_lo=$ac_mid; break
26935 $as_echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ac_hi=`expr '(' $ac_mid ')' - 1`
26939 if test $ac_mid -le $ac_hi; then
26943 ac_mid=`expr 2 '*' $ac_mid`
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 $as_echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26959 # Binary search between lo and hi bounds.
26960 while test "x$ac_lo" != "x$ac_hi"; do
26961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26962 cat >conftest.$ac_ext <<_ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 $ac_includes_default
26970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26972 typedef struct { char x; int y; } ac__type_alignof_;
26976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26993 grep -v '^ *+' conftest.er1 >conftest.err
26995 cat conftest.err >&5
26996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.$ac_objext; then
27003 $as_echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_lo=`expr '(' $ac_mid ')' + 1`
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012 ?*) ac_cv_alignof_int=$ac_lo;;
27013 '') if test "$ac_cv_type_int" = yes; then
27014 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27016 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27017 See \`config.log' for more details." >&5
27018 $as_echo "$as_me: error: cannot compute alignment of int
27019 See \`config.log' for more details." >&2;}
27020 { (exit 77); exit 77; }; }; }
27022 ac_cv_alignof_int=0
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 $ac_includes_default
27034 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27036 typedef struct { char x; int y; } ac__type_alignof_;
27037 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27038 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27040 #include <stdlib.h>
27045 FILE *f = fopen ("conftest.val", "w");
27048 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27050 long int i = longval ();
27051 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27053 fprintf (f, "%ld", i);
27057 unsigned long int i = ulongval ();
27058 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27060 fprintf (f, "%lu", i);
27062 /* Do not output a trailing newline, as this causes \r\n confusion
27063 on some platforms. */
27064 return ferror (f) || fclose (f) != 0;
27070 rm -f conftest$ac_exeext
27071 if { (ac_try="$ac_link"
27072 case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27077 $as_echo "$ac_try_echo") >&5
27078 (eval "$ac_link") 2>&5
27080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27082 { (case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27087 $as_echo "$ac_try_echo") >&5
27088 (eval "$ac_try") 2>&5
27090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 ac_cv_alignof_int=`cat conftest.val`
27094 $as_echo "$as_me: program exited with status $ac_status" >&5
27095 $as_echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27098 ( exit $ac_status )
27099 if test "$ac_cv_type_int" = yes; then
27100 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27102 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27103 See \`config.log' for more details." >&5
27104 $as_echo "$as_me: error: cannot compute alignment of int
27105 See \`config.log' for more details." >&2;}
27106 { (exit 77); exit 77; }; }; }
27108 ac_cv_alignof_int=0
27111 rm -rf conftest.dSYM
27112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27116 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
27117 $as_echo "$ac_cv_alignof_int" >&6; }
27121 cat >>confdefs.h <<_ACEOF
27122 #define ALIGNOF_INT $ac_cv_alignof_int
27126 # The cast to long int works around a bug in the HP C Compiler,
27127 # see AC_CHECK_SIZEOF for more information.
27128 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
27129 $as_echo_n "checking alignment of long... " >&6; }
27130 if test "${ac_cv_alignof_long+set}" = set; then
27131 $as_echo_n "(cached) " >&6
27133 if test "$cross_compiling" = yes; then
27134 # Depending upon the size, compute the lo and hi bounds.
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27141 $ac_includes_default
27143 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27145 typedef struct { char x; long y; } ac__type_alignof_;
27149 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27156 rm -f conftest.$ac_objext
27157 if { (ac_try="$ac_compile"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27163 $as_echo "$ac_try_echo") >&5
27164 (eval "$ac_compile") 2>conftest.er1
27166 grep -v '^ *+' conftest.er1 >conftest.err
27168 cat conftest.err >&5
27169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && {
27171 test -z "$ac_c_werror_flag" ||
27172 test ! -s conftest.err
27173 } && test -s conftest.$ac_objext; then
27176 cat >conftest.$ac_ext <<_ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h. */
27182 $ac_includes_default
27184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27186 typedef struct { char x; long y; } ac__type_alignof_;
27190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27204 $as_echo "$ac_try_echo") >&5
27205 (eval "$ac_compile") 2>conftest.er1
27207 grep -v '^ *+' conftest.er1 >conftest.err
27209 cat conftest.err >&5
27210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } && {
27212 test -z "$ac_c_werror_flag" ||
27213 test ! -s conftest.err
27214 } && test -s conftest.$ac_objext; then
27215 ac_hi=$ac_mid; break
27217 $as_echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 ac_lo=`expr $ac_mid + 1`
27221 if test $ac_lo -le $ac_mid; then
27225 ac_mid=`expr 2 '*' $ac_mid + 1`
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27231 $as_echo "$as_me: failed program was:" >&5
27232 sed 's/^/| /' conftest.$ac_ext >&5
27234 cat >conftest.$ac_ext <<_ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27240 $ac_includes_default
27242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27244 typedef struct { char x; long y; } ac__type_alignof_;
27248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27255 rm -f conftest.$ac_objext
27256 if { (ac_try="$ac_compile"
27257 case "(($ac_try" in
27258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259 *) ac_try_echo=$ac_try;;
27261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27262 $as_echo "$ac_try_echo") >&5
27263 (eval "$ac_compile") 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } && {
27270 test -z "$ac_c_werror_flag" ||
27271 test ! -s conftest.err
27272 } && test -s conftest.$ac_objext; then
27275 cat >conftest.$ac_ext <<_ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27281 $ac_includes_default
27283 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27285 typedef struct { char x; long y; } ac__type_alignof_;
27289 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304 (eval "$ac_compile") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest.$ac_objext; then
27314 ac_lo=$ac_mid; break
27316 $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_hi=`expr '(' $ac_mid ')' - 1`
27320 if test $ac_mid -le $ac_hi; then
27324 ac_mid=`expr 2 '*' $ac_mid`
27327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27330 $as_echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27340 # Binary search between lo and hi bounds.
27341 while test "x$ac_lo" != "x$ac_hi"; do
27342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27349 $ac_includes_default
27351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27353 typedef struct { char x; long y; } ac__type_alignof_;
27357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27371 $as_echo "$ac_try_echo") >&5
27372 (eval "$ac_compile") 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } && {
27379 test -z "$ac_c_werror_flag" ||
27380 test ! -s conftest.err
27381 } && test -s conftest.$ac_objext; then
27384 $as_echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27387 ac_lo=`expr '(' $ac_mid ')' + 1`
27390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27393 ?*) ac_cv_alignof_long=$ac_lo;;
27394 '') if test "$ac_cv_type_long" = yes; then
27395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27397 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27398 See \`config.log' for more details." >&5
27399 $as_echo "$as_me: error: cannot compute alignment of long
27400 See \`config.log' for more details." >&2;}
27401 { (exit 77); exit 77; }; }; }
27403 ac_cv_alignof_long=0
27407 cat >conftest.$ac_ext <<_ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h. */
27413 $ac_includes_default
27415 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27417 typedef struct { char x; long y; } ac__type_alignof_;
27418 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27419 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27421 #include <stdlib.h>
27426 FILE *f = fopen ("conftest.val", "w");
27429 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27431 long int i = longval ();
27432 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27434 fprintf (f, "%ld", i);
27438 unsigned long int i = ulongval ();
27439 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27441 fprintf (f, "%lu", i);
27443 /* Do not output a trailing newline, as this causes \r\n confusion
27444 on some platforms. */
27445 return ferror (f) || fclose (f) != 0;
27451 rm -f conftest$ac_exeext
27452 if { (ac_try="$ac_link"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27458 $as_echo "$ac_try_echo") >&5
27459 (eval "$ac_link") 2>&5
27461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463 { (case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27468 $as_echo "$ac_try_echo") >&5
27469 (eval "$ac_try") 2>&5
27471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; }; then
27473 ac_cv_alignof_long=`cat conftest.val`
27475 $as_echo "$as_me: program exited with status $ac_status" >&5
27476 $as_echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27479 ( exit $ac_status )
27480 if test "$ac_cv_type_long" = yes; then
27481 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27483 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27484 See \`config.log' for more details." >&5
27485 $as_echo "$as_me: error: cannot compute alignment of long
27486 See \`config.log' for more details." >&2;}
27487 { (exit 77); exit 77; }; }; }
27489 ac_cv_alignof_long=0
27492 rm -rf conftest.dSYM
27493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27497 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27498 $as_echo "$ac_cv_alignof_long" >&6; }
27502 cat >>confdefs.h <<_ACEOF
27503 #define ALIGNOF_LONG $ac_cv_alignof_long
27507 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27508 # The cast to long int works around a bug in the HP C Compiler,
27509 # see AC_CHECK_SIZEOF for more information.
27510 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27511 $as_echo_n "checking alignment of long long int... " >&6; }
27512 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27513 $as_echo_n "(cached) " >&6
27515 if test "$cross_compiling" = yes; then
27516 # Depending upon the size, compute the lo and hi bounds.
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27523 $ac_includes_default
27525 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27527 typedef struct { char x; long long int y; } ac__type_alignof_;
27531 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27538 rm -f conftest.$ac_objext
27539 if { (ac_try="$ac_compile"
27540 case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27545 $as_echo "$ac_try_echo") >&5
27546 (eval "$ac_compile") 2>conftest.er1
27548 grep -v '^ *+' conftest.er1 >conftest.err
27550 cat conftest.err >&5
27551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } && {
27553 test -z "$ac_c_werror_flag" ||
27554 test ! -s conftest.err
27555 } && test -s conftest.$ac_objext; then
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 $ac_includes_default
27566 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27568 typedef struct { char x; long long int y; } ac__type_alignof_;
27572 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27579 rm -f conftest.$ac_objext
27580 if { (ac_try="$ac_compile"
27581 case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27586 $as_echo "$ac_try_echo") >&5
27587 (eval "$ac_compile") 2>conftest.er1
27589 grep -v '^ *+' conftest.er1 >conftest.err
27591 cat conftest.err >&5
27592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } && {
27594 test -z "$ac_c_werror_flag" ||
27595 test ! -s conftest.err
27596 } && test -s conftest.$ac_objext; then
27597 ac_hi=$ac_mid; break
27599 $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27602 ac_lo=`expr $ac_mid + 1`
27603 if test $ac_lo -le $ac_mid; then
27607 ac_mid=`expr 2 '*' $ac_mid + 1`
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27613 $as_echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 $ac_includes_default
27624 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27626 typedef struct { char x; long long int y; } ac__type_alignof_;
27630 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27637 rm -f conftest.$ac_objext
27638 if { (ac_try="$ac_compile"
27639 case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27644 $as_echo "$ac_try_echo") >&5
27645 (eval "$ac_compile") 2>conftest.er1
27647 grep -v '^ *+' conftest.er1 >conftest.err
27649 cat conftest.err >&5
27650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && {
27652 test -z "$ac_c_werror_flag" ||
27653 test ! -s conftest.err
27654 } && test -s conftest.$ac_objext; then
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27663 $ac_includes_default
27665 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27667 typedef struct { char x; long long int y; } ac__type_alignof_;
27671 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27678 rm -f conftest.$ac_objext
27679 if { (ac_try="$ac_compile"
27680 case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27685 $as_echo "$ac_try_echo") >&5
27686 (eval "$ac_compile") 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27696 ac_lo=$ac_mid; break
27698 $as_echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_hi=`expr '(' $ac_mid ')' - 1`
27702 if test $ac_mid -le $ac_hi; then
27706 ac_mid=`expr 2 '*' $ac_mid`
27709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27712 $as_echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 # Binary search between lo and hi bounds.
27723 while test "x$ac_lo" != "x$ac_hi"; do
27724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27725 cat >conftest.$ac_ext <<_ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27731 $ac_includes_default
27733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27735 typedef struct { char x; long long int y; } ac__type_alignof_;
27739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27746 rm -f conftest.$ac_objext
27747 if { (ac_try="$ac_compile"
27748 case "(($ac_try" in
27749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750 *) ac_try_echo=$ac_try;;
27752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27753 $as_echo "$ac_try_echo") >&5
27754 (eval "$ac_compile") 2>conftest.er1
27756 grep -v '^ *+' conftest.er1 >conftest.err
27758 cat conftest.err >&5
27759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && {
27761 test -z "$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27763 } && test -s conftest.$ac_objext; then
27766 $as_echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ac_lo=`expr '(' $ac_mid ')' + 1`
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27776 '') if test "$ac_cv_type_long_long_int" = yes; then
27777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27779 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27780 See \`config.log' for more details." >&5
27781 $as_echo "$as_me: error: cannot compute alignment of long long int
27782 See \`config.log' for more details." >&2;}
27783 { (exit 77); exit 77; }; }; }
27785 ac_cv_alignof_long_long_int=0
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 $ac_includes_default
27797 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27799 typedef struct { char x; long long int y; } ac__type_alignof_;
27800 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27801 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27803 #include <stdlib.h>
27808 FILE *f = fopen ("conftest.val", "w");
27811 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27813 long int i = longval ();
27814 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27816 fprintf (f, "%ld", i);
27820 unsigned long int i = ulongval ();
27821 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27823 fprintf (f, "%lu", i);
27825 /* Do not output a trailing newline, as this causes \r\n confusion
27826 on some platforms. */
27827 return ferror (f) || fclose (f) != 0;
27833 rm -f conftest$ac_exeext
27834 if { (ac_try="$ac_link"
27835 case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27840 $as_echo "$ac_try_echo") >&5
27841 (eval "$ac_link") 2>&5
27843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27845 { (case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27850 $as_echo "$ac_try_echo") >&5
27851 (eval "$ac_try") 2>&5
27853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; }; then
27855 ac_cv_alignof_long_long_int=`cat conftest.val`
27857 $as_echo "$as_me: program exited with status $ac_status" >&5
27858 $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27861 ( exit $ac_status )
27862 if test "$ac_cv_type_long_long_int" = yes; then
27863 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27865 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27866 See \`config.log' for more details." >&5
27867 $as_echo "$as_me: error: cannot compute alignment of long long int
27868 See \`config.log' for more details." >&2;}
27869 { (exit 77); exit 77; }; }; }
27871 ac_cv_alignof_long_long_int=0
27874 rm -rf conftest.dSYM
27875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27879 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27880 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27884 cat >>confdefs.h <<_ACEOF
27885 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27890 # The cast to long int works around a bug in the HP C Compiler,
27891 # see AC_CHECK_SIZEOF for more information.
27892 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27893 $as_echo_n "checking alignment of double... " >&6; }
27894 if test "${ac_cv_alignof_double+set}" = set; then
27895 $as_echo_n "(cached) " >&6
27897 if test "$cross_compiling" = yes; then
27898 # Depending upon the size, compute the lo and hi bounds.
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27905 $ac_includes_default
27907 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27909 typedef struct { char x; double y; } ac__type_alignof_;
27913 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27920 rm -f conftest.$ac_objext
27921 if { (ac_try="$ac_compile"
27922 case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27927 $as_echo "$ac_try_echo") >&5
27928 (eval "$ac_compile") 2>conftest.er1
27930 grep -v '^ *+' conftest.er1 >conftest.err
27932 cat conftest.err >&5
27933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } && {
27935 test -z "$ac_c_werror_flag" ||
27936 test ! -s conftest.err
27937 } && test -s conftest.$ac_objext; then
27940 cat >conftest.$ac_ext <<_ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27946 $ac_includes_default
27948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27950 typedef struct { char x; double y; } ac__type_alignof_;
27954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27961 rm -f conftest.$ac_objext
27962 if { (ac_try="$ac_compile"
27963 case "(($ac_try" in
27964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965 *) ac_try_echo=$ac_try;;
27967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27968 $as_echo "$ac_try_echo") >&5
27969 (eval "$ac_compile") 2>conftest.er1
27971 grep -v '^ *+' conftest.er1 >conftest.err
27973 cat conftest.err >&5
27974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } && {
27976 test -z "$ac_c_werror_flag" ||
27977 test ! -s conftest.err
27978 } && test -s conftest.$ac_objext; then
27979 ac_hi=$ac_mid; break
27981 $as_echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27984 ac_lo=`expr $ac_mid + 1`
27985 if test $ac_lo -le $ac_mid; then
27989 ac_mid=`expr 2 '*' $ac_mid + 1`
27992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27995 $as_echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 $ac_includes_default
28006 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28008 typedef struct { char x; double y; } ac__type_alignof_;
28012 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
28019 rm -f conftest.$ac_objext
28020 if { (ac_try="$ac_compile"
28021 case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28026 $as_echo "$ac_try_echo") >&5
28027 (eval "$ac_compile") 2>conftest.er1
28029 grep -v '^ *+' conftest.er1 >conftest.err
28031 cat conftest.err >&5
28032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } && {
28034 test -z "$ac_c_werror_flag" ||
28035 test ! -s conftest.err
28036 } && test -s conftest.$ac_objext; then
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 $ac_includes_default
28047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28049 typedef struct { char x; double y; } ac__type_alignof_;
28053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
28060 rm -f conftest.$ac_objext
28061 if { (ac_try="$ac_compile"
28062 case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28067 $as_echo "$ac_try_echo") >&5
28068 (eval "$ac_compile") 2>conftest.er1
28070 grep -v '^ *+' conftest.er1 >conftest.err
28072 cat conftest.err >&5
28073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); } && {
28075 test -z "$ac_c_werror_flag" ||
28076 test ! -s conftest.err
28077 } && test -s conftest.$ac_objext; then
28078 ac_lo=$ac_mid; break
28080 $as_echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_hi=`expr '(' $ac_mid ')' - 1`
28084 if test $ac_mid -le $ac_hi; then
28088 ac_mid=`expr 2 '*' $ac_mid`
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28094 $as_echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 # Binary search between lo and hi bounds.
28105 while test "x$ac_lo" != "x$ac_hi"; do
28106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28107 cat >conftest.$ac_ext <<_ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h. */
28113 $ac_includes_default
28115 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28117 typedef struct { char x; double y; } ac__type_alignof_;
28121 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
28128 rm -f conftest.$ac_objext
28129 if { (ac_try="$ac_compile"
28130 case "(($ac_try" in
28131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28135 $as_echo "$ac_try_echo") >&5
28136 (eval "$ac_compile") 2>conftest.er1
28138 grep -v '^ *+' conftest.er1 >conftest.err
28140 cat conftest.err >&5
28141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } && {
28143 test -z "$ac_c_werror_flag" ||
28144 test ! -s conftest.err
28145 } && test -s conftest.$ac_objext; then
28148 $as_echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ac_lo=`expr '(' $ac_mid ')' + 1`
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28157 ?*) ac_cv_alignof_double=$ac_lo;;
28158 '') if test "$ac_cv_type_double" = yes; then
28159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28161 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28162 See \`config.log' for more details." >&5
28163 $as_echo "$as_me: error: cannot compute alignment of double
28164 See \`config.log' for more details." >&2;}
28165 { (exit 77); exit 77; }; }; }
28167 ac_cv_alignof_double=0
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28177 $ac_includes_default
28179 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28181 typedef struct { char x; double y; } ac__type_alignof_;
28182 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28183 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28185 #include <stdlib.h>
28190 FILE *f = fopen ("conftest.val", "w");
28193 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28195 long int i = longval ();
28196 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28198 fprintf (f, "%ld", i);
28202 unsigned long int i = ulongval ();
28203 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28205 fprintf (f, "%lu", i);
28207 /* Do not output a trailing newline, as this causes \r\n confusion
28208 on some platforms. */
28209 return ferror (f) || fclose (f) != 0;
28215 rm -f conftest$ac_exeext
28216 if { (ac_try="$ac_link"
28217 case "(($ac_try" in
28218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219 *) ac_try_echo=$ac_try;;
28221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28222 $as_echo "$ac_try_echo") >&5
28223 (eval "$ac_link") 2>&5
28225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28227 { (case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28232 $as_echo "$ac_try_echo") >&5
28233 (eval "$ac_try") 2>&5
28235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 ac_cv_alignof_double=`cat conftest.val`
28239 $as_echo "$as_me: program exited with status $ac_status" >&5
28240 $as_echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ( exit $ac_status )
28244 if test "$ac_cv_type_double" = yes; then
28245 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28247 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28248 See \`config.log' for more details." >&5
28249 $as_echo "$as_me: error: cannot compute alignment of double
28250 See \`config.log' for more details." >&2;}
28251 { (exit 77); exit 77; }; }; }
28253 ac_cv_alignof_double=0
28256 rm -rf conftest.dSYM
28257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28261 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28262 $as_echo "$ac_cv_alignof_double" >&6; }
28266 cat >>confdefs.h <<_ACEOF
28267 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28272 # Compute maximum alignment of any basic type.
28273 # We assume long's alignment is at least as strong as char, short, or int;
28274 # but we must check long long (if it exists) and double.
28276 MAX_ALIGNOF=$ac_cv_alignof_long
28277 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28278 MAX_ALIGNOF=$ac_cv_alignof_double
28280 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28281 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28284 cat >>confdefs.h <<_ACEOF
28285 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28290 # Some platforms predefine the types int8, int16, etc. Only check
28291 # a (hopefully) representative subset.
28292 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28293 $as_echo_n "checking for int8... " >&6; }
28294 if test "${ac_cv_type_int8+set}" = set; then
28295 $as_echo_n "(cached) " >&6
28298 cat >conftest.$ac_ext <<_ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h. */
28315 rm -f conftest.$ac_objext
28316 if { (ac_try="$ac_compile"
28317 case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28322 $as_echo "$ac_try_echo") >&5
28323 (eval "$ac_compile") 2>conftest.er1
28325 grep -v '^ *+' conftest.er1 >conftest.err
28327 cat conftest.err >&5
28328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } && {
28330 test -z "$ac_c_werror_flag" ||
28331 test ! -s conftest.err
28332 } && test -s conftest.$ac_objext; then
28333 cat >conftest.$ac_ext <<_ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28344 if (sizeof ((int8)))
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357 $as_echo "$ac_try_echo") >&5
28358 (eval "$ac_compile") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest.$ac_objext; then
28370 $as_echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28373 ac_cv_type_int8=yes
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28378 $as_echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28386 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28387 $as_echo "$ac_cv_type_int8" >&6; }
28388 if test "x$ac_cv_type_int8" = x""yes; then
28390 cat >>confdefs.h <<_ACEOF
28391 #define HAVE_INT8 1
28396 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28397 $as_echo_n "checking for uint8... " >&6; }
28398 if test "${ac_cv_type_uint8+set}" = set; then
28399 $as_echo_n "(cached) " >&6
28401 ac_cv_type_uint8=no
28402 cat >conftest.$ac_ext <<_ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28413 if (sizeof (uint8))
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28426 $as_echo "$ac_try_echo") >&5
28427 (eval "$ac_compile") 2>conftest.er1
28429 grep -v '^ *+' conftest.er1 >conftest.err
28431 cat conftest.err >&5
28432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } && {
28434 test -z "$ac_c_werror_flag" ||
28435 test ! -s conftest.err
28436 } && test -s conftest.$ac_objext; then
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28448 if (sizeof ((uint8)))
28454 rm -f conftest.$ac_objext
28455 if { (ac_try="$ac_compile"
28456 case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28461 $as_echo "$ac_try_echo") >&5
28462 (eval "$ac_compile") 2>conftest.er1
28464 grep -v '^ *+' conftest.er1 >conftest.err
28466 cat conftest.err >&5
28467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } && {
28469 test -z "$ac_c_werror_flag" ||
28470 test ! -s conftest.err
28471 } && test -s conftest.$ac_objext; then
28474 $as_echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ac_cv_type_uint8=yes
28480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28482 $as_echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28490 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28491 $as_echo "$ac_cv_type_uint8" >&6; }
28492 if test "x$ac_cv_type_uint8" = x""yes; then
28494 cat >>confdefs.h <<_ACEOF
28495 #define HAVE_UINT8 1
28500 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28501 $as_echo_n "checking for int64... " >&6; }
28502 if test "${ac_cv_type_int64+set}" = set; then
28503 $as_echo_n "(cached) " >&6
28505 ac_cv_type_int64=no
28506 cat >conftest.$ac_ext <<_ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h. */
28517 if (sizeof (int64))
28523 rm -f conftest.$ac_objext
28524 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
28541 cat >conftest.$ac_ext <<_ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h. */
28552 if (sizeof ((int64)))
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28565 $as_echo "$ac_try_echo") >&5
28566 (eval "$ac_compile") 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } && {
28573 test -z "$ac_c_werror_flag" ||
28574 test ! -s conftest.err
28575 } && test -s conftest.$ac_objext; then
28578 $as_echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28581 ac_cv_type_int64=yes
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28586 $as_echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28594 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28595 $as_echo "$ac_cv_type_int64" >&6; }
28596 if test "x$ac_cv_type_int64" = x""yes; then
28598 cat >>confdefs.h <<_ACEOF
28599 #define HAVE_INT64 1
28604 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28605 $as_echo_n "checking for uint64... " >&6; }
28606 if test "${ac_cv_type_uint64+set}" = set; then
28607 $as_echo_n "(cached) " >&6
28609 ac_cv_type_uint64=no
28610 cat >conftest.$ac_ext <<_ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h. */
28621 if (sizeof (uint64))
28627 rm -f conftest.$ac_objext
28628 if { (ac_try="$ac_compile"
28629 case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28634 $as_echo "$ac_try_echo") >&5
28635 (eval "$ac_compile") 2>conftest.er1
28637 grep -v '^ *+' conftest.er1 >conftest.err
28639 cat conftest.err >&5
28640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } && {
28642 test -z "$ac_c_werror_flag" ||
28643 test ! -s conftest.err
28644 } && test -s conftest.$ac_objext; then
28645 cat >conftest.$ac_ext <<_ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28656 if (sizeof ((uint64)))
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28669 $as_echo "$ac_try_echo") >&5
28670 (eval "$ac_compile") 2>conftest.er1
28672 grep -v '^ *+' conftest.er1 >conftest.err
28674 cat conftest.err >&5
28675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } && {
28677 test -z "$ac_c_werror_flag" ||
28678 test ! -s conftest.err
28679 } && test -s conftest.$ac_objext; then
28682 $as_echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28685 ac_cv_type_uint64=yes
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28690 $as_echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28699 $as_echo "$ac_cv_type_uint64" >&6; }
28700 if test "x$ac_cv_type_uint64" = x""yes; then
28702 cat >>confdefs.h <<_ACEOF
28703 #define HAVE_UINT64 1
28710 # We also check for sig_atomic_t, which *should* be defined per ANSI
28711 # C, but is missing on some old platforms.
28712 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28713 $as_echo_n "checking for sig_atomic_t... " >&6; }
28714 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28715 $as_echo_n "(cached) " >&6
28717 ac_cv_type_sig_atomic_t=no
28718 cat >conftest.$ac_ext <<_ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h. */
28724 #include <signal.h>
28729 if (sizeof (sig_atomic_t))
28735 rm -f conftest.$ac_objext
28736 if { (ac_try="$ac_compile"
28737 case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28742 $as_echo "$ac_try_echo") >&5
28743 (eval "$ac_compile") 2>conftest.er1
28745 grep -v '^ *+' conftest.er1 >conftest.err
28747 cat conftest.err >&5
28748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } && {
28750 test -z "$ac_c_werror_flag" ||
28751 test ! -s conftest.err
28752 } && test -s conftest.$ac_objext; then
28753 cat >conftest.$ac_ext <<_ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <signal.h>
28764 if (sizeof ((sig_atomic_t)))
28770 rm -f conftest.$ac_objext
28771 if { (ac_try="$ac_compile"
28772 case "(($ac_try" in
28773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774 *) ac_try_echo=$ac_try;;
28776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28777 $as_echo "$ac_try_echo") >&5
28778 (eval "$ac_compile") 2>conftest.er1
28780 grep -v '^ *+' conftest.er1 >conftest.err
28782 cat conftest.err >&5
28783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); } && {
28785 test -z "$ac_c_werror_flag" ||
28786 test ! -s conftest.err
28787 } && test -s conftest.$ac_objext; then
28790 $as_echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 ac_cv_type_sig_atomic_t=yes
28796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28798 $as_echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28806 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28807 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28808 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28810 cat >>confdefs.h <<_ACEOF
28811 #define HAVE_SIG_ATOMIC_T 1
28819 if test "$PORTNAME" != "win32"
28821 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28822 $as_echo_n "checking for POSIX signal interface... " >&6; }
28823 if test "${pgac_cv_func_posix_signals+set}" = set; then
28824 $as_echo_n "(cached) " >&6
28826 cat >conftest.$ac_ext <<_ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28832 #include <signal.h>
28837 struct sigaction act, oact;
28838 sigemptyset(&act.sa_mask);
28839 act.sa_flags = SA_RESTART;
28840 sigaction(0, &act, &oact);
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28852 $as_echo "$ac_try_echo") >&5
28853 (eval "$ac_link") 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && {
28860 test -z "$ac_c_werror_flag" ||
28861 test ! -s conftest.err
28862 } && test -s conftest$ac_exeext && {
28863 test "$cross_compiling" = yes ||
28864 $as_test_x conftest$ac_exeext
28866 pgac_cv_func_posix_signals=yes
28868 $as_echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28871 pgac_cv_func_posix_signals=no
28874 rm -rf conftest.dSYM
28875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28876 conftest$ac_exeext conftest.$ac_ext
28878 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28879 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28880 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28882 cat >>confdefs.h <<\_ACEOF
28883 #define HAVE_POSIX_SIGNALS 1
28887 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28889 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28890 { { $as_echo "$as_me:$LINENO: error:
28891 Thread-safety requires POSIX signals, which are not supported by this
28892 operating system; use --disable-thread-safety to disable thread safety." >&5
28893 $as_echo "$as_me: error:
28894 Thread-safety requires POSIX signals, which are not supported by this
28895 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28896 { (exit 1); exit 1; }; }
28900 # SunOS doesn't handle negative byte comparisons properly with +/- return
28901 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28902 $as_echo_n "checking for working memcmp... " >&6; }
28903 if test "${ac_cv_func_memcmp_working+set}" = set; then
28904 $as_echo_n "(cached) " >&6
28906 if test "$cross_compiling" = yes; then
28907 ac_cv_func_memcmp_working=no
28909 cat >conftest.$ac_ext <<_ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28915 $ac_includes_default
28920 /* Some versions of memcmp are not 8-bit clean. */
28921 char c0 = '\100', c1 = '\200', c2 = '\201';
28922 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28925 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28926 or more and with at least one buffer not starting on a 4-byte boundary.
28927 William Lewis provided this test program. */
28932 for (i = 0; i < 4; i++)
28936 strcpy (a, "--------01111111");
28937 strcpy (b, "--------10000000");
28938 if (memcmp (a, b, 16) >= 0)
28948 rm -f conftest$ac_exeext
28949 if { (ac_try="$ac_link"
28950 case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28955 $as_echo "$ac_try_echo") >&5
28956 (eval "$ac_link") 2>&5
28958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28960 { (case "(($ac_try" in
28961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962 *) ac_try_echo=$ac_try;;
28964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28965 $as_echo "$ac_try_echo") >&5
28966 (eval "$ac_try") 2>&5
28968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_cv_func_memcmp_working=yes
28972 $as_echo "$as_me: program exited with status $ac_status" >&5
28973 $as_echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28976 ( exit $ac_status )
28977 ac_cv_func_memcmp_working=no
28979 rm -rf conftest.dSYM
28980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28986 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28987 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28988 *" memcmp.$ac_objext "* ) ;;
28989 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28996 # Select semaphore implementation type.
28997 if test "$PORTNAME" != "win32"; then
28998 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
29000 cat >>confdefs.h <<\_ACEOF
29001 #define USE_NAMED_POSIX_SEMAPHORES 1
29004 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29006 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
29008 cat >>confdefs.h <<\_ACEOF
29009 #define USE_UNNAMED_POSIX_SEMAPHORES 1
29012 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29015 cat >>confdefs.h <<\_ACEOF
29016 #define USE_SYSV_SEMAPHORES 1
29019 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
29024 cat >>confdefs.h <<\_ACEOF
29025 #define USE_WIN32_SEMAPHORES 1
29028 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
29032 # Select shared-memory implementation type.
29033 if test "$PORTNAME" != "win32"; then
29035 cat >>confdefs.h <<\_ACEOF
29036 #define USE_SYSV_SHARED_MEMORY 1
29039 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
29042 cat >>confdefs.h <<\_ACEOF
29043 #define USE_WIN32_SHARED_MEMORY 1
29046 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
29049 # Select latch implementation type.
29050 if test "$PORTNAME" != "win32"; then
29051 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
29053 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
29056 # If not set in template file, set bytes to use libc memset()
29057 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
29058 MEMSET_LOOP_LIMIT=1024
29061 cat >>confdefs.h <<_ACEOF
29062 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
29067 if test "$enable_nls" = yes ; then
29069 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
29070 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
29071 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29072 $as_echo_n "(cached) " >&6
29074 ac_func_search_save_LIBS=$LIBS
29075 cat >conftest.$ac_ext <<_ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29082 /* Override any GCC internal prototype to avoid an error.
29083 Use char because int might match the return type of a GCC
29084 builtin and then its argument prototype would still apply. */
29088 char bind_textdomain_codeset ();
29092 return bind_textdomain_codeset ();
29097 for ac_lib in '' intl; do
29098 if test -z "$ac_lib"; then
29099 ac_res="none required"
29102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29104 rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (ac_try="$ac_link"
29106 case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29111 $as_echo "$ac_try_echo") >&5
29112 (eval "$ac_link") 2>conftest.er1
29114 grep -v '^ *+' conftest.er1 >conftest.err
29116 cat conftest.err >&5
29117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } && {
29119 test -z "$ac_c_werror_flag" ||
29120 test ! -s conftest.err
29121 } && test -s conftest$ac_exeext && {
29122 test "$cross_compiling" = yes ||
29123 $as_test_x conftest$ac_exeext
29125 ac_cv_search_bind_textdomain_codeset=$ac_res
29127 $as_echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29133 rm -rf conftest.dSYM
29134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29136 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29140 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29143 ac_cv_search_bind_textdomain_codeset=no
29145 rm conftest.$ac_ext
29146 LIBS=$ac_func_search_save_LIBS
29148 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
29149 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
29150 ac_res=$ac_cv_search_bind_textdomain_codeset
29151 if test "$ac_res" != no; then
29152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29155 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
29156 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
29157 { (exit 1); exit 1; }; }
29160 if test "${ac_cv_header_libintl_h+set}" = set; then
29161 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29162 $as_echo_n "checking for libintl.h... " >&6; }
29163 if test "${ac_cv_header_libintl_h+set}" = set; then
29164 $as_echo_n "(cached) " >&6
29166 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29167 $as_echo "$ac_cv_header_libintl_h" >&6; }
29169 # Is the header compilable?
29170 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
29171 $as_echo_n "checking libintl.h usability... " >&6; }
29172 cat >conftest.$ac_ext <<_ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 $ac_includes_default
29179 #include <libintl.h>
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29188 $as_echo "$ac_try_echo") >&5
29189 (eval "$ac_compile") 2>conftest.er1
29191 grep -v '^ *+' conftest.er1 >conftest.err
29193 cat conftest.err >&5
29194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } && {
29196 test -z "$ac_c_werror_flag" ||
29197 test ! -s conftest.err
29198 } && test -s conftest.$ac_objext; then
29199 ac_header_compiler=yes
29201 $as_echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29204 ac_header_compiler=no
29207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29209 $as_echo "$ac_header_compiler" >&6; }
29211 # Is the header present?
29212 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29213 $as_echo_n "checking libintl.h presence... " >&6; }
29214 cat >conftest.$ac_ext <<_ACEOF
29217 cat confdefs.h >>conftest.$ac_ext
29218 cat >>conftest.$ac_ext <<_ACEOF
29219 /* end confdefs.h. */
29220 #include <libintl.h>
29222 if { (ac_try="$ac_cpp conftest.$ac_ext"
29223 case "(($ac_try" in
29224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225 *) ac_try_echo=$ac_try;;
29227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29228 $as_echo "$ac_try_echo") >&5
29229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } >/dev/null && {
29236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29237 test ! -s conftest.err
29239 ac_header_preproc=yes
29241 $as_echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29244 ac_header_preproc=no
29247 rm -f conftest.err conftest.$ac_ext
29248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29249 $as_echo "$ac_header_preproc" >&6; }
29251 # So? What about this header?
29252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29254 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29255 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29256 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29257 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29258 ac_header_preproc=yes
29261 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29262 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29263 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
29264 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
29265 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29266 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29267 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
29268 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29269 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29270 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29271 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29272 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29274 ## ---------------------------------------- ##
29275 ## Report this to pgsql-bugs@postgresql.org ##
29276 ## ---------------------------------------- ##
29278 ) | sed "s/^/$as_me: WARNING: /" >&2
29281 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29282 $as_echo_n "checking for libintl.h... " >&6; }
29283 if test "${ac_cv_header_libintl_h+set}" = set; then
29284 $as_echo_n "(cached) " >&6
29286 ac_cv_header_libintl_h=$ac_header_preproc
29288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29289 $as_echo "$ac_cv_header_libintl_h" >&6; }
29292 if test "x$ac_cv_header_libintl_h" = x""yes; then
29295 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29296 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29297 { (exit 1); exit 1; }; }
29301 for ac_prog in msgfmt
29303 # Extract the first word of "$ac_prog", so it can be a program name with args.
29304 set dummy $ac_prog; ac_word=$2
29305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29306 $as_echo_n "checking for $ac_word... " >&6; }
29307 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29308 $as_echo_n "(cached) " >&6
29310 if test -n "$MSGFMT"; then
29311 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29314 for as_dir in $PATH
29317 test -z "$as_dir" && as_dir=.
29318 for ac_exec_ext in '' $ac_executable_extensions; do
29319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29320 ac_cv_prog_MSGFMT="$ac_prog"
29321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29330 MSGFMT=$ac_cv_prog_MSGFMT
29331 if test -n "$MSGFMT"; then
29332 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29333 $as_echo "$MSGFMT" >&6; }
29335 { $as_echo "$as_me:$LINENO: result: no" >&5
29336 $as_echo "no" >&6; }
29340 test -n "$MSGFMT" && break
29343 if test -z "$MSGFMT"; then
29344 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29345 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29346 { (exit 1); exit 1; }; }
29348 { $as_echo "$as_me:$LINENO: checking for msgfmt flags" >&5
29349 $as_echo_n "checking for msgfmt flags... " >&6; }
29350 if test "${pgac_cv_msgfmt_flags+set}" = set; then
29351 $as_echo_n "(cached) " >&6
29353 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
29354 pgac_cv_msgfmt_flags=-c
29357 { $as_echo "$as_me:$LINENO: result: $pgac_cv_msgfmt_flags" >&5
29358 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
29359 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
29361 for ac_prog in msgmerge
29363 # Extract the first word of "$ac_prog", so it can be a program name with args.
29364 set dummy $ac_prog; ac_word=$2
29365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29366 $as_echo_n "checking for $ac_word... " >&6; }
29367 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29368 $as_echo_n "(cached) " >&6
29370 if test -n "$MSGMERGE"; then
29371 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29374 for as_dir in $PATH
29377 test -z "$as_dir" && as_dir=.
29378 for ac_exec_ext in '' $ac_executable_extensions; do
29379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29380 ac_cv_prog_MSGMERGE="$ac_prog"
29381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29390 MSGMERGE=$ac_cv_prog_MSGMERGE
29391 if test -n "$MSGMERGE"; then
29392 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29393 $as_echo "$MSGMERGE" >&6; }
29395 { $as_echo "$as_me:$LINENO: result: no" >&5
29396 $as_echo "no" >&6; }
29400 test -n "$MSGMERGE" && break
29403 for ac_prog in xgettext
29405 # Extract the first word of "$ac_prog", so it can be a program name with args.
29406 set dummy $ac_prog; ac_word=$2
29407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29408 $as_echo_n "checking for $ac_word... " >&6; }
29409 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29410 $as_echo_n "(cached) " >&6
29412 if test -n "$XGETTEXT"; then
29413 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29416 for as_dir in $PATH
29419 test -z "$as_dir" && as_dir=.
29420 for ac_exec_ext in '' $ac_executable_extensions; do
29421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29422 ac_cv_prog_XGETTEXT="$ac_prog"
29423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29432 XGETTEXT=$ac_cv_prog_XGETTEXT
29433 if test -n "$XGETTEXT"; then
29434 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29435 $as_echo "$XGETTEXT" >&6; }
29437 { $as_echo "$as_me:$LINENO: result: no" >&5
29438 $as_echo "no" >&6; }
29442 test -n "$XGETTEXT" && break
29448 # Check for Tcl configuration script tclConfig.sh
29449 if test "$with_tcl" = yes; then
29450 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29452 # Extract the first word of "$ac_prog", so it can be a program name with args.
29453 set dummy $ac_prog; ac_word=$2
29454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29455 $as_echo_n "checking for $ac_word... " >&6; }
29456 if test "${ac_cv_path_TCLSH+set}" = set; then
29457 $as_echo_n "(cached) " >&6
29461 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29465 for as_dir in $PATH
29468 test -z "$as_dir" && as_dir=.
29469 for ac_exec_ext in '' $ac_executable_extensions; do
29470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29471 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29482 TCLSH=$ac_cv_path_TCLSH
29483 if test -n "$TCLSH"; then
29484 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29485 $as_echo "$TCLSH" >&6; }
29487 { $as_echo "$as_me:$LINENO: result: no" >&5
29488 $as_echo "no" >&6; }
29492 test -n "$TCLSH" && break
29495 if test x"$TCLSH" = x""; then
29496 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29497 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29498 { (exit 1); exit 1; }; }
29501 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29502 $as_echo_n "checking for tclConfig.sh... " >&6; }
29503 # Let user override test
29504 if test -z "$TCL_CONFIG_SH"; then
29505 pgac_test_dirs="$with_tclconfig"
29507 set X $pgac_test_dirs; shift
29508 if test $# -eq 0; then
29509 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29510 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29511 { (exit 1); exit 1; }; }
29512 set X `echo 'puts $auto_path' | $TCLSH`; shift
29516 if test -r "$pgac_dir/tclConfig.sh"; then
29517 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29523 if test -z "$TCL_CONFIG_SH"; then
29524 { $as_echo "$as_me:$LINENO: result: no" >&5
29525 $as_echo "no" >&6; }
29526 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29527 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29528 { (exit 1); exit 1; }; }
29530 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29531 $as_echo "$TCL_CONFIG_SH" >&6; }
29537 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29538 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29539 eval TCL_LIBS=\"$TCL_LIBS\"
29540 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29541 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29543 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29544 ac_save_CPPFLAGS=$CPPFLAGS
29545 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29546 if test "${ac_cv_header_tcl_h+set}" = set; then
29547 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29548 $as_echo_n "checking for tcl.h... " >&6; }
29549 if test "${ac_cv_header_tcl_h+set}" = set; then
29550 $as_echo_n "(cached) " >&6
29552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29553 $as_echo "$ac_cv_header_tcl_h" >&6; }
29555 # Is the header compilable?
29556 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29557 $as_echo_n "checking tcl.h usability... " >&6; }
29558 cat >conftest.$ac_ext <<_ACEOF
29561 cat confdefs.h >>conftest.$ac_ext
29562 cat >>conftest.$ac_ext <<_ACEOF
29563 /* end confdefs.h. */
29564 $ac_includes_default
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29574 $as_echo "$ac_try_echo") >&5
29575 (eval "$ac_compile") 2>conftest.er1
29577 grep -v '^ *+' conftest.er1 >conftest.err
29579 cat conftest.err >&5
29580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } && {
29582 test -z "$ac_c_werror_flag" ||
29583 test ! -s conftest.err
29584 } && test -s conftest.$ac_objext; then
29585 ac_header_compiler=yes
29587 $as_echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29590 ac_header_compiler=no
29593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29594 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29595 $as_echo "$ac_header_compiler" >&6; }
29597 # Is the header present?
29598 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29599 $as_echo_n "checking tcl.h presence... " >&6; }
29600 cat >conftest.$ac_ext <<_ACEOF
29603 cat confdefs.h >>conftest.$ac_ext
29604 cat >>conftest.$ac_ext <<_ACEOF
29605 /* end confdefs.h. */
29608 if { (ac_try="$ac_cpp conftest.$ac_ext"
29609 case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29614 $as_echo "$ac_try_echo") >&5
29615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29617 grep -v '^ *+' conftest.er1 >conftest.err
29619 cat conftest.err >&5
29620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); } >/dev/null && {
29622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29623 test ! -s conftest.err
29625 ac_header_preproc=yes
29627 $as_echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29630 ac_header_preproc=no
29633 rm -f conftest.err conftest.$ac_ext
29634 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29635 $as_echo "$ac_header_preproc" >&6; }
29637 # So? What about this header?
29638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29640 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29641 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29642 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29643 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29644 ac_header_preproc=yes
29647 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29648 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29649 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29650 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29651 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29652 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29653 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29654 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29655 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29656 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29657 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29658 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29660 ## ---------------------------------------- ##
29661 ## Report this to pgsql-bugs@postgresql.org ##
29662 ## ---------------------------------------- ##
29664 ) | sed "s/^/$as_me: WARNING: /" >&2
29667 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29668 $as_echo_n "checking for tcl.h... " >&6; }
29669 if test "${ac_cv_header_tcl_h+set}" = set; then
29670 $as_echo_n "(cached) " >&6
29672 ac_cv_header_tcl_h=$ac_header_preproc
29674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29675 $as_echo "$ac_cv_header_tcl_h" >&6; }
29678 if test "x$ac_cv_header_tcl_h" = x""yes; then
29681 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29682 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29683 { (exit 1); exit 1; }; }
29687 CPPFLAGS=$ac_save_CPPFLAGS
29690 # check for <perl.h>
29691 if test "$with_perl" = yes; then
29692 ac_save_CPPFLAGS=$CPPFLAGS
29693 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29694 { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29695 $as_echo_n "checking for perl.h... " >&6; }
29696 if test "${ac_cv_header_perl_h+set}" = set; then
29697 $as_echo_n "(cached) " >&6
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705 #include <EXTERN.h>
29709 rm -f conftest.$ac_objext
29710 if { (ac_try="$ac_compile"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29716 $as_echo "$ac_try_echo") >&5
29717 (eval "$ac_compile") 2>conftest.er1
29719 grep -v '^ *+' conftest.er1 >conftest.err
29721 cat conftest.err >&5
29722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); } && {
29724 test -z "$ac_c_werror_flag" ||
29725 test ! -s conftest.err
29726 } && test -s conftest.$ac_objext; then
29727 ac_cv_header_perl_h=yes
29729 $as_echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ac_cv_header_perl_h=no
29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29738 $as_echo "$ac_cv_header_perl_h" >&6; }
29739 if test "x$ac_cv_header_perl_h" = x""yes; then
29742 { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29743 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29744 { (exit 1); exit 1; }; }
29748 # While we're at it, check that we can link to libperl.
29749 # On most platforms, if perl.h is there then libperl.so will be too, but at
29750 # this writing Debian packages them separately. There is no known reason to
29751 # waste cycles on separate probes for the Tcl or Python libraries, though.
29752 pgac_save_LIBS=$LIBS
29753 LIBS="$perl_embed_ldflags"
29754 { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29755 $as_echo_n "checking for libperl... " >&6; }
29756 cat >conftest.$ac_ext <<_ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29763 #include <EXTERN.h>
29774 rm -f conftest.$ac_objext conftest$ac_exeext
29775 if { (ac_try="$ac_link"
29776 case "(($ac_try" in
29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778 *) ac_try_echo=$ac_try;;
29780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29781 $as_echo "$ac_try_echo") >&5
29782 (eval "$ac_link") 2>conftest.er1
29784 grep -v '^ *+' conftest.er1 >conftest.err
29786 cat conftest.err >&5
29787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } && {
29789 test -z "$ac_c_werror_flag" ||
29790 test ! -s conftest.err
29791 } && test -s conftest$ac_exeext && {
29792 test "$cross_compiling" = yes ||
29793 $as_test_x conftest$ac_exeext
29795 { $as_echo "$as_me:$LINENO: result: yes" >&5
29796 $as_echo "yes" >&6; }
29798 $as_echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 { $as_echo "$as_me:$LINENO: result: no" >&5
29802 $as_echo "no" >&6; }
29803 { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29804 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29805 { (exit 1); exit 1; }; }
29808 rm -rf conftest.dSYM
29809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29810 conftest$ac_exeext conftest.$ac_ext
29811 LIBS=$pgac_save_LIBS
29812 CPPFLAGS=$ac_save_CPPFLAGS
29815 # check for <Python.h>
29816 if test "$with_python" = yes; then
29817 ac_save_CPPFLAGS=$CPPFLAGS
29818 CPPFLAGS="$python_includespec $CPPFLAGS"
29819 if test "${ac_cv_header_Python_h+set}" = set; then
29820 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29821 $as_echo_n "checking for Python.h... " >&6; }
29822 if test "${ac_cv_header_Python_h+set}" = set; then
29823 $as_echo_n "(cached) " >&6
29825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29826 $as_echo "$ac_cv_header_Python_h" >&6; }
29828 # Is the header compilable?
29829 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29830 $as_echo_n "checking Python.h usability... " >&6; }
29831 cat >conftest.$ac_ext <<_ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h. */
29837 $ac_includes_default
29838 #include <Python.h>
29840 rm -f conftest.$ac_objext
29841 if { (ac_try="$ac_compile"
29842 case "(($ac_try" in
29843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844 *) ac_try_echo=$ac_try;;
29846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29847 $as_echo "$ac_try_echo") >&5
29848 (eval "$ac_compile") 2>conftest.er1
29850 grep -v '^ *+' conftest.er1 >conftest.err
29852 cat conftest.err >&5
29853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } && {
29855 test -z "$ac_c_werror_flag" ||
29856 test ! -s conftest.err
29857 } && test -s conftest.$ac_objext; then
29858 ac_header_compiler=yes
29860 $as_echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 ac_header_compiler=no
29866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29868 $as_echo "$ac_header_compiler" >&6; }
29870 # Is the header present?
29871 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29872 $as_echo_n "checking Python.h presence... " >&6; }
29873 cat >conftest.$ac_ext <<_ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29879 #include <Python.h>
29881 if { (ac_try="$ac_cpp conftest.$ac_ext"
29882 case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29887 $as_echo "$ac_try_echo") >&5
29888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } >/dev/null && {
29895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29896 test ! -s conftest.err
29898 ac_header_preproc=yes
29900 $as_echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ac_header_preproc=no
29906 rm -f conftest.err conftest.$ac_ext
29907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29908 $as_echo "$ac_header_preproc" >&6; }
29910 # So? What about this header?
29911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29913 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29914 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29915 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29916 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29917 ac_header_preproc=yes
29920 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29921 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29922 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29923 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29924 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29925 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29926 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29927 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29928 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29929 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29930 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29931 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29933 ## ---------------------------------------- ##
29934 ## Report this to pgsql-bugs@postgresql.org ##
29935 ## ---------------------------------------- ##
29937 ) | sed "s/^/$as_me: WARNING: /" >&2
29940 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29941 $as_echo_n "checking for Python.h... " >&6; }
29942 if test "${ac_cv_header_Python_h+set}" = set; then
29943 $as_echo_n "(cached) " >&6
29945 ac_cv_header_Python_h=$ac_header_preproc
29947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29948 $as_echo "$ac_cv_header_Python_h" >&6; }
29951 if test "x$ac_cv_header_Python_h" = x""yes; then
29954 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29955 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29956 { (exit 1); exit 1; }; }
29960 CPPFLAGS=$ac_save_CPPFLAGS
29964 # Check for DocBook and tools
29966 for ac_prog in onsgmls nsgmls
29968 # Extract the first word of "$ac_prog", so it can be a program name with args.
29969 set dummy $ac_prog; ac_word=$2
29970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29971 $as_echo_n "checking for $ac_word... " >&6; }
29972 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29973 $as_echo_n "(cached) " >&6
29975 if test -n "$NSGMLS"; then
29976 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29979 for as_dir in $PATH
29982 test -z "$as_dir" && as_dir=.
29983 for ac_exec_ext in '' $ac_executable_extensions; do
29984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29985 ac_cv_prog_NSGMLS="$ac_prog"
29986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29995 NSGMLS=$ac_cv_prog_NSGMLS
29996 if test -n "$NSGMLS"; then
29997 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29998 $as_echo "$NSGMLS" >&6; }
30000 { $as_echo "$as_me:$LINENO: result: no" >&5
30001 $as_echo "no" >&6; }
30005 test -n "$NSGMLS" && break
30008 for ac_prog in openjade jade
30010 # Extract the first word of "$ac_prog", so it can be a program name with args.
30011 set dummy $ac_prog; ac_word=$2
30012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30013 $as_echo_n "checking for $ac_word... " >&6; }
30014 if test "${ac_cv_prog_JADE+set}" = set; then
30015 $as_echo_n "(cached) " >&6
30017 if test -n "$JADE"; then
30018 ac_cv_prog_JADE="$JADE" # Let the user override the test.
30020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30021 for as_dir in $PATH
30024 test -z "$as_dir" && as_dir=.
30025 for ac_exec_ext in '' $ac_executable_extensions; do
30026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30027 ac_cv_prog_JADE="$ac_prog"
30028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30037 JADE=$ac_cv_prog_JADE
30038 if test -n "$JADE"; then
30039 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
30040 $as_echo "$JADE" >&6; }
30042 { $as_echo "$as_me:$LINENO: result: no" >&5
30043 $as_echo "no" >&6; }
30047 test -n "$JADE" && break
30051 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
30052 $as_echo_n "checking for DocBook V4.2... " >&6; }
30053 if test "${pgac_cv_check_docbook+set}" = set; then
30054 $as_echo_n "(cached) " >&6
30056 cat >conftest.sgml <<EOF
30057 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
30059 <title>test</title>
30061 <title>random</title>
30063 <title>testsect</title>
30070 pgac_cv_check_docbook=no
30072 if test -n "$NSGMLS"; then
30073 $NSGMLS -s conftest.sgml 1>&5 2>&1
30074 if test $? -eq 0; then
30075 pgac_cv_check_docbook=yes
30078 rm -f conftest.sgml
30080 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
30081 $as_echo "$pgac_cv_check_docbook" >&6; }
30083 have_docbook=$pgac_cv_check_docbook
30086 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
30087 $as_echo_n "checking for DocBook stylesheets... " >&6; }
30088 if test "${pgac_cv_path_stylesheets+set}" = set; then
30089 $as_echo_n "(cached) " >&6
30091 if test -n "$DOCBOOKSTYLE"; then
30092 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
30094 for pgac_prefix in /usr /usr/local /opt /sw; do
30095 for pgac_infix in share lib; do
30096 for pgac_postfix in \
30097 sgml/stylesheets/nwalsh-modular \
30098 sgml/stylesheets/docbook \
30099 sgml/stylesheets/dsssl/docbook \
30100 sgml/docbook-dsssl \
30101 sgml/docbook/dsssl/modular \
30102 sgml/docbook/stylesheet/dsssl/modular \
30103 sgml/docbook/dsssl-stylesheets \
30104 sgml/dsssl/docbook-dsssl-nwalsh
30106 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
30107 if test -r "$pgac_candidate/html/docbook.dsl" \
30108 && test -r "$pgac_candidate/print/docbook.dsl"
30110 pgac_cv_path_stylesheets=$pgac_candidate
30119 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
30121 if test -n "$DOCBOOKSTYLE"; then
30122 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
30123 $as_echo "$DOCBOOKSTYLE" >&6; }
30125 { $as_echo "$as_me:$LINENO: result: no" >&5
30126 $as_echo "no" >&6; }
30128 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
30129 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
30132 # Extract the first word of "collateindex.pl", so it can be a program name with args.
30133 set dummy collateindex.pl; ac_word=$2
30134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30135 $as_echo_n "checking for $ac_word... " >&6; }
30136 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
30137 $as_echo_n "(cached) " >&6
30139 case $COLLATEINDEX in
30141 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
30144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30145 for as_dir in $PATH
30148 test -z "$as_dir" && as_dir=.
30149 for ac_exec_ext in '' $ac_executable_extensions; do
30150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30151 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
30152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30162 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
30163 if test -n "$COLLATEINDEX"; then
30164 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
30165 $as_echo "$COLLATEINDEX" >&6; }
30167 { $as_echo "$as_me:$LINENO: result: no" >&5
30168 $as_echo "no" >&6; }
30173 for ac_prog in xsltproc
30175 # Extract the first word of "$ac_prog", so it can be a program name with args.
30176 set dummy $ac_prog; ac_word=$2
30177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30178 $as_echo_n "checking for $ac_word... " >&6; }
30179 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
30180 $as_echo_n "(cached) " >&6
30182 if test -n "$XSLTPROC"; then
30183 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
30185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30186 for as_dir in $PATH
30189 test -z "$as_dir" && as_dir=.
30190 for ac_exec_ext in '' $ac_executable_extensions; do
30191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30192 ac_cv_prog_XSLTPROC="$ac_prog"
30193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30202 XSLTPROC=$ac_cv_prog_XSLTPROC
30203 if test -n "$XSLTPROC"; then
30204 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30205 $as_echo "$XSLTPROC" >&6; }
30207 { $as_echo "$as_me:$LINENO: result: no" >&5
30208 $as_echo "no" >&6; }
30212 test -n "$XSLTPROC" && break
30215 for ac_prog in osx sgml2xml sx
30217 # Extract the first word of "$ac_prog", so it can be a program name with args.
30218 set dummy $ac_prog; ac_word=$2
30219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30220 $as_echo_n "checking for $ac_word... " >&6; }
30221 if test "${ac_cv_prog_OSX+set}" = set; then
30222 $as_echo_n "(cached) " >&6
30224 if test -n "$OSX"; then
30225 ac_cv_prog_OSX="$OSX" # Let the user override the test.
30227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30228 for as_dir in $PATH
30231 test -z "$as_dir" && as_dir=.
30232 for ac_exec_ext in '' $ac_executable_extensions; do
30233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30234 ac_cv_prog_OSX="$ac_prog"
30235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30244 OSX=$ac_cv_prog_OSX
30245 if test -n "$OSX"; then
30246 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30247 $as_echo "$OSX" >&6; }
30249 { $as_echo "$as_me:$LINENO: result: no" >&5
30250 $as_echo "no" >&6; }
30254 test -n "$OSX" && break
30260 # We have to run the thread test near the end so we have all our symbols
30261 # defined. Cross compiling throws a warning.
30263 if test "$enable_thread_safety" = yes; then
30264 if test "$PORTNAME" != "win32"
30266 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30267 $as_echo_n "checking thread safety of required library functions... " >&6; }
30271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30272 LIBS="$LIBS $PTHREAD_LIBS"
30273 if test "$cross_compiling" = yes; then
30274 { $as_echo "$as_me:$LINENO: result: maybe" >&5
30275 $as_echo "maybe" >&6; }
30276 { $as_echo "$as_me:$LINENO: WARNING:
30277 *** Skipping thread test program because of cross-compile build.
30278 *** Run the program in src/test/thread on the target machine.
30280 $as_echo "$as_me: WARNING:
30281 *** Skipping thread test program because of cross-compile build.
30282 *** Run the program in src/test/thread on the target machine.
30285 cat >conftest.$ac_ext <<_ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30291 #include "$srcdir/src/test/thread/thread_test.c"
30293 rm -f conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30300 $as_echo "$ac_try_echo") >&5
30301 (eval "$ac_link") 2>&5
30303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30305 { (case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30310 $as_echo "$ac_try_echo") >&5
30311 (eval "$ac_try") 2>&5
30313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 { $as_echo "$as_me:$LINENO: result: yes" >&5
30316 $as_echo "yes" >&6; }
30318 $as_echo "$as_me: program exited with status $ac_status" >&5
30319 $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30322 ( exit $ac_status )
30323 { $as_echo "$as_me:$LINENO: result: no" >&5
30324 $as_echo "no" >&6; }
30325 { { $as_echo "$as_me:$LINENO: error: thread test program failed
30326 This platform is not thread-safe. Check the file 'config.log' or compile
30327 and run src/test/thread/thread_test for the exact reason.
30328 Use --disable-thread-safety to disable thread safety." >&5
30329 $as_echo "$as_me: error: thread test program failed
30330 This platform is not thread-safe. Check the file 'config.log' or compile
30331 and run src/test/thread/thread_test for the exact reason.
30332 Use --disable-thread-safety to disable thread safety." >&2;}
30333 { (exit 1); exit 1; }; }
30335 rm -rf conftest.dSYM
30336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30343 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30344 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30348 # If compiler will take -Wl,--as-needed (or various platform-specific
30349 # spellings thereof) then add that to LDFLAGS. This is much easier than
30350 # trying to filter LIBS to the minimum for each executable.
30351 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30352 # libreadline; therefore we postpone testing it until we know what library
30353 # dependencies readline has. The test code will try to link with $LIBS.
30354 if test "$with_readline" = yes; then
30355 link_test_func=readline
30357 link_test_func=exit
30360 if test "$PORTNAME" = "darwin"; then
30361 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30362 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30363 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30364 $as_echo_n "(cached) " >&6
30366 pgac_save_LDFLAGS=$LDFLAGS
30367 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30368 if test "$cross_compiling" = yes; then
30369 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30371 cat >conftest.$ac_ext <<_ACEOF
30374 cat confdefs.h >>conftest.$ac_ext
30375 cat >>conftest.$ac_ext <<_ACEOF
30376 /* end confdefs.h. */
30377 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30386 rm -f conftest$ac_exeext
30387 if { (ac_try="$ac_link"
30388 case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30393 $as_echo "$ac_try_echo") >&5
30394 (eval "$ac_link") 2>&5
30396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30398 { (case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30403 $as_echo "$ac_try_echo") >&5
30404 (eval "$ac_try") 2>&5
30406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); }; }; then
30408 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30410 $as_echo "$as_me: program exited with status $ac_status" >&5
30411 $as_echo "$as_me: failed program was:" >&5
30412 sed 's/^/| /' conftest.$ac_ext >&5
30414 ( exit $ac_status )
30415 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30417 rm -rf conftest.dSYM
30418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30422 LDFLAGS="$pgac_save_LDFLAGS"
30424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30425 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30426 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30427 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30430 elif test "$PORTNAME" = "openbsd"; then
30431 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30432 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30433 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30434 $as_echo_n "(cached) " >&6
30436 pgac_save_LDFLAGS=$LDFLAGS
30437 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30438 if test "$cross_compiling" = yes; then
30439 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30441 cat >conftest.$ac_ext <<_ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h. */
30447 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30456 rm -f conftest$ac_exeext
30457 if { (ac_try="$ac_link"
30458 case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30463 $as_echo "$ac_try_echo") >&5
30464 (eval "$ac_link") 2>&5
30466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30468 { (case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30473 $as_echo "$ac_try_echo") >&5
30474 (eval "$ac_try") 2>&5
30476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; }; then
30478 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30480 $as_echo "$as_me: program exited with status $ac_status" >&5
30481 $as_echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30484 ( exit $ac_status )
30485 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30487 rm -rf conftest.dSYM
30488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30492 LDFLAGS="$pgac_save_LDFLAGS"
30494 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30495 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30496 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30497 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30501 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30502 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30503 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30504 $as_echo_n "(cached) " >&6
30506 pgac_save_LDFLAGS=$LDFLAGS
30507 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30508 if test "$cross_compiling" = yes; then
30509 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30511 cat >conftest.$ac_ext <<_ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h. */
30517 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30526 rm -f conftest$ac_exeext
30527 if { (ac_try="$ac_link"
30528 case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30533 $as_echo "$ac_try_echo") >&5
30534 (eval "$ac_link") 2>&5
30536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30543 $as_echo "$ac_try_echo") >&5
30544 (eval "$ac_try") 2>&5
30546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30550 $as_echo "$as_me: program exited with status $ac_status" >&5
30551 $as_echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30554 ( exit $ac_status )
30555 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30557 rm -rf conftest.dSYM
30558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30562 LDFLAGS="$pgac_save_LDFLAGS"
30564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30565 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30566 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30567 LDFLAGS="$LDFLAGS -Wl,--as-needed"
30572 # Create compiler version string
30573 if test x"$GCC" = x"yes" ; then
30574 cc_string=`${CC} --version | sed q`
30575 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30576 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30577 cc_string=`${CC} -V 2>&1 | sed q`
30583 cat >>confdefs.h <<_ACEOF
30584 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30588 # Supply a numeric version string for use by 3rd party add-ons
30589 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30590 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30592 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30594 cat >>confdefs.h <<_ACEOF
30595 #define PG_VERSION_NUM $PG_VERSION_NUM
30600 # Begin output steps
30602 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30603 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30604 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30605 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30606 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30607 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30608 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30609 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30611 # prepare build tree if outside source tree
30612 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30613 # Note 2: /bin/pwd might be better than shell's built-in at getting
30614 # a symlink-free name.
30615 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30619 if test "$no_create" != yes; then
30620 $as_echo_n "preparing build tree... " >&6
30621 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30622 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30623 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30624 $as_echo "$as_me: error: failed" >&2;}
30625 { (exit 1); exit 1; }; }
30626 { $as_echo "$as_me:$LINENO: result: done" >&5
30627 $as_echo "done" >&6; }
30633 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30636 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}"
30639 if test "$PORTNAME" = "win32"; then
30640 ac_config_commands="$ac_config_commands check_win32_symlinks"
30644 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30647 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30650 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30653 cat >confcache <<\_ACEOF
30654 # This file is a shell script that caches the results of configure
30655 # tests run on this system so they can be shared between configure
30656 # scripts and configure runs, see configure's option --config-cache.
30657 # It is not useful on other systems. If it contains results you don't
30658 # want to keep, you may remove or edit it.
30660 # config.status only pays attention to the cache file if you give it
30661 # the --recheck option to rerun configure.
30663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30665 # following values.
30669 # The following way of writing the cache mishandles newlines in values,
30670 # but we know of no workaround that is simple, portable, and efficient.
30671 # So, we kill variables containing newlines.
30672 # Ultrix sh set writes to stderr and can't be redirected directly,
30673 # and sets the high bit in the cache file unless we assign to the vars.
30675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30676 eval ac_val=\$$ac_var
30680 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30684 _ | IFS | as_nl) ;; #(
30685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30686 *) $as_unset $ac_var ;;
30692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30693 *${as_nl}ac_space=\ *)
30694 # `set' does not quote correctly, so add quotes (double-quote
30695 # substitution turns \\\\ into \\, and sed turns \\ into \).
30698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30701 # `set' quotes correctly as required by POSIX, so do not add quotes.
30702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30716 if test -w "$cache_file"; then
30717 test "x$cache_file" != "x/dev/null" &&
30718 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30719 $as_echo "$as_me: updating cache $cache_file" >&6;}
30720 cat confcache >$cache_file
30722 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30729 # Let make expand exec_prefix.
30730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30732 DEFS=-DHAVE_CONFIG_H
30736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30737 # 1. Remove the extension, and $U if already installed.
30738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30741 # will be set to the directory where LIBOBJS objects are built.
30742 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30743 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30745 LIBOBJS=$ac_libobjs
30747 LTLIBOBJS=$ac_ltlibobjs
30752 : ${CONFIG_STATUS=./config.status}
30754 ac_clean_files_save=$ac_clean_files
30755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30756 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30757 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30758 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30760 # Generated by $as_me.
30761 # Run this file to recreate the current configuration.
30762 # Compiler output produced by configure, useful for debugging
30763 # configure, is in config.log if it exists.
30766 ac_cs_recheck=false
30768 SHELL=\${CONFIG_SHELL-$SHELL}
30771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30772 ## --------------------- ##
30773 ## M4sh Initialization. ##
30774 ## --------------------- ##
30776 # Be more Bourne compatible
30777 DUALCASE=1; export DUALCASE # for MKS sh
30778 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30781 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30782 # is contrary to our usage. Disable this feature.
30783 alias -g '${1+"$@"}'='"$@"'
30784 setopt NO_GLOB_SUBST
30786 case `(set -o) 2>/dev/null` in
30787 *posix*) set -o posix ;;
30796 # Avoid depending upon Character Ranges.
30797 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30798 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30799 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30800 as_cr_digits='0123456789'
30801 as_cr_alnum=$as_cr_Letters$as_cr_digits
30806 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30807 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30810 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30811 as_echo='printf %s\n'
30812 as_echo_n='printf %s'
30814 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30815 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30816 as_echo_n='/usr/ucb/echo -n'
30818 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30819 as_echo_n_body='eval
30823 expr "X$arg" : "X\\(.*\\)$as_nl";
30824 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30826 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30828 export as_echo_n_body
30829 as_echo_n='sh -c $as_echo_n_body as_echo'
30831 export as_echo_body
30832 as_echo='sh -c $as_echo_body as_echo'
30835 # The user is always right.
30836 if test "${PATH_SEPARATOR+set}" != set; then
30838 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30839 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30844 # Support unset when possible.
30845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30853 # We need space, tab and new line, in precisely that order. Quoting is
30854 # there to prevent editors from complaining about space-tab.
30855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30856 # splitting by setting IFS to empty value.)
30859 # Find who we are. Look in the path if we contain no directory separator.
30861 *[\\/]* ) as_myself=$0 ;;
30862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30863 for as_dir in $PATH
30866 test -z "$as_dir" && as_dir=.
30867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30873 # We did not find ourselves, most probably we were run as `sh COMMAND'
30874 # in which case we are not to be found in the path.
30875 if test "x$as_myself" = x; then
30878 if test ! -f "$as_myself"; then
30879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30880 { (exit 1); exit 1; }
30883 # Work around bugs in pre-3.0 UWIN ksh.
30884 for as_var in ENV MAIL MAILPATH
30885 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30897 # Required to use basename.
30898 if expr a : '\(a\)' >/dev/null 2>&1 &&
30899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30906 as_basename=basename
30912 # Name of the executable.
30913 as_me=`$as_basename -- "$0" ||
30914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30915 X"$0" : 'X\(//\)$' \| \
30916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30918 sed '/^.*\/\([^/][^/]*\)\/*$/{
30937 as_lineno_1=$LINENO
30938 as_lineno_2=$LINENO
30939 test "x$as_lineno_1" != "x$as_lineno_2" &&
30940 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30943 # uniformly replaced by the line number. The first 'sed' inserts a
30944 # line-number line after each line using $LINENO; the second 'sed'
30945 # does the real work. The second script uses 'N' to pair each
30946 # line-number line with the line containing $LINENO, and appends
30947 # trailing '-' during substitution so that $LINENO is not a special
30948 # case at line end.
30949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30950 # scripts with optimization help from Paolo Bonzini. Blame Lee
30951 # E. McMahon (1931-1989) for sed's syntax. :-)
30963 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30966 ' >$as_me.lineno &&
30967 chmod +x "$as_me.lineno" ||
30968 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30969 { (exit 1); exit 1; }; }
30971 # Don't try to exec as it changes $[0], causing all sort of problems
30972 # (the dirname of $[0] is not the place where we might find the
30973 # original and so on. Autoconf is especially sensitive to this).
30974 . "./$as_me.lineno"
30975 # Exit status is that of the last command.
30980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30986 ECHO_C= ECHO_N= ECHO_T=
30987 case `echo -n x` in
30989 case `echo 'x\c'` in
30990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30996 if expr a : '\(a\)' >/dev/null 2>&1 &&
30997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31003 rm -f conf$$ conf$$.exe conf$$.file
31004 if test -d conf$$.dir; then
31005 rm -f conf$$.dir/conf$$.file
31008 mkdir conf$$.dir 2>/dev/null
31010 if (echo >conf$$.file) 2>/dev/null; then
31011 if ln -s conf$$.file conf$$ 2>/dev/null; then
31013 # ... but there are two gotchas:
31014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31016 # In both cases, we have to default to `cp -p'.
31017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31019 elif ln conf$$.file conf$$ 2>/dev/null; then
31027 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31028 rmdir conf$$.dir 2>/dev/null
31030 if mkdir -p . 2>/dev/null; then
31033 test -d ./-p && rmdir ./-p
31037 if test -x / >/dev/null 2>&1; then
31038 as_test_x='test -x'
31040 if ls -dL / >/dev/null 2>&1; then
31047 if test -d "$1"; then
31053 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31054 ???[sx]*):;;*)false;;esac;fi
31058 as_executable_p=$as_test_x
31060 # Sed expression to map a string onto a valid CPP name.
31061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31063 # Sed expression to map a string onto a valid variable name.
31064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31069 # Save the log message, to keep $[0] and so on meaningful, and to
31070 # report actual input values of CONFIG_FILES etc. instead of their
31071 # values after options handling.
31073 This file was extended by PostgreSQL $as_me 9.4devel, which was
31074 generated by GNU Autoconf 2.63. Invocation command line was
31076 CONFIG_FILES = $CONFIG_FILES
31077 CONFIG_HEADERS = $CONFIG_HEADERS
31078 CONFIG_LINKS = $CONFIG_LINKS
31079 CONFIG_COMMANDS = $CONFIG_COMMANDS
31082 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31087 case $ac_config_files in *"
31088 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31091 case $ac_config_headers in *"
31092 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31097 # Files that config.status was made for.
31098 config_files="$ac_config_files"
31099 config_headers="$ac_config_headers"
31100 config_links="$ac_config_links"
31101 config_commands="$ac_config_commands"
31105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31107 \`$as_me' instantiates files from templates according to the
31108 current configuration.
31110 Usage: $0 [OPTION]... [FILE]...
31112 -h, --help print this help, then exit
31113 -V, --version print version number and configuration settings, then exit
31114 -q, --quiet, --silent
31115 do not print progress messages
31116 -d, --debug don't remove temporary files
31117 --recheck update $as_me by reconfiguring in the same conditions
31118 --file=FILE[:TEMPLATE]
31119 instantiate the configuration file FILE
31120 --header=FILE[:TEMPLATE]
31121 instantiate the configuration header FILE
31123 Configuration files:
31126 Configuration headers:
31129 Configuration links:
31132 Configuration commands:
31135 Report bugs to <bug-autoconf@gnu.org>."
31138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31140 PostgreSQL config.status 9.4devel
31141 configured by $0, generated by GNU Autoconf 2.63,
31142 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31144 Copyright (C) 2008 Free Software Foundation, Inc.
31145 This config.status script is free software; the Free Software Foundation
31146 gives unlimited permission to copy, distribute and modify it."
31153 test -n "\$AWK" || AWK=awk
31156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31157 # The default lists apply if the user does not specify any file.
31163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31175 # Handling of the options.
31176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31179 $as_echo "$ac_cs_version"; exit ;;
31180 --debug | --debu | --deb | --de | --d | -d )
31182 --file | --fil | --fi | --f )
31185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31187 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31188 ac_need_defaults=false;;
31189 --header | --heade | --head | --hea )
31192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31194 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31195 ac_need_defaults=false;;
31197 # Conflict between --help and --header
31198 { $as_echo "$as_me: error: ambiguous option: $1
31199 Try \`$0 --help' for more information." >&2
31200 { (exit 1); exit 1; }; };;
31201 --help | --hel | -h )
31202 $as_echo "$ac_cs_usage"; exit ;;
31203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31207 # This is an error.
31208 -*) { $as_echo "$as_me: error: unrecognized option: $1
31209 Try \`$0 --help' for more information." >&2
31210 { (exit 1); exit 1; }; } ;;
31212 *) ac_config_targets="$ac_config_targets $1"
31213 ac_need_defaults=false ;;
31219 ac_configure_extra_args=
31221 if $ac_cs_silent; then
31223 ac_configure_extra_args="$ac_configure_extra_args --silent"
31227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31228 if \$ac_cs_recheck; then
31229 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31232 CONFIG_SHELL='$SHELL'
31233 export CONFIG_SHELL
31238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31243 ## Running $as_me. ##
31249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31254 # Handling of arguments.
31255 for ac_config_target in $ac_config_targets
31257 case $ac_config_target in
31258 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31259 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31260 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31261 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31262 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31263 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31264 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31265 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31266 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31267 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31268 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31269 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31270 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31271 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31273 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31274 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31275 { (exit 1); exit 1; }; };;
31280 # If the user did not use the arguments to specify the items to instantiate,
31281 # then the envvar interface is used. Set only those that are not.
31282 # We use the long form for the default assignment because of an extremely
31283 # bizarre bug on SunOS 4.1.3.
31284 if $ac_need_defaults; then
31285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31287 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31288 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31291 # Have a temporary directory for convenience. Make it in the build tree
31292 # simply because there is no reason against having it here, and in addition,
31293 # creating and moving files from /tmp can sometimes cause problems.
31294 # Hook for its removal unless debugging.
31295 # Note that there is a small window in which the directory will not be cleaned:
31296 # after its creation but before its name has been assigned to `$tmp'.
31300 trap 'exit_status=$?
31301 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31303 trap '{ (exit 1); exit 1; }' 1 2 13 15
31305 # Create a (secure) tmp directory for tmp files.
31308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31309 test -n "$tmp" && test -d "$tmp"
31312 tmp=./conf$$-$RANDOM
31313 (umask 077 && mkdir "$tmp")
31316 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31317 { (exit 1); exit 1; }
31320 # Set up the scripts for CONFIG_FILES section.
31321 # No need to generate them if there are no CONFIG_FILES.
31322 # This happens for instance with `./config.status config.h'.
31323 if test -n "$CONFIG_FILES"; then
31327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31331 ac_cs_awk_cr=$ac_cr
31334 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31339 echo "cat >conf$$subs.awk <<_ACEOF" &&
31340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31342 } >conf$$subs.sh ||
31343 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31344 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31345 { (exit 1); exit 1; }; }
31346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31348 for ac_last_try in false false false false false :; do
31349 . ./conf$$subs.sh ||
31350 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31351 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31352 { (exit 1); exit 1; }; }
31354 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31355 if test $ac_delim_n = $ac_delim_num; then
31357 elif $ac_last_try; then
31358 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31359 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31360 { (exit 1); exit 1; }; }
31362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31365 rm -f conf$$subs.sh
31367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31372 s/^/S["/; s/!.*/"]=/
31382 s/\(.\{148\}\).*/\1/
31384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31396 s/\(.\{148\}\).*/\1/
31398 s/["\\]/\\&/g; s/^/"/; s/$/"/
31402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31407 ' <conf$$subs.awk | sed '
31412 ' >>$CONFIG_STATUS || ac_write_fail=1
31413 rm -f conf$$subs.awk
31414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31417 for (key in S) S_is_set[key] = 1
31423 nfields = split(line, field, "@")
31425 len = length(field[1])
31426 for (i = 2; i < nfields; i++) {
31428 keylen = length(key)
31429 if (S_is_set[key]) {
31431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31432 len += length(value) + length(field[++i])
31443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31449 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31450 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31451 { (exit 1); exit 1; }; }
31454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31456 # trailing colons and then remove the whole line if VPATH becomes empty
31457 # (actually we leave an empty line to preserve line numbers).
31458 if test "x$srcdir" = x.; then
31459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31460 s/:*\$(srcdir):*/:/
31461 s/:*\${srcdir}:*/:/
31463 s/^\([^=]*=[ ]*\):*/\1/
31469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31470 fi # test -n "$CONFIG_FILES"
31472 # Set up the scripts for CONFIG_HEADERS section.
31473 # No need to generate them if there are no CONFIG_HEADERS.
31474 # This happens for instance with `./config.status Makefile'.
31475 if test -n "$CONFIG_HEADERS"; then
31476 cat >"$tmp/defines.awk" <<\_ACAWK ||
31480 # Transform confdefs.h into an awk script `defines.awk', embedded as
31481 # here-document in config.status, that substitutes the proper values into
31482 # config.h.in to produce config.h.
31484 # Create a delimiter string that does not exist in confdefs.h, to ease
31485 # handling of long lines.
31487 for ac_last_try in false false :; do
31488 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31489 if test -z "$ac_t"; then
31491 elif $ac_last_try; then
31492 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31493 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31494 { (exit 1); exit 1; }; }
31496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31500 # For the awk script, D is an array of macro values keyed by name,
31501 # likewise P contains macro parameters if any. Preserve backslash
31502 # newline sequences.
31504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31506 s/.\{148\}/&'"$ac_delim"'/g
31509 s/^[ ]*#[ ]*define[ ][ ]*/ /
31516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31523 D["\1"]=" \3\\\\\\n"\\/p
31525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31530 s/.\{148\}/&'"$ac_delim"'/g
31535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31540 ' <confdefs.h | sed '
31541 s/'"$ac_delim"'/"\\\
31542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31545 for (key in D) D_is_set[key] = 1
31548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31550 split(line, arg, " ")
31551 if (arg[1] == "#") {
31555 defundef = substr(arg[1], 2)
31558 split(mac1, mac2, "(") #)
31560 prefix = substr(line, 1, index(line, defundef) - 1)
31561 if (D_is_set[macro]) {
31562 # Preserve the white space surrounding the "#".
31563 print prefix "define", macro P[macro] D[macro]
31566 # Replace #undef with comments. This is necessary, for example,
31567 # in the case of _POSIX_SOURCE, which is predefined and required
31568 # on some systems where configure will not decide to define it.
31569 if (defundef == "undef") {
31570 print "/*", prefix defundef, macro, "*/"
31578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31579 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31580 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31581 { (exit 1); exit 1; }; }
31582 fi # test -n "$CONFIG_HEADERS"
31585 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31590 :[FHLC]) ac_mode=$ac_tag; continue;;
31592 case $ac_mode$ac_tag in
31594 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31595 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31596 { (exit 1); exit 1; }; };;
31597 :[FH]-) ac_tag=-:-;;
31598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31615 -) ac_f="$tmp/stdin";;
31616 *) # Look for the file first in the build tree, then in the source tree
31617 # (if the path is not absolute). The absolute path cannot be DOS-style,
31618 # because $ac_f cannot contain `:'.
31622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31624 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31625 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31626 { (exit 1); exit 1; }; };;
31628 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31629 ac_file_inputs="$ac_file_inputs '$ac_f'"
31632 # Let's still pretend it is `configure' which instantiates (i.e., don't
31633 # use $as_me), people would be surprised to read:
31634 # /* config.h. Generated by config.status. */
31635 configure_input='Generated from '`
31636 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31638 if test x"$ac_file" != x-; then
31639 configure_input="$ac_file. $configure_input"
31640 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31641 $as_echo "$as_me: creating $ac_file" >&6;}
31643 # Neutralize special characters interpreted by sed in replacement strings.
31644 case $configure_input in #(
31645 *\&* | *\|* | *\\* )
31646 ac_sed_conf_input=`$as_echo "$configure_input" |
31647 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31648 *) ac_sed_conf_input=$configure_input;;
31652 *:-:* | *:-) cat >"$tmp/stdin" \
31653 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31655 { (exit 1); exit 1; }; } ;;
31660 ac_dir=`$as_dirname -- "$ac_file" ||
31661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31662 X"$ac_file" : 'X\(//\)[^/]' \| \
31663 X"$ac_file" : 'X\(//\)$' \| \
31664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31665 $as_echo X"$ac_file" |
31666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31670 /^X\(\/\/\)[^/].*/{
31685 -*) as_dir=./$as_dir;;
31687 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31692 *) as_qdir=$as_dir;;
31694 as_dirs="'$as_qdir' $as_dirs"
31695 as_dir=`$as_dirname -- "$as_dir" ||
31696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31697 X"$as_dir" : 'X\(//\)[^/]' \| \
31698 X"$as_dir" : 'X\(//\)$' \| \
31699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31700 $as_echo X"$as_dir" |
31701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31705 /^X\(\/\/\)[^/].*/{
31718 test -d "$as_dir" && break
31720 test -z "$as_dirs" || eval "mkdir $as_dirs"
31721 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31722 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31723 { (exit 1); exit 1; }; }; }
31727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31730 # A ".." for each directory in $ac_dir_suffix.
31731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31732 case $ac_top_builddir_sub in
31733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31737 ac_abs_top_builddir=$ac_pwd
31738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31739 # for backward compatibility:
31740 ac_top_builddir=$ac_top_build_prefix
31743 .) # We are building in place.
31745 ac_top_srcdir=$ac_top_builddir_sub
31746 ac_abs_top_srcdir=$ac_pwd ;;
31747 [\\/]* | ?:[\\/]* ) # Absolute name.
31748 ac_srcdir=$srcdir$ac_dir_suffix;
31749 ac_top_srcdir=$srcdir
31750 ac_abs_top_srcdir=$srcdir ;;
31751 *) # Relative name.
31752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31753 ac_top_srcdir=$ac_top_build_prefix$srcdir
31754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31769 ac_MKDIR_P=$MKDIR_P
31771 [\\/$]* | ?:[\\/]* ) ;;
31772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31777 # If the template does not know about datarootdir, expand it.
31778 # FIXME: This hack should be removed a few years after 2.60.
31779 ac_datarootdir_hack=; ac_datarootdir_seen=
31792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31793 *datarootdir*) ac_datarootdir_seen=yes;;
31794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31795 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31799 ac_datarootdir_hack='
31800 s&@datadir@&$datadir&g
31801 s&@docdir@&$docdir&g
31802 s&@infodir@&$infodir&g
31803 s&@localedir@&$localedir&g
31804 s&@mandir@&$mandir&g
31805 s&\\\${datarootdir}&$datarootdir&g' ;;
31809 # Neutralize VPATH when `$srcdir' = `.'.
31810 # Shell code in configure.ac might set extrasub.
31811 # FIXME: do we really want to maintain this feature?
31812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31813 ac_sed_extra="$ac_vpsub
31816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31819 s|@configure_input@|$ac_sed_conf_input|;t t
31820 s&@top_builddir@&$ac_top_builddir_sub&;t t
31821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31822 s&@srcdir@&$ac_srcdir&;t t
31823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31824 s&@top_srcdir@&$ac_top_srcdir&;t t
31825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31826 s&@builddir@&$ac_builddir&;t t
31827 s&@abs_builddir@&$ac_abs_builddir&;t t
31828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31829 s&@INSTALL@&$ac_INSTALL&;t t
31830 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31831 $ac_datarootdir_hack
31833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31834 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31836 { (exit 1); exit 1; }; }
31838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31839 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31841 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31842 which seems to be undefined. Please make sure it is defined." >&5
31843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31844 which seems to be undefined. Please make sure it is defined." >&2;}
31848 -) cat "$tmp/out" && rm -f "$tmp/out";;
31849 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31851 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31853 { (exit 1); exit 1; }; }
31859 if test x"$ac_file" != x-; then
31861 $as_echo "/* $configure_input */" \
31862 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31863 } >"$tmp/config.h" \
31864 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31865 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31866 { (exit 1); exit 1; }; }
31867 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31868 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31872 mv "$tmp/config.h" "$ac_file" \
31873 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31874 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31875 { (exit 1); exit 1; }; }
31878 $as_echo "/* $configure_input */" \
31879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31880 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31881 $as_echo "$as_me: error: could not create -" >&2;}
31882 { (exit 1); exit 1; }; }
31890 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31893 # Prefer the file from the source tree if names are identical.
31894 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31895 ac_source=$srcdir/$ac_source
31898 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31899 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31901 if test ! -r "$ac_source"; then
31902 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31903 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31904 { (exit 1); exit 1; }; }
31908 # Try a relative symlink, then a hard link, then a copy.
31910 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31911 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31913 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31914 ln "$ac_source" "$ac_file" 2>/dev/null ||
31915 cp -p "$ac_source" "$ac_file" ||
31916 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31917 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31918 { (exit 1); exit 1; }; }
31921 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31922 $as_echo "$as_me: executing $ac_file commands" >&6;}
31927 case $ac_file$ac_mode in
31928 "check_win32_symlinks":C)
31929 # Links sometimes fail undetected on Mingw -
31930 # so here we detect it and warn the user
31931 for FILE in $CONFIG_LINKS
31933 # test -e works for symlinks in the MinGW console
31934 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31935 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31938 "src/include/pg_config.h":H)
31939 # Update timestamp for pg_config.h (see Makefile.global)
31940 echo >src/include/stamp-h
31942 "src/include/pg_config_ext.h":H)
31943 # Update timestamp for pg_config_ext.h (see Makefile.global)
31944 echo >src/include/stamp-ext-h
31946 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31952 { (exit 0); exit 0; }
31954 chmod +x $CONFIG_STATUS
31955 ac_clean_files=$ac_clean_files_save
31957 test $ac_write_fail = 0 ||
31958 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31959 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31960 { (exit 1); exit 1; }; }
31963 # configure is writing to config.log, and then calls config.status.
31964 # config.status does its own redirection, appending to config.log.
31965 # Unfortunately, on DOS this fails, as config.log is still kept open
31966 # by configure, so config.status won't be able to write to it; its
31967 # output is simply discarded. So we exec the FD to /dev/null,
31968 # effectively closing config.log, so it can be properly (re)opened and
31969 # appended to by config.status. When coming back to configure, we
31970 # need to make the FD available again.
31971 if test "$no_create" != yes; then
31973 ac_config_status_args=
31974 test "$silent" = yes &&
31975 ac_config_status_args="$ac_config_status_args --quiet"
31977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31980 # would make configure fail if this is the last instruction.
31981 $ac_cs_success || { (exit 1); exit 1; }
31983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31984 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}