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 irix*) template=irix ;;
2196 linux*|gnu*|k*bsd*-gnu)
2198 mingw*) template=win32 ;;
2199 netbsd*) template=netbsd ;;
2200 openbsd*) template=openbsd ;;
2201 osf*) template=osf ;;
2202 sco*) template=sco ;;
2203 solaris*) template=solaris ;;
2204 sysv5*) template=unixware ;;
2207 if test x"$template" = x"" ; then
2208 { { $as_echo "$as_me:$LINENO: error:
2209 *******************************************************************
2210 PostgreSQL has apparently not been ported to your platform yet.
2211 To try a manual configuration, look into the src/template directory
2212 for a similar platform and use the '--with-template=' option.
2214 Please also contact <pgsql-bugs@postgresql.org> to see about
2215 rectifying this. Include the above 'checking host system type...'
2217 *******************************************************************
2219 $as_echo "$as_me: error:
2220 *******************************************************************
2221 PostgreSQL has apparently not been ported to your platform yet.
2222 To try a manual configuration, look into the src/template directory
2223 for a similar platform and use the '--with-template=' option.
2225 Please also contact <pgsql-bugs@postgresql.org> to see about
2226 rectifying this. Include the above 'checking host system type...'
2228 *******************************************************************
2230 { (exit 1); exit 1; }; }
2238 { $as_echo "$as_me:$LINENO: result: $template" >&5
2239 $as_echo "$template" >&6; }
2244 # Initialize default assumption that we do not need separate assembly code
2245 # for TAS (test-and-set). This can be overridden by the template file
2246 # when it's executed.
2253 ## Command line options
2257 # Add non-standard directories to the include path
2262 # Check whether --with-includes was given.
2263 if test "${with_includes+set}" = set; then
2264 withval=$with_includes;
2267 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2268 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2269 { (exit 1); exit 1; }; }
2272 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2273 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2274 { (exit 1); exit 1; }; }
2287 # Add non-standard directories to the library search path
2292 # Check whether --with-libraries was given.
2293 if test "${with_libraries+set}" = set; then
2294 withval=$with_libraries;
2297 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2298 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2299 { (exit 1); exit 1; }; }
2302 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2303 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2304 { (exit 1); exit 1; }; }
2307 LIBRARY_DIRS=$withval
2318 # Check whether --with-libs was given.
2319 if test "${with_libs+set}" = set; then
2323 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2324 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2325 { (exit 1); exit 1; }; }
2328 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2329 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2330 { (exit 1); exit 1; }; }
2333 LIBRARY_DIRS=$withval
2343 # 64-bit integer date/time storage: enabled by default.
2345 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2346 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2349 # Check whether --enable-integer-datetimes was given.
2350 if test "${enable_integer_datetimes+set}" = set; then
2351 enableval=$enable_integer_datetimes;
2355 cat >>confdefs.h <<\_ACEOF
2356 #define USE_INTEGER_DATETIMES 1
2364 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2365 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2366 { (exit 1); exit 1; }; }
2371 enable_integer_datetimes=yes
2373 cat >>confdefs.h <<\_ACEOF
2374 #define USE_INTEGER_DATETIMES 1
2380 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2381 $as_echo "$enable_integer_datetimes" >&6; }
2387 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2388 $as_echo_n "checking whether NLS is wanted... " >&6; }
2391 # Check whether --enable-nls was given.
2392 if test "${enable_nls+set}" = set; then
2393 enableval=$enable_nls;
2403 WANTED_LANGUAGES=$enableval
2413 if test "$enable_nls" = yes; then
2415 cat >>confdefs.h <<\_ACEOF
2416 #define ENABLE_NLS 1
2421 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2422 $as_echo "$enable_nls" >&6; }
2427 # Default port number (--with-pgport), default 5432
2429 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2430 $as_echo_n "checking for default port number... " >&6; }
2434 # Check whether --with-pgport was given.
2435 if test "${with_pgport+set}" = set; then
2436 withval=$with_pgport;
2439 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2440 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2441 { (exit 1); exit 1; }; }
2444 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2445 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2446 { (exit 1); exit 1; }; }
2449 default_port=$withval
2458 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2459 $as_echo "$default_port" >&6; }
2460 # Need both of these because some places want an integer and some a string
2462 cat >>confdefs.h <<_ACEOF
2463 #define DEF_PGPORT ${default_port}
2467 cat >>confdefs.h <<_ACEOF
2468 #define DEF_PGPORT_STR "${default_port}"
2474 # '-rpath'-like feature can be disabled
2478 # Check whether --enable-rpath was given.
2479 if test "${enable_rpath+set}" = set; then
2480 enableval=$enable_rpath;
2489 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2490 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2491 { (exit 1); exit 1; }; }
2508 # Check whether --enable-spinlocks was given.
2509 if test "${enable_spinlocks+set}" = set; then
2510 enableval=$enable_spinlocks;
2519 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2520 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2521 { (exit 1); exit 1; }; }
2526 enable_spinlocks=yes
2533 # --enable-debug adds -g to compiler flags
2537 # Check whether --enable-debug was given.
2538 if test "${enable_debug+set}" = set; then
2539 enableval=$enable_debug;
2548 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2549 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2550 { (exit 1); exit 1; }; }
2563 # --enable-profiling enables gcc profiling
2567 # Check whether --enable-profiling was given.
2568 if test "${enable_profiling+set}" = set; then
2569 enableval=$enable_profiling;
2578 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2579 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2580 { (exit 1); exit 1; }; }
2592 # --enable-coverage enables generation of code coverage metrics with gcov
2596 # Check whether --enable-coverage was given.
2597 if test "${enable_coverage+set}" = set; then
2598 enableval=$enable_coverage;
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_GCOV+set}" = set; then
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$GCOV"; then
2611 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_GCOV="$ac_prog"
2621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 GCOV=$ac_cv_prog_GCOV
2631 if test -n "$GCOV"; then
2632 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2633 $as_echo "$GCOV" >&6; }
2635 { $as_echo "$as_me:$LINENO: result: no" >&5
2636 $as_echo "no" >&6; }
2640 test -n "$GCOV" && break
2643 if test -z "$GCOV"; then
2644 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2645 $as_echo "$as_me: error: gcov not found" >&2;}
2646 { (exit 1); exit 1; }; }
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_LCOV+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$LCOV"; then
2658 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_LCOV="$ac_prog"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 LCOV=$ac_cv_prog_LCOV
2678 if test -n "$LCOV"; then
2679 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2680 $as_echo "$LCOV" >&6; }
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2687 test -n "$LCOV" && break
2690 if test -z "$LCOV"; then
2691 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2692 $as_echo "$as_me: error: lcov not found" >&2;}
2693 { (exit 1); exit 1; }; }
2695 for ac_prog in genhtml
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_GENHTML+set}" = set; then
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$GENHTML"; then
2705 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_GENHTML="$ac_prog"
2715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 GENHTML=$ac_cv_prog_GENHTML
2725 if test -n "$GENHTML"; then
2726 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2727 $as_echo "$GENHTML" >&6; }
2729 { $as_echo "$as_me:$LINENO: result: no" >&5
2730 $as_echo "no" >&6; }
2734 test -n "$GENHTML" && break
2737 if test -z "$GENHTML"; then
2738 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2739 $as_echo "$as_me: error: genhtml not found" >&2;}
2740 { (exit 1); exit 1; }; }
2747 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2748 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2749 { (exit 1); exit 1; }; }
2766 # Check whether --enable-dtrace was given.
2767 if test "${enable_dtrace+set}" = set; then
2768 enableval=$enable_dtrace;
2771 for ac_prog in dtrace
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_DTRACE+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$DTRACE"; then
2781 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_DTRACE="$ac_prog"
2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 DTRACE=$ac_cv_prog_DTRACE
2801 if test -n "$DTRACE"; then
2802 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2803 $as_echo "$DTRACE" >&6; }
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$DTRACE" && break
2813 if test -z "$DTRACE"; then
2814 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2815 $as_echo "$as_me: error: dtrace not found" >&2;}
2816 { (exit 1); exit 1; }; }
2824 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2825 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2826 { (exit 1); exit 1; }; }
2841 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2842 $as_echo_n "checking for block size... " >&6; }
2846 # Check whether --with-blocksize was given.
2847 if test "${with_blocksize+set}" = set; then
2848 withval=$with_blocksize;
2851 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2852 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2853 { (exit 1); exit 1; }; }
2856 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2857 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2858 { (exit 1); exit 1; }; }
2870 case ${blocksize} in
2877 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2878 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2879 { (exit 1); exit 1; }; }
2881 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2882 $as_echo "${blocksize}kB" >&6; }
2885 cat >>confdefs.h <<_ACEOF
2886 #define BLCKSZ ${BLCKSZ}
2891 # Relation segment size
2893 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2894 $as_echo_n "checking for segment size... " >&6; }
2898 # Check whether --with-segsize was given.
2899 if test "${with_segsize+set}" = set; then
2900 withval=$with_segsize;
2903 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2904 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2905 { (exit 1); exit 1; }; }
2908 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2909 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2910 { (exit 1); exit 1; }; }
2922 # this expression is set up to avoid unnecessary integer overflow
2923 # blocksize is already guaranteed to be a factor of 1024
2924 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2925 test $? -eq 0 || exit 1
2926 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2927 $as_echo "${segsize}GB" >&6; }
2930 cat >>confdefs.h <<_ACEOF
2931 #define RELSEG_SIZE ${RELSEG_SIZE}
2938 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2939 $as_echo_n "checking for WAL block size... " >&6; }
2943 # Check whether --with-wal-blocksize was given.
2944 if test "${with_wal_blocksize+set}" = set; then
2945 withval=$with_wal_blocksize;
2948 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2950 { (exit 1); exit 1; }; }
2953 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2955 { (exit 1); exit 1; }; }
2958 wal_blocksize=$withval
2967 case ${wal_blocksize} in
2968 1) XLOG_BLCKSZ=1024;;
2969 2) XLOG_BLCKSZ=2048;;
2970 4) XLOG_BLCKSZ=4096;;
2971 8) XLOG_BLCKSZ=8192;;
2972 16) XLOG_BLCKSZ=16384;;
2973 32) XLOG_BLCKSZ=32768;;
2974 64) XLOG_BLCKSZ=65536;;
2975 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2976 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2977 { (exit 1); exit 1; }; }
2979 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2980 $as_echo "${wal_blocksize}kB" >&6; }
2983 cat >>confdefs.h <<_ACEOF
2984 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2991 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2992 $as_echo_n "checking for WAL segment size... " >&6; }
2996 # Check whether --with-wal-segsize was given.
2997 if test "${with_wal_segsize+set}" = set; then
2998 withval=$with_wal_segsize;
3001 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3002 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3003 { (exit 1); exit 1; }; }
3006 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3007 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3008 { (exit 1); exit 1; }; }
3011 wal_segsize=$withval
3020 case ${wal_segsize} in
3028 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3029 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3030 { (exit 1); exit 1; }; }
3032 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3033 $as_echo "${wal_segsize}MB" >&6; }
3036 cat >>confdefs.h <<_ACEOF
3037 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3045 # For historical reasons you can also use --with-CC to specify the C compiler
3046 # to use, although the standard way to do this is to set the CC environment
3051 # Check whether --with-CC was given.
3052 if test "${with_CC+set}" = set; then
3056 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3057 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3058 { (exit 1); exit 1; }; }
3061 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3062 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3063 { (exit 1); exit 1; }; }
3075 aix) pgac_cc_list="gcc xlc";;
3076 irix) pgac_cc_list="cc";; # no gcc
3077 *) pgac_cc_list="gcc cc";;
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in $pgac_cc_list
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$CC" && break
3128 if test -z "$CC"; then
3130 for ac_prog in $pgac_cc_list
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CC="$ac_prog"
3150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 $as_echo "$ac_ct_CC" >&6; }
3164 { $as_echo "$as_me:$LINENO: result: no" >&5
3165 $as_echo "no" >&6; }
3169 test -n "$ac_ct_CC" && break
3172 if test "x$ac_ct_CC" = x; then
3175 case $cross_compiling:$ac_tool_warned in
3177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3186 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&5
3190 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3191 See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }; }
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3198 { (ac_try="$ac_compiler --version >&5"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204 $as_echo "$ac_try_echo") >&5
3205 (eval "$ac_compiler --version >&5") 2>&5
3207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3209 { (ac_try="$ac_compiler -v >&5"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3215 $as_echo "$ac_try_echo") >&5
3216 (eval "$ac_compiler -v >&5") 2>&5
3218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }
3220 { (ac_try="$ac_compiler -V >&5"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227 (eval "$ac_compiler -V >&5") 2>&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3252 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256 # The possible output files:
3257 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260 for ac_file in $ac_files
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3264 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269 if { (ac_try="$ac_link_default"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_link_default") 2>&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; then
3280 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3281 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3282 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3283 # so that the user can short-circuit this test for compilers unknown to
3285 for ac_file in $ac_files ''
3287 test -f "$ac_file" || continue
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292 # We found the default executable, but exeext='' is most
3296 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3298 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 # We set ac_cv_exeext here because the later test for it is not
3301 # safe: cross compilers may not add the suffix if given an `-o'
3302 # argument, so we may need to know it at that point already.
3303 # Even if this section looks crufty: it has the advantage of
3310 test "$ac_cv_exeext" = no && ac_cv_exeext=
3316 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3317 $as_echo "$ac_file" >&6; }
3318 if test -z "$ac_file"; then
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&5
3326 $as_echo "$as_me: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&2;}
3328 { (exit 77); exit 77; }; }; }
3331 ac_exeext=$ac_cv_exeext
3333 # Check that the compiler produces executables we can run. If not, either
3334 # the compiler is broken, or we cross compile.
3335 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3336 $as_echo_n "checking whether the C compiler works... " >&6; }
3337 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3338 # If not cross compiling, check that we can run a simple program.
3339 if test "$cross_compiling" != yes; then
3340 if { ac_try='./$ac_file'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_try") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3353 if test "$cross_compiling" = maybe; then
3356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }; }
3368 { $as_echo "$as_me:$LINENO: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3372 ac_clean_files=$ac_clean_files_save
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3378 $as_echo "$cross_compiling" >&6; }
3380 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3381 $as_echo_n "checking for suffix of executables... " >&6; }
3382 if { (ac_try="$ac_link"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389 (eval "$ac_link") 2>&5
3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; then
3393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3397 for ac_file in conftest.exe conftest conftest.*; do
3398 test -f "$ac_file" || continue
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }; }
3416 rm -f conftest$ac_cv_exeext
3417 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3423 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if test "${ac_cv_objext+set}" = set; then
3426 $as_echo_n "(cached) " >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.o conftest.obj
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450 $as_echo "$ac_try_echo") >&5
3451 (eval "$ac_compile") 2>&5
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; then
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&5
3471 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3482 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3485 $as_echo_n "(cached) " >&6
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3505 rm -f conftest.$ac_objext
3506 if { (ac_try="$ac_compile"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3512 $as_echo "$ac_try_echo") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3536 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537 if test $ac_compiler_gnu = yes; then
3542 ac_test_CFLAGS=${CFLAGS+set}
3543 ac_save_CFLAGS=$CFLAGS
3544 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3545 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3546 if test "${ac_cv_prog_cc_g+set}" = set; then
3547 $as_echo_n "(cached) " >&6
3549 ac_save_c_werror_flag=$ac_c_werror_flag
3550 ac_c_werror_flag=yes
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575 $as_echo "$ac_try_echo") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3627 $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3647 rm -f conftest.$ac_objext
3648 if { (ac_try="$ac_compile"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3654 $as_echo "$ac_try_echo") >&5
3655 (eval "$ac_compile") 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && {
3662 test -z "$ac_c_werror_flag" ||
3663 test ! -s conftest.err
3664 } && test -s conftest.$ac_objext; then
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3682 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3683 $as_echo "$ac_cv_prog_cc_g" >&6; }
3684 if test "$ac_test_CFLAGS" = set; then
3685 CFLAGS=$ac_save_CFLAGS
3686 elif test $ac_cv_prog_cc_g = yes; then
3687 if test "$GCC" = yes; then
3693 if test "$GCC" = yes; then
3699 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3701 if test "${ac_cv_prog_cc_c89+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 ac_cv_prog_cc_c89=no
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3714 #include <sys/types.h>
3715 #include <sys/stat.h>
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3730 s = g (p, va_arg (v,int));
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3736 function prototypes and stuff, but not '\xHH' hex character constants.
3737 These don't provoke an error unfortunately, instead are silently treated
3738 as 'x'. The following induces an error, until -std is added to get
3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3740 array size at least. It's necessary to write '\x00'==0 to get something
3741 that's true only with -std. */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745 inside strings and character constants. */
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766 CC="$ac_save_CC $ac_arg"
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774 $as_echo "$ac_try_echo") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_cv_prog_cc_c89=$ac_arg
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3793 rm -f core conftest.err conftest.$ac_objext
3794 test "x$ac_cv_prog_cc_c89" != "xno" && break
3796 rm -f conftest.$ac_ext
3801 case "x$ac_cv_prog_cc_c89" in
3803 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3804 $as_echo "none needed" >&6; } ;;
3806 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3807 $as_echo "unsupported" >&6; } ;;
3809 CC="$CC $ac_cv_prog_cc_c89"
3810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3811 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3823 # but has idiosyncrasies of its own. We assume icc will define
3824 # __INTEL_COMPILER regardless of CFLAGS.
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3836 #ifndef __INTEL_COMPILER
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3853 grep -v '^ *+' conftest.er1 >conftest.err
3855 cat conftest.err >&5
3856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest.$ac_objext; then
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 # Check if it's Sun Studio compiler. We assume that
3872 # __SUNPRO_C will be defined for Sun Studio compilers
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 . "$srcdir/src/template/$template" || exit
3927 # CFLAGS are selected so:
3928 # If the user specifies something in the environment, that is used.
3929 # else: If the template file set something, that is used.
3930 # else: If coverage was enabled, don't set anything.
3931 # else: If the compiler is GCC, then we use -O2.
3932 # else: If the compiler is something else, then we use -O, unless debugging.
3934 if test "$ac_env_CFLAGS_set" = set; then
3935 CFLAGS=$ac_env_CFLAGS_value
3936 elif test "${CFLAGS+set}" = set; then
3937 : # (keep what template set)
3938 elif test "$enable_coverage" = yes; then
3939 : # no optimization by default
3940 elif test "$GCC" = yes; then
3943 # if the user selected debug mode, don't use -O
3944 if test "$enable_debug" != yes; then
3949 # set CFLAGS_VECTOR from the environment, if available
3950 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3951 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3954 # Some versions of GCC support some additional useful warning flags.
3955 # Check whether they are supported, and add them to CFLAGS if so.
3956 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3957 # but has its own. Also check other compiler-specific flags here.
3959 if test "$GCC" = yes -a "$ICC" = no; then
3960 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3961 # These work in some but not all gcc versions
3962 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3963 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3964 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3965 $as_echo_n "(cached) " >&6
3967 pgac_save_CFLAGS=$CFLAGS
3968 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3993 $as_echo "$ac_try_echo") >&5
3994 (eval "$ac_compile") 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && {
4001 test -z "$ac_c_werror_flag" ||
4002 test ! -s conftest.err
4003 } && test -s conftest.$ac_objext; then
4004 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4014 CFLAGS="$pgac_save_CFLAGS"
4016 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4017 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4018 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4019 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4022 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4023 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4024 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4027 pgac_save_CFLAGS=$CFLAGS
4028 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4029 ac_save_c_werror_flag=$ac_c_werror_flag
4030 ac_c_werror_flag=yes
4031 cat >conftest.$ac_ext <<_ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4053 $as_echo "$ac_try_echo") >&5
4054 (eval "$ac_compile") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } && {
4061 test -z "$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4063 } && test -s conftest.$ac_objext; then
4064 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 pgac_cv_prog_cc_cflags__Wendif_labels=no
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 CFLAGS="$pgac_save_CFLAGS"
4076 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4077 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4078 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4079 CFLAGS="$CFLAGS -Wendif-labels"
4082 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4083 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4084 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4087 pgac_save_CFLAGS=$CFLAGS
4088 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4089 ac_save_c_werror_flag=$ac_c_werror_flag
4090 ac_c_werror_flag=yes
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4106 rm -f conftest.$ac_objext
4107 if { (ac_try="$ac_compile"
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4113 $as_echo "$ac_try_echo") >&5
4114 (eval "$ac_compile") 2>conftest.er1
4116 grep -v '^ *+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } && {
4121 test -z "$ac_c_werror_flag" ||
4122 test ! -s conftest.err
4123 } && test -s conftest.$ac_objext; then
4124 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134 CFLAGS="$pgac_save_CFLAGS"
4136 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4137 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4138 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4139 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4142 # This was included in -Wall/-Wformat in older GCC versions
4143 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4144 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4145 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4148 pgac_save_CFLAGS=$CFLAGS
4149 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4174 $as_echo "$ac_try_echo") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 pgac_cv_prog_cc_cflags__Wformat_security=yes
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 pgac_cv_prog_cc_cflags__Wformat_security=no
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="$pgac_save_CFLAGS"
4197 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4198 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4199 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4200 CFLAGS="$CFLAGS -Wformat-security"
4203 # Disable strict-aliasing rules; needed for gcc 3.3+
4204 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4205 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4206 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4211 ac_save_c_werror_flag=$ac_c_werror_flag
4212 ac_c_werror_flag=yes
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235 $as_echo "$ac_try_echo") >&5
4236 (eval "$ac_compile") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } && {
4243 test -z "$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4245 } && test -s conftest.$ac_objext; then
4246 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4248 $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="$pgac_save_CFLAGS"
4258 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4259 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4260 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4261 CFLAGS="$CFLAGS -fno-strict-aliasing"
4264 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4265 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4266 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4267 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4268 $as_echo_n "(cached) " >&6
4270 pgac_save_CFLAGS=$CFLAGS
4271 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4272 ac_save_c_werror_flag=$ac_c_werror_flag
4273 ac_c_werror_flag=yes
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4296 $as_echo "$ac_try_echo") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } && {
4304 test -z "$ac_c_werror_flag" ||
4305 test ! -s conftest.err
4306 } && test -s conftest.$ac_objext; then
4307 pgac_cv_prog_cc_cflags__fwrapv=yes
4309 $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 pgac_cv_prog_cc_cflags__fwrapv=no
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_c_werror_flag=$ac_save_c_werror_flag
4317 CFLAGS="$pgac_save_CFLAGS"
4319 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4320 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4321 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4322 CFLAGS="$CFLAGS -fwrapv"
4325 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4326 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4327 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4328 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4331 pgac_save_CFLAGS=$CFLAGS
4332 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4333 ac_save_c_werror_flag=$ac_c_werror_flag
4334 ac_c_werror_flag=yes
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="$pgac_save_CFLAGS"
4380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4381 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4382 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4383 CFLAGS="$CFLAGS -fexcess-precision=standard"
4386 # Optimization flags for specific files that benefit from vectorization
4387 { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4388 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4389 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4392 pgac_save_CFLAGS=$CFLAGS
4393 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4394 ac_save_c_werror_flag=$ac_c_werror_flag
4395 ac_c_werror_flag=yes
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4429 pgac_cv_prog_cc_cflags__funroll_loops=yes
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 pgac_cv_prog_cc_cflags__funroll_loops=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439 CFLAGS="$pgac_save_CFLAGS"
4441 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4442 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4443 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4444 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4447 { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4448 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4449 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 pgac_save_CFLAGS=$CFLAGS
4453 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4454 ac_save_c_werror_flag=$ac_c_werror_flag
4455 ac_c_werror_flag=yes
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest.$ac_objext; then
4489 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4491 $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_c_werror_flag=$ac_save_c_werror_flag
4499 CFLAGS="$pgac_save_CFLAGS"
4501 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4502 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4503 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4504 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4507 elif test "$ICC" = yes; then
4508 # Intel's compiler has a bug/misoptimization in checking for
4509 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4510 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4511 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4512 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4513 $as_echo_n "(cached) " >&6
4515 pgac_save_CFLAGS=$CFLAGS
4516 CFLAGS="$pgac_save_CFLAGS -mp1"
4517 ac_save_c_werror_flag=$ac_c_werror_flag
4518 ac_c_werror_flag=yes
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4534 rm -f conftest.$ac_objext
4535 if { (ac_try="$ac_compile"
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_compile") 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } && {
4549 test -z "$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 } && test -s conftest.$ac_objext; then
4552 pgac_cv_prog_cc_cflags__mp1=yes
4554 $as_echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 pgac_cv_prog_cc_cflags__mp1=no
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 ac_c_werror_flag=$ac_save_c_werror_flag
4562 CFLAGS="$pgac_save_CFLAGS"
4564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4565 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4566 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4567 CFLAGS="$CFLAGS -mp1"
4570 # Make sure strict aliasing is off (though this is said to be the default)
4571 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4572 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4573 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4574 $as_echo_n "(cached) " >&6
4576 pgac_save_CFLAGS=$CFLAGS
4577 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4578 ac_save_c_werror_flag=$ac_c_werror_flag
4579 ac_c_werror_flag=yes
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4602 $as_echo "$ac_try_echo") >&5
4603 (eval "$ac_compile") 2>conftest.er1
4605 grep -v '^ *+' conftest.er1 >conftest.err
4607 cat conftest.err >&5
4608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest.$ac_objext; then
4613 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4615 $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4623 CFLAGS="$pgac_save_CFLAGS"
4625 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4626 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4627 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4628 CFLAGS="$CFLAGS -fno-strict-aliasing"
4631 elif test "$PORTNAME" = "aix"; then
4632 # AIX's xlc has to have strict aliasing turned off too
4633 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4634 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4635 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4636 $as_echo_n "(cached) " >&6
4638 pgac_save_CFLAGS=$CFLAGS
4639 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4640 ac_save_c_werror_flag=$ac_c_werror_flag
4641 ac_c_werror_flag=yes
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665 (eval "$ac_compile") 2>conftest.er1
4667 grep -v '^ *+' conftest.er1 >conftest.err
4669 cat conftest.err >&5
4670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && {
4672 test -z "$ac_c_werror_flag" ||
4673 test ! -s conftest.err
4674 } && test -s conftest.$ac_objext; then
4675 pgac_cv_prog_cc_cflags__qnoansialias=yes
4677 $as_echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 pgac_cv_prog_cc_cflags__qnoansialias=no
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4685 CFLAGS="$pgac_save_CFLAGS"
4687 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4688 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4689 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4690 CFLAGS="$CFLAGS -qnoansialias"
4693 elif test "$PORTNAME" = "hpux"; then
4694 # On some versions of HP-UX, libm functions do not set errno by default.
4695 # Fix that by using +Olibmerrno if the compiler recognizes it.
4696 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4697 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4698 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4699 $as_echo_n "(cached) " >&6
4701 pgac_save_CFLAGS=$CFLAGS
4702 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727 $as_echo "$ac_try_echo") >&5
4728 (eval "$ac_compile") 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && {
4735 test -z "$ac_c_werror_flag" ||
4736 test ! -s conftest.err
4737 } && test -s conftest.$ac_objext; then
4738 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4740 $as_echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_c_werror_flag=$ac_save_c_werror_flag
4748 CFLAGS="$pgac_save_CFLAGS"
4750 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4751 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4752 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4753 CFLAGS="$CFLAGS +Olibmerrno"
4758 CFLAGS_VECTOR=$CFLAGS_VECTOR
4761 # supply -g if --enable-debug
4762 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4766 # enable code coverage if --enable-coverage
4767 if test "$enable_coverage" = yes; then
4768 if test "$GCC" = yes; then
4769 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4771 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4772 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4773 { (exit 1); exit 1; }; }
4777 # enable profiling if --enable-profiling
4778 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4779 if test "$GCC" = yes; then
4781 cat >>confdefs.h <<\_ACEOF
4782 #define PROFILE_PID_DIR 1
4785 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4787 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4788 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4789 { (exit 1); exit 1; }; }
4793 # We already have this in Makefile.win32, but configure needs it too
4794 if test "$PORTNAME" = "win32"; then
4795 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4798 # Check if the compiler still works with the template settings
4799 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4800 $as_echo_n "checking whether the C compiler still works... " >&6; }
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (ac_try="$ac_link"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823 $as_echo "$ac_try_echo") >&5
4824 (eval "$ac_link") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest$ac_exeext && {
4834 test "$cross_compiling" = yes ||
4835 $as_test_x conftest$ac_exeext
4837 { $as_echo "$as_me:$LINENO: result: yes" >&5
4838 $as_echo "yes" >&6; }
4840 $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 { $as_echo "$as_me:$LINENO: result: no" >&5
4844 $as_echo "no" >&6; }
4845 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4846 $as_echo "$as_me: error: cannot proceed" >&2;}
4847 { (exit 1); exit 1; }; }
4850 rm -rf conftest.dSYM
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852 conftest$ac_exeext conftest.$ac_ext
4854 # Defend against gcc -ffast-math
4855 if test "$GCC" = yes; then
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4866 #ifdef __FAST_MATH__
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880 $as_echo "$ac_try_echo") >&5
4881 (eval "$ac_compile") 2>conftest.er1
4883 grep -v '^ *+' conftest.er1 >conftest.err
4885 cat conftest.err >&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && {
4888 test -z "$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 } && test -s conftest.$ac_objext; then
4893 $as_echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4897 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4898 { (exit 1); exit 1; }; }
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4911 # On Suns, sometimes $CPP names a directory.
4912 if test -n "$CPP" && test -d "$CPP"; then
4915 if test -z "$CPP"; then
4916 if test "${ac_cv_prog_CPP+set}" = set; then
4917 $as_echo_n "(cached) " >&6
4919 # Double quotes because CPP needs to be expanded
4920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 for ac_c_preproc_warn_flag in '' yes
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 # include <limits.h>
4940 # include <assert.h>
4944 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 # Broken: fails on valid input.
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4982 if { (ac_try="$ac_cpp conftest.$ac_ext"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988 $as_echo "$ac_try_echo") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4999 # Broken: success on invalid input.
5002 $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 # Passes both tests.
5010 rm -f conftest.err conftest.$ac_ext
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then
5027 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5028 $as_echo "$CPP" >&6; }
5030 for ac_c_preproc_warn_flag in '' yes
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 # include <limits.h>
5047 # include <assert.h>
5051 if { (ac_try="$ac_cpp conftest.$ac_ext"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null && {
5065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5070 $as_echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 # Broken: fails on valid input.
5077 rm -f conftest.err conftest.$ac_ext
5079 # OK, works on sane cases. Now check whether nonexistent headers
5080 # can be detected and how.
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 #include <ac_nonexistent.h>
5089 if { (ac_try="$ac_cpp conftest.$ac_ext"
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095 $as_echo "$ac_try_echo") >&5
5096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null && {
5103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5106 # Broken: success on invalid input.
5109 $as_echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 # Passes both tests.
5117 rm -f conftest.err conftest.$ac_ext
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then
5125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5128 See \`config.log' for more details." >&5
5129 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5130 See \`config.log' for more details." >&2;}
5131 { (exit 1); exit 1; }; }; }
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 # Set up TAS assembly code if needed; the template file has now had its
5145 # chance to request this.
5147 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5150 if test "$need_tas" = yes ; then
5159 # Automatic dependency tracking
5163 # Check whether --enable-depend was given.
5164 if test "${enable_depend+set}" = set; then
5165 enableval=$enable_depend;
5174 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5175 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5176 { (exit 1); exit 1; }; }
5190 # Enable assert checks
5194 # Check whether --enable-cassert was given.
5195 if test "${enable_cassert+set}" = set; then
5196 enableval=$enable_cassert;
5200 cat >>confdefs.h <<\_ACEOF
5201 #define USE_ASSERT_CHECKING 1
5209 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5210 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5211 { (exit 1); exit 1; }; }
5224 # Include directories
5227 IFS="${IFS}${PATH_SEPARATOR}"
5228 # SRCH_INC comes from the template file
5229 for dir in $with_includes $SRCH_INC; do
5230 if test -d "$dir"; then
5231 INCLUDES="$INCLUDES -I$dir"
5233 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5234 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5242 # Library directories
5245 IFS="${IFS}${PATH_SEPARATOR}"
5246 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5247 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5248 if test -d "$dir"; then
5249 LIBDIRS="$LIBDIRS -L$dir"
5251 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5252 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5258 # Enable thread-safe client libraries
5260 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5261 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5264 # Check whether --enable-thread-safety was given.
5265 if test "${enable_thread_safety+set}" = set; then
5266 enableval=$enable_thread_safety;
5275 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5276 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5277 { (exit 1); exit 1; }; }
5282 enable_thread_safety=yes
5287 if test "$enable_thread_safety" = yes; then
5289 cat >>confdefs.h <<\_ACEOF
5290 #define ENABLE_THREAD_SAFETY 1
5294 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5295 $as_echo "$enable_thread_safety" >&6; }
5299 # Optionally build Tcl modules (PL/Tcl)
5301 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5302 $as_echo_n "checking whether to build with Tcl... " >&6; }
5306 # Check whether --with-tcl was given.
5307 if test "${with_tcl+set}" = set; then
5317 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5319 { (exit 1); exit 1; }; }
5329 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5330 $as_echo "$with_tcl" >&6; }
5333 # We see if the path to the Tcl/Tk configuration scripts is specified.
5334 # This will override the use of tclsh to find the paths to search.
5339 # Check whether --with-tclconfig was given.
5340 if test "${with_tclconfig+set}" = set; then
5341 withval=$with_tclconfig;
5344 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5345 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5346 { (exit 1); exit 1; }; }
5349 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5350 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5351 { (exit 1); exit 1; }; }
5363 # Optionally build Perl modules (PL/Perl)
5365 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5366 $as_echo_n "checking whether to build Perl modules... " >&6; }
5370 # Check whether --with-perl was given.
5371 if test "${with_perl+set}" = set; then
5381 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5382 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5383 { (exit 1); exit 1; }; }
5393 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5394 $as_echo "$with_perl" >&6; }
5398 # Optionally build Python modules (PL/Python)
5400 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5401 $as_echo_n "checking whether to build Python modules... " >&6; }
5405 # Check whether --with-python was given.
5406 if test "${with_python+set}" = set; then
5407 withval=$with_python;
5416 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5417 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5418 { (exit 1); exit 1; }; }
5428 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5429 $as_echo "$with_python" >&6; }
5435 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5436 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5440 # Check whether --with-gssapi was given.
5441 if test "${with_gssapi+set}" = set; then
5442 withval=$with_gssapi;
5447 cat >>confdefs.h <<\_ACEOF
5448 #define ENABLE_GSS 1
5451 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5458 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5459 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5460 { (exit 1); exit 1; }; }
5470 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5471 $as_echo "$with_gssapi" >&6; }
5476 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5477 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5481 # Check whether --with-krb5 was given.
5482 if test "${with_krb5+set}" = set; then
5488 cat >>confdefs.h <<\_ACEOF
5492 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5499 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5501 { (exit 1); exit 1; }; }
5511 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5512 $as_echo "$with_krb5" >&6; }
5519 # Kerberos configuration parameters
5524 # Check whether --with-krb-srvnam was given.
5525 if test "${with_krb_srvnam+set}" = set; then
5526 withval=$with_krb_srvnam;
5529 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5530 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5531 { (exit 1); exit 1; }; }
5534 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5535 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5536 { (exit 1); exit 1; }; }
5544 with_krb_srvnam="postgres"
5549 cat >>confdefs.h <<_ACEOF
5550 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5558 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5559 $as_echo_n "checking whether to build with PAM support... " >&6; }
5563 # Check whether --with-pam was given.
5564 if test "${with_pam+set}" = set; then
5569 cat >>confdefs.h <<\_ACEOF
5578 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5579 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5580 { (exit 1); exit 1; }; }
5590 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5591 $as_echo "$with_pam" >&6; }
5597 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5598 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5602 # Check whether --with-ldap was given.
5603 if test "${with_ldap+set}" = set; then
5608 cat >>confdefs.h <<\_ACEOF
5617 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5618 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5619 { (exit 1); exit 1; }; }
5629 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5630 $as_echo "$with_ldap" >&6; }
5636 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5637 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5641 # Check whether --with-bonjour was given.
5642 if test "${with_bonjour+set}" = set; then
5643 withval=$with_bonjour;
5647 cat >>confdefs.h <<\_ACEOF
5648 #define USE_BONJOUR 1
5656 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5657 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5658 { (exit 1); exit 1; }; }
5668 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5669 $as_echo "$with_bonjour" >&6; }
5675 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5676 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5680 # Check whether --with-openssl was given.
5681 if test "${with_openssl+set}" = set; then
5682 withval=$with_openssl;
5686 cat >>confdefs.h <<\_ACEOF
5695 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5696 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5697 { (exit 1); exit 1; }; }
5707 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5708 $as_echo "$with_openssl" >&6; }
5714 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5715 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5719 # Check whether --with-selinux was given.
5720 if test "${with_selinux+set}" = set; then
5721 withval=$with_selinux;
5730 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5731 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5732 { (exit 1); exit 1; }; }
5743 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5744 $as_echo "$with_selinux" >&6; }
5752 # Check whether --with-readline was given.
5753 if test "${with_readline+set}" = set; then
5754 withval=$with_readline;
5763 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5764 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5765 { (exit 1); exit 1; }; }
5775 # readline on MinGW has problems with backslashes in psql and other bugs.
5776 # This is particularly a problem with non-US code pages.
5777 # Therefore disable its use until we understand the cause. 2004-07-20
5778 if test "$PORTNAME" = "win32"; then
5779 if test "$with_readline" = yes; then
5780 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5781 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5793 # Check whether --with-libedit-preferred was given.
5794 if test "${with_libedit_preferred+set}" = set; then
5795 withval=$with_libedit_preferred;
5804 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5805 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5806 { (exit 1); exit 1; }; }
5811 with_libedit_preferred=no
5824 # Check whether --with-ossp-uuid was given.
5825 if test "${with_ossp_uuid+set}" = set; then
5826 withval=$with_ossp_uuid;
5835 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5836 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5837 { (exit 1); exit 1; }; }
5856 # Check whether --with-libxml was given.
5857 if test "${with_libxml+set}" = set; then
5858 withval=$with_libxml;
5862 cat >>confdefs.h <<\_ACEOF
5863 #define USE_LIBXML 1
5871 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5872 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5873 { (exit 1); exit 1; }; }
5884 if test "$with_libxml" = yes ; then
5885 for ac_prog in xml2-config
5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$XML2_CONFIG"; then
5895 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_XML2_CONFIG="$ac_prog"
5905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5915 if test -n "$XML2_CONFIG"; then
5916 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5917 $as_echo "$XML2_CONFIG" >&6; }
5919 { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$XML2_CONFIG" && break
5927 if test -n "$XML2_CONFIG"; then
5928 for pgac_option in `$XML2_CONFIG --cflags`; do
5929 case $pgac_option in
5930 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5933 for pgac_option in `$XML2_CONFIG --libs`; do
5934 case $pgac_option in
5935 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5949 # Check whether --with-libxslt was given.
5950 if test "${with_libxslt+set}" = set; then
5951 withval=$with_libxslt;
5955 cat >>confdefs.h <<\_ACEOF
5956 #define USE_LIBXSLT 1
5964 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5965 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5966 { (exit 1); exit 1; }; }
5986 # Check whether --with-system-tzdata was given.
5987 if test "${with_system_tzdata+set}" = set; then
5988 withval=$with_system_tzdata;
5991 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5992 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5993 { (exit 1); exit 1; }; }
5996 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5997 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5998 { (exit 1); exit 1; }; }
6016 # Check whether --with-zlib was given.
6017 if test "${with_zlib+set}" = set; then
6027 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6028 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6029 { (exit 1); exit 1; }; }
6045 # Assume system is ELF if it predefines __ELF__ as 1,
6046 # otherwise believe host_os based default.
6048 freebsd1*|freebsd2*) elf=no;;
6049 freebsd3*|freebsd4*) elf=yes;;
6053 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6054 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6055 if test "${ac_cv_path_GREP+set}" = set; then
6056 $as_echo_n "(cached) " >&6
6058 if test -z "$GREP"; then
6059 ac_path_GREP_found=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6065 test -z "$as_dir" && as_dir=.
6066 for ac_prog in grep ggrep; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6069 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6070 # Check for GNU ac_path_GREP and select it if it is found.
6071 # Check for GNU $ac_path_GREP
6072 case `"$ac_path_GREP" --version 2>&1` in
6074 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6077 $as_echo_n 0123456789 >"conftest.in"
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo 'GREP' >> "conftest.nl"
6084 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086 ac_count=`expr $ac_count + 1`
6087 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_GREP="$ac_path_GREP"
6090 ac_path_GREP_max=$ac_count
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6098 $ac_path_GREP_found && break 3
6103 if test -z "$ac_cv_path_GREP"; then
6104 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6105 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6106 { (exit 1); exit 1; }; }
6109 ac_cv_path_GREP=$GREP
6113 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6114 $as_echo "$ac_cv_path_GREP" >&6; }
6115 GREP="$ac_cv_path_GREP"
6118 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6119 $as_echo_n "checking for egrep... " >&6; }
6120 if test "${ac_cv_path_EGREP+set}" = set; then
6121 $as_echo_n "(cached) " >&6
6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124 then ac_cv_path_EGREP="$GREP -E"
6126 if test -z "$EGREP"; then
6127 ac_path_EGREP_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in egrep; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6138 # Check for GNU ac_path_EGREP and select it if it is found.
6139 # Check for GNU $ac_path_EGREP
6140 case `"$ac_path_EGREP" --version 2>&1` in
6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6145 $as_echo_n 0123456789 >"conftest.in"
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 $as_echo 'EGREP' >> "conftest.nl"
6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 ac_count=`expr $ac_count + 1`
6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_EGREP="$ac_path_EGREP"
6158 ac_path_EGREP_max=$ac_count
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 $ac_path_EGREP_found && break 3
6171 if test -z "$ac_cv_path_EGREP"; then
6172 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6173 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6174 { (exit 1); exit 1; }; }
6177 ac_cv_path_EGREP=$EGREP
6182 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6183 $as_echo "$ac_cv_path_EGREP" >&6; }
6184 EGREP="$ac_cv_path_EGREP"
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 $EGREP "yes" >/dev/null 2>&1; then
6202 if test "X$elf" = "Xyes" ; then
6216 CPPFLAGS="$CPPFLAGS $INCLUDES"
6217 LDFLAGS="$LDFLAGS $LIBDIRS"
6223 # Check whether --with-gnu-ld was given.
6224 if test "${with_gnu_ld+set}" = set; then
6225 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6231 if test "$GCC" = yes; then
6232 # Check if gcc -print-prog-name=ld gives a path.
6233 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6234 $as_echo_n "checking for ld used by GCC... " >&6; }
6237 # gcc leaves a trailing carriage return which upsets mingw
6238 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6240 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6243 # Accept absolute paths.
6244 [\\/]* | [A-Za-z]:[\\/]*)
6245 re_direlt='/[^/][^/]*/\.\./'
6246 # Canonicalize the path of ld
6247 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6248 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6249 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6251 test -z "$LD" && LD="$ac_prog"
6254 # If it fails, then pretend we aren't using GCC.
6258 # If it is relative, then search for the first ld in PATH.
6262 elif test "$with_gnu_ld" = yes; then
6263 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6264 $as_echo_n "checking for GNU ld... " >&6; }
6266 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6267 $as_echo_n "checking for non-GNU ld... " >&6; }
6269 if test "${ac_cv_path_LD+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6272 if test -z "$LD"; then
6273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6274 for ac_dir in $PATH; do
6275 test -z "$ac_dir" && ac_dir=.
6276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6277 ac_cv_path_LD="$ac_dir/$ac_prog"
6278 # Check to see if the program is GNU ld. I'd rather use --version,
6279 # but apparently some GNU ld's only accept -v.
6280 # Break only if it was the GNU/non-GNU ld that we prefer.
6281 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6282 test "$with_gnu_ld" != no && break
6284 test "$with_gnu_ld" != yes && break
6290 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6295 if test -n "$LD"; then
6296 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6297 $as_echo "$LD" >&6; }
6299 { $as_echo "$as_me:$LINENO: result: no" >&5
6300 $as_echo "no" >&6; }
6302 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6303 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6304 { (exit 1); exit 1; }; }
6305 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6306 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6307 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6308 $as_echo_n "(cached) " >&6
6310 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6311 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6312 ac_cv_prog_gnu_ld=yes
6314 ac_cv_prog_gnu_ld=no
6317 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6318 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6319 with_gnu_ld=$ac_cv_prog_gnu_ld
6324 case $host_os in sysv5*)
6325 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6326 $as_echo_n "checking whether ld -R works... " >&6; }
6327 if test "${pgac_cv_prog_ld_R+set}" = set; then
6328 $as_echo_n "(cached) " >&6
6331 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354 $as_echo "$ac_try_echo") >&5
6355 (eval "$ac_link") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest$ac_exeext && {
6365 test "$cross_compiling" = yes ||
6366 $as_test_x conftest$ac_exeext
6368 pgac_cv_prog_ld_R=yes
6370 $as_echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 pgac_cv_prog_ld_R=no
6376 rm -rf conftest.dSYM
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LDFLAGS=$pgac_save_LDFLAGS
6382 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6383 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6384 ld_R_works=$pgac_cv_prog_ld_R
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_RANLIB+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$RANLIB"; then
6396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 RANLIB=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6420 { $as_echo "$as_me:$LINENO: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427 ac_ct_RANLIB=$RANLIB
6428 # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib; ac_word=$2
6430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$ac_ct_RANLIB"; then
6436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_ac_ct_RANLIB="ranlib"
6446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6460 { $as_echo "$as_me:$LINENO: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_RANLIB" = x; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6473 RANLIB=$ac_ct_RANLIB
6476 RANLIB="$ac_cv_prog_RANLIB"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}strip; ac_word=$2
6483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_STRIP+set}" = set; then
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$STRIP"; then
6489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 STRIP=$ac_cv_prog_STRIP
6509 if test -n "$STRIP"; then
6510 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6511 $as_echo "$STRIP" >&6; }
6513 { $as_echo "$as_me:$LINENO: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_STRIP"; then
6521 # Extract the first word of "strip", so it can be a program name with args.
6522 set dummy strip; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_STRIP"; then
6529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_STRIP="strip"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6549 if test -n "$ac_ct_STRIP"; then
6550 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6551 $as_echo "$ac_ct_STRIP" >&6; }
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_STRIP" = x; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6569 STRIP="$ac_cv_prog_STRIP"
6573 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6574 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6575 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6576 STRIP_STATIC_LIB="$STRIP -x"
6577 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6578 { $as_echo "$as_me:$LINENO: result: yes" >&5
6579 $as_echo "yes" >&6; }
6584 STRIP_STATIC_LIB=$STRIP
6585 STRIP_SHARED_LIB=$STRIP
6586 { $as_echo "$as_me:$LINENO: result: yes" >&5
6587 $as_echo "yes" >&6; }
6592 { $as_echo "$as_me:$LINENO: result: no" >&5
6593 $as_echo "no" >&6; }
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ar; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_AR+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$AR"; then
6609 ac_cv_prog_AR="$AR" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_AR="${ac_tool_prefix}ar"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 if test -n "$AR"; then
6630 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6631 $as_echo "$AR" >&6; }
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6639 if test -z "$ac_cv_prog_AR"; then
6641 # Extract the first word of "ar", so it can be a program name with args.
6642 set dummy ar; ac_word=$2
6643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$ac_ct_AR"; then
6649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_AR="ar"
6659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6669 if test -n "$ac_ct_AR"; then
6670 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6671 $as_echo "$ac_ct_AR" >&6; }
6673 { $as_echo "$as_me:$LINENO: result: no" >&5
6674 $as_echo "no" >&6; }
6677 if test "x$ac_ct_AR" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6692 if test "$PORTNAME" = "win32"; then
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$DLLTOOL"; then
6702 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 DLLTOOL=$ac_cv_prog_DLLTOOL
6722 if test -n "$DLLTOOL"; then
6723 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6724 $as_echo "$DLLTOOL" >&6; }
6726 { $as_echo "$as_me:$LINENO: result: no" >&5
6727 $as_echo "no" >&6; }
6732 if test -z "$ac_cv_prog_DLLTOOL"; then
6733 ac_ct_DLLTOOL=$DLLTOOL
6734 # Extract the first word of "dlltool", so it can be a program name with args.
6735 set dummy dlltool; ac_word=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$ac_ct_DLLTOOL"; then
6742 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6762 if test -n "$ac_ct_DLLTOOL"; then
6763 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6764 $as_echo "$ac_ct_DLLTOOL" >&6; }
6766 { $as_echo "$as_me:$LINENO: result: no" >&5
6767 $as_echo "no" >&6; }
6770 if test "x$ac_ct_DLLTOOL" = x; then
6773 case $cross_compiling:$ac_tool_warned in
6775 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6779 DLLTOOL=$ac_ct_DLLTOOL
6782 DLLTOOL="$ac_cv_prog_DLLTOOL"
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$DLLWRAP"; then
6794 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 DLLWRAP=$ac_cv_prog_DLLWRAP
6814 if test -n "$DLLWRAP"; then
6815 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6816 $as_echo "$DLLWRAP" >&6; }
6818 { $as_echo "$as_me:$LINENO: result: no" >&5
6819 $as_echo "no" >&6; }
6824 if test -z "$ac_cv_prog_DLLWRAP"; then
6825 ac_ct_DLLWRAP=$DLLWRAP
6826 # Extract the first word of "dllwrap", so it can be a program name with args.
6827 set dummy dllwrap; ac_word=$2
6828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6831 $as_echo_n "(cached) " >&6
6833 if test -n "$ac_ct_DLLWRAP"; then
6834 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6854 if test -n "$ac_ct_DLLWRAP"; then
6855 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6856 $as_echo "$ac_ct_DLLWRAP" >&6; }
6858 { $as_echo "$as_me:$LINENO: result: no" >&5
6859 $as_echo "no" >&6; }
6862 if test "x$ac_ct_DLLWRAP" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6871 DLLWRAP=$ac_ct_DLLWRAP
6874 DLLWRAP="$ac_cv_prog_DLLWRAP"
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}windres; ac_word=$2
6880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_prog_WINDRES+set}" = set; then
6883 $as_echo_n "(cached) " >&6
6885 if test -n "$WINDRES"; then
6886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 WINDRES=$ac_cv_prog_WINDRES
6906 if test -n "$WINDRES"; then
6907 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6908 $as_echo "$WINDRES" >&6; }
6910 { $as_echo "$as_me:$LINENO: result: no" >&5
6911 $as_echo "no" >&6; }
6916 if test -z "$ac_cv_prog_WINDRES"; then
6917 ac_ct_WINDRES=$WINDRES
6918 # Extract the first word of "windres", so it can be a program name with args.
6919 set dummy windres; ac_word=$2
6920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$ac_ct_WINDRES"; then
6926 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_ac_ct_WINDRES="windres"
6936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6946 if test -n "$ac_ct_WINDRES"; then
6947 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6948 $as_echo "$ac_ct_WINDRES" >&6; }
6950 { $as_echo "$as_me:$LINENO: result: no" >&5
6951 $as_echo "no" >&6; }
6954 if test "x$ac_ct_WINDRES" = x; then
6957 case $cross_compiling:$ac_tool_warned in
6959 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6963 WINDRES=$ac_ct_WINDRES
6966 WINDRES="$ac_cv_prog_WINDRES"
6971 # Find a good install program. We prefer a C program (faster),
6972 # so one script is as good as another. But avoid the broken or
6973 # incompatible versions:
6974 # SysV /etc/install, /usr/sbin/install
6975 # SunOS /usr/etc/install
6976 # IRIX /sbin/install
6978 # AmigaOS /C/install, which installs bootblocks on floppy discs
6979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6982 # OS/2's system install, which has a completely different semantic
6983 # ./install, which can be erroneously created by make from ./install.sh.
6984 # Reject install programs that cannot install multiple files.
6985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6987 if test -z "$INSTALL"; then
6988 if test "${ac_cv_path_install+set}" = set; then
6989 $as_echo_n "(cached) " >&6
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 # Account for people who put trailing slashes in PATH elements.
6998 ./ | .// | /cC/* | \
6999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7003 # OSF1 and SCO ODT 3.0 have their own names for install.
7004 # Don't use installbsd from OSF since it installs stuff as root
7006 for ac_prog in ginstall scoinst install; do
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7009 if test $ac_prog = install &&
7010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7011 # AIX install. It has an incompatible calling convention.
7013 elif test $ac_prog = install &&
7014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # program-specific install script used by HP pwplus--don't use.
7018 rm -rf conftest.one conftest.two conftest.dir
7019 echo one > conftest.one
7020 echo two > conftest.two
7022 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7023 test -s conftest.one && test -s conftest.two &&
7024 test -s conftest.dir/conftest.one &&
7025 test -s conftest.dir/conftest.two
7027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7040 rm -rf conftest.one conftest.two conftest.dir
7043 if test "${ac_cv_path_install+set}" = set; then
7044 INSTALL=$ac_cv_path_install
7046 # As a last resort, use the slow shell script. Don't cache a
7047 # value for INSTALL within a source directory, because that will
7048 # break other packages using the cache if that directory is
7049 # removed, or if the value is a relative name.
7050 INSTALL=$ac_install_sh
7053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7054 $as_echo "$INSTALL" >&6; }
7056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7057 # It thinks the first close brace ends the variable substitution.
7058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7064 # When Autoconf chooses install-sh as install program it tries to generate
7065 # a relative path to it in each makefile where it subsitutes it. This clashes
7066 # with our Makefile.global concept. This workaround helps.
7068 *install-sh*) install_bin='';;
7069 *) install_bin=$INSTALL;;
7073 # Extract the first word of "tar", so it can be a program name with args.
7074 set dummy tar; ac_word=$2
7075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_path_TAR+set}" = set; then
7078 $as_echo_n "(cached) " >&6
7082 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 if test -n "$TAR"; then
7105 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7106 $as_echo "$TAR" >&6; }
7108 { $as_echo "$as_me:$LINENO: result: no" >&5
7109 $as_echo "no" >&6; }
7113 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7114 $as_echo_n "checking whether ln -s works... " >&6; }
7116 if test "$LN_S" = "ln -s"; then
7117 { $as_echo "$as_me:$LINENO: result: yes" >&5
7118 $as_echo "yes" >&6; }
7120 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7121 $as_echo "no, using $LN_S" >&6; }
7124 for ac_prog in gawk mawk nawk awk
7126 # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_AWK+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$AWK"; then
7134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_AWK="$ac_prog"
7144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 if test -n "$AWK"; then
7155 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7156 $as_echo "$AWK" >&6; }
7158 { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7163 test -n "$AWK" && break
7166 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7168 if test -z "$MKDIR_P"; then
7169 if test "${ac_cv_path_mkdir+set}" = set; then
7170 $as_echo_n "(cached) " >&6
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7176 test -z "$as_dir" && as_dir=.
7177 for ac_prog in mkdir gmkdir; do
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7181 'mkdir (GNU coreutils) '* | \
7182 'mkdir (coreutils) '* | \
7183 'mkdir (fileutils) '4.1*)
7184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7194 if test "${ac_cv_path_mkdir+set}" = set; then
7195 MKDIR_P="$ac_cv_path_mkdir -p"
7197 # As a last resort, use the slow shell script. Don't cache a
7198 # value for MKDIR_P within a source directory, because that will
7199 # break other packages using the cache if that directory is
7200 # removed, or if the value is a relative name.
7201 test -d ./--version && rmdir ./--version
7202 MKDIR_P="$ac_install_sh -d"
7205 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7206 $as_echo "$MKDIR_P" >&6; }
7208 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7209 # a relative path to it in each makefile where it subsitutes it. This clashes
7210 # with our Makefile.global concept. This workaround helps.
7212 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7215 # Let the user override the search
7216 if test -z "$BISON"; then
7217 for ac_prog in bison
7219 # Extract the first word of "$ac_prog", so it can be a program name with args.
7220 set dummy $ac_prog; ac_word=$2
7221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_path_BISON+set}" = set; then
7224 $as_echo_n "(cached) " >&6
7228 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 BISON=$ac_cv_path_BISON
7250 if test -n "$BISON"; then
7251 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7252 $as_echo "$BISON" >&6; }
7254 { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7259 test -n "$BISON" && break
7264 if test "$BISON"; then
7265 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7266 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7267 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7268 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7270 { $as_echo "$as_me:$LINENO: WARNING:
7271 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7272 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7273 $as_echo "$as_me: WARNING:
7274 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7275 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7280 if test -z "$BISON"; then
7281 { $as_echo "$as_me:$LINENO: WARNING:
7282 *** Without Bison you will not be able to build PostgreSQL from Git nor
7283 *** change any of the parser definition files. You can obtain Bison from
7284 *** a GNU mirror site. (If you are using the official distribution of
7285 *** PostgreSQL then you do not need to worry about this, because the Bison
7286 *** output is pre-generated.)" >&5
7287 $as_echo "$as_me: WARNING:
7288 *** Without Bison you will not be able to build PostgreSQL from Git nor
7289 *** change any of the parser definition files. You can obtain Bison from
7290 *** a GNU mirror site. (If you are using the official distribution of
7291 *** PostgreSQL then you do not need to worry about this, because the Bison
7292 *** output is pre-generated.)" >&2;}
7294 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7297 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7298 $as_echo_n "checking for flex... " >&6; }
7299 if test "${pgac_cv_path_flex+set}" = set; then
7300 $as_echo_n "(cached) " >&6
7302 # Let the user override the test
7303 if test -n "$FLEX"; then
7304 pgac_cv_path_flex=$FLEX
7308 for pgac_dir in $PATH; do
7310 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7313 for pgac_prog in flex lex; do
7314 pgac_candidate="$pgac_dir/$pgac_prog"
7315 if test -f "$pgac_candidate" \
7316 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7318 echo '%%' > conftest.l
7319 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7320 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7321 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7323 pgac_cv_path_flex=$pgac_candidate
7326 { $as_echo "$as_me:$LINENO: WARNING:
7327 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7328 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7329 $as_echo "$as_me: WARNING:
7330 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7331 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7337 rm -f conftest.l lex.yy.c
7338 : ${pgac_cv_path_flex=no}
7342 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7343 $as_echo "$pgac_cv_path_flex" >&6; }
7344 if test x"$pgac_cv_path_flex" = x"no"; then
7345 { $as_echo "$as_me:$LINENO: WARNING:
7346 *** Without Flex you will not be able to build PostgreSQL from Git nor
7347 *** change any of the scanner definition files. You can obtain Flex from
7348 *** a GNU mirror site. (If you are using the official distribution of
7349 *** PostgreSQL then you do not need to worry about this because the Flex
7350 *** output is pre-generated.)" >&5
7351 $as_echo "$as_me: WARNING:
7352 *** Without Flex you will not be able to build PostgreSQL from Git nor
7353 *** change any of the scanner definition files. You can obtain Flex from
7354 *** a GNU mirror site. (If you are using the official distribution of
7355 *** PostgreSQL then you do not need to worry about this because the Flex
7356 *** output is pre-generated.)" >&2;}
7360 FLEX=$pgac_cv_path_flex
7361 pgac_flex_version=`$FLEX --version 2>/dev/null`
7362 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7363 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7370 # Let the user override the search
7371 if test -z "$PERL"; then
7372 # Extract the first word of "perl", so it can be a program name with args.
7373 set dummy perl; ac_word=$2
7374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_path_PERL+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7381 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 PERL=$ac_cv_path_PERL
7403 if test -n "$PERL"; then
7404 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7405 $as_echo "$PERL" >&6; }
7407 { $as_echo "$as_me:$LINENO: result: no" >&5
7408 $as_echo "no" >&6; }
7414 if test "$PERL"; then
7415 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'`
7416 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7417 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7418 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7419 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7421 { $as_echo "$as_me:$LINENO: WARNING:
7422 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7423 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7424 $as_echo "$as_me: WARNING:
7425 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7426 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7431 if test -z "$PERL"; then
7432 { $as_echo "$as_me:$LINENO: WARNING:
7433 *** Without Perl you will not be able to build PostgreSQL from Git.
7434 *** You can obtain Perl from any CPAN mirror site.
7435 *** (If you are using the official distribution of PostgreSQL then you do not
7436 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7437 $as_echo "$as_me: WARNING:
7438 *** Without Perl you will not be able to build PostgreSQL from Git.
7439 *** You can obtain Perl from any CPAN mirror site.
7440 *** (If you are using the official distribution of PostgreSQL then you do not
7441 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7444 if test "$with_perl" = yes; then
7445 if test -z "$PERL"; then
7446 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7447 $as_echo "$as_me: error: Perl not found" >&2;}
7448 { (exit 1); exit 1; }; }
7451 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7452 $as_echo_n "checking for Perl archlibexp... " >&6; }
7453 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7454 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7455 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7456 $as_echo "$perl_archlibexp" >&6; }
7457 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7458 $as_echo_n "checking for Perl privlibexp... " >&6; }
7459 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7460 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7461 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7462 $as_echo "$perl_privlibexp" >&6; }
7463 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7464 $as_echo_n "checking for Perl useshrplib... " >&6; }
7465 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7466 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7467 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7468 $as_echo "$perl_useshrplib" >&6; }
7470 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7471 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7472 if test "$PORTNAME" = "win32" ; then
7473 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7474 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7476 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7477 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7478 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7480 if test -z "$perl_embed_ldflags" ; then
7481 { $as_echo "$as_me:$LINENO: result: no" >&5
7482 $as_echo "no" >&6; }
7483 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7484 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7486 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7487 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7489 { (exit 1); exit 1; }; }
7491 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7492 $as_echo "$perl_embed_ldflags" >&6; }
7497 if test "$with_python" = yes; then
7498 # Extract the first word of "python", so it can be a program name with args.
7499 set dummy python; ac_word=$2
7500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_path_PYTHON+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7507 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 PYTHON=$ac_cv_path_PYTHON
7529 if test -n "$PYTHON"; then
7530 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7531 $as_echo "$PYTHON" >&6; }
7533 { $as_echo "$as_me:$LINENO: result: no" >&5
7534 $as_echo "no" >&6; }
7538 if test x"$PYTHON" = x""; then
7539 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7540 $as_echo "$as_me: error: Python not found" >&2;}
7541 { (exit 1); exit 1; }; }
7545 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7546 $as_echo_n "checking for Python distutils module... " >&6; }
7547 if "${PYTHON}" -c 'import distutils' 2>&5
7549 { $as_echo "$as_me:$LINENO: result: yes" >&5
7550 $as_echo "yes" >&6; }
7552 { $as_echo "$as_me:$LINENO: result: no" >&5
7553 $as_echo "no" >&6; }
7554 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7555 $as_echo "$as_me: error: distutils module not found" >&2;}
7556 { (exit 1); exit 1; }; }
7558 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7559 $as_echo_n "checking Python configuration directory... " >&6; }
7560 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7561 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7562 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7563 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7564 $as_echo "$python_configdir" >&6; }
7566 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7567 $as_echo_n "checking Python include directories... " >&6; }
7568 python_includespec=`${PYTHON} -c "
7569 import distutils.sysconfig
7570 a = '-I' + distutils.sysconfig.get_python_inc(False)
7571 b = '-I' + distutils.sysconfig.get_python_inc(True)
7575 print(a + ' ' + b)"`
7576 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7577 $as_echo "$python_includespec" >&6; }
7581 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7582 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7584 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7585 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7586 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7587 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7588 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7589 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7591 if test -n "$python_framework"; then
7592 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7593 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7594 python_enable_shared=1
7595 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7597 # New way: use the official shared library
7598 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7599 python_libspec="-L${python_libdir} -l${ldlibrary}"
7601 # Old way: use libpython from python_configdir
7602 python_libdir="${python_configdir}"
7603 # LDVERSION was introduced in Python 3.2.
7604 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7605 if test x"${python_ldversion}" = x""; then
7606 python_ldversion=$python_version
7608 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7611 if test -z "$python_framework"; then
7612 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7615 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7616 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7619 # threaded python is not supported on OpenBSD
7620 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7621 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7622 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7623 if test "$pythreads" = "1"; then
7624 { $as_echo "$as_me:$LINENO: result: yes" >&5
7625 $as_echo "yes" >&6; }
7628 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7629 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7630 { (exit 1); exit 1; }; }
7634 { $as_echo "$as_me:$LINENO: result: no" >&5
7635 $as_echo "no" >&6; }
7641 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7642 # Extract the first word of "zic", so it can be a program name with args.
7643 set dummy zic; ac_word=$2
7644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if test "${ac_cv_path_ZIC+set}" = set; then
7647 $as_echo_n "(cached) " >&6
7651 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 if test -n "$ZIC"; then
7674 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7675 $as_echo "$ZIC" >&6; }
7677 { $as_echo "$as_me:$LINENO: result: no" >&5
7678 $as_echo "no" >&6; }
7682 if test -z "$ZIC"; then
7683 { { $as_echo "$as_me:$LINENO: error:
7684 When cross-compiling, either use the option --with-system-tzdata to use
7685 existing time-zone data, or set the environment variable ZIC to a zic
7686 program to use during the build." >&5
7687 $as_echo "$as_me: error:
7688 When cross-compiling, either use the option --with-system-tzdata to use
7689 existing time-zone data, or set the environment variable ZIC to a zic
7690 program to use during the build." >&2;}
7691 { (exit 1); exit 1; }; }
7699 ## Most libraries are included only if they demonstrably provide a function
7700 ## we need, but libm is an exception: always include it, because there are
7701 ## too many compilers that play cute optimization games that will break
7702 ## probes for standard functions such as pow().
7706 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7707 $as_echo_n "checking for main in -lm... " >&6; }
7708 if test "${ac_cv_lib_m_main+set}" = set; then
7709 $as_echo_n "(cached) " >&6
7711 ac_check_lib_save_LIBS=$LIBS
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7750 ac_cv_lib_m_main=yes
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7764 $as_echo "$ac_cv_lib_m_main" >&6; }
7765 if test "x$ac_cv_lib_m_main" = x""yes; then
7766 cat >>confdefs.h <<_ACEOF
7774 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7775 $as_echo_n "checking for library containing setproctitle... " >&6; }
7776 if test "${ac_cv_search_setproctitle+set}" = set; then
7777 $as_echo_n "(cached) " >&6
7779 ac_func_search_save_LIBS=$LIBS
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7793 char setproctitle ();
7797 return setproctitle ();
7802 for ac_lib in '' util; do
7803 if test -z "$ac_lib"; then
7804 ac_res="none required"
7807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817 (eval "$ac_link") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest$ac_exeext && {
7827 test "$cross_compiling" = yes ||
7828 $as_test_x conftest$ac_exeext
7830 ac_cv_search_setproctitle=$ac_res
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7838 rm -rf conftest.dSYM
7839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7841 if test "${ac_cv_search_setproctitle+set}" = set; then
7845 if test "${ac_cv_search_setproctitle+set}" = set; then
7848 ac_cv_search_setproctitle=no
7851 LIBS=$ac_func_search_save_LIBS
7853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7854 $as_echo "$ac_cv_search_setproctitle" >&6; }
7855 ac_res=$ac_cv_search_setproctitle
7856 if test "$ac_res" != no; then
7857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7861 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7862 $as_echo_n "checking for library containing dlopen... " >&6; }
7863 if test "${ac_cv_search_dlopen+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7866 ac_func_search_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 /* Override any GCC internal prototype to avoid an error.
7875 Use char because int might match the return type of a GCC
7876 builtin and then its argument prototype would still apply. */
7889 for ac_lib in '' dl; do
7890 if test -z "$ac_lib"; then
7891 ac_res="none required"
7894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext && {
7914 test "$cross_compiling" = yes ||
7915 $as_test_x conftest$ac_exeext
7917 ac_cv_search_dlopen=$ac_res
7919 $as_echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest.dSYM
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928 if test "${ac_cv_search_dlopen+set}" = set; then
7932 if test "${ac_cv_search_dlopen+set}" = set; then
7935 ac_cv_search_dlopen=no
7938 LIBS=$ac_func_search_save_LIBS
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7941 $as_echo "$ac_cv_search_dlopen" >&6; }
7942 ac_res=$ac_cv_search_dlopen
7943 if test "$ac_res" != no; then
7944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7948 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7949 $as_echo_n "checking for library containing socket... " >&6; }
7950 if test "${ac_cv_search_socket+set}" = set; then
7951 $as_echo_n "(cached) " >&6
7953 ac_func_search_save_LIBS=$LIBS
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7976 for ac_lib in '' socket wsock32; do
7977 if test -z "$ac_lib"; then
7978 ac_res="none required"
7981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7990 $as_echo "$ac_try_echo") >&5
7991 (eval "$ac_link") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest$ac_exeext && {
8001 test "$cross_compiling" = yes ||
8002 $as_test_x conftest$ac_exeext
8004 ac_cv_search_socket=$ac_res
8006 $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8012 rm -rf conftest.dSYM
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8015 if test "${ac_cv_search_socket+set}" = set; then
8019 if test "${ac_cv_search_socket+set}" = set; then
8022 ac_cv_search_socket=no
8025 LIBS=$ac_func_search_save_LIBS
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8028 $as_echo "$ac_cv_search_socket" >&6; }
8029 ac_res=$ac_cv_search_socket
8030 if test "$ac_res" != no; then
8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8035 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8036 $as_echo_n "checking for library containing shl_load... " >&6; }
8037 if test "${ac_cv_search_shl_load+set}" = set; then
8038 $as_echo_n "(cached) " >&6
8040 ac_func_search_save_LIBS=$LIBS
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 /* Override any GCC internal prototype to avoid an error.
8049 Use char because int might match the return type of a GCC
8050 builtin and then its argument prototype would still apply. */
8063 for ac_lib in '' dld; do
8064 if test -z "$ac_lib"; then
8065 ac_res="none required"
8068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078 (eval "$ac_link") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest$ac_exeext && {
8088 test "$cross_compiling" = yes ||
8089 $as_test_x conftest$ac_exeext
8091 ac_cv_search_shl_load=$ac_res
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8099 rm -rf conftest.dSYM
8100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8102 if test "${ac_cv_search_shl_load+set}" = set; then
8106 if test "${ac_cv_search_shl_load+set}" = set; then
8109 ac_cv_search_shl_load=no
8112 LIBS=$ac_func_search_save_LIBS
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8115 $as_echo "$ac_cv_search_shl_load" >&6; }
8116 ac_res=$ac_cv_search_shl_load
8117 if test "$ac_res" != no; then
8118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8122 # We only use libld in port/dynloader/aix.c
8125 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8126 $as_echo_n "checking for library containing ldopen... " >&6; }
8127 if test "${ac_cv_search_ldopen+set}" = set; then
8128 $as_echo_n "(cached) " >&6
8130 ac_func_search_save_LIBS=$LIBS
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8138 /* Override any GCC internal prototype to avoid an error.
8139 Use char because int might match the return type of a GCC
8140 builtin and then its argument prototype would still apply. */
8153 for ac_lib in '' ld; do
8154 if test -z "$ac_lib"; then
8155 ac_res="none required"
8158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8167 $as_echo "$ac_try_echo") >&5
8168 (eval "$ac_link") 2>conftest.er1
8170 grep -v '^ *+' conftest.er1 >conftest.err
8172 cat conftest.err >&5
8173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest$ac_exeext && {
8178 test "$cross_compiling" = yes ||
8179 $as_test_x conftest$ac_exeext
8181 ac_cv_search_ldopen=$ac_res
8183 $as_echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8189 rm -rf conftest.dSYM
8190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8192 if test "${ac_cv_search_ldopen+set}" = set; then
8196 if test "${ac_cv_search_ldopen+set}" = set; then
8199 ac_cv_search_ldopen=no
8202 LIBS=$ac_func_search_save_LIBS
8204 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8205 $as_echo "$ac_cv_search_ldopen" >&6; }
8206 ac_res=$ac_cv_search_ldopen
8207 if test "$ac_res" != no; then
8208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8215 $as_echo_n "checking for library containing getopt_long... " >&6; }
8216 if test "${ac_cv_search_getopt_long+set}" = set; then
8217 $as_echo_n "(cached) " >&6
8219 ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8233 char getopt_long ();
8237 return getopt_long ();
8242 for ac_lib in '' getopt gnugetopt; do
8243 if test -z "$ac_lib"; then
8244 ac_res="none required"
8247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8256 $as_echo "$ac_try_echo") >&5
8257 (eval "$ac_link") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext && {
8267 test "$cross_compiling" = yes ||
8268 $as_test_x conftest$ac_exeext
8270 ac_cv_search_getopt_long=$ac_res
8272 $as_echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8278 rm -rf conftest.dSYM
8279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8281 if test "${ac_cv_search_getopt_long+set}" = set; then
8285 if test "${ac_cv_search_getopt_long+set}" = set; then
8288 ac_cv_search_getopt_long=no
8291 LIBS=$ac_func_search_save_LIBS
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8294 $as_echo "$ac_cv_search_getopt_long" >&6; }
8295 ac_res=$ac_cv_search_getopt_long
8296 if test "$ac_res" != no; then
8297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8301 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8302 $as_echo_n "checking for library containing crypt... " >&6; }
8303 if test "${ac_cv_search_crypt+set}" = set; then
8304 $as_echo_n "(cached) " >&6
8306 ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8329 for ac_lib in '' crypt; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8346 grep -v '^ *+' conftest.er1 >conftest.err
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8357 ac_cv_search_crypt=$ac_res
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8368 if test "${ac_cv_search_crypt+set}" = set; then
8372 if test "${ac_cv_search_crypt+set}" = set; then
8375 ac_cv_search_crypt=no
8378 LIBS=$ac_func_search_save_LIBS
8380 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8381 $as_echo "$ac_cv_search_crypt" >&6; }
8382 ac_res=$ac_cv_search_crypt
8383 if test "$ac_res" != no; then
8384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8388 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
8389 $as_echo_n "checking for library containing shm_open... " >&6; }
8390 if test "${ac_cv_search_shm_open+set}" = set; then
8391 $as_echo_n "(cached) " >&6
8393 ac_func_search_save_LIBS=$LIBS
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8416 for ac_lib in '' rt; do
8417 if test -z "$ac_lib"; then
8418 ac_res="none required"
8421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_link") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest$ac_exeext && {
8441 test "$cross_compiling" = yes ||
8442 $as_test_x conftest$ac_exeext
8444 ac_cv_search_shm_open=$ac_res
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8452 rm -rf conftest.dSYM
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 if test "${ac_cv_search_shm_open+set}" = set; then
8459 if test "${ac_cv_search_shm_open+set}" = set; then
8462 ac_cv_search_shm_open=no
8465 LIBS=$ac_func_search_save_LIBS
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
8468 $as_echo "$ac_cv_search_shm_open" >&6; }
8469 ac_res=$ac_cv_search_shm_open
8470 if test "$ac_res" != no; then
8471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8475 { $as_echo "$as_me:$LINENO: checking for library containing shm_unlink" >&5
8476 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8477 if test "${ac_cv_search_shm_unlink+set}" = set; then
8478 $as_echo_n "(cached) " >&6
8480 ac_func_search_save_LIBS=$LIBS
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8498 return shm_unlink ();
8503 for ac_lib in '' rt; do
8504 if test -z "$ac_lib"; then
8505 ac_res="none required"
8508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517 $as_echo "$ac_try_echo") >&5
8518 (eval "$ac_link") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest$ac_exeext && {
8528 test "$cross_compiling" = yes ||
8529 $as_test_x conftest$ac_exeext
8531 ac_cv_search_shm_unlink=$ac_res
8533 $as_echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8539 rm -rf conftest.dSYM
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542 if test "${ac_cv_search_shm_unlink+set}" = set; then
8546 if test "${ac_cv_search_shm_unlink+set}" = set; then
8549 ac_cv_search_shm_unlink=no
8552 LIBS=$ac_func_search_save_LIBS
8554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_unlink" >&5
8555 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8556 ac_res=$ac_cv_search_shm_unlink
8557 if test "$ac_res" != no; then
8558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8563 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8564 $as_echo_n "checking for library containing fdatasync... " >&6; }
8565 if test "${ac_cv_search_fdatasync+set}" = set; then
8566 $as_echo_n "(cached) " >&6
8568 ac_func_search_save_LIBS=$LIBS
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any GCC internal prototype to avoid an error.
8577 Use char because int might match the return type of a GCC
8578 builtin and then its argument prototype would still apply. */
8586 return fdatasync ();
8591 for ac_lib in '' rt posix4; do
8592 if test -z "$ac_lib"; then
8593 ac_res="none required"
8596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8605 $as_echo "$ac_try_echo") >&5
8606 (eval "$ac_link") 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest$ac_exeext && {
8616 test "$cross_compiling" = yes ||
8617 $as_test_x conftest$ac_exeext
8619 ac_cv_search_fdatasync=$ac_res
8621 $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8627 rm -rf conftest.dSYM
8628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8630 if test "${ac_cv_search_fdatasync+set}" = set; then
8634 if test "${ac_cv_search_fdatasync+set}" = set; then
8637 ac_cv_search_fdatasync=no
8640 LIBS=$ac_func_search_save_LIBS
8642 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8643 $as_echo "$ac_cv_search_fdatasync" >&6; }
8644 ac_res=$ac_cv_search_fdatasync
8645 if test "$ac_res" != no; then
8646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8650 # Required for thread_test.c on Solaris 2.5:
8651 # Other ports use it too (HP-UX) so test unconditionally
8652 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8653 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8654 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8655 $as_echo_n "(cached) " >&6
8657 ac_func_search_save_LIBS=$LIBS
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 /* Override any GCC internal prototype to avoid an error.
8666 Use char because int might match the return type of a GCC
8667 builtin and then its argument prototype would still apply. */
8671 char gethostbyname_r ();
8675 return gethostbyname_r ();
8680 for ac_lib in '' nsl; do
8681 if test -z "$ac_lib"; then
8682 ac_res="none required"
8685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (ac_try="$ac_link"
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695 (eval "$ac_link") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest$ac_exeext && {
8705 test "$cross_compiling" = yes ||
8706 $as_test_x conftest$ac_exeext
8708 ac_cv_search_gethostbyname_r=$ac_res
8710 $as_echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8716 rm -rf conftest.dSYM
8717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8719 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8723 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8726 ac_cv_search_gethostbyname_r=no
8729 LIBS=$ac_func_search_save_LIBS
8731 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8732 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8733 ac_res=$ac_cv_search_gethostbyname_r
8734 if test "$ac_res" != no; then
8735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8740 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8741 $as_echo_n "checking for library containing shmget... " >&6; }
8742 if test "${ac_cv_search_shmget+set}" = set; then
8743 $as_echo_n "(cached) " >&6
8745 ac_func_search_save_LIBS=$LIBS
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8753 /* Override any GCC internal prototype to avoid an error.
8754 Use char because int might match the return type of a GCC
8755 builtin and then its argument prototype would still apply. */
8768 for ac_lib in '' cygipc; do
8769 if test -z "$ac_lib"; then
8770 ac_res="none required"
8773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8782 $as_echo "$ac_try_echo") >&5
8783 (eval "$ac_link") 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest$ac_exeext && {
8793 test "$cross_compiling" = yes ||
8794 $as_test_x conftest$ac_exeext
8796 ac_cv_search_shmget=$ac_res
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8804 rm -rf conftest.dSYM
8805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807 if test "${ac_cv_search_shmget+set}" = set; then
8811 if test "${ac_cv_search_shmget+set}" = set; then
8814 ac_cv_search_shmget=no
8817 LIBS=$ac_func_search_save_LIBS
8819 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8820 $as_echo "$ac_cv_search_shmget" >&6; }
8821 ac_res=$ac_cv_search_shmget
8822 if test "$ac_res" != no; then
8823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8828 if test "$with_readline" = yes; then
8831 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8832 $as_echo_n "checking for library containing readline... " >&6; }
8833 if test "${pgac_cv_check_readline+set}" = set; then
8834 $as_echo_n "(cached) " >&6
8836 pgac_cv_check_readline=no
8837 pgac_save_LIBS=$LIBS
8838 if test x"$with_libedit_preferred" != x"yes"
8839 then READLINE_ORDER="-lreadline -ledit"
8840 else READLINE_ORDER="-ledit -lreadline"
8842 for pgac_rllib in $READLINE_ORDER ; do
8843 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8844 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any GCC internal prototype to avoid an error.
8853 Use char because int might match the return type of a GCC
8854 builtin and then its argument prototype would still apply. */
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (ac_try="$ac_link"
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8874 $as_echo "$ac_try_echo") >&5
8875 (eval "$ac_link") 2>conftest.er1
8877 grep -v '^ *+' conftest.er1 >conftest.err
8879 cat conftest.err >&5
8880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest$ac_exeext && {
8885 test "$cross_compiling" = yes ||
8886 $as_test_x conftest$ac_exeext
8889 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8890 # recognize dependent libraries; assume curses is needed if we didn't
8891 # find any dependency.
8893 netbsd* | openbsd* | irix*)
8894 if test x"$pgac_lib" = x"" ; then
8895 pgac_lib=" -lcurses"
8899 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8909 rm -rf conftest.dSYM
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8913 if test "$pgac_cv_check_readline" != no ; then
8917 LIBS=$pgac_save_LIBS
8920 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8921 $as_echo "$pgac_cv_check_readline" >&6; }
8922 if test "$pgac_cv_check_readline" != no ; then
8923 LIBS="$pgac_cv_check_readline $LIBS"
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_LIBREADLINE 1
8932 if test x"$pgac_cv_check_readline" = x"no"; then
8933 { { $as_echo "$as_me:$LINENO: error: readline library not found
8934 If you have readline already installed, see config.log for details on the
8935 failure. It is possible the compiler isn't looking in the proper directory.
8936 Use --without-readline to disable readline support." >&5
8937 $as_echo "$as_me: error: readline library not found
8938 If you have readline already installed, see config.log for details on the
8939 failure. It is possible the compiler isn't looking in the proper directory.
8940 Use --without-readline to disable readline support." >&2;}
8941 { (exit 1); exit 1; }; }
8945 if test "$with_zlib" = yes; then
8947 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8948 $as_echo_n "checking for inflate in -lz... " >&6; }
8949 if test "${ac_cv_lib_z_inflate+set}" = set; then
8950 $as_echo_n "(cached) " >&6
8952 ac_check_lib_save_LIBS=$LIBS
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8961 /* Override any GCC internal prototype to avoid an error.
8962 Use char because int might match the return type of a GCC
8963 builtin and then its argument prototype would still apply. */
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (ac_try="$ac_link"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8983 $as_echo "$ac_try_echo") >&5
8984 (eval "$ac_link") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest$ac_exeext && {
8994 test "$cross_compiling" = yes ||
8995 $as_test_x conftest$ac_exeext
8997 ac_cv_lib_z_inflate=yes
8999 $as_echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_cv_lib_z_inflate=no
9005 rm -rf conftest.dSYM
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
9011 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9012 if test "x$ac_cv_lib_z_inflate" = x""yes; then
9013 cat >>confdefs.h <<_ACEOF
9020 { { $as_echo "$as_me:$LINENO: error: zlib library not found
9021 If you have zlib already installed, see config.log for details on the
9022 failure. It is possible the compiler isn't looking in the proper directory.
9023 Use --without-zlib to disable zlib support." >&5
9024 $as_echo "$as_me: error: zlib library not found
9025 If you have zlib already installed, see config.log for details on the
9026 failure. It is possible the compiler isn't looking in the proper directory.
9027 Use --without-zlib to disable zlib support." >&2;}
9028 { (exit 1); exit 1; }; }
9033 if test "$enable_spinlocks" = yes; then
9035 cat >>confdefs.h <<\_ACEOF
9036 #define HAVE_SPINLOCKS 1
9040 { $as_echo "$as_me:$LINENO: WARNING:
9041 *** Not using spinlocks will cause poor performance." >&5
9042 $as_echo "$as_me: WARNING:
9043 *** Not using spinlocks will cause poor performance." >&2;}
9046 if test "$with_gssapi" = yes ; then
9047 if test "$PORTNAME" != "win32"; then
9048 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
9049 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9050 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9051 $as_echo_n "(cached) " >&6
9053 ac_func_search_save_LIBS=$LIBS
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9067 char gss_init_sec_context ();
9071 return gss_init_sec_context ();
9076 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9077 if test -z "$ac_lib"; then
9078 ac_res="none required"
9081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (ac_try="$ac_link"
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9090 $as_echo "$ac_try_echo") >&5
9091 (eval "$ac_link") 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest$ac_exeext && {
9101 test "$cross_compiling" = yes ||
9102 $as_test_x conftest$ac_exeext
9104 ac_cv_search_gss_init_sec_context=$ac_res
9106 $as_echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9112 rm -rf conftest.dSYM
9113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9115 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9119 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9122 ac_cv_search_gss_init_sec_context=no
9125 LIBS=$ac_func_search_save_LIBS
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
9128 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9129 ac_res=$ac_cv_search_gss_init_sec_context
9130 if test "$ac_res" != no; then
9131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9134 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
9135 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
9136 { (exit 1); exit 1; }; }
9140 LIBS="$LIBS -lgssapi32"
9144 if test "$with_krb5" = yes ; then
9145 if test "$PORTNAME" != "win32"; then
9146 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9147 $as_echo_n "checking for library containing com_err... " >&6; }
9148 if test "${ac_cv_search_com_err+set}" = set; then
9149 $as_echo_n "(cached) " >&6
9151 ac_func_search_save_LIBS=$LIBS
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9174 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9175 if test -z "$ac_lib"; then
9176 ac_res="none required"
9179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189 (eval "$ac_link") 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext && {
9199 test "$cross_compiling" = yes ||
9200 $as_test_x conftest$ac_exeext
9202 ac_cv_search_com_err=$ac_res
9204 $as_echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9210 rm -rf conftest.dSYM
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213 if test "${ac_cv_search_com_err+set}" = set; then
9217 if test "${ac_cv_search_com_err+set}" = set; then
9220 ac_cv_search_com_err=no
9223 LIBS=$ac_func_search_save_LIBS
9225 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9226 $as_echo "$ac_cv_search_com_err" >&6; }
9227 ac_res=$ac_cv_search_com_err
9228 if test "$ac_res" != no; then
9229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9232 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9233 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9234 { (exit 1); exit 1; }; }
9237 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9238 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9239 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9240 $as_echo_n "(cached) " >&6
9242 ac_func_search_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9256 char krb5_sendauth ();
9260 return krb5_sendauth ();
9265 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9279 $as_echo "$ac_try_echo") >&5
9280 (eval "$ac_link") 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && {
9287 test -z "$ac_c_werror_flag" ||
9288 test ! -s conftest.err
9289 } && test -s conftest$ac_exeext && {
9290 test "$cross_compiling" = yes ||
9291 $as_test_x conftest$ac_exeext
9293 ac_cv_search_krb5_sendauth=$ac_res
9295 $as_echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9301 rm -rf conftest.dSYM
9302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9308 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9311 ac_cv_search_krb5_sendauth=no
9314 LIBS=$ac_func_search_save_LIBS
9316 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9317 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9318 ac_res=$ac_cv_search_krb5_sendauth
9319 if test "$ac_res" != no; then
9320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9323 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9324 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9325 { (exit 1); exit 1; }; }
9329 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9330 $as_echo_n "checking for library containing com_err... " >&6; }
9331 if test "${ac_cv_search_com_err+set}" = set; then
9332 $as_echo_n "(cached) " >&6
9334 ac_func_search_save_LIBS=$LIBS
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9357 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9358 if test -z "$ac_lib"; then
9359 ac_res="none required"
9362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (ac_try="$ac_link"
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372 (eval "$ac_link") 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext && {
9382 test "$cross_compiling" = yes ||
9383 $as_test_x conftest$ac_exeext
9385 ac_cv_search_com_err=$ac_res
9387 $as_echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9393 rm -rf conftest.dSYM
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9396 if test "${ac_cv_search_com_err+set}" = set; then
9400 if test "${ac_cv_search_com_err+set}" = set; then
9403 ac_cv_search_com_err=no
9406 LIBS=$ac_func_search_save_LIBS
9408 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9409 $as_echo "$ac_cv_search_com_err" >&6; }
9410 ac_res=$ac_cv_search_com_err
9411 if test "$ac_res" != no; then
9412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9415 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9416 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9417 { (exit 1); exit 1; }; }
9423 if test "$with_openssl" = yes ; then
9424 if test "$PORTNAME" != "win32"; then
9426 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9427 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9428 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9429 $as_echo_n "(cached) " >&6
9431 ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-lcrypto $LIBS"
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9446 char CRYPTO_new_ex_data ();
9450 return CRYPTO_new_ex_data ();
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9462 $as_echo "$ac_try_echo") >&5
9463 (eval "$ac_link") 2>conftest.er1
9465 grep -v '^ *+' conftest.er1 >conftest.err
9467 cat conftest.err >&5
9468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest$ac_exeext && {
9473 test "$cross_compiling" = yes ||
9474 $as_test_x conftest$ac_exeext
9476 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9478 $as_echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9484 rm -rf conftest.dSYM
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9490 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9491 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_LIBCRYPTO 1
9496 LIBS="-lcrypto $LIBS"
9499 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9500 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9501 { (exit 1); exit 1; }; }
9505 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9506 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9507 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9508 $as_echo_n "(cached) " >&6
9510 ac_check_lib_save_LIBS=$LIBS
9512 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9525 char SSL_library_init ();
9529 return SSL_library_init ();
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541 $as_echo "$ac_try_echo") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext && {
9552 test "$cross_compiling" = yes ||
9553 $as_test_x conftest$ac_exeext
9555 ac_cv_lib_ssl_SSL_library_init=yes
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_lib_ssl_SSL_library_init=no
9563 rm -rf conftest.dSYM
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9569 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9570 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define HAVE_LIBSSL 1
9578 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9579 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9580 { (exit 1); exit 1; }; }
9584 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9585 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9586 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9587 $as_echo_n "(cached) " >&6
9589 ac_func_search_save_LIBS=$LIBS
9590 cat >conftest.$ac_ext <<_ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9603 char CRYPTO_new_ex_data ();
9607 return CRYPTO_new_ex_data ();
9612 for ac_lib in '' eay32 crypto; do
9613 if test -z "$ac_lib"; then
9614 ac_res="none required"
9617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9626 $as_echo "$ac_try_echo") >&5
9627 (eval "$ac_link") 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest$ac_exeext && {
9637 test "$cross_compiling" = yes ||
9638 $as_test_x conftest$ac_exeext
9640 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9642 $as_echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9648 rm -rf conftest.dSYM
9649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9655 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9658 ac_cv_search_CRYPTO_new_ex_data=no
9661 LIBS=$ac_func_search_save_LIBS
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9664 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9665 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9666 if test "$ac_res" != no; then
9667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9670 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9671 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9672 { (exit 1); exit 1; }; }
9675 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9676 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9677 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9678 $as_echo_n "(cached) " >&6
9680 ac_func_search_save_LIBS=$LIBS
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9694 char SSL_library_init ();
9698 return SSL_library_init ();
9703 for ac_lib in '' ssleay32 ssl; do
9704 if test -z "$ac_lib"; then
9705 ac_res="none required"
9708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext && {
9728 test "$cross_compiling" = yes ||
9729 $as_test_x conftest$ac_exeext
9731 ac_cv_search_SSL_library_init=$ac_res
9733 $as_echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9739 rm -rf conftest.dSYM
9740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9746 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9749 ac_cv_search_SSL_library_init=no
9752 LIBS=$ac_func_search_save_LIBS
9754 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9755 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9756 ac_res=$ac_cv_search_SSL_library_init
9757 if test "$ac_res" != no; then
9758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9761 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9762 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9763 { (exit 1); exit 1; }; }
9769 if test "$with_pam" = yes ; then
9771 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9772 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9773 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9774 $as_echo_n "(cached) " >&6
9776 ac_check_lib_save_LIBS=$LIBS
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9785 /* Override any GCC internal prototype to avoid an error.
9786 Use char because int might match the return type of a GCC
9787 builtin and then its argument prototype would still apply. */
9795 return pam_start ();
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (ac_try="$ac_link"
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9807 $as_echo "$ac_try_echo") >&5
9808 (eval "$ac_link") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext && {
9818 test "$cross_compiling" = yes ||
9819 $as_test_x conftest$ac_exeext
9821 ac_cv_lib_pam_pam_start=yes
9823 $as_echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9826 ac_cv_lib_pam_pam_start=no
9829 rm -rf conftest.dSYM
9830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9834 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9835 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9836 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9837 cat >>confdefs.h <<_ACEOF
9838 #define HAVE_LIBPAM 1
9844 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9845 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9846 { (exit 1); exit 1; }; }
9851 if test "$with_libxml" = yes ; then
9853 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9854 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9855 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9856 $as_echo_n "(cached) " >&6
9858 ac_check_lib_save_LIBS=$LIBS
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9873 char xmlSaveToBuffer ();
9877 return xmlSaveToBuffer ();
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9889 $as_echo "$ac_try_echo") >&5
9890 (eval "$ac_link") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest$ac_exeext && {
9900 test "$cross_compiling" = yes ||
9901 $as_test_x conftest$ac_exeext
9903 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9905 $as_echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_cv_lib_xml2_xmlSaveToBuffer=no
9911 rm -rf conftest.dSYM
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9917 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9918 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE_LIBXML2 1
9926 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9927 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9928 { (exit 1); exit 1; }; }
9933 if test "$with_libxslt" = yes ; then
9935 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9936 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9937 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9938 $as_echo_n "(cached) " >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9955 char xsltCleanupGlobals ();
9959 return xsltCleanupGlobals ();
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972 (eval "$ac_link") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext && {
9982 test "$cross_compiling" = yes ||
9983 $as_test_x conftest$ac_exeext
9985 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9987 $as_echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_lib_xslt_xsltCleanupGlobals=no
9993 rm -rf conftest.dSYM
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995 conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9999 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
10000 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define HAVE_LIBXSLT 1
10005 LIBS="-lxslt $LIBS"
10008 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
10009 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
10010 { (exit 1); exit 1; }; }
10015 # for contrib/sepgsql
10016 if test "$with_selinux" = yes; then
10018 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
10019 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10020 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
10021 $as_echo_n "(cached) " >&6
10023 ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lselinux $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10038 char security_compute_create_name ();
10042 return security_compute_create_name ();
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10054 $as_echo "$ac_try_echo") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest$ac_exeext && {
10065 test "$cross_compiling" = yes ||
10066 $as_test_x conftest$ac_exeext
10068 ac_cv_lib_selinux_security_compute_create_name=yes
10070 $as_echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_cv_lib_selinux_security_compute_create_name=no
10076 rm -rf conftest.dSYM
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10082 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10083 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_LIBSELINUX 1
10088 LIBS="-lselinux $LIBS"
10091 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
10092 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
10093 { (exit 1); exit 1; }; }
10098 # for contrib/uuid-ossp
10099 if test "$with_ossp_uuid" = yes ; then
10100 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
10101 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10102 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
10103 $as_echo_n "(cached) " >&6
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-lossp-uuid $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10120 char uuid_export ();
10124 return uuid_export ();
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_link") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest$ac_exeext && {
10147 test "$cross_compiling" = yes ||
10148 $as_test_x conftest$ac_exeext
10150 ac_cv_lib_ossp_uuid_uuid_export=yes
10152 $as_echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ac_cv_lib_ossp_uuid_uuid_export=no
10158 rm -rf conftest.dSYM
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10164 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10165 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
10166 OSSP_UUID_LIBS="-lossp-uuid"
10168 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
10169 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10170 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
10171 $as_echo_n "(cached) " >&6
10173 ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-luuid $LIBS"
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10188 char uuid_export ();
10192 return uuid_export ();
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext && {
10215 test "$cross_compiling" = yes ||
10216 $as_test_x conftest$ac_exeext
10218 ac_cv_lib_uuid_uuid_export=yes
10220 $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_lib_uuid_uuid_export=no
10226 rm -rf conftest.dSYM
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10232 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10233 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10234 OSSP_UUID_LIBS="-luuid"
10236 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10237 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10238 { (exit 1); exit 1; }; }
10251 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10252 $as_echo_n "checking for ANSI C header files... " >&6; }
10253 if test "${ac_cv_header_stdc+set}" = set; then
10254 $as_echo_n "(cached) " >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <stdlib.h>
10263 #include <stdarg.h>
10264 #include <string.h>
10275 rm -f conftest.$ac_objext
10276 if { (ac_try="$ac_compile"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10282 $as_echo "$ac_try_echo") >&5
10283 (eval "$ac_compile") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest.$ac_objext; then
10293 ac_cv_header_stdc=yes
10295 $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_cv_header_stdc=no
10301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303 if test $ac_cv_header_stdc = yes; then
10304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <string.h>
10314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10315 $EGREP "memchr" >/dev/null 2>&1; then
10318 ac_cv_header_stdc=no
10324 if test $ac_cv_header_stdc = yes; then
10325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 #include <stdlib.h>
10335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10336 $EGREP "free" >/dev/null 2>&1; then
10339 ac_cv_header_stdc=no
10345 if test $ac_cv_header_stdc = yes; then
10346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10347 if test "$cross_compiling" = yes; then
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10357 #include <stdlib.h>
10358 #if ((' ' & 0x0FF) == 0x020)
10359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10362 # define ISLOWER(c) \
10363 (('a' <= (c) && (c) <= 'i') \
10364 || ('j' <= (c) && (c) <= 'r') \
10365 || ('s' <= (c) && (c) <= 'z'))
10366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10374 for (i = 0; i < 256; i++)
10375 if (XOR (islower (i), ISLOWER (i))
10376 || toupper (i) != TOUPPER (i))
10381 rm -f conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_link") 2>&5
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399 (eval "$ac_try") 2>&5
10401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10405 $as_echo "$as_me: program exited with status $ac_status" >&5
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ( exit $ac_status )
10410 ac_cv_header_stdc=no
10412 rm -rf conftest.dSYM
10413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10420 $as_echo "$ac_cv_header_stdc" >&6; }
10421 if test $ac_cv_header_stdc = yes; then
10423 cat >>confdefs.h <<\_ACEOF
10424 #define STDC_HEADERS 1
10429 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10440 inttypes.h stdint.h unistd.h
10442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 $as_echo_n "checking for $ac_header... " >&6; }
10445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10446 $as_echo_n "(cached) " >&6
10448 cat >conftest.$ac_ext <<_ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 $ac_includes_default
10456 #include <$ac_header>
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 eval "$as_ac_Header=yes"
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 eval "$as_ac_Header=no"
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 ac_res=`eval 'as_val=${'$as_ac_Header'}
10487 $as_echo "$as_val"'`
10488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10489 $as_echo "$ac_res" >&6; }
10490 as_val=`eval 'as_val=${'$as_ac_Header'}
10491 $as_echo "$as_val"'`
10492 if test "x$as_val" = x""yes; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10529 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
10531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10533 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10534 $as_echo_n "checking for $ac_header... " >&6; }
10535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536 $as_echo_n "(cached) " >&6
10538 ac_res=`eval 'as_val=${'$as_ac_Header'}
10539 $as_echo "$as_val"'`
10540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10541 $as_echo "$ac_res" >&6; }
10543 # Is the header compilable?
10544 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10545 $as_echo_n "checking $ac_header usability... " >&6; }
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 $ac_includes_default
10553 #include <$ac_header>
10555 rm -f conftest.$ac_objext
10556 if { (ac_try="$ac_compile"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10562 $as_echo "$ac_try_echo") >&5
10563 (eval "$ac_compile") 2>conftest.er1
10565 grep -v '^ *+' conftest.er1 >conftest.err
10567 cat conftest.err >&5
10568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && {
10570 test -z "$ac_c_werror_flag" ||
10571 test ! -s conftest.err
10572 } && test -s conftest.$ac_objext; then
10573 ac_header_compiler=yes
10575 $as_echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_header_compiler=no
10581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10583 $as_echo "$ac_header_compiler" >&6; }
10585 # Is the header present?
10586 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10587 $as_echo_n "checking $ac_header presence... " >&6; }
10588 cat >conftest.$ac_ext <<_ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 #include <$ac_header>
10596 if { (ac_try="$ac_cpp conftest.$ac_ext"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } >/dev/null && {
10610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10613 ac_header_preproc=yes
10615 $as_echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_header_preproc=no
10621 rm -f conftest.err conftest.$ac_ext
10622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 $as_echo "$ac_header_preproc" >&6; }
10625 # So? What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc=yes
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10648 ## ---------------------------------------- ##
10649 ## Report this to pgsql-bugs@postgresql.org ##
10650 ## ---------------------------------------- ##
10652 ) | sed "s/^/$as_me: WARNING: /" >&2
10655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 $as_echo_n "(cached) " >&6
10660 eval "$as_ac_Header=\$ac_header_preproc"
10662 ac_res=`eval 'as_val=${'$as_ac_Header'}
10663 $as_echo "$as_val"'`
10664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10665 $as_echo "$ac_res" >&6; }
10668 as_val=`eval 'as_val=${'$as_ac_Header'}
10669 $as_echo "$as_val"'`
10670 if test "x$as_val" = x""yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 # On BSD, test for net/if.h will fail unless sys/socket.h
10681 # is included first.
10683 for ac_header in net/if.h
10685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 $as_echo_n "checking for $ac_header... " >&6; }
10688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10689 $as_echo_n "(cached) " >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 $ac_includes_default
10698 #ifdef HAVE_SYS_SOCKET_H
10699 #include <sys/socket.h>
10703 #include <$ac_header>
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 eval "$as_ac_Header=yes"
10725 $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 eval "$as_ac_Header=no"
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 ac_res=`eval 'as_val=${'$as_ac_Header'}
10734 $as_echo "$as_val"'`
10735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10736 $as_echo "$ac_res" >&6; }
10737 as_val=`eval 'as_val=${'$as_ac_Header'}
10738 $as_echo "$as_val"'`
10739 if test "x$as_val" = x""yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10750 # is included first.
10752 for ac_header in sys/ucred.h
10754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 $as_echo_n "checking for $ac_header... " >&6; }
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 $as_echo_n "(cached) " >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 #include <sys/param.h>
10770 #include <$ac_header>
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest.$ac_objext; then
10790 eval "$as_ac_Header=yes"
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 eval "$as_ac_Header=no"
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 ac_res=`eval 'as_val=${'$as_ac_Header'}
10801 $as_echo "$as_val"'`
10802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10804 as_val=`eval 'as_val=${'$as_ac_Header'}
10805 $as_echo "$as_val"'`
10806 if test "x$as_val" = x""yes; then
10807 cat >>confdefs.h <<_ACEOF
10808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816 # At least on IRIX, test for netinet/tcp.h will fail unless
10817 # netinet/in.h is included first.
10819 for ac_header in netinet/in.h
10821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 $as_echo_n "checking for $ac_header... " >&6; }
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 $as_echo_n "(cached) " >&6
10828 ac_res=`eval 'as_val=${'$as_ac_Header'}
10829 $as_echo "$as_val"'`
10830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10831 $as_echo "$ac_res" >&6; }
10833 # Is the header compilable?
10834 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10835 $as_echo_n "checking $ac_header usability... " >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 $ac_includes_default
10843 #include <$ac_header>
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853 (eval "$ac_compile") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest.$ac_objext; then
10863 ac_header_compiler=yes
10865 $as_echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_header_compiler=no
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10873 $as_echo "$ac_header_compiler" >&6; }
10875 # Is the header present?
10876 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10877 $as_echo_n "checking $ac_header presence... " >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 #include <$ac_header>
10886 if { (ac_try="$ac_cpp conftest.$ac_ext"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10892 $as_echo "$ac_try_echo") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null && {
10900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10903 ac_header_preproc=yes
10905 $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_preproc=no
10911 rm -f conftest.err conftest.$ac_ext
10912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913 $as_echo "$ac_header_preproc" >&6; }
10915 # So? What about this header?
10916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10922 ac_header_preproc=yes
10925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10938 ## ---------------------------------------- ##
10939 ## Report this to pgsql-bugs@postgresql.org ##
10940 ## ---------------------------------------- ##
10942 ) | sed "s/^/$as_me: WARNING: /" >&2
10945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 $as_echo_n "checking for $ac_header... " >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948 $as_echo_n "(cached) " >&6
10950 eval "$as_ac_Header=\$ac_header_preproc"
10952 ac_res=`eval 'as_val=${'$as_ac_Header'}
10953 $as_echo "$as_val"'`
10954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10955 $as_echo "$ac_res" >&6; }
10958 as_val=`eval 'as_val=${'$as_ac_Header'}
10959 $as_echo "$as_val"'`
10960 if test "x$as_val" = x""yes; then
10961 cat >>confdefs.h <<_ACEOF
10962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10970 for ac_header in netinet/tcp.h
10972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10973 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10974 $as_echo_n "checking for $ac_header... " >&6; }
10975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10976 $as_echo_n "(cached) " >&6
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #ifdef HAVE_NETINET_IN_H
10986 #include <netinet/in.h>
10990 #include <$ac_header>
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11010 eval "$as_ac_Header=yes"
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 eval "$as_ac_Header=no"
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 ac_res=`eval 'as_val=${'$as_ac_Header'}
11021 $as_echo "$as_val"'`
11022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11023 $as_echo "$ac_res" >&6; }
11024 as_val=`eval 'as_val=${'$as_ac_Header'}
11025 $as_echo "$as_val"'`
11026 if test "x$as_val" = x""yes; then
11027 cat >>confdefs.h <<_ACEOF
11028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11036 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
11038 for ac_header in readline/readline.h
11040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 $as_echo_n "checking for $ac_header... " >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 $as_echo_n "(cached) " >&6
11047 ac_res=`eval 'as_val=${'$as_ac_Header'}
11048 $as_echo "$as_val"'`
11049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11050 $as_echo "$ac_res" >&6; }
11052 # Is the header compilable?
11053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11054 $as_echo_n "checking $ac_header usability... " >&6; }
11055 cat >conftest.$ac_ext <<_ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 $ac_includes_default
11062 #include <$ac_header>
11064 rm -f conftest.$ac_objext
11065 if { (ac_try="$ac_compile"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071 $as_echo "$ac_try_echo") >&5
11072 (eval "$ac_compile") 2>conftest.er1
11074 grep -v '^ *+' conftest.er1 >conftest.err
11076 cat conftest.err >&5
11077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_c_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest.$ac_objext; then
11082 ac_header_compiler=yes
11084 $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_header_compiler=no
11090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11092 $as_echo "$ac_header_compiler" >&6; }
11094 # Is the header present?
11095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11096 $as_echo_n "checking $ac_header presence... " >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 #include <$ac_header>
11105 if { (ac_try="$ac_cpp conftest.$ac_ext"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111 $as_echo "$ac_try_echo") >&5
11112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } >/dev/null && {
11119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11122 ac_header_preproc=yes
11124 $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_header_preproc=no
11130 rm -f conftest.err conftest.$ac_ext
11131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11132 $as_echo "$ac_header_preproc" >&6; }
11134 # So? What about this header?
11135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11141 ac_header_preproc=yes
11144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11157 ## ---------------------------------------- ##
11158 ## Report this to pgsql-bugs@postgresql.org ##
11159 ## ---------------------------------------- ##
11161 ) | sed "s/^/$as_me: WARNING: /" >&2
11164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11165 $as_echo_n "checking for $ac_header... " >&6; }
11166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 $as_echo_n "(cached) " >&6
11169 eval "$as_ac_Header=\$ac_header_preproc"
11171 ac_res=`eval 'as_val=${'$as_ac_Header'}
11172 $as_echo "$as_val"'`
11173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11174 $as_echo "$ac_res" >&6; }
11177 as_val=`eval 'as_val=${'$as_ac_Header'}
11178 $as_echo "$as_val"'`
11179 if test "x$as_val" = x""yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11186 for ac_header in readline.h
11188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 $as_echo_n "checking for $ac_header... " >&6; }
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 $as_echo_n "(cached) " >&6
11195 ac_res=`eval 'as_val=${'$as_ac_Header'}
11196 $as_echo "$as_val"'`
11197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11198 $as_echo "$ac_res" >&6; }
11200 # Is the header compilable?
11201 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11202 $as_echo_n "checking $ac_header usability... " >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11210 #include <$ac_header>
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219 $as_echo "$ac_try_echo") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest.$ac_objext; then
11230 ac_header_compiler=yes
11232 $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 $as_echo "$ac_header_compiler" >&6; }
11242 # Is the header present?
11243 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 $as_echo_n "checking $ac_header presence... " >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <$ac_header>
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11259 $as_echo "$ac_try_echo") >&5
11260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } >/dev/null && {
11267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11270 ac_header_preproc=yes
11272 $as_echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_header_preproc=no
11278 rm -f conftest.err conftest.$ac_ext
11279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11280 $as_echo "$ac_header_preproc" >&6; }
11282 # So? What about this header?
11283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11289 ac_header_preproc=yes
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11303 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305 ## ---------------------------------------- ##
11306 ## Report this to pgsql-bugs@postgresql.org ##
11307 ## ---------------------------------------- ##
11309 ) | sed "s/^/$as_me: WARNING: /" >&2
11312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 $as_echo_n "checking for $ac_header... " >&6; }
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 $as_echo_n "(cached) " >&6
11317 eval "$as_ac_Header=\$ac_header_preproc"
11319 ac_res=`eval 'as_val=${'$as_ac_Header'}
11320 $as_echo "$as_val"'`
11321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322 $as_echo "$ac_res" >&6; }
11325 as_val=`eval 'as_val=${'$as_ac_Header'}
11326 $as_echo "$as_val"'`
11327 if test "x$as_val" = x""yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 { { $as_echo "$as_me:$LINENO: error: readline header not found
11334 If you have readline already installed, see config.log for details on the
11335 failure. It is possible the compiler isn't looking in the proper directory.
11336 Use --without-readline to disable readline support." >&5
11337 $as_echo "$as_me: error: readline header not found
11338 If you have readline already installed, see config.log for details on the
11339 failure. It is possible the compiler isn't looking in the proper directory.
11340 Use --without-readline to disable readline support." >&2;}
11341 { (exit 1); exit 1; }; }
11351 for ac_header in readline/history.h
11353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 $as_echo_n "checking for $ac_header... " >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 $as_echo_n "(cached) " >&6
11360 ac_res=`eval 'as_val=${'$as_ac_Header'}
11361 $as_echo "$as_val"'`
11362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11363 $as_echo "$ac_res" >&6; }
11365 # Is the header compilable?
11366 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11367 $as_echo_n "checking $ac_header usability... " >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 $ac_includes_default
11375 #include <$ac_header>
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest.$ac_objext; then
11395 ac_header_compiler=yes
11397 $as_echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_header_compiler=no
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 $as_echo "$ac_header_compiler" >&6; }
11407 # Is the header present?
11408 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409 $as_echo_n "checking $ac_header presence... " >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #include <$ac_header>
11418 if { (ac_try="$ac_cpp conftest.$ac_ext"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424 $as_echo "$ac_try_echo") >&5
11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } >/dev/null && {
11432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11435 ac_header_preproc=yes
11437 $as_echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_header_preproc=no
11443 rm -f conftest.err conftest.$ac_ext
11444 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 $as_echo "$ac_header_preproc" >&6; }
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470 ## ---------------------------------------- ##
11471 ## Report this to pgsql-bugs@postgresql.org ##
11472 ## ---------------------------------------- ##
11474 ) | sed "s/^/$as_me: WARNING: /" >&2
11477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 $as_echo_n "checking for $ac_header... " >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 $as_echo_n "(cached) " >&6
11482 eval "$as_ac_Header=\$ac_header_preproc"
11484 ac_res=`eval 'as_val=${'$as_ac_Header'}
11485 $as_echo "$as_val"'`
11486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11487 $as_echo "$ac_res" >&6; }
11490 as_val=`eval 'as_val=${'$as_ac_Header'}
11491 $as_echo "$as_val"'`
11492 if test "x$as_val" = x""yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11499 for ac_header in history.h
11501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11504 $as_echo_n "checking for $ac_header... " >&6; }
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 $as_echo_n "(cached) " >&6
11508 ac_res=`eval 'as_val=${'$as_ac_Header'}
11509 $as_echo "$as_val"'`
11510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11511 $as_echo "$ac_res" >&6; }
11513 # Is the header compilable?
11514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11515 $as_echo_n "checking $ac_header usability... " >&6; }
11516 cat >conftest.$ac_ext <<_ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 #include <$ac_header>
11525 rm -f conftest.$ac_objext
11526 if { (ac_try="$ac_compile"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532 $as_echo "$ac_try_echo") >&5
11533 (eval "$ac_compile") 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } && {
11540 test -z "$ac_c_werror_flag" ||
11541 test ! -s conftest.err
11542 } && test -s conftest.$ac_objext; then
11543 ac_header_compiler=yes
11545 $as_echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_header_compiler=no
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 $as_echo "$ac_header_compiler" >&6; }
11555 # Is the header present?
11556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 $as_echo_n "checking $ac_header presence... " >&6; }
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 #include <$ac_header>
11566 if { (ac_try="$ac_cpp conftest.$ac_ext"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11572 $as_echo "$ac_try_echo") >&5
11573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11575 grep -v '^ *+' conftest.er1 >conftest.err
11577 cat conftest.err >&5
11578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null && {
11580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11581 test ! -s conftest.err
11583 ac_header_preproc=yes
11585 $as_echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_preproc=no
11591 rm -f conftest.err conftest.$ac_ext
11592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11593 $as_echo "$ac_header_preproc" >&6; }
11595 # So? What about this header?
11596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11602 ac_header_preproc=yes
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11618 ## ---------------------------------------- ##
11619 ## Report this to pgsql-bugs@postgresql.org ##
11620 ## ---------------------------------------- ##
11622 ) | sed "s/^/$as_me: WARNING: /" >&2
11625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626 $as_echo_n "checking for $ac_header... " >&6; }
11627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11630 eval "$as_ac_Header=\$ac_header_preproc"
11632 ac_res=`eval 'as_val=${'$as_ac_Header'}
11633 $as_echo "$as_val"'`
11634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635 $as_echo "$ac_res" >&6; }
11638 as_val=`eval 'as_val=${'$as_ac_Header'}
11639 $as_echo "$as_val"'`
11640 if test "x$as_val" = x""yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 { { $as_echo "$as_me:$LINENO: error: history header not found
11647 If you have readline already installed, see config.log for details on the
11648 failure. It is possible the compiler isn't looking in the proper directory.
11649 Use --without-readline to disable readline support." >&5
11650 $as_echo "$as_me: error: history header not found
11651 If you have readline already installed, see config.log for details on the
11652 failure. It is possible the compiler isn't looking in the proper directory.
11653 Use --without-readline to disable readline support." >&2;}
11654 { (exit 1); exit 1; }; }
11665 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11666 # Some installations of libedit usurp /usr/include/readline/, which seems
11667 # bad practice, since in combined installations readline will have its headers
11668 # there. We might have to resort to AC_EGREP checks to make sure we found
11669 # the proper header...
11671 for ac_header in editline/readline.h
11673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11676 $as_echo_n "checking for $ac_header... " >&6; }
11677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678 $as_echo_n "(cached) " >&6
11680 ac_res=`eval 'as_val=${'$as_ac_Header'}
11681 $as_echo "$as_val"'`
11682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11683 $as_echo "$ac_res" >&6; }
11685 # Is the header compilable?
11686 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11687 $as_echo_n "checking $ac_header usability... " >&6; }
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 $ac_includes_default
11695 #include <$ac_header>
11697 rm -f conftest.$ac_objext
11698 if { (ac_try="$ac_compile"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11704 $as_echo "$ac_try_echo") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 ac_header_compiler=yes
11717 $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_header_compiler=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11725 $as_echo "$ac_header_compiler" >&6; }
11727 # Is the header present?
11728 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11729 $as_echo_n "checking $ac_header presence... " >&6; }
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <$ac_header>
11738 if { (ac_try="$ac_cpp conftest.$ac_ext"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744 $as_echo "$ac_try_echo") >&5
11745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } >/dev/null && {
11752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11753 test ! -s conftest.err
11755 ac_header_preproc=yes
11757 $as_echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 ac_header_preproc=no
11763 rm -f conftest.err conftest.$ac_ext
11764 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765 $as_echo "$ac_header_preproc" >&6; }
11767 # So? What about this header?
11768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774 ac_header_preproc=yes
11777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11790 ## ---------------------------------------- ##
11791 ## Report this to pgsql-bugs@postgresql.org ##
11792 ## ---------------------------------------- ##
11794 ) | sed "s/^/$as_me: WARNING: /" >&2
11797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 $as_echo_n "checking for $ac_header... " >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 $as_echo_n "(cached) " >&6
11802 eval "$as_ac_Header=\$ac_header_preproc"
11804 ac_res=`eval 'as_val=${'$as_ac_Header'}
11805 $as_echo "$as_val"'`
11806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11807 $as_echo "$ac_res" >&6; }
11810 as_val=`eval 'as_val=${'$as_ac_Header'}
11811 $as_echo "$as_val"'`
11812 if test "x$as_val" = x""yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819 for ac_header in readline.h
11821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11824 $as_echo_n "checking for $ac_header... " >&6; }
11825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11826 $as_echo_n "(cached) " >&6
11828 ac_res=`eval 'as_val=${'$as_ac_Header'}
11829 $as_echo "$as_val"'`
11830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11831 $as_echo "$ac_res" >&6; }
11833 # Is the header compilable?
11834 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11835 $as_echo_n "checking $ac_header usability... " >&6; }
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 $ac_includes_default
11843 #include <$ac_header>
11845 rm -f conftest.$ac_objext
11846 if { (ac_try="$ac_compile"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11852 $as_echo "$ac_try_echo") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.$ac_objext; then
11863 ac_header_compiler=yes
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_header_compiler=no
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11873 $as_echo "$ac_header_compiler" >&6; }
11875 # Is the header present?
11876 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11877 $as_echo_n "checking $ac_header presence... " >&6; }
11878 cat >conftest.$ac_ext <<_ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 #include <$ac_header>
11886 if { (ac_try="$ac_cpp conftest.$ac_ext"
11887 case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11892 $as_echo "$ac_try_echo") >&5
11893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } >/dev/null && {
11900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11901 test ! -s conftest.err
11903 ac_header_preproc=yes
11905 $as_echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_preproc=no
11911 rm -f conftest.err conftest.$ac_ext
11912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 $as_echo "$ac_header_preproc" >&6; }
11915 # So? What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938 ## ---------------------------------------- ##
11939 ## Report this to pgsql-bugs@postgresql.org ##
11940 ## ---------------------------------------- ##
11942 ) | sed "s/^/$as_me: WARNING: /" >&2
11945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 $as_echo_n "checking for $ac_header... " >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 $as_echo_n "(cached) " >&6
11950 eval "$as_ac_Header=\$ac_header_preproc"
11952 ac_res=`eval 'as_val=${'$as_ac_Header'}
11953 $as_echo "$as_val"'`
11954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11955 $as_echo "$ac_res" >&6; }
11958 as_val=`eval 'as_val=${'$as_ac_Header'}
11959 $as_echo "$as_val"'`
11960 if test "x$as_val" = x""yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11967 for ac_header in readline/readline.h
11969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11972 $as_echo_n "checking for $ac_header... " >&6; }
11973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11974 $as_echo_n "(cached) " >&6
11976 ac_res=`eval 'as_val=${'$as_ac_Header'}
11977 $as_echo "$as_val"'`
11978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11979 $as_echo "$ac_res" >&6; }
11981 # Is the header compilable?
11982 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983 $as_echo_n "checking $ac_header usability... " >&6; }
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 #include <$ac_header>
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_header_compiler=yes
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_header_compiler=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021 $as_echo "$ac_header_compiler" >&6; }
12023 # Is the header present?
12024 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025 $as_echo_n "checking $ac_header presence... " >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <$ac_header>
12034 if { (ac_try="$ac_cpp conftest.$ac_ext"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12040 $as_echo "$ac_try_echo") >&5
12041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } >/dev/null && {
12048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12051 ac_header_preproc=yes
12053 $as_echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ac_header_preproc=no
12059 rm -f conftest.err conftest.$ac_ext
12060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12061 $as_echo "$ac_header_preproc" >&6; }
12063 # So? What about this header?
12064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12070 ac_header_preproc=yes
12073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12078 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12080 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12084 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12086 ## ---------------------------------------- ##
12087 ## Report this to pgsql-bugs@postgresql.org ##
12088 ## ---------------------------------------- ##
12090 ) | sed "s/^/$as_me: WARNING: /" >&2
12093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 $as_echo_n "checking for $ac_header... " >&6; }
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 $as_echo_n "(cached) " >&6
12098 eval "$as_ac_Header=\$ac_header_preproc"
12100 ac_res=`eval 'as_val=${'$as_ac_Header'}
12101 $as_echo "$as_val"'`
12102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12103 $as_echo "$ac_res" >&6; }
12106 as_val=`eval 'as_val=${'$as_ac_Header'}
12107 $as_echo "$as_val"'`
12108 if test "x$as_val" = x""yes; then
12109 cat >>confdefs.h <<_ACEOF
12110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 { { $as_echo "$as_me:$LINENO: error: readline header not found
12115 If you have libedit already installed, see config.log for details on the
12116 failure. It is possible the compiler isn't looking in the proper directory.
12117 Use --without-readline to disable libedit support." >&5
12118 $as_echo "$as_me: error: readline header not found
12119 If you have libedit already installed, see config.log for details on the
12120 failure. It is possible the compiler isn't looking in the proper directory.
12121 Use --without-readline to disable libedit support." >&2;}
12122 { (exit 1); exit 1; }; }
12135 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12136 # not be there at all. Hence, don't complain if not found. We must check
12137 # though, since in yet other versions it is an independent header.
12139 for ac_header in editline/history.h
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 $as_echo_n "checking for $ac_header... " >&6; }
12145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12146 $as_echo_n "(cached) " >&6
12148 ac_res=`eval 'as_val=${'$as_ac_Header'}
12149 $as_echo "$as_val"'`
12150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12151 $as_echo "$ac_res" >&6; }
12153 # Is the header compilable?
12154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12155 $as_echo_n "checking $ac_header usability... " >&6; }
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 $ac_includes_default
12163 #include <$ac_header>
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 ac_header_compiler=yes
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_compiler=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 $as_echo "$ac_header_compiler" >&6; }
12195 # Is the header present?
12196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 $as_echo_n "checking $ac_header presence... " >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <$ac_header>
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } >/dev/null && {
12220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12223 ac_header_preproc=yes
12225 $as_echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_header_preproc=no
12231 rm -f conftest.err conftest.$ac_ext
12232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233 $as_echo "$ac_header_preproc" >&6; }
12235 # So? What about this header?
12236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12242 ac_header_preproc=yes
12245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12248 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12252 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12258 ## ---------------------------------------- ##
12259 ## Report this to pgsql-bugs@postgresql.org ##
12260 ## ---------------------------------------- ##
12262 ) | sed "s/^/$as_me: WARNING: /" >&2
12265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 $as_echo_n "checking for $ac_header... " >&6; }
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268 $as_echo_n "(cached) " >&6
12270 eval "$as_ac_Header=\$ac_header_preproc"
12272 ac_res=`eval 'as_val=${'$as_ac_Header'}
12273 $as_echo "$as_val"'`
12274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12275 $as_echo "$ac_res" >&6; }
12278 as_val=`eval 'as_val=${'$as_ac_Header'}
12279 $as_echo "$as_val"'`
12280 if test "x$as_val" = x""yes; then
12281 cat >>confdefs.h <<_ACEOF
12282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12287 for ac_header in history.h
12289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12291 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12292 $as_echo_n "checking for $ac_header... " >&6; }
12293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294 $as_echo_n "(cached) " >&6
12296 ac_res=`eval 'as_val=${'$as_ac_Header'}
12297 $as_echo "$as_val"'`
12298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12299 $as_echo "$ac_res" >&6; }
12301 # Is the header compilable?
12302 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303 $as_echo_n "checking $ac_header usability... " >&6; }
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 #include <$ac_header>
12313 rm -f conftest.$ac_objext
12314 if { (ac_try="$ac_compile"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320 $as_echo "$ac_try_echo") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_header_compiler=yes
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 $as_echo "$ac_header_compiler" >&6; }
12343 # Is the header present?
12344 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 $as_echo_n "checking $ac_header presence... " >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360 $as_echo "$ac_try_echo") >&5
12361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } >/dev/null && {
12368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12369 test ! -s conftest.err
12371 ac_header_preproc=yes
12373 $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_header_preproc=no
12379 rm -f conftest.err conftest.$ac_ext
12380 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12381 $as_echo "$ac_header_preproc" >&6; }
12383 # So? What about this header?
12384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12390 ac_header_preproc=yes
12393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12394 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12396 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12398 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12406 ## ---------------------------------------- ##
12407 ## Report this to pgsql-bugs@postgresql.org ##
12408 ## ---------------------------------------- ##
12410 ) | sed "s/^/$as_me: WARNING: /" >&2
12413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 $as_echo_n "checking for $ac_header... " >&6; }
12415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416 $as_echo_n "(cached) " >&6
12418 eval "$as_ac_Header=\$ac_header_preproc"
12420 ac_res=`eval 'as_val=${'$as_ac_Header'}
12421 $as_echo "$as_val"'`
12422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12423 $as_echo "$ac_res" >&6; }
12426 as_val=`eval 'as_val=${'$as_ac_Header'}
12427 $as_echo "$as_val"'`
12428 if test "x$as_val" = x""yes; then
12429 cat >>confdefs.h <<_ACEOF
12430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12435 for ac_header in readline/history.h
12437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12440 $as_echo_n "checking for $ac_header... " >&6; }
12441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12442 $as_echo_n "(cached) " >&6
12444 ac_res=`eval 'as_val=${'$as_ac_Header'}
12445 $as_echo "$as_val"'`
12446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12447 $as_echo "$ac_res" >&6; }
12449 # Is the header compilable?
12450 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12451 $as_echo_n "checking $ac_header usability... " >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 $ac_includes_default
12459 #include <$ac_header>
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 ac_header_compiler=yes
12481 $as_echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_header_compiler=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12489 $as_echo "$ac_header_compiler" >&6; }
12491 # Is the header present?
12492 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12493 $as_echo_n "checking $ac_header presence... " >&6; }
12494 cat >conftest.$ac_ext <<_ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #include <$ac_header>
12502 if { (ac_try="$ac_cpp conftest.$ac_ext"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } >/dev/null && {
12516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12519 ac_header_preproc=yes
12521 $as_echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ac_header_preproc=no
12527 rm -f conftest.err conftest.$ac_ext
12528 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12529 $as_echo "$ac_header_preproc" >&6; }
12531 # So? What about this header?
12532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12538 ac_header_preproc=yes
12541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12542 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12544 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12546 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12548 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12552 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12554 ## ---------------------------------------- ##
12555 ## Report this to pgsql-bugs@postgresql.org ##
12556 ## ---------------------------------------- ##
12558 ) | sed "s/^/$as_me: WARNING: /" >&2
12561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12562 $as_echo_n "checking for $ac_header... " >&6; }
12563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12564 $as_echo_n "(cached) " >&6
12566 eval "$as_ac_Header=\$ac_header_preproc"
12568 ac_res=`eval 'as_val=${'$as_ac_Header'}
12569 $as_echo "$as_val"'`
12570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571 $as_echo "$ac_res" >&6; }
12574 as_val=`eval 'as_val=${'$as_ac_Header'}
12575 $as_echo "$as_val"'`
12576 if test "x$as_val" = x""yes; then
12577 cat >>confdefs.h <<_ACEOF
12578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12595 if test "$with_zlib" = yes; then
12596 if test "${ac_cv_header_zlib_h+set}" = set; then
12597 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12598 $as_echo_n "checking for zlib.h... " >&6; }
12599 if test "${ac_cv_header_zlib_h+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12603 $as_echo "$ac_cv_header_zlib_h" >&6; }
12605 # Is the header compilable?
12606 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12607 $as_echo_n "checking zlib.h usability... " >&6; }
12608 cat >conftest.$ac_ext <<_ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 $ac_includes_default
12617 rm -f conftest.$ac_objext
12618 if { (ac_try="$ac_compile"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625 (eval "$ac_compile") 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } && {
12632 test -z "$ac_c_werror_flag" ||
12633 test ! -s conftest.err
12634 } && test -s conftest.$ac_objext; then
12635 ac_header_compiler=yes
12637 $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_header_compiler=no
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12645 $as_echo "$ac_header_compiler" >&6; }
12647 # Is the header present?
12648 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12649 $as_echo_n "checking zlib.h presence... " >&6; }
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12658 if { (ac_try="$ac_cpp conftest.$ac_ext"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664 $as_echo "$ac_try_echo") >&5
12665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } >/dev/null && {
12672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12673 test ! -s conftest.err
12675 ac_header_preproc=yes
12677 $as_echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_header_preproc=no
12683 rm -f conftest.err conftest.$ac_ext
12684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12685 $as_echo "$ac_header_preproc" >&6; }
12687 # So? What about this header?
12688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12690 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12691 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12692 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12693 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12694 ac_header_preproc=yes
12697 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12698 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12699 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12700 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12701 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12702 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12704 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12705 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12706 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12707 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12708 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12710 ## ---------------------------------------- ##
12711 ## Report this to pgsql-bugs@postgresql.org ##
12712 ## ---------------------------------------- ##
12714 ) | sed "s/^/$as_me: WARNING: /" >&2
12717 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12718 $as_echo_n "checking for zlib.h... " >&6; }
12719 if test "${ac_cv_header_zlib_h+set}" = set; then
12720 $as_echo_n "(cached) " >&6
12722 ac_cv_header_zlib_h=$ac_header_preproc
12724 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12725 $as_echo "$ac_cv_header_zlib_h" >&6; }
12728 if test "x$ac_cv_header_zlib_h" = x""yes; then
12731 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12732 If you have zlib already installed, see config.log for details on the
12733 failure. It is possible the compiler isn't looking in the proper directory.
12734 Use --without-zlib to disable zlib support." >&5
12735 $as_echo "$as_me: error: zlib header not found
12736 If you have zlib already installed, see config.log for details on the
12737 failure. It is possible the compiler isn't looking in the proper directory.
12738 Use --without-zlib to disable zlib support." >&2;}
12739 { (exit 1); exit 1; }; }
12745 if test "$with_gssapi" = yes ; then
12747 for ac_header in gssapi/gssapi.h
12749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12752 $as_echo_n "checking for $ac_header... " >&6; }
12753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754 $as_echo_n "(cached) " >&6
12756 ac_res=`eval 'as_val=${'$as_ac_Header'}
12757 $as_echo "$as_val"'`
12758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759 $as_echo "$ac_res" >&6; }
12761 # Is the header compilable?
12762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12763 $as_echo_n "checking $ac_header usability... " >&6; }
12764 cat >conftest.$ac_ext <<_ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 $ac_includes_default
12771 #include <$ac_header>
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12780 $as_echo "$ac_try_echo") >&5
12781 (eval "$ac_compile") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest.$ac_objext; then
12791 ac_header_compiler=yes
12793 $as_echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_header_compiler=no
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12801 $as_echo "$ac_header_compiler" >&6; }
12803 # Is the header present?
12804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12805 $as_echo_n "checking $ac_header presence... " >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <$ac_header>
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820 $as_echo "$ac_try_echo") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null && {
12828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12831 ac_header_preproc=yes
12833 $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_header_preproc=no
12839 rm -f conftest.err conftest.$ac_ext
12840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 $as_echo "$ac_header_preproc" >&6; }
12843 # So? What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850 ac_header_preproc=yes
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12866 ## ---------------------------------------- ##
12867 ## Report this to pgsql-bugs@postgresql.org ##
12868 ## ---------------------------------------- ##
12870 ) | sed "s/^/$as_me: WARNING: /" >&2
12873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 $as_echo_n "checking for $ac_header... " >&6; }
12875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12876 $as_echo_n "(cached) " >&6
12878 eval "$as_ac_Header=\$ac_header_preproc"
12880 ac_res=`eval 'as_val=${'$as_ac_Header'}
12881 $as_echo "$as_val"'`
12882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12883 $as_echo "$ac_res" >&6; }
12886 as_val=`eval 'as_val=${'$as_ac_Header'}
12887 $as_echo "$as_val"'`
12888 if test "x$as_val" = x""yes; then
12889 cat >>confdefs.h <<_ACEOF
12890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12895 for ac_header in gssapi.h
12897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 $as_echo_n "checking for $ac_header... " >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902 $as_echo_n "(cached) " >&6
12904 ac_res=`eval 'as_val=${'$as_ac_Header'}
12905 $as_echo "$as_val"'`
12906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12907 $as_echo "$ac_res" >&6; }
12909 # Is the header compilable?
12910 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12911 $as_echo_n "checking $ac_header usability... " >&6; }
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 $ac_includes_default
12919 #include <$ac_header>
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12928 $as_echo "$ac_try_echo") >&5
12929 (eval "$ac_compile") 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest.$ac_objext; then
12939 ac_header_compiler=yes
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 ac_header_compiler=no
12947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12949 $as_echo "$ac_header_compiler" >&6; }
12951 # Is the header present?
12952 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12953 $as_echo_n "checking $ac_header presence... " >&6; }
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 #include <$ac_header>
12962 if { (ac_try="$ac_cpp conftest.$ac_ext"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12968 $as_echo "$ac_try_echo") >&5
12969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } >/dev/null && {
12976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12977 test ! -s conftest.err
12979 ac_header_preproc=yes
12981 $as_echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ac_header_preproc=no
12987 rm -f conftest.err conftest.$ac_ext
12988 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12989 $as_echo "$ac_header_preproc" >&6; }
12991 # So? What about this header?
12992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12995 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12998 ac_header_preproc=yes
13001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13002 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13004 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13006 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13008 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13012 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13014 ## ---------------------------------------- ##
13015 ## Report this to pgsql-bugs@postgresql.org ##
13016 ## ---------------------------------------- ##
13018 ) | sed "s/^/$as_me: WARNING: /" >&2
13021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13022 $as_echo_n "checking for $ac_header... " >&6; }
13023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13024 $as_echo_n "(cached) " >&6
13026 eval "$as_ac_Header=\$ac_header_preproc"
13028 ac_res=`eval 'as_val=${'$as_ac_Header'}
13029 $as_echo "$as_val"'`
13030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13031 $as_echo "$ac_res" >&6; }
13034 as_val=`eval 'as_val=${'$as_ac_Header'}
13035 $as_echo "$as_val"'`
13036 if test "x$as_val" = x""yes; then
13037 cat >>confdefs.h <<_ACEOF
13038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13042 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
13043 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
13044 { (exit 1); exit 1; }; }
13055 if test "$with_krb5" = yes ; then
13056 if test "${ac_cv_header_krb5_h+set}" = set; then
13057 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13058 $as_echo_n "checking for krb5.h... " >&6; }
13059 if test "${ac_cv_header_krb5_h+set}" = set; then
13060 $as_echo_n "(cached) " >&6
13062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13063 $as_echo "$ac_cv_header_krb5_h" >&6; }
13065 # Is the header compilable?
13066 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
13067 $as_echo_n "checking krb5.h usability... " >&6; }
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 $ac_includes_default
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13084 $as_echo "$ac_try_echo") >&5
13085 (eval "$ac_compile") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && {
13092 test -z "$ac_c_werror_flag" ||
13093 test ! -s conftest.err
13094 } && test -s conftest.$ac_objext; then
13095 ac_header_compiler=yes
13097 $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_header_compiler=no
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13105 $as_echo "$ac_header_compiler" >&6; }
13107 # Is the header present?
13108 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
13109 $as_echo_n "checking krb5.h presence... " >&6; }
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13118 if { (ac_try="$ac_cpp conftest.$ac_ext"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev/null && {
13132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13135 ac_header_preproc=yes
13137 $as_echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_header_preproc=no
13143 rm -f conftest.err conftest.$ac_ext
13144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13145 $as_echo "$ac_header_preproc" >&6; }
13147 # So? What about this header?
13148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13150 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
13151 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13152 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
13153 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
13154 ac_header_preproc=yes
13157 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
13158 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
13159 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
13160 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
13161 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
13162 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
13163 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
13164 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
13165 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
13166 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
13167 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
13168 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
13170 ## ---------------------------------------- ##
13171 ## Report this to pgsql-bugs@postgresql.org ##
13172 ## ---------------------------------------- ##
13174 ) | sed "s/^/$as_me: WARNING: /" >&2
13177 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13178 $as_echo_n "checking for krb5.h... " >&6; }
13179 if test "${ac_cv_header_krb5_h+set}" = set; then
13180 $as_echo_n "(cached) " >&6
13182 ac_cv_header_krb5_h=$ac_header_preproc
13184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13185 $as_echo "$ac_cv_header_krb5_h" >&6; }
13188 if test "x$ac_cv_header_krb5_h" = x""yes; then
13191 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13192 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13193 { (exit 1); exit 1; }; }
13199 if test "$with_openssl" = yes ; then
13200 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13201 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13202 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13203 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13204 $as_echo_n "(cached) " >&6
13206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13207 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13209 # Is the header compilable?
13210 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13211 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 #include <openssl/ssl.h>
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13228 $as_echo "$ac_try_echo") >&5
13229 (eval "$ac_compile") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest.$ac_objext; then
13239 ac_header_compiler=yes
13241 $as_echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_header_compiler=no
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249 $as_echo "$ac_header_compiler" >&6; }
13251 # Is the header present?
13252 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13253 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <openssl/ssl.h>
13262 if { (ac_try="$ac_cpp conftest.$ac_ext"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13268 $as_echo "$ac_try_echo") >&5
13269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13271 grep -v '^ *+' conftest.er1 >conftest.err
13273 cat conftest.err >&5
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } >/dev/null && {
13276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13279 ac_header_preproc=yes
13281 $as_echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_header_preproc=no
13287 rm -f conftest.err conftest.$ac_ext
13288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13289 $as_echo "$ac_header_preproc" >&6; }
13291 # So? What about this header?
13292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13294 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13295 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13296 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13297 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13298 ac_header_preproc=yes
13301 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13302 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13304 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13306 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13308 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13310 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13312 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13314 ## ---------------------------------------- ##
13315 ## Report this to pgsql-bugs@postgresql.org ##
13316 ## ---------------------------------------- ##
13318 ) | sed "s/^/$as_me: WARNING: /" >&2
13321 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13322 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13323 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13324 $as_echo_n "(cached) " >&6
13326 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13329 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13332 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13335 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13336 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13337 { (exit 1); exit 1; }; }
13341 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13342 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13343 $as_echo_n "checking for openssl/err.h... " >&6; }
13344 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13345 $as_echo_n "(cached) " >&6
13347 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13348 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13350 # Is the header compilable?
13351 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13352 $as_echo_n "checking openssl/err.h usability... " >&6; }
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 $ac_includes_default
13360 #include <openssl/err.h>
13362 rm -f conftest.$ac_objext
13363 if { (ac_try="$ac_compile"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13369 $as_echo "$ac_try_echo") >&5
13370 (eval "$ac_compile") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest.$ac_objext; then
13380 ac_header_compiler=yes
13382 $as_echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_header_compiler=no
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 $as_echo "$ac_header_compiler" >&6; }
13392 # Is the header present?
13393 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13394 $as_echo_n "checking openssl/err.h presence... " >&6; }
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include <openssl/err.h>
13403 if { (ac_try="$ac_cpp conftest.$ac_ext"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13409 $as_echo "$ac_try_echo") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } >/dev/null && {
13417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13420 ac_header_preproc=yes
13422 $as_echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 $as_echo "$ac_header_preproc" >&6; }
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13435 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13436 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13438 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13442 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13443 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13444 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13445 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13446 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13447 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13448 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13449 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13451 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13452 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13453 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13455 ## ---------------------------------------- ##
13456 ## Report this to pgsql-bugs@postgresql.org ##
13457 ## ---------------------------------------- ##
13459 ) | sed "s/^/$as_me: WARNING: /" >&2
13462 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13463 $as_echo_n "checking for openssl/err.h... " >&6; }
13464 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13465 $as_echo_n "(cached) " >&6
13467 ac_cv_header_openssl_err_h=$ac_header_preproc
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13470 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13473 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13476 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13477 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13478 { (exit 1); exit 1; }; }
13484 if test "$with_pam" = yes ; then
13486 for ac_header in security/pam_appl.h
13488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13491 $as_echo_n "checking for $ac_header... " >&6; }
13492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13493 $as_echo_n "(cached) " >&6
13495 ac_res=`eval 'as_val=${'$as_ac_Header'}
13496 $as_echo "$as_val"'`
13497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13498 $as_echo "$ac_res" >&6; }
13500 # Is the header compilable?
13501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13502 $as_echo_n "checking $ac_header usability... " >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 $ac_includes_default
13510 #include <$ac_header>
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519 $as_echo "$ac_try_echo") >&5
13520 (eval "$ac_compile") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest.$ac_objext; then
13530 ac_header_compiler=yes
13532 $as_echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_header_compiler=no
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540 $as_echo "$ac_header_compiler" >&6; }
13542 # Is the header present?
13543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544 $as_echo_n "checking $ac_header presence... " >&6; }
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 #include <$ac_header>
13553 if { (ac_try="$ac_cpp conftest.$ac_ext"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559 $as_echo "$ac_try_echo") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null && {
13567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13570 ac_header_preproc=yes
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_header_preproc=no
13578 rm -f conftest.err conftest.$ac_ext
13579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 $as_echo "$ac_header_preproc" >&6; }
13582 # So? What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13595 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13599 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13605 ## ---------------------------------------- ##
13606 ## Report this to pgsql-bugs@postgresql.org ##
13607 ## ---------------------------------------- ##
13609 ) | sed "s/^/$as_me: WARNING: /" >&2
13612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13613 $as_echo_n "checking for $ac_header... " >&6; }
13614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615 $as_echo_n "(cached) " >&6
13617 eval "$as_ac_Header=\$ac_header_preproc"
13619 ac_res=`eval 'as_val=${'$as_ac_Header'}
13620 $as_echo "$as_val"'`
13621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13622 $as_echo "$ac_res" >&6; }
13625 as_val=`eval 'as_val=${'$as_ac_Header'}
13626 $as_echo "$as_val"'`
13627 if test "x$as_val" = x""yes; then
13628 cat >>confdefs.h <<_ACEOF
13629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13634 for ac_header in pam/pam_appl.h
13636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13639 $as_echo_n "checking for $ac_header... " >&6; }
13640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13641 $as_echo_n "(cached) " >&6
13643 ac_res=`eval 'as_val=${'$as_ac_Header'}
13644 $as_echo "$as_val"'`
13645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13648 # Is the header compilable?
13649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13650 $as_echo_n "checking $ac_header usability... " >&6; }
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 $ac_includes_default
13658 #include <$ac_header>
13660 rm -f conftest.$ac_objext
13661 if { (ac_try="$ac_compile"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667 $as_echo "$ac_try_echo") >&5
13668 (eval "$ac_compile") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest.$ac_objext; then
13678 ac_header_compiler=yes
13680 $as_echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_header_compiler=no
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13688 $as_echo "$ac_header_compiler" >&6; }
13690 # Is the header present?
13691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13692 $as_echo_n "checking $ac_header presence... " >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <$ac_header>
13701 if { (ac_try="$ac_cpp conftest.$ac_ext"
13702 case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13707 $as_echo "$ac_try_echo") >&5
13708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13710 grep -v '^ *+' conftest.er1 >conftest.err
13712 cat conftest.err >&5
13713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } >/dev/null && {
13715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13718 ac_header_preproc=yes
13720 $as_echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_header_preproc=no
13726 rm -f conftest.err conftest.$ac_ext
13727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13728 $as_echo "$ac_header_preproc" >&6; }
13730 # So? What about this header?
13731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13737 ac_header_preproc=yes
13740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13753 ## ---------------------------------------- ##
13754 ## Report this to pgsql-bugs@postgresql.org ##
13755 ## ---------------------------------------- ##
13757 ) | sed "s/^/$as_me: WARNING: /" >&2
13760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13761 $as_echo_n "checking for $ac_header... " >&6; }
13762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13763 $as_echo_n "(cached) " >&6
13765 eval "$as_ac_Header=\$ac_header_preproc"
13767 ac_res=`eval 'as_val=${'$as_ac_Header'}
13768 $as_echo "$as_val"'`
13769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13770 $as_echo "$ac_res" >&6; }
13773 as_val=`eval 'as_val=${'$as_ac_Header'}
13774 $as_echo "$as_val"'`
13775 if test "x$as_val" = x""yes; then
13776 cat >>confdefs.h <<_ACEOF
13777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13781 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13782 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13783 { (exit 1); exit 1; }; }
13794 if test "$with_libxml" = yes ; then
13795 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13796 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13797 $as_echo_n "checking for libxml/parser.h... " >&6; }
13798 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13799 $as_echo_n "(cached) " >&6
13801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13802 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13804 # Is the header compilable?
13805 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13806 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 $ac_includes_default
13814 #include <libxml/parser.h>
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13823 $as_echo "$ac_try_echo") >&5
13824 (eval "$ac_compile") 2>conftest.er1
13826 grep -v '^ *+' conftest.er1 >conftest.err
13828 cat conftest.err >&5
13829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest.$ac_objext; then
13834 ac_header_compiler=yes
13836 $as_echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_header_compiler=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13844 $as_echo "$ac_header_compiler" >&6; }
13846 # Is the header present?
13847 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13848 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <libxml/parser.h>
13857 if { (ac_try="$ac_cpp conftest.$ac_ext"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13863 $as_echo "$ac_try_echo") >&5
13864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } >/dev/null && {
13871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13874 ac_header_preproc=yes
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
13882 rm -f conftest.err conftest.$ac_ext
13883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 $as_echo "$ac_header_preproc" >&6; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13892 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13896 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13897 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13898 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13899 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13900 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13901 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13903 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13905 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13907 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13909 ## ---------------------------------------- ##
13910 ## Report this to pgsql-bugs@postgresql.org ##
13911 ## ---------------------------------------- ##
13913 ) | sed "s/^/$as_me: WARNING: /" >&2
13916 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13917 $as_echo_n "checking for libxml/parser.h... " >&6; }
13918 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13919 $as_echo_n "(cached) " >&6
13921 ac_cv_header_libxml_parser_h=$ac_header_preproc
13923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13924 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13927 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13930 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13931 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13932 { (exit 1); exit 1; }; }
13938 if test "$with_libxslt" = yes ; then
13939 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13940 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13941 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13942 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13943 $as_echo_n "(cached) " >&6
13945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13946 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13948 # Is the header compilable?
13949 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13950 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 $ac_includes_default
13958 #include <libxslt/xslt.h>
13960 rm -f conftest.$ac_objext
13961 if { (ac_try="$ac_compile"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13967 $as_echo "$ac_try_echo") >&5
13968 (eval "$ac_compile") 2>conftest.er1
13970 grep -v '^ *+' conftest.er1 >conftest.err
13972 cat conftest.err >&5
13973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } && {
13975 test -z "$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13977 } && test -s conftest.$ac_objext; then
13978 ac_header_compiler=yes
13980 $as_echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_compiler=no
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13988 $as_echo "$ac_header_compiler" >&6; }
13990 # Is the header present?
13991 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13992 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 #include <libxslt/xslt.h>
14001 if { (ac_try="$ac_cpp conftest.$ac_ext"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14007 $as_echo "$ac_try_echo") >&5
14008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } >/dev/null && {
14015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14016 test ! -s conftest.err
14018 ac_header_preproc=yes
14020 $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_header_preproc=no
14026 rm -f conftest.err conftest.$ac_ext
14027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14028 $as_echo "$ac_header_preproc" >&6; }
14030 # So? What about this header?
14031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
14034 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14035 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
14036 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
14037 ac_header_preproc=yes
14040 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
14041 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
14042 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
14043 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
14044 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
14045 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
14046 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
14047 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
14048 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
14049 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
14050 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
14051 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
14053 ## ---------------------------------------- ##
14054 ## Report this to pgsql-bugs@postgresql.org ##
14055 ## ---------------------------------------- ##
14057 ) | sed "s/^/$as_me: WARNING: /" >&2
14060 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
14061 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
14062 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14063 $as_echo_n "(cached) " >&6
14065 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
14067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14068 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
14071 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
14074 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
14075 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
14076 { (exit 1); exit 1; }; }
14082 if test "$with_ldap" = yes ; then
14083 if test "$PORTNAME" != "win32"; then
14085 for ac_header in ldap.h
14087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14089 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 $as_echo_n "checking for $ac_header... " >&6; }
14091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14092 $as_echo_n "(cached) " >&6
14094 ac_res=`eval 'as_val=${'$as_ac_Header'}
14095 $as_echo "$as_val"'`
14096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14097 $as_echo "$ac_res" >&6; }
14099 # Is the header compilable?
14100 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14101 $as_echo_n "checking $ac_header usability... " >&6; }
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 $ac_includes_default
14109 #include <$ac_header>
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14118 $as_echo "$ac_try_echo") >&5
14119 (eval "$ac_compile") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest.$ac_objext; then
14129 ac_header_compiler=yes
14131 $as_echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_header_compiler=no
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 $as_echo "$ac_header_compiler" >&6; }
14141 # Is the header present?
14142 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 $as_echo_n "checking $ac_header presence... " >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 #include <$ac_header>
14152 if { (ac_try="$ac_cpp conftest.$ac_ext"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } >/dev/null && {
14166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14169 ac_header_preproc=yes
14171 $as_echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ac_header_preproc=no
14177 rm -f conftest.err conftest.$ac_ext
14178 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14179 $as_echo "$ac_header_preproc" >&6; }
14181 # So? What about this header?
14182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14187 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14188 ac_header_preproc=yes
14191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14192 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14202 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14204 ## ---------------------------------------- ##
14205 ## Report this to pgsql-bugs@postgresql.org ##
14206 ## ---------------------------------------- ##
14208 ) | sed "s/^/$as_me: WARNING: /" >&2
14211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14212 $as_echo_n "checking for $ac_header... " >&6; }
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214 $as_echo_n "(cached) " >&6
14216 eval "$as_ac_Header=\$ac_header_preproc"
14218 ac_res=`eval 'as_val=${'$as_ac_Header'}
14219 $as_echo "$as_val"'`
14220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14221 $as_echo "$ac_res" >&6; }
14224 as_val=`eval 'as_val=${'$as_ac_Header'}
14225 $as_echo "$as_val"'`
14226 if test "x$as_val" = x""yes; then
14227 cat >>confdefs.h <<_ACEOF
14228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14233 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14234 { (exit 1); exit 1; }; }
14241 for ac_header in winldap.h
14243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 $as_echo_n "checking for $ac_header... " >&6; }
14246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14247 $as_echo_n "(cached) " >&6
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #include <windows.h>
14259 #include <$ac_header>
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest.$ac_objext; then
14279 eval "$as_ac_Header=yes"
14281 $as_echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 eval "$as_ac_Header=no"
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 ac_res=`eval 'as_val=${'$as_ac_Header'}
14290 $as_echo "$as_val"'`
14291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14293 as_val=`eval 'as_val=${'$as_ac_Header'}
14294 $as_echo "$as_val"'`
14295 if test "x$as_val" = x""yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14301 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14302 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14303 { (exit 1); exit 1; }; }
14311 if test "$with_bonjour" = yes ; then
14312 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14313 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14314 $as_echo_n "checking for dns_sd.h... " >&6; }
14315 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14316 $as_echo_n "(cached) " >&6
14318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14319 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14321 # Is the header compilable?
14322 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14323 $as_echo_n "checking dns_sd.h usability... " >&6; }
14324 cat >conftest.$ac_ext <<_ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 $ac_includes_default
14331 #include <dns_sd.h>
14333 rm -f conftest.$ac_objext
14334 if { (ac_try="$ac_compile"
14335 case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14340 $as_echo "$ac_try_echo") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest.$ac_objext; then
14351 ac_header_compiler=yes
14353 $as_echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 ac_header_compiler=no
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 $as_echo "$ac_header_compiler" >&6; }
14363 # Is the header present?
14364 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14365 $as_echo_n "checking dns_sd.h presence... " >&6; }
14366 cat >conftest.$ac_ext <<_ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <dns_sd.h>
14374 if { (ac_try="$ac_cpp conftest.$ac_ext"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev/null && {
14388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14391 ac_header_preproc=yes
14393 $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_header_preproc=no
14399 rm -f conftest.err conftest.$ac_ext
14400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 $as_echo "$ac_header_preproc" >&6; }
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14406 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14407 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14409 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc=yes
14413 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14414 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14415 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14416 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14417 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14418 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14419 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14420 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14422 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14423 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14424 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14426 ## ---------------------------------------- ##
14427 ## Report this to pgsql-bugs@postgresql.org ##
14428 ## ---------------------------------------- ##
14430 ) | sed "s/^/$as_me: WARNING: /" >&2
14433 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14434 $as_echo_n "checking for dns_sd.h... " >&6; }
14435 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14436 $as_echo_n "(cached) " >&6
14438 ac_cv_header_dns_sd_h=$ac_header_preproc
14440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14441 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14444 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14447 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14448 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14449 { (exit 1); exit 1; }; }
14455 # for contrib/uuid-ossp
14456 if test "$with_ossp_uuid" = yes ; then
14458 for ac_header in ossp/uuid.h
14460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 $as_echo_n "checking for $ac_header... " >&6; }
14464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14465 $as_echo_n "(cached) " >&6
14467 ac_res=`eval 'as_val=${'$as_ac_Header'}
14468 $as_echo "$as_val"'`
14469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14470 $as_echo "$ac_res" >&6; }
14472 # Is the header compilable?
14473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14474 $as_echo_n "checking $ac_header usability... " >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14482 #include <$ac_header>
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest.$ac_objext; then
14502 ac_header_compiler=yes
14504 $as_echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_header_compiler=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14512 $as_echo "$ac_header_compiler" >&6; }
14514 # Is the header present?
14515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14516 $as_echo_n "checking $ac_header presence... " >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <$ac_header>
14525 if { (ac_try="$ac_cpp conftest.$ac_ext"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } >/dev/null && {
14539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14542 ac_header_preproc=yes
14544 $as_echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_header_preproc=no
14550 rm -f conftest.err conftest.$ac_ext
14551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 $as_echo "$ac_header_preproc" >&6; }
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14561 ac_header_preproc=yes
14564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14577 ## ---------------------------------------- ##
14578 ## Report this to pgsql-bugs@postgresql.org ##
14579 ## ---------------------------------------- ##
14581 ) | sed "s/^/$as_me: WARNING: /" >&2
14584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14585 $as_echo_n "checking for $ac_header... " >&6; }
14586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14587 $as_echo_n "(cached) " >&6
14589 eval "$as_ac_Header=\$ac_header_preproc"
14591 ac_res=`eval 'as_val=${'$as_ac_Header'}
14592 $as_echo "$as_val"'`
14593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14594 $as_echo "$ac_res" >&6; }
14597 as_val=`eval 'as_val=${'$as_ac_Header'}
14598 $as_echo "$as_val"'`
14599 if test "x$as_val" = x""yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14607 for ac_header in uuid.h
14609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14611 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 $as_echo_n "checking for $ac_header... " >&6; }
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614 $as_echo_n "(cached) " >&6
14616 ac_res=`eval 'as_val=${'$as_ac_Header'}
14617 $as_echo "$as_val"'`
14618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14619 $as_echo "$ac_res" >&6; }
14621 # Is the header compilable?
14622 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14623 $as_echo_n "checking $ac_header usability... " >&6; }
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 $ac_includes_default
14631 #include <$ac_header>
14633 rm -f conftest.$ac_objext
14634 if { (ac_try="$ac_compile"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14640 $as_echo "$ac_try_echo") >&5
14641 (eval "$ac_compile") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest.$ac_objext; then
14651 ac_header_compiler=yes
14653 $as_echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_header_compiler=no
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14661 $as_echo "$ac_header_compiler" >&6; }
14663 # Is the header present?
14664 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14665 $as_echo_n "checking $ac_header presence... " >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 #include <$ac_header>
14674 if { (ac_try="$ac_cpp conftest.$ac_ext"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14680 $as_echo "$ac_try_echo") >&5
14681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14683 grep -v '^ *+' conftest.er1 >conftest.err
14685 cat conftest.err >&5
14686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } >/dev/null && {
14688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14691 ac_header_preproc=yes
14693 $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_header_preproc=no
14699 rm -f conftest.err conftest.$ac_ext
14700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14701 $as_echo "$ac_header_preproc" >&6; }
14703 # So? What about this header?
14704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14710 ac_header_preproc=yes
14713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14714 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14716 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14718 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14720 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14722 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14724 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14726 ## ---------------------------------------- ##
14727 ## Report this to pgsql-bugs@postgresql.org ##
14728 ## ---------------------------------------- ##
14730 ) | sed "s/^/$as_me: WARNING: /" >&2
14733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14734 $as_echo_n "checking for $ac_header... " >&6; }
14735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736 $as_echo_n "(cached) " >&6
14738 eval "$as_ac_Header=\$ac_header_preproc"
14740 ac_res=`eval 'as_val=${'$as_ac_Header'}
14741 $as_echo "$as_val"'`
14742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14743 $as_echo "$ac_res" >&6; }
14746 as_val=`eval 'as_val=${'$as_ac_Header'}
14747 $as_echo "$as_val"'`
14748 if test "x$as_val" = x""yes; then
14749 cat >>confdefs.h <<_ACEOF
14750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14754 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14755 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14756 { (exit 1); exit 1; }; }
14767 if test "$PORTNAME" = "win32" ; then
14769 for ac_header in crtdefs.h
14771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14774 $as_echo_n "checking for $ac_header... " >&6; }
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776 $as_echo_n "(cached) " >&6
14778 ac_res=`eval 'as_val=${'$as_ac_Header'}
14779 $as_echo "$as_val"'`
14780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14781 $as_echo "$ac_res" >&6; }
14783 # Is the header compilable?
14784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14785 $as_echo_n "checking $ac_header usability... " >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 $ac_includes_default
14793 #include <$ac_header>
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14802 $as_echo "$ac_try_echo") >&5
14803 (eval "$ac_compile") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } && {
14810 test -z "$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 } && test -s conftest.$ac_objext; then
14813 ac_header_compiler=yes
14815 $as_echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_compiler=no
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14823 $as_echo "$ac_header_compiler" >&6; }
14825 # Is the header present?
14826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14827 $as_echo_n "checking $ac_header presence... " >&6; }
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 #include <$ac_header>
14836 if { (ac_try="$ac_cpp conftest.$ac_ext"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842 $as_echo "$ac_try_echo") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null && {
14850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14853 ac_header_preproc=yes
14855 $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_header_preproc=no
14861 rm -f conftest.err conftest.$ac_ext
14862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 $as_echo "$ac_header_preproc" >&6; }
14865 # So? What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14872 ac_header_preproc=yes
14875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14878 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14882 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14888 ## ---------------------------------------- ##
14889 ## Report this to pgsql-bugs@postgresql.org ##
14890 ## ---------------------------------------- ##
14892 ) | sed "s/^/$as_me: WARNING: /" >&2
14895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 $as_echo_n "checking for $ac_header... " >&6; }
14897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14898 $as_echo_n "(cached) " >&6
14900 eval "$as_ac_Header=\$ac_header_preproc"
14902 ac_res=`eval 'as_val=${'$as_ac_Header'}
14903 $as_echo "$as_val"'`
14904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14905 $as_echo "$ac_res" >&6; }
14908 as_val=`eval 'as_val=${'$as_ac_Header'}
14909 $as_echo "$as_val"'`
14910 if test "x$as_val" = x""yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14922 ## Types, structures, compiler characteristics
14926 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14927 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14928 if test "${ac_cv_c_bigendian+set}" = set; then
14929 $as_echo_n "(cached) " >&6
14931 ac_cv_c_bigendian=unknown
14932 # See if we're dealing with a universal compiler.
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #ifndef __APPLE_CC__
14940 not a universal capable compiler
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_compile") 2>conftest.er1
14955 grep -v '^ *+' conftest.er1 >conftest.err
14957 cat conftest.err >&5
14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 } && test -s conftest.$ac_objext; then
14964 # Check for potential -arch flags. It is not universal unless
14965 # there are some -arch flags. Note that *ppc* also matches
14966 # ppc64. This check is also rather less than ideal.
14967 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14968 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14971 $as_echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978 if test $ac_cv_c_bigendian = unknown; then
14979 # See if sys/param.h defines the BYTE_ORDER macro.
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <sys/types.h>
14987 #include <sys/param.h>
14992 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14993 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14995 bogus endian macros
15002 rm -f conftest.$ac_objext
15003 if { (ac_try="$ac_compile"
15004 case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15009 $as_echo "$ac_try_echo") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest.$ac_objext; then
15020 # It does; now see whether it defined to BIG_ENDIAN or not.
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <sys/types.h>
15028 #include <sys/param.h>
15033 #if BYTE_ORDER != BIG_ENDIAN
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest.$ac_objext; then
15059 ac_cv_c_bigendian=yes
15061 $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_c_bigendian=no
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 if test $ac_cv_c_bigendian = unknown; then
15078 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 #include <limits.h>
15090 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15091 bogus endian macros
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15105 $as_echo "$ac_try_echo") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_c_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest.$ac_objext; then
15116 # It does; now see whether it defined to _BIG_ENDIAN or not.
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <limits.h>
15128 #ifndef _BIG_ENDIAN
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15143 $as_echo "$ac_try_echo") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest.$ac_objext; then
15154 ac_cv_c_bigendian=yes
15156 $as_echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_cv_c_bigendian=no
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 if test $ac_cv_c_bigendian = unknown; then
15173 # Compile a test program.
15174 if test "$cross_compiling" = yes; then
15175 # Try to guess by grepping values from an object file.
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 short int ascii_mm[] =
15183 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15184 short int ascii_ii[] =
15185 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15186 int use_ascii (int i) {
15187 return ascii_mm[i] + ascii_ii[i];
15189 short int ebcdic_ii[] =
15190 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15191 short int ebcdic_mm[] =
15192 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15193 int use_ebcdic (int i) {
15194 return ebcdic_mm[i] + ebcdic_ii[i];
15201 return use_ascii (foo) == use_ebcdic (foo);
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15213 $as_echo "$ac_try_echo") >&5
15214 (eval "$ac_compile") 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } && {
15221 test -z "$ac_c_werror_flag" ||
15222 test ! -s conftest.err
15223 } && test -s conftest.$ac_objext; then
15224 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15225 ac_cv_c_bigendian=yes
15227 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15228 if test "$ac_cv_c_bigendian" = unknown; then
15229 ac_cv_c_bigendian=no
15231 # finding both strings is unlikely to happen, but who knows?
15232 ac_cv_c_bigendian=unknown
15236 $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15255 /* Are we little or big endian? From Harbison&Steele. */
15259 char c[sizeof (long int)];
15262 return u.c[sizeof (long int) - 1] == 1;
15268 rm -f conftest$ac_exeext
15269 if { (ac_try="$ac_link"
15270 case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275 $as_echo "$ac_try_echo") >&5
15276 (eval "$ac_link") 2>&5
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15280 { (case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286 (eval "$ac_try") 2>&5
15288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_cv_c_bigendian=no
15292 $as_echo "$as_me: program exited with status $ac_status" >&5
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ( exit $ac_status )
15297 ac_cv_c_bigendian=yes
15299 rm -rf conftest.dSYM
15300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15306 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15307 $as_echo "$ac_cv_c_bigendian" >&6; }
15308 case $ac_cv_c_bigendian in #(
15310 cat >>confdefs.h <<\_ACEOF
15311 #define WORDS_BIGENDIAN 1
15318 cat >>confdefs.h <<\_ACEOF
15319 #define AC_APPLE_UNIVERSAL_BUILD 1
15324 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15325 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15326 $as_echo "$as_me: error: unknown endianness
15327 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15328 { (exit 1); exit 1; }; } ;;
15331 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15332 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15333 if test "${ac_cv_c_const+set}" = set; then
15334 $as_echo_n "(cached) " >&6
15336 cat >conftest.$ac_ext <<_ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15346 /* FIXME: Include the comments suggested by Paul. */
15347 #ifndef __cplusplus
15348 /* Ultrix mips cc rejects this. */
15349 typedef int charset[2];
15351 /* SunOS 4.1.1 cc rejects this. */
15352 char const *const *pcpcc;
15354 /* NEC SVR4.0.2 mips cc rejects this. */
15355 struct point {int x, y;};
15356 static struct point const zero = {0,0};
15357 /* AIX XL C 1.02.0.0 rejects this.
15358 It does not let you subtract one const X* pointer from another in
15359 an arm of an if-expression whose if-part is not a constant
15361 const char *g = "string";
15362 pcpcc = &g + (g ? g-g : 0);
15363 /* HPUX 7.0 cc rejects these. */
15365 ppc = (char**) pcpcc;
15366 pcpcc = (char const *const *) ppc;
15367 { /* SCO 3.2v4 cc rejects this. */
15369 char const *s = 0 ? (char *) 0 : (char const *) 0;
15374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15375 int x[] = {25, 17};
15376 const int *foo = &x[0];
15379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15380 typedef const int *iptr;
15384 { /* AIX XL C 1.02.0.0 rejects this saying
15385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15386 struct s { int j; const int *ap[3]; };
15387 struct s *b; b->j = 5;
15389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15390 const int foo = 10;
15391 if (!foo) return 0;
15393 return !cs[0] && !zero.x;
15400 rm -f conftest.$ac_objext
15401 if { (ac_try="$ac_compile"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest.$ac_objext; then
15420 $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15429 $as_echo "$ac_cv_c_const" >&6; }
15430 if test $ac_cv_c_const = no; then
15432 cat >>confdefs.h <<\_ACEOF
15438 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15439 $as_echo_n "checking for inline... " >&6; }
15440 if test "${ac_cv_c_inline+set}" = set; then
15441 $as_echo_n "(cached) " >&6
15444 for ac_kw in inline __inline__ __inline; do
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #ifndef __cplusplus
15453 static $ac_kw foo_t static_foo () {return 0; }
15454 $ac_kw foo_t foo () {return 0; }
15458 rm -f conftest.$ac_objext
15459 if { (ac_try="$ac_compile"
15460 case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15465 $as_echo "$ac_try_echo") >&5
15466 (eval "$ac_compile") 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest.$ac_objext; then
15476 ac_cv_c_inline=$ac_kw
15478 $as_echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485 test "$ac_cv_c_inline" != no && break
15489 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15490 $as_echo "$ac_cv_c_inline" >&6; }
15493 case $ac_cv_c_inline in
15496 case $ac_cv_c_inline in
15498 *) ac_val=$ac_cv_c_inline;;
15500 cat >>confdefs.h <<_ACEOF
15501 #ifndef __cplusplus
15502 #define inline $ac_val
15508 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15509 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15510 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15511 $as_echo_n "(cached) " >&6
15513 pgac_cv_c_inline_quietly=no
15514 if test "$ac_cv_c_inline" != no; then
15515 pgac_c_inline_save_werror=$ac_c_werror_flag
15516 ac_c_werror_flag=yes
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 static inline int fun () {return 0;}
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (ac_try="$ac_link"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15539 $as_echo "$ac_try_echo") >&5
15540 (eval "$ac_link") 2>conftest.er1
15542 grep -v '^ *+' conftest.er1 >conftest.err
15544 cat conftest.err >&5
15545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } && {
15547 test -z "$ac_c_werror_flag" ||
15548 test ! -s conftest.err
15549 } && test -s conftest$ac_exeext && {
15550 test "$cross_compiling" = yes ||
15551 $as_test_x conftest$ac_exeext
15553 pgac_cv_c_inline_quietly=yes
15555 $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15561 rm -rf conftest.dSYM
15562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15563 conftest$ac_exeext conftest.$ac_ext
15564 ac_c_werror_flag=$pgac_c_inline_save_werror
15567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15568 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15569 if test "$pgac_cv_c_inline_quietly" != no; then
15571 cat >>confdefs.h <<_ACEOF
15572 #define PG_USE_INLINE 1
15577 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15578 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15579 if test "${ac_cv_c_stringize+set}" = set; then
15580 $as_echo_n "(cached) " >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15590 char *s = x(teststring);
15592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15593 $EGREP "#teststring" >/dev/null 2>&1; then
15594 ac_cv_c_stringize=no
15596 ac_cv_c_stringize=yes
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15602 $as_echo "$ac_cv_c_stringize" >&6; }
15603 if test $ac_cv_c_stringize = yes; then
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE_STRINGIZE 1
15612 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15613 $as_echo_n "checking for flexible array members... " >&6; }
15614 if test "${ac_cv_c_flexmember+set}" = set; then
15615 $as_echo_n "(cached) " >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 #include <stdlib.h>
15625 #include <stddef.h>
15626 struct s { int n; double d[]; };
15630 int m = getchar ();
15631 struct s *p = malloc (offsetof (struct s, d)
15632 + m * sizeof (double));
15634 return p->d != (double *) NULL;
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647 (eval "$ac_compile") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } && {
15654 test -z "$ac_c_werror_flag" ||
15655 test ! -s conftest.err
15656 } && test -s conftest.$ac_objext; then
15657 ac_cv_c_flexmember=yes
15659 $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_cv_c_flexmember=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15668 $as_echo "$ac_cv_c_flexmember" >&6; }
15669 if test $ac_cv_c_flexmember = yes; then
15671 cat >>confdefs.h <<\_ACEOF
15672 #define FLEXIBLE_ARRAY_MEMBER /**/
15676 cat >>confdefs.h <<\_ACEOF
15677 #define FLEXIBLE_ARRAY_MEMBER 1
15682 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15683 $as_echo_n "checking for signed types... " >&6; }
15684 if test "${pgac_cv_c_signed+set}" = set; then
15685 $as_echo_n "(cached) " >&6
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15697 signed char c; signed short s; signed int i;
15702 rm -f conftest.$ac_objext
15703 if { (ac_try="$ac_compile"
15704 case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15709 $as_echo "$ac_try_echo") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15712 grep -v '^ *+' conftest.er1 >conftest.err
15714 cat conftest.err >&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.$ac_objext; then
15720 pgac_cv_c_signed=yes
15722 $as_echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 pgac_cv_c_signed=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15731 $as_echo "$pgac_cv_c_signed" >&6; }
15732 if test x"$pgac_cv_c_signed" = xno ; then
15734 cat >>confdefs.h <<\_ACEOF
15735 #define signed /**/
15739 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15740 $as_echo_n "checking for working volatile... " >&6; }
15741 if test "${ac_cv_c_volatile+set}" = set; then
15742 $as_echo_n "(cached) " >&6
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15756 int * volatile y = (int *) 0;
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest.$ac_objext; then
15780 ac_cv_c_volatile=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_c_volatile=no
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15791 $as_echo "$ac_cv_c_volatile" >&6; }
15792 if test $ac_cv_c_volatile = no; then
15794 cat >>confdefs.h <<\_ACEOF
15795 #define volatile /**/
15800 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15801 $as_echo_n "checking for __func__... " >&6; }
15802 if test "${pgac_cv_funcname_func_support+set}" = set; then
15803 $as_echo_n "(cached) " >&6
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15815 printf("%s\n", __func__);
15820 rm -f conftest.$ac_objext
15821 if { (ac_try="$ac_compile"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15827 $as_echo "$ac_try_echo") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 pgac_cv_funcname_func_support=yes
15840 $as_echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 pgac_cv_funcname_func_support=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15849 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15850 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_FUNCNAME__FUNC 1
15857 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15858 $as_echo_n "checking for __FUNCTION__... " >&6; }
15859 if test "${pgac_cv_funcname_function_support+set}" = set; then
15860 $as_echo_n "(cached) " >&6
15862 cat >conftest.$ac_ext <<_ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15872 printf("%s\n", __FUNCTION__);
15877 rm -f conftest.$ac_objext
15878 if { (ac_try="$ac_compile"
15879 case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15884 $as_echo "$ac_try_echo") >&5
15885 (eval "$ac_compile") 2>conftest.er1
15887 grep -v '^ *+' conftest.er1 >conftest.err
15889 cat conftest.err >&5
15890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } && {
15892 test -z "$ac_c_werror_flag" ||
15893 test ! -s conftest.err
15894 } && test -s conftest.$ac_objext; then
15895 pgac_cv_funcname_function_support=yes
15897 $as_echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 pgac_cv_funcname_function_support=no
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15906 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15907 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_FUNCNAME__FUNCTION 1
15915 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15916 $as_echo_n "checking for _Static_assert... " >&6; }
15917 if test "${pgac_cv__static_assert+set}" = set; then
15918 $as_echo_n "(cached) " >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15930 ({ _Static_assert(1, "foo"); })
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15942 $as_echo "$ac_try_echo") >&5
15943 (eval "$ac_link") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } && {
15950 test -z "$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15952 } && test -s conftest$ac_exeext && {
15953 test "$cross_compiling" = yes ||
15954 $as_test_x conftest$ac_exeext
15956 pgac_cv__static_assert=yes
15958 $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 pgac_cv__static_assert=no
15964 rm -rf conftest.dSYM
15965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15966 conftest$ac_exeext conftest.$ac_ext
15968 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15969 $as_echo "$pgac_cv__static_assert" >&6; }
15970 if test x"$pgac_cv__static_assert" = xyes ; then
15972 cat >>confdefs.h <<\_ACEOF
15973 #define HAVE__STATIC_ASSERT 1
15977 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15978 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15979 if test "${pgac_cv__types_compatible+set}" = set; then
15980 $as_echo_n "(cached) " >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15992 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005 (eval "$ac_compile") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest.$ac_objext; then
16015 pgac_cv__types_compatible=yes
16017 $as_echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 pgac_cv__types_compatible=no
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
16026 $as_echo "$pgac_cv__types_compatible" >&6; }
16027 if test x"$pgac_cv__types_compatible" = xyes ; then
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
16034 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
16035 $as_echo_n "checking for __builtin_constant_p... " >&6; }
16036 if test "${pgac_cv__builtin_constant_p+set}" = set; then
16037 $as_echo_n "(cached) " >&6
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 static int x; static int y[__builtin_constant_p(x) ? x : 1];
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16061 $as_echo "$ac_try_echo") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest.$ac_objext; then
16072 pgac_cv__builtin_constant_p=yes
16074 $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 pgac_cv__builtin_constant_p=no
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
16083 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
16084 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
16086 cat >>confdefs.h <<\_ACEOF
16087 #define HAVE__BUILTIN_CONSTANT_P 1
16091 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
16092 $as_echo_n "checking for __builtin_unreachable... " >&6; }
16093 if test "${pgac_cv__builtin_unreachable+set}" = set; then
16094 $as_echo_n "(cached) " >&6
16096 cat >conftest.$ac_ext <<_ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16106 __builtin_unreachable();
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118 $as_echo "$ac_try_echo") >&5
16119 (eval "$ac_link") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest$ac_exeext && {
16129 test "$cross_compiling" = yes ||
16130 $as_test_x conftest$ac_exeext
16132 pgac_cv__builtin_unreachable=yes
16134 $as_echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 pgac_cv__builtin_unreachable=no
16140 rm -rf conftest.dSYM
16141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16142 conftest$ac_exeext conftest.$ac_ext
16144 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
16145 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
16146 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE__BUILTIN_UNREACHABLE 1
16153 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
16154 $as_echo_n "checking for __VA_ARGS__... " >&6; }
16155 if test "${pgac_cv__va_args+set}" = set; then
16156 $as_echo_n "(cached) " >&6
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16168 #define debug(...) fprintf(stderr, __VA_ARGS__)
16169 debug("%s", "blarg");
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16182 $as_echo "$ac_try_echo") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } && {
16190 test -z "$ac_c_werror_flag" ||
16191 test ! -s conftest.err
16192 } && test -s conftest.$ac_objext; then
16193 pgac_cv__va_args=yes
16195 $as_echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 pgac_cv__va_args=no
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16204 $as_echo "$pgac_cv__va_args" >&6; }
16205 if test x"$pgac_cv__va_args" = xyes ; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE__VA_ARGS 1
16212 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16213 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16214 if test "${ac_cv_struct_tm+set}" = set; then
16215 $as_echo_n "(cached) " >&6
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 #include <sys/types.h>
16230 int *p = &tm.tm_sec;
16236 rm -f conftest.$ac_objext
16237 if { (ac_try="$ac_compile"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16243 $as_echo "$ac_try_echo") >&5
16244 (eval "$ac_compile") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } && {
16251 test -z "$ac_c_werror_flag" ||
16252 test ! -s conftest.err
16253 } && test -s conftest.$ac_objext; then
16254 ac_cv_struct_tm=time.h
16256 $as_echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_cv_struct_tm=sys/time.h
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16265 $as_echo "$ac_cv_struct_tm" >&6; }
16266 if test $ac_cv_struct_tm = sys/time.h; then
16268 cat >>confdefs.h <<\_ACEOF
16269 #define TM_IN_SYS_TIME 1
16274 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16275 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16276 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16277 $as_echo_n "(cached) " >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <sys/types.h>
16286 #include <$ac_cv_struct_tm>
16292 static struct tm ac_aggr;
16293 if (ac_aggr.tm_zone)
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307 (eval "$ac_compile") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest.$ac_objext; then
16317 ac_cv_member_struct_tm_tm_zone=yes
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #include <sys/types.h>
16329 #include <$ac_cv_struct_tm>
16335 static struct tm ac_aggr;
16336 if (sizeof ac_aggr.tm_zone)
16342 rm -f conftest.$ac_objext
16343 if { (ac_try="$ac_compile"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16349 $as_echo "$ac_try_echo") >&5
16350 (eval "$ac_compile") 2>conftest.er1
16352 grep -v '^ *+' conftest.er1 >conftest.err
16354 cat conftest.err >&5
16355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } && {
16357 test -z "$ac_c_werror_flag" ||
16358 test ! -s conftest.err
16359 } && test -s conftest.$ac_objext; then
16360 ac_cv_member_struct_tm_tm_zone=yes
16362 $as_echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 ac_cv_member_struct_tm_tm_zone=no
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16374 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16375 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16377 cat >>confdefs.h <<_ACEOF
16378 #define HAVE_STRUCT_TM_TM_ZONE 1
16384 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_TM_ZONE 1
16391 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16392 $as_echo_n "checking for tzname... " >&6; }
16393 if test "${ac_cv_var_tzname+set}" = set; then
16394 $as_echo_n "(cached) " >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 #ifndef tzname /* For SGI. */
16404 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16422 $as_echo "$ac_try_echo") >&5
16423 (eval "$ac_link") 2>conftest.er1
16425 grep -v '^ *+' conftest.er1 >conftest.err
16427 cat conftest.err >&5
16428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } && {
16430 test -z "$ac_c_werror_flag" ||
16431 test ! -s conftest.err
16432 } && test -s conftest$ac_exeext && {
16433 test "$cross_compiling" = yes ||
16434 $as_test_x conftest$ac_exeext
16436 ac_cv_var_tzname=yes
16438 $as_echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_var_tzname=no
16444 rm -rf conftest.dSYM
16445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16446 conftest$ac_exeext conftest.$ac_ext
16448 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16449 $as_echo "$ac_cv_var_tzname" >&6; }
16450 if test $ac_cv_var_tzname = yes; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_TZNAME 1
16458 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16459 $as_echo_n "checking for union semun... " >&6; }
16460 if test "${ac_cv_type_union_semun+set}" = set; then
16461 $as_echo_n "(cached) " >&6
16463 ac_cv_type_union_semun=no
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 #include <sys/types.h>
16471 #include <sys/ipc.h>
16472 #include <sys/sem.h>
16477 if (sizeof (union semun))
16483 rm -f conftest.$ac_objext
16484 if { (ac_try="$ac_compile"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16490 $as_echo "$ac_try_echo") >&5
16491 (eval "$ac_compile") 2>conftest.er1
16493 grep -v '^ *+' conftest.er1 >conftest.err
16495 cat conftest.err >&5
16496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest.$ac_objext; then
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 #include <sys/types.h>
16508 #include <sys/ipc.h>
16509 #include <sys/sem.h>
16514 if (sizeof ((union semun)))
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16527 $as_echo "$ac_try_echo") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest.$ac_objext; then
16540 $as_echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_type_union_semun=yes
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16557 $as_echo "$ac_cv_type_union_semun" >&6; }
16558 if test "x$ac_cv_type_union_semun" = x""yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_UNION_SEMUN 1
16567 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16568 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16569 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16570 $as_echo_n "(cached) " >&6
16572 ac_cv_type_struct_sockaddr_un=no
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <sys/types.h>
16580 #ifdef HAVE_SYS_UN_H
16581 #include <sys/un.h>
16588 if (sizeof (struct sockaddr_un))
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16601 $as_echo "$ac_try_echo") >&5
16602 (eval "$ac_compile") 2>conftest.er1
16604 grep -v '^ *+' conftest.er1 >conftest.err
16606 cat conftest.err >&5
16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest.$ac_objext; then
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 #include <sys/types.h>
16619 #ifdef HAVE_SYS_UN_H
16620 #include <sys/un.h>
16627 if (sizeof ((struct sockaddr_un)))
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16640 $as_echo "$ac_try_echo") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1 >conftest.err
16645 cat conftest.err >&5
16646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.$ac_objext; then
16653 $as_echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_type_struct_sockaddr_un=yes
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16670 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16671 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16673 cat >>confdefs.h <<\_ACEOF
16674 #define HAVE_UNIX_SOCKETS 1
16679 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16680 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16681 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16684 ac_cv_type_struct_sockaddr_storage=no
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 #include <sys/types.h>
16692 #ifdef HAVE_SYS_SOCKET_H
16693 #include <sys/socket.h>
16700 if (sizeof (struct sockaddr_storage))
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest.$ac_objext; then
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <sys/types.h>
16731 #ifdef HAVE_SYS_SOCKET_H
16732 #include <sys/socket.h>
16739 if (sizeof ((struct sockaddr_storage)))
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16765 $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_cv_type_struct_sockaddr_storage=yes
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 $as_echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16782 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16783 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16792 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16793 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16794 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16795 $as_echo_n "(cached) " >&6
16797 cat >conftest.$ac_ext <<_ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16803 #include <sys/types.h>
16804 #ifdef HAVE_SYS_SOCKET_H
16805 #include <sys/socket.h>
16812 static struct sockaddr_storage ac_aggr;
16813 if (ac_aggr.ss_family)
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16826 $as_echo "$ac_try_echo") >&5
16827 (eval "$ac_compile") 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest.$ac_objext; then
16837 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16839 $as_echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 #include <sys/types.h>
16849 #ifdef HAVE_SYS_SOCKET_H
16850 #include <sys/socket.h>
16857 static struct sockaddr_storage ac_aggr;
16858 if (sizeof ac_aggr.ss_family)
16864 rm -f conftest.$ac_objext
16865 if { (ac_try="$ac_compile"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16871 $as_echo "$ac_try_echo") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest.$ac_objext; then
16882 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16884 $as_echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_member_struct_sockaddr_storage_ss_family=no
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16896 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16897 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16905 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16906 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16907 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16908 $as_echo_n "(cached) " >&6
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 #include <sys/types.h>
16917 #ifdef HAVE_SYS_SOCKET_H
16918 #include <sys/socket.h>
16925 static struct sockaddr_storage ac_aggr;
16926 if (ac_aggr.__ss_family)
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_compile") 2>conftest.er1
16942 grep -v '^ *+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest.$ac_objext; then
16950 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16952 $as_echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 #include <sys/types.h>
16962 #ifdef HAVE_SYS_SOCKET_H
16963 #include <sys/socket.h>
16970 static struct sockaddr_storage ac_aggr;
16971 if (sizeof ac_aggr.__ss_family)
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16995 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16997 $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_member_struct_sockaddr_storage___ss_family=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
17009 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
17010 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
17018 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
17019 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
17020 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
17021 $as_echo_n "(cached) " >&6
17023 cat >conftest.$ac_ext <<_ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #include <sys/types.h>
17030 #ifdef HAVE_SYS_SOCKET_H
17031 #include <sys/socket.h>
17038 static struct sockaddr_storage ac_aggr;
17039 if (ac_aggr.ss_len)
17045 rm -f conftest.$ac_objext
17046 if { (ac_try="$ac_compile"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053 (eval "$ac_compile") 2>conftest.er1
17055 grep -v '^ *+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && {
17060 test -z "$ac_c_werror_flag" ||
17061 test ! -s conftest.err
17062 } && test -s conftest.$ac_objext; then
17063 ac_cv_member_struct_sockaddr_storage_ss_len=yes
17065 $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 #include <sys/types.h>
17075 #ifdef HAVE_SYS_SOCKET_H
17076 #include <sys/socket.h>
17083 static struct sockaddr_storage ac_aggr;
17084 if (sizeof ac_aggr.ss_len)
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_compile") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest.$ac_objext; then
17108 ac_cv_member_struct_sockaddr_storage_ss_len=yes
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_cv_member_struct_sockaddr_storage_ss_len=no
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
17122 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
17123 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
17131 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
17132 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
17133 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
17134 $as_echo_n "(cached) " >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <sys/types.h>
17143 #ifdef HAVE_SYS_SOCKET_H
17144 #include <sys/socket.h>
17151 static struct sockaddr_storage ac_aggr;
17152 if (ac_aggr.__ss_len)
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17176 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17178 $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <sys/types.h>
17188 #ifdef HAVE_SYS_SOCKET_H
17189 #include <sys/socket.h>
17196 static struct sockaddr_storage ac_aggr;
17197 if (sizeof ac_aggr.__ss_len)
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17210 $as_echo "$ac_try_echo") >&5
17211 (eval "$ac_compile") 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && {
17218 test -z "$ac_c_werror_flag" ||
17219 test ! -s conftest.err
17220 } && test -s conftest.$ac_objext; then
17221 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17223 $as_echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_cv_member_struct_sockaddr_storage___ss_len=no
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17235 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17236 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17244 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17245 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17246 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17247 $as_echo_n "(cached) " >&6
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #include <sys/types.h>
17256 #ifdef HAVE_SYS_SOCKET_H
17257 #include <sys/socket.h>
17264 static struct sockaddr ac_aggr;
17265 if (ac_aggr.sa_len)
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17278 $as_echo "$ac_try_echo") >&5
17279 (eval "$ac_compile") 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } && {
17286 test -z "$ac_c_werror_flag" ||
17287 test ! -s conftest.err
17288 } && test -s conftest.$ac_objext; then
17289 ac_cv_member_struct_sockaddr_sa_len=yes
17291 $as_echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #include <sys/types.h>
17301 #ifdef HAVE_SYS_SOCKET_H
17302 #include <sys/socket.h>
17309 static struct sockaddr ac_aggr;
17310 if (sizeof ac_aggr.sa_len)
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17323 $as_echo "$ac_try_echo") >&5
17324 (eval "$ac_compile") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest.$ac_objext; then
17334 ac_cv_member_struct_sockaddr_sa_len=yes
17336 $as_echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_member_struct_sockaddr_sa_len=no
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17348 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17349 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17358 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17359 $as_echo_n "checking for struct addrinfo... " >&6; }
17360 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17361 $as_echo_n "(cached) " >&6
17363 ac_cv_type_struct_addrinfo=no
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 #include <sys/types.h>
17371 #include <sys/socket.h>
17378 if (sizeof (struct addrinfo))
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392 (eval "$ac_compile") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest.$ac_objext; then
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 #include <sys/types.h>
17409 #include <sys/socket.h>
17416 if (sizeof ((struct addrinfo)))
17422 rm -f conftest.$ac_objext
17423 if { (ac_try="$ac_compile"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430 (eval "$ac_compile") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest.$ac_objext; then
17442 $as_echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ac_cv_type_struct_addrinfo=yes
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 $as_echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17459 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17460 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_STRUCT_ADDRINFO 1
17470 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17471 $as_echo_n "checking for intptr_t... " >&6; }
17472 if test "${ac_cv_type_intptr_t+set}" = set; then
17473 $as_echo_n "(cached) " >&6
17475 ac_cv_type_intptr_t=no
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 $ac_includes_default
17486 if (sizeof (intptr_t))
17492 rm -f conftest.$ac_objext
17493 if { (ac_try="$ac_compile"
17494 case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 $ac_includes_default
17520 if (sizeof ((intptr_t)))
17526 rm -f conftest.$ac_objext
17527 if { (ac_try="$ac_compile"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_compile") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } && {
17541 test -z "$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17543 } && test -s conftest.$ac_objext; then
17546 $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 ac_cv_type_intptr_t=yes
17552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 $as_echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17563 $as_echo "$ac_cv_type_intptr_t" >&6; }
17564 if test "x$ac_cv_type_intptr_t" = x""yes; then
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_INTPTR_T 1
17571 for ac_type in 'int' 'long int' 'long long int'; do
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 $ac_includes_default
17582 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17589 rm -f conftest.$ac_objext
17590 if { (ac_try="$ac_compile"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17596 $as_echo "$ac_try_echo") >&5
17597 (eval "$ac_compile") 2>conftest.er1
17599 grep -v '^ *+' conftest.er1 >conftest.err
17601 cat conftest.err >&5
17602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } && {
17604 test -z "$ac_c_werror_flag" ||
17605 test ! -s conftest.err
17606 } && test -s conftest.$ac_objext; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define intptr_t $ac_type
17614 $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 test -z "$ac_type" && break
17627 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17628 $as_echo_n "checking for uintptr_t... " >&6; }
17629 if test "${ac_cv_type_uintptr_t+set}" = set; then
17630 $as_echo_n "(cached) " >&6
17632 ac_cv_type_uintptr_t=no
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 $ac_includes_default
17643 if (sizeof (uintptr_t))
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17656 $as_echo "$ac_try_echo") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } && {
17664 test -z "$ac_c_werror_flag" ||
17665 test ! -s conftest.err
17666 } && test -s conftest.$ac_objext; then
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17677 if (sizeof ((uintptr_t)))
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17690 $as_echo "$ac_try_echo") >&5
17691 (eval "$ac_compile") 2>conftest.er1
17693 grep -v '^ *+' conftest.er1 >conftest.err
17695 cat conftest.err >&5
17696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest.$ac_objext; then
17703 $as_echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 ac_cv_type_uintptr_t=yes
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 $as_echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17720 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17721 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17723 cat >>confdefs.h <<\_ACEOF
17724 #define HAVE_UINTPTR_T 1
17728 for ac_type in 'unsigned int' 'unsigned long int' \
17729 'unsigned long long int'; do
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17740 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17747 rm -f conftest.$ac_objext
17748 if { (ac_try="$ac_compile"
17749 case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17754 $as_echo "$ac_try_echo") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest.$ac_objext; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define uintptr_t $ac_type
17772 $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779 test -z "$ac_type" && break
17785 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17786 $as_echo_n "checking for long long int... " >&6; }
17787 if test "${ac_cv_type_long_long_int+set}" = set; then
17788 $as_echo_n "(cached) " >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 /* For now, do not test the preprocessor; as of 2007 there are too many
17798 implementations with broken preprocessors. Perhaps this can
17799 be revisited in 2012. In the meantime, code should not expect
17800 #if to work with literals wider than 32 bits. */
17801 /* Test literals. */
17802 long long int ll = 9223372036854775807ll;
17803 long long int nll = -9223372036854775807LL;
17804 unsigned long long int ull = 18446744073709551615ULL;
17805 /* Test constant expressions. */
17806 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17808 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17814 /* Test availability of runtime routines for shift and division. */
17815 long long int llmax = 9223372036854775807ll;
17816 unsigned long long int ullmax = 18446744073709551615ull;
17817 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17818 | (llmax / ll) | (llmax % ll)
17819 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17820 | (ullmax / ull) | (ullmax % ull));
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834 (eval "$ac_link") 2>conftest.er1
17836 grep -v '^ *+' conftest.er1 >conftest.err
17838 cat conftest.err >&5
17839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest$ac_exeext && {
17844 test "$cross_compiling" = yes ||
17845 $as_test_x conftest$ac_exeext
17847 if test "$cross_compiling" = yes; then
17848 ac_cv_type_long_long_int=yes
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <limits.h>
17859 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17860 # define LLONG_MAX (HALF - 1 + HALF)
17865 long long int n = 1;
17869 long long int m = n << i;
17872 if (LLONG_MAX / 2 < m)
17880 rm -f conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17887 $as_echo "$ac_try_echo") >&5
17888 (eval "$ac_link") 2>&5
17890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892 { (case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898 (eval "$ac_try") 2>&5
17900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_type_long_long_int=yes
17904 $as_echo "$as_me: program exited with status $ac_status" >&5
17905 $as_echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ( exit $ac_status )
17909 ac_cv_type_long_long_int=no
17911 rm -rf conftest.dSYM
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17917 $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_cv_type_long_long_int=no
17923 rm -rf conftest.dSYM
17924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17925 conftest$ac_exeext conftest.$ac_ext
17927 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17928 $as_echo "$ac_cv_type_long_long_int" >&6; }
17929 if test $ac_cv_type_long_long_int = yes; then
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE_LONG_LONG_INT 1
17938 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17939 $as_echo_n "checking for locale_t... " >&6; }
17940 if test "${pgac_cv_type_locale_t+set}" = set; then
17941 $as_echo_n "(cached) " >&6
17943 cat >conftest.$ac_ext <<_ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 #include <locale.h>
17959 rm -f conftest.$ac_objext
17960 if { (ac_try="$ac_compile"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17966 $as_echo "$ac_try_echo") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17969 grep -v '^ *+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17977 pgac_cv_type_locale_t=yes
17979 $as_echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <xlocale.h>
17998 rm -f conftest.$ac_objext
17999 if { (ac_try="$ac_compile"
18000 case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18005 $as_echo "$ac_try_echo") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest.$ac_objext; then
18016 pgac_cv_type_locale_t='yes (in xlocale.h)'
18018 $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 pgac_cv_type_locale_t=no
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
18030 $as_echo "$pgac_cv_type_locale_t" >&6; }
18031 if test "$pgac_cv_type_locale_t" != no; then
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE_LOCALE_T 1
18038 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
18040 cat >>confdefs.h <<\_ACEOF
18041 #define LOCALE_T_IN_XLOCALE 1
18046 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
18047 $as_echo_n "checking for struct cmsgcred... " >&6; }
18048 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
18049 $as_echo_n "(cached) " >&6
18051 ac_cv_type_struct_cmsgcred=no
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 #include <sys/socket.h>
18059 #include <sys/param.h>
18060 #ifdef HAVE_SYS_UCRED_H
18061 #include <sys/ucred.h>
18067 if (sizeof (struct cmsgcred))
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18080 $as_echo "$ac_try_echo") >&5
18081 (eval "$ac_compile") 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest.$ac_objext; then
18091 cat >conftest.$ac_ext <<_ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 #include <sys/socket.h>
18098 #include <sys/param.h>
18099 #ifdef HAVE_SYS_UCRED_H
18100 #include <sys/ucred.h>
18106 if (sizeof ((struct cmsgcred)))
18112 rm -f conftest.$ac_objext
18113 if { (ac_try="$ac_compile"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18119 $as_echo "$ac_try_echo") >&5
18120 (eval "$ac_compile") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest.$ac_objext; then
18132 $as_echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_cv_type_struct_cmsgcred=yes
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140 $as_echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
18149 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
18150 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
18152 cat >>confdefs.h <<_ACEOF
18153 #define HAVE_STRUCT_CMSGCRED 1
18160 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
18161 $as_echo_n "checking for struct option... " >&6; }
18162 if test "${ac_cv_type_struct_option+set}" = set; then
18163 $as_echo_n "(cached) " >&6
18165 ac_cv_type_struct_option=no
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172 #ifdef HAVE_GETOPT_H
18173 #include <getopt.h>
18179 if (sizeof (struct option))
18185 rm -f conftest.$ac_objext
18186 if { (ac_try="$ac_compile"
18187 case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18192 $as_echo "$ac_try_echo") >&5
18193 (eval "$ac_compile") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest.$ac_objext; then
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 #ifdef HAVE_GETOPT_H
18210 #include <getopt.h>
18216 if (sizeof ((struct option)))
18222 rm -f conftest.$ac_objext
18223 if { (ac_try="$ac_compile"
18224 case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18229 $as_echo "$ac_try_echo") >&5
18230 (eval "$ac_compile") 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } && {
18237 test -z "$ac_c_werror_flag" ||
18238 test ! -s conftest.err
18239 } && test -s conftest.$ac_objext; then
18242 $as_echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_cv_type_struct_option=yes
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18250 $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18259 $as_echo "$ac_cv_type_struct_option" >&6; }
18260 if test "x$ac_cv_type_struct_option" = x""yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_STRUCT_OPTION 1
18270 if test "$with_zlib" = yes; then
18271 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18272 # did not). While we could work around the lack of z_streamp, it
18273 # seems unwise to encourage people to use such old zlib versions...
18274 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18275 $as_echo_n "checking for z_streamp... " >&6; }
18276 if test "${ac_cv_type_z_streamp+set}" = set; then
18277 $as_echo_n "(cached) " >&6
18279 ac_cv_type_z_streamp=no
18280 cat >conftest.$ac_ext <<_ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18291 if (sizeof (z_streamp))
18297 rm -f conftest.$ac_objext
18298 if { (ac_try="$ac_compile"
18299 case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18304 $as_echo "$ac_try_echo") >&5
18305 (eval "$ac_compile") 2>conftest.er1
18307 grep -v '^ *+' conftest.er1 >conftest.err
18309 cat conftest.err >&5
18310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } && {
18312 test -z "$ac_c_werror_flag" ||
18313 test ! -s conftest.err
18314 } && test -s conftest.$ac_objext; then
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18326 if (sizeof ((z_streamp)))
18332 rm -f conftest.$ac_objext
18333 if { (ac_try="$ac_compile"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18352 $as_echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_type_z_streamp=yes
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 $as_echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18369 $as_echo "$ac_cv_type_z_streamp" >&6; }
18370 if test "x$ac_cv_type_z_streamp" = x""yes; then
18373 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18374 Use --without-zlib to disable zlib support." >&5
18375 $as_echo "$as_me: error: zlib version is too old
18376 Use --without-zlib to disable zlib support." >&2;}
18377 { (exit 1); exit 1; }; }
18382 if test "$with_krb5" = yes; then
18383 # Check for differences between MIT and Heimdal (KTH) releases
18384 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18385 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18386 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18387 $as_echo_n "(cached) " >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18400 static krb5_ticket ac_aggr;
18401 if (ac_aggr.enc_part2)
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18414 $as_echo "$ac_try_echo") >&5
18415 (eval "$ac_compile") 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest.$ac_objext; then
18425 ac_cv_member_krb5_ticket_enc_part2=yes
18427 $as_echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 cat >conftest.$ac_ext <<_ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18441 static krb5_ticket ac_aggr;
18442 if (sizeof ac_aggr.enc_part2)
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18455 $as_echo "$ac_try_echo") >&5
18456 (eval "$ac_compile") 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } && {
18463 test -z "$ac_c_werror_flag" ||
18464 test ! -s conftest.err
18465 } && test -s conftest.$ac_objext; then
18466 ac_cv_member_krb5_ticket_enc_part2=yes
18468 $as_echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_member_krb5_ticket_enc_part2=no
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18480 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18481 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_KRB5_TICKET_ENC_PART2 1
18489 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18490 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18491 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18492 $as_echo_n "(cached) " >&6
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18505 static krb5_ticket ac_aggr;
18506 if (ac_aggr.client)
18512 rm -f conftest.$ac_objext
18513 if { (ac_try="$ac_compile"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18519 $as_echo "$ac_try_echo") >&5
18520 (eval "$ac_compile") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && {
18527 test -z "$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 } && test -s conftest.$ac_objext; then
18530 ac_cv_member_krb5_ticket_client=yes
18532 $as_echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 cat >conftest.$ac_ext <<_ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18546 static krb5_ticket ac_aggr;
18547 if (sizeof ac_aggr.client)
18553 rm -f conftest.$ac_objext
18554 if { (ac_try="$ac_compile"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18560 $as_echo "$ac_try_echo") >&5
18561 (eval "$ac_compile") 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } && {
18568 test -z "$ac_c_werror_flag" ||
18569 test ! -s conftest.err
18570 } && test -s conftest.$ac_objext; then
18571 ac_cv_member_krb5_ticket_client=yes
18573 $as_echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ac_cv_member_krb5_ticket_client=no
18579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18585 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18586 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18588 cat >>confdefs.h <<_ACEOF
18589 #define HAVE_KRB5_TICKET_CLIENT 1
18594 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18595 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18596 { (exit 1); exit 1; }; }
18601 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18602 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18603 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18604 $as_echo_n "(cached) " >&6
18606 cat >conftest.$ac_ext <<_ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18617 static krb5_error ac_aggr;
18618 if (ac_aggr.text.data)
18624 rm -f conftest.$ac_objext
18625 if { (ac_try="$ac_compile"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18631 $as_echo "$ac_try_echo") >&5
18632 (eval "$ac_compile") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest.$ac_objext; then
18642 ac_cv_member_krb5_error_text_data=yes
18644 $as_echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18658 static krb5_error ac_aggr;
18659 if (sizeof ac_aggr.text.data)
18665 rm -f conftest.$ac_objext
18666 if { (ac_try="$ac_compile"
18667 case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18672 $as_echo "$ac_try_echo") >&5
18673 (eval "$ac_compile") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest.$ac_objext; then
18683 ac_cv_member_krb5_error_text_data=yes
18685 $as_echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18688 ac_cv_member_krb5_error_text_data=no
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18697 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18698 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18700 cat >>confdefs.h <<_ACEOF
18701 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18706 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18707 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18708 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18709 $as_echo_n "(cached) " >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18722 static krb5_error ac_aggr;
18723 if (ac_aggr.e_data)
18729 rm -f conftest.$ac_objext
18730 if { (ac_try="$ac_compile"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18736 $as_echo "$ac_try_echo") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_cv_member_krb5_error_e_data=yes
18749 $as_echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18763 static krb5_error ac_aggr;
18764 if (sizeof ac_aggr.e_data)
18770 rm -f conftest.$ac_objext
18771 if { (ac_try="$ac_compile"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18777 $as_echo "$ac_try_echo") >&5
18778 (eval "$ac_compile") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest.$ac_objext; then
18788 ac_cv_member_krb5_error_e_data=yes
18790 $as_echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_cv_member_krb5_error_e_data=no
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18802 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18803 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_KRB5_ERROR_E_DATA 1
18811 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18812 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18813 { (exit 1); exit 1; }; }
18819 # Win32 requires headers to be loaded for __stdcall, so can't use
18820 # AC_CHECK_FUNCS here.
18821 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18822 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18833 krb5_free_unparsed_name(NULL,NULL);
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext && {
18856 test "$cross_compiling" = yes ||
18857 $as_test_x conftest$ac_exeext
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18864 { $as_echo "$as_me:$LINENO: result: yes" >&5
18865 $as_echo "yes" >&6; }
18867 $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 { $as_echo "$as_me:$LINENO: result: no" >&5
18871 $as_echo "no" >&6; }
18874 rm -rf conftest.dSYM
18875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18876 conftest$ac_exeext conftest.$ac_ext
18879 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18882 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18883 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18884 cat >conftest.$ac_ext <<_ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18894 int a = 0; int *p = &a; int r;
18895 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18907 $as_echo "$ac_try_echo") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest.$ac_objext; then
18918 pgac_cv_have_ppc_mutex_hint=yes
18920 $as_echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 pgac_cv_have_ppc_mutex_hint=no
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18928 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18929 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18939 # Check largefile support. You might think this is a system service not a
18940 # compiler characteristic, but you'd be wrong. We must check this before
18941 # probing existence of related functions such as fseeko, since the largefile
18942 # defines can affect what is generated for that.
18943 if test "$PORTNAME" != "win32"; then
18944 # Check whether --enable-largefile was given.
18945 if test "${enable_largefile+set}" = set; then
18946 enableval=$enable_largefile;
18949 if test "$enable_largefile" != no; then
18951 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18952 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18953 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18954 $as_echo_n "(cached) " >&6
18956 ac_cv_sys_largefile_CC=no
18957 if test "$GCC" != yes; then
18960 # IRIX 6.2 and later do not support large files by default,
18961 # so use the C compiler's -n32 option if that helps.
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <sys/types.h>
18969 /* Check that off_t can represent 2**63 - 1 correctly.
18970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18971 since some C++ compilers masquerading as C compilers
18972 incorrectly reject 9223372036854775807. */
18973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18975 && LARGE_OFF_T % 2147483647 == 1)
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18992 $as_echo "$ac_try_echo") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
19005 $as_echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19011 rm -f core conftest.err conftest.$ac_objext
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021 (eval "$ac_compile") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest.$ac_objext; then
19031 ac_cv_sys_largefile_CC=' -n32'; break
19033 $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19039 rm -f core conftest.err conftest.$ac_objext
19043 rm -f conftest.$ac_ext
19046 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19047 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19048 if test "$ac_cv_sys_largefile_CC" != no; then
19049 CC=$CC$ac_cv_sys_largefile_CC
19052 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19053 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19054 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19055 $as_echo_n "(cached) " >&6
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <sys/types.h>
19065 /* Check that off_t can represent 2**63 - 1 correctly.
19066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19067 since some C++ compilers masquerading as C compilers
19068 incorrectly reject 9223372036854775807. */
19069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19071 && LARGE_OFF_T % 2147483647 == 1)
19081 rm -f conftest.$ac_objext
19082 if { (ac_try="$ac_compile"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19088 $as_echo "$ac_try_echo") >&5
19089 (eval "$ac_compile") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest.$ac_objext; then
19099 ac_cv_sys_file_offset_bits=no; break
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 #define _FILE_OFFSET_BITS 64
19115 #include <sys/types.h>
19116 /* Check that off_t can represent 2**63 - 1 correctly.
19117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19118 since some C++ compilers masquerading as C compilers
19119 incorrectly reject 9223372036854775807. */
19120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19122 && LARGE_OFF_T % 2147483647 == 1)
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19139 $as_echo "$ac_try_echo") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } && {
19147 test -z "$ac_c_werror_flag" ||
19148 test ! -s conftest.err
19149 } && test -s conftest.$ac_objext; then
19150 ac_cv_sys_file_offset_bits=64; break
19152 $as_echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 ac_cv_sys_file_offset_bits=unknown
19163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19164 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19165 case $ac_cv_sys_file_offset_bits in #(
19168 cat >>confdefs.h <<_ACEOF
19169 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19174 if test $ac_cv_sys_file_offset_bits = unknown; then
19175 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19176 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19177 if test "${ac_cv_sys_large_files+set}" = set; then
19178 $as_echo_n "(cached) " >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 #include <sys/types.h>
19188 /* Check that off_t can represent 2**63 - 1 correctly.
19189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19190 since some C++ compilers masquerading as C compilers
19191 incorrectly reject 9223372036854775807. */
19192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19194 && LARGE_OFF_T % 2147483647 == 1)
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 ac_cv_sys_large_files=no; break
19224 $as_echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 #define _LARGE_FILES 1
19238 #include <sys/types.h>
19239 /* Check that off_t can represent 2**63 - 1 correctly.
19240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19241 since some C++ compilers masquerading as C compilers
19242 incorrectly reject 9223372036854775807. */
19243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19245 && LARGE_OFF_T % 2147483647 == 1)
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19262 $as_echo "$ac_try_echo") >&5
19263 (eval "$ac_compile") 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } && {
19270 test -z "$ac_c_werror_flag" ||
19271 test ! -s conftest.err
19272 } && test -s conftest.$ac_objext; then
19273 ac_cv_sys_large_files=1; break
19275 $as_echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 ac_cv_sys_large_files=unknown
19286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19287 $as_echo "$ac_cv_sys_large_files" >&6; }
19288 case $ac_cv_sys_large_files in #(
19291 cat >>confdefs.h <<_ACEOF
19292 #define _LARGE_FILES $ac_cv_sys_large_files
19302 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19303 # The cast to long int works around a bug in the HP C Compiler
19304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19306 # This bug is HP SR number 8606223364.
19307 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19308 $as_echo_n "checking size of off_t... " >&6; }
19309 if test "${ac_cv_sizeof_off_t+set}" = set; then
19310 $as_echo_n "(cached) " >&6
19312 if test "$cross_compiling" = yes; then
19313 # Depending upon the size, compute the lo and hi bounds.
19314 cat >conftest.$ac_ext <<_ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 $ac_includes_default
19324 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest.$ac_objext; then
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 $ac_includes_default
19361 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19375 $as_echo "$ac_try_echo") >&5
19376 (eval "$ac_compile") 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest.$ac_objext; then
19386 ac_hi=$ac_mid; break
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_lo=`expr $ac_mid + 1`
19392 if test $ac_lo -le $ac_mid; then
19396 ac_mid=`expr 2 '*' $ac_mid + 1`
19399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 cat >conftest.$ac_ext <<_ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19415 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19429 $as_echo "$ac_try_echo") >&5
19430 (eval "$ac_compile") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest.$ac_objext; then
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19452 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19459 rm -f conftest.$ac_objext
19460 if { (ac_try="$ac_compile"
19461 case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19466 $as_echo "$ac_try_echo") >&5
19467 (eval "$ac_compile") 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest.$ac_objext; then
19477 ac_lo=$ac_mid; break
19479 $as_echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_hi=`expr '(' $ac_mid ')' - 1`
19483 if test $ac_mid -le $ac_hi; then
19487 ac_mid=`expr 2 '*' $ac_mid`
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493 $as_echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 # Binary search between lo and hi bounds.
19504 while test "x$ac_lo" != "x$ac_hi"; do
19505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 $ac_includes_default
19516 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19530 $as_echo "$ac_try_echo") >&5
19531 (eval "$ac_compile") 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } && {
19538 test -z "$ac_c_werror_flag" ||
19539 test ! -s conftest.err
19540 } && test -s conftest.$ac_objext; then
19543 $as_echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19546 ac_lo=`expr '(' $ac_mid ')' + 1`
19549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19553 '') if test "$ac_cv_type_off_t" = yes; then
19554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19556 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19557 See \`config.log' for more details." >&5
19558 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19559 See \`config.log' for more details." >&2;}
19560 { (exit 77); exit 77; }; }; }
19562 ac_cv_sizeof_off_t=0
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19572 $ac_includes_default
19573 static long int longval () { return (long int) (sizeof (off_t)); }
19574 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19576 #include <stdlib.h>
19581 FILE *f = fopen ("conftest.val", "w");
19584 if (((long int) (sizeof (off_t))) < 0)
19586 long int i = longval ();
19587 if (i != ((long int) (sizeof (off_t))))
19589 fprintf (f, "%ld", i);
19593 unsigned long int i = ulongval ();
19594 if (i != ((long int) (sizeof (off_t))))
19596 fprintf (f, "%lu", i);
19598 /* Do not output a trailing newline, as this causes \r\n confusion
19599 on some platforms. */
19600 return ferror (f) || fclose (f) != 0;
19606 rm -f conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_link") 2>&5
19616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624 (eval "$ac_try") 2>&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_sizeof_off_t=`cat conftest.val`
19630 $as_echo "$as_me: program exited with status $ac_status" >&5
19631 $as_echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19634 ( exit $ac_status )
19635 if test "$ac_cv_type_off_t" = yes; then
19636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19638 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19639 See \`config.log' for more details." >&5
19640 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19641 See \`config.log' for more details." >&2;}
19642 { (exit 77); exit 77; }; }; }
19644 ac_cv_sizeof_off_t=0
19647 rm -rf conftest.dSYM
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19652 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19653 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19657 cat >>confdefs.h <<_ACEOF
19658 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19663 # If we don't have largefile support, can't handle segsize >= 2GB.
19664 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19665 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19666 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19667 { (exit 1); exit 1; }; }
19672 ## Functions, global variables
19675 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19676 $as_echo_n "checking for int timezone... " >&6; }
19677 if test "${pgac_cv_var_int_timezone+set}" = set; then
19678 $as_echo_n "(cached) " >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19692 res = timezone / 60;
19694 res = _timezone / 60;
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19707 $as_echo "$ac_try_echo") >&5
19708 (eval "$ac_link") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } && {
19715 test -z "$ac_c_werror_flag" ||
19716 test ! -s conftest.err
19717 } && test -s conftest$ac_exeext && {
19718 test "$cross_compiling" = yes ||
19719 $as_test_x conftest$ac_exeext
19721 pgac_cv_var_int_timezone=yes
19723 $as_echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 pgac_cv_var_int_timezone=no
19729 rm -rf conftest.dSYM
19730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19731 conftest$ac_exeext conftest.$ac_ext
19733 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19734 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19735 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_INT_TIMEZONE 1
19742 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19743 $as_echo_n "checking types of arguments for accept()... " >&6; }
19744 if test "${ac_cv_func_accept_return+set}" = set; then
19745 $as_echo_n "(cached) " >&6
19747 if test "${ac_cv_func_accept_arg1+set}" = set; then
19748 $as_echo_n "(cached) " >&6
19750 if test "${ac_cv_func_accept_arg2+set}" = set; then
19751 $as_echo_n "(cached) " >&6
19753 if test "${ac_cv_func_accept_arg3+set}" = set; then
19754 $as_echo_n "(cached) " >&6
19756 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19757 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19758 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19759 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 #ifdef HAVE_SYS_TYPES_H
19767 #include <sys/types.h>
19769 #ifdef HAVE_SYS_SOCKET_H
19770 #include <sys/socket.h>
19772 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19799 ac_not_found=no; break 4
19801 $as_echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 if test "$ac_not_found" = yes; then
19813 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19814 $as_echo "$as_me: error: could not determine argument types" >&2;}
19815 { (exit 1); exit 1; }; }
19817 if test "$ac_cv_func_accept_arg3" = "void"; then
19818 ac_cv_func_accept_arg3=int
19828 { $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
19829 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19831 cat >>confdefs.h <<_ACEOF
19832 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19836 cat >>confdefs.h <<_ACEOF
19837 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19841 cat >>confdefs.h <<_ACEOF
19842 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19846 cat >>confdefs.h <<_ACEOF
19847 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19851 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19852 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19853 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19854 $as_echo_n "(cached) " >&6
19856 cat >conftest.$ac_ext <<_ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #include <sys/time.h>
19866 struct timeval *tp;
19867 struct timezone *tzp;
19868 gettimeofday(tp,tzp);
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19880 $as_echo "$ac_try_echo") >&5
19881 (eval "$ac_compile") 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && {
19888 test -z "$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 } && test -s conftest.$ac_objext; then
19891 pgac_cv_func_gettimeofday_1arg=no
19893 $as_echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 pgac_cv_func_gettimeofday_1arg=yes
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19902 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19903 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define GETTIMEOFDAY_1ARG 1
19913 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19914 # symbols that that library has no business exposing to the world. Pending
19915 # acquisition of a clue by those developers, ignore libedit (including its
19916 # possible alias of libreadline) while checking for everything else.
19917 LIBS_including_readline="$LIBS"
19918 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19942 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
19944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19945 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19946 $as_echo_n "checking for $ac_func... " >&6; }
19947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19948 $as_echo_n "(cached) " >&6
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19958 #define $ac_func innocuous_$ac_func
19960 /* System header to define __stub macros and hopefully few prototypes,
19961 which can conflict with char $ac_func (); below.
19962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19963 <limits.h> exists even on freestanding compilers. */
19966 # include <limits.h>
19968 # include <assert.h>
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply. */
19980 /* The GNU C library defines this for functions which it implements
19981 to always fail with ENOSYS. Some functions are actually named
19982 something starting with __ and the normal name is an alias. */
19983 #if defined __stub_$ac_func || defined __stub___$ac_func
19990 return $ac_func ();
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20002 $as_echo "$ac_try_echo") >&5
20003 (eval "$ac_link") 2>conftest.er1
20005 grep -v '^ *+' conftest.er1 >conftest.err
20007 cat conftest.err >&5
20008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest$ac_exeext && {
20013 test "$cross_compiling" = yes ||
20014 $as_test_x conftest$ac_exeext
20016 eval "$as_ac_var=yes"
20018 $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 eval "$as_ac_var=no"
20024 rm -rf conftest.dSYM
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20028 ac_res=`eval 'as_val=${'$as_ac_var'}
20029 $as_echo "$as_val"'`
20030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20031 $as_echo "$ac_res" >&6; }
20032 as_val=`eval 'as_val=${'$as_ac_var'}
20033 $as_echo "$as_val"'`
20034 if test "x$as_val" = x""yes; then
20035 cat >>confdefs.h <<_ACEOF
20036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20044 for ac_func in fseeko
20046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 $as_echo_n "checking for $ac_func... " >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050 $as_echo_n "(cached) " >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define $ac_func innocuous_$ac_func
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char $ac_func (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20068 # include <limits.h>
20070 # include <assert.h>
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20092 return $ac_func ();
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20104 $as_echo "$ac_try_echo") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext && {
20115 test "$cross_compiling" = yes ||
20116 $as_test_x conftest$ac_exeext
20118 eval "$as_ac_var=yes"
20120 $as_echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 eval "$as_ac_var=no"
20126 rm -rf conftest.dSYM
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20130 ac_res=`eval 'as_val=${'$as_ac_var'}
20131 $as_echo "$as_val"'`
20132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20133 $as_echo "$ac_res" >&6; }
20134 as_val=`eval 'as_val=${'$as_ac_var'}
20135 $as_echo "$as_val"'`
20136 if test "x$as_val" = x""yes; then
20137 cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20142 case " $LIBOBJS " in
20143 *" $ac_func.$ac_objext "* ) ;;
20144 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20153 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
20154 # Mingw uses macros to access Win32 API calls
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE_FSEEKO 1
20161 ac_cv_func_fseeko=yes;;
20163 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20164 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20165 if test "${ac_cv_sys_largefile_source+set}" = set; then
20166 $as_echo_n "(cached) " >&6
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <sys/types.h> /* for off_t */
20180 int (*fp) (FILE *, off_t, int) = fseeko;
20181 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20193 $as_echo "$ac_try_echo") >&5
20194 (eval "$ac_link") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext && {
20204 test "$cross_compiling" = yes ||
20205 $as_test_x conftest$ac_exeext
20207 ac_cv_sys_largefile_source=no; break
20209 $as_echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20215 rm -rf conftest.dSYM
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #define _LARGEFILE_SOURCE 1
20225 #include <sys/types.h> /* for off_t */
20230 int (*fp) (FILE *, off_t, int) = fseeko;
20231 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20243 $as_echo "$ac_try_echo") >&5
20244 (eval "$ac_link") 2>conftest.er1
20246 grep -v '^ *+' conftest.er1 >conftest.err
20248 cat conftest.err >&5
20249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } && {
20251 test -z "$ac_c_werror_flag" ||
20252 test ! -s conftest.err
20253 } && test -s conftest$ac_exeext && {
20254 test "$cross_compiling" = yes ||
20255 $as_test_x conftest$ac_exeext
20257 ac_cv_sys_largefile_source=1; break
20259 $as_echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20265 rm -rf conftest.dSYM
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20268 ac_cv_sys_largefile_source=unknown
20272 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20273 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20274 case $ac_cv_sys_largefile_source in #(
20277 cat >>confdefs.h <<_ACEOF
20278 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20284 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20285 # in glibc 2.1.3, but that breaks too many other things.
20286 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20287 if test $ac_cv_sys_largefile_source != unknown; then
20289 cat >>confdefs.h <<\_ACEOF
20290 #define HAVE_FSEEKO 1
20297 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20298 # by calling it, 2009-04-02
20299 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20300 if test "$PORTNAME" != "solaris"; then
20302 for ac_func in posix_fadvise
20304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20305 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20306 $as_echo_n "checking for $ac_func... " >&6; }
20307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20308 $as_echo_n "(cached) " >&6
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20318 #define $ac_func innocuous_$ac_func
20320 /* System header to define __stub macros and hopefully few prototypes,
20321 which can conflict with char $ac_func (); below.
20322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20323 <limits.h> exists even on freestanding compilers. */
20326 # include <limits.h>
20328 # include <assert.h>
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20340 /* The GNU C library defines this for functions which it implements
20341 to always fail with ENOSYS. Some functions are actually named
20342 something starting with __ and the normal name is an alias. */
20343 #if defined __stub_$ac_func || defined __stub___$ac_func
20350 return $ac_func ();
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (ac_try="$ac_link"
20357 case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20362 $as_echo "$ac_try_echo") >&5
20363 (eval "$ac_link") 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && {
20370 test -z "$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20372 } && test -s conftest$ac_exeext && {
20373 test "$cross_compiling" = yes ||
20374 $as_test_x conftest$ac_exeext
20376 eval "$as_ac_var=yes"
20378 $as_echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 eval "$as_ac_var=no"
20384 rm -rf conftest.dSYM
20385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386 conftest$ac_exeext conftest.$ac_ext
20388 ac_res=`eval 'as_val=${'$as_ac_var'}
20389 $as_echo "$as_val"'`
20390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20391 $as_echo "$ac_res" >&6; }
20392 as_val=`eval 'as_val=${'$as_ac_var'}
20393 $as_echo "$as_val"'`
20394 if test "x$as_val" = x""yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20402 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20403 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20404 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20418 #ifndef posix_fadvise
20419 (void) posix_fadvise;
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_have_decl_posix_fadvise=yes
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_have_decl_posix_fadvise=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20455 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20456 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20458 cat >>confdefs.h <<_ACEOF
20459 #define HAVE_DECL_POSIX_FADVISE 1
20464 cat >>confdefs.h <<_ACEOF
20465 #define HAVE_DECL_POSIX_FADVISE 0
20474 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20475 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20476 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20477 $as_echo_n "(cached) " >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #include <unistd.h>
20498 rm -f conftest.$ac_objext
20499 if { (ac_try="$ac_compile"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 ac_cv_have_decl_fdatasync=yes
20518 $as_echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_cv_have_decl_fdatasync=no
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20527 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20528 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_DECL_FDATASYNC 1
20536 cat >>confdefs.h <<_ACEOF
20537 #define HAVE_DECL_FDATASYNC 0
20544 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20545 $as_echo_n "checking whether strlcat is declared... " >&6; }
20546 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20547 $as_echo_n "(cached) " >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 $ac_includes_default
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20574 $as_echo "$ac_try_echo") >&5
20575 (eval "$ac_compile") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest.$ac_objext; then
20585 ac_cv_have_decl_strlcat=yes
20587 $as_echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_have_decl_strlcat=no
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20596 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20597 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_DECL_STRLCAT 1
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_DECL_STRLCAT 0
20611 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20612 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20613 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20614 $as_echo_n "(cached) " >&6
20616 cat >conftest.$ac_ext <<_ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 $ac_includes_default
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20652 ac_cv_have_decl_strlcpy=yes
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_cv_have_decl_strlcpy=no
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20663 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20664 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20666 cat >>confdefs.h <<_ACEOF
20667 #define HAVE_DECL_STRLCPY 1
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_DECL_STRLCPY 0
20680 # This is probably only present on Darwin, but may as well check always
20681 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20682 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20683 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20684 $as_echo_n "(cached) " >&6
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20697 #ifndef F_FULLFSYNC
20698 (void) F_FULLFSYNC;
20705 rm -f conftest.$ac_objext
20706 if { (ac_try="$ac_compile"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20712 $as_echo "$ac_try_echo") >&5
20713 (eval "$ac_compile") 2>conftest.er1
20715 grep -v '^ *+' conftest.er1 >conftest.err
20717 cat conftest.err >&5
20718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && {
20720 test -z "$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20722 } && test -s conftest.$ac_objext; then
20723 ac_cv_have_decl_F_FULLFSYNC=yes
20725 $as_echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_have_decl_F_FULLFSYNC=no
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20734 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20735 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20737 cat >>confdefs.h <<_ACEOF
20738 #define HAVE_DECL_F_FULLFSYNC 1
20743 cat >>confdefs.h <<_ACEOF
20744 #define HAVE_DECL_F_FULLFSYNC 0
20753 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20754 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20755 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20756 $as_echo_n "(cached) " >&6
20758 ac_cv_type_struct_sockaddr_in6=no
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 $ac_includes_default
20766 #include <netinet/in.h>
20771 if (sizeof (struct sockaddr_in6))
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20784 $as_echo "$ac_try_echo") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest.$ac_objext; then
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $ac_includes_default
20802 #include <netinet/in.h>
20807 if (sizeof ((struct sockaddr_in6)))
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820 $as_echo "$ac_try_echo") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20833 $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_type_struct_sockaddr_in6=yes
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 $as_echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20850 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20851 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20853 cat >>confdefs.h <<\_ACEOF
20854 #define HAVE_IPV6 1
20862 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20863 $as_echo_n "checking for PS_STRINGS... " >&6; }
20864 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20865 $as_echo_n "(cached) " >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <machine/vmparam.h>
20874 #include <sys/exec.h>
20879 PS_STRINGS->ps_nargvstr = 1;
20880 PS_STRINGS->ps_argvstr = "foo";
20885 rm -f conftest.$ac_objext conftest$ac_exeext
20886 if { (ac_try="$ac_link"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20892 $as_echo "$ac_try_echo") >&5
20893 (eval "$ac_link") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest$ac_exeext && {
20903 test "$cross_compiling" = yes ||
20904 $as_test_x conftest$ac_exeext
20906 pgac_cv_var_PS_STRINGS=yes
20908 $as_echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 pgac_cv_var_PS_STRINGS=no
20914 rm -rf conftest.dSYM
20915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20916 conftest$ac_exeext conftest.$ac_ext
20918 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20919 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20920 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20922 cat >>confdefs.h <<\_ACEOF
20923 #define HAVE_PS_STRINGS 1
20929 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20930 # is missing. Yes, there are machines that have only one. We may
20931 # also decide to use snprintf.c if snprintf() is present but does not
20932 # have all the features we need --- see below.
20934 if test "$PORTNAME" = "win32"; then
20935 # Win32 gets snprintf.c built unconditionally.
20937 # To properly translate all NLS languages strings, we must support the
20938 # *printf() %$ format, which allows *printf() arguments to be selected
20939 # by position in the translated string.
20941 # libintl versions < 0.13 use the native *printf() functions, and Win32
20942 # *printf() doesn't understand %$, so we must use our /port versions,
20943 # which do understand %$. libintl versions >= 0.13 include their own
20944 # *printf versions on Win32. The libintl 0.13 release note text is:
20946 # C format strings with positions, as they arise when a translator
20947 # needs to reorder a sentence, are now supported on all platforms.
20948 # On those few platforms (NetBSD and Woe32) for which the native
20949 # printf()/fprintf()/... functions don't support such format
20950 # strings, replacements are provided through <libintl.h>.
20952 # We could use libintl >= 0.13's *printf() if we were sure that we had
20953 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20954 # to guarantee that, it is best to just use our own, so we are sure to
20955 # get %$ support. In include/port.h we disable the *printf() macros
20956 # that might have been defined by libintl.
20958 # We do this unconditionally whether NLS is used or not so we are sure
20959 # that all Win32 libraries and binaries behave the same.
20960 pgac_need_repl_snprintf=yes
20962 pgac_need_repl_snprintf=no
20964 for ac_func in snprintf
20966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20968 $as_echo_n "checking for $ac_func... " >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20970 $as_echo_n "(cached) " >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20980 #define $ac_func innocuous_$ac_func
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20988 # include <limits.h>
20990 # include <assert.h>
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21012 return $ac_func ();
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21024 $as_echo "$ac_try_echo") >&5
21025 (eval "$ac_link") 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest$ac_exeext && {
21035 test "$cross_compiling" = yes ||
21036 $as_test_x conftest$ac_exeext
21038 eval "$as_ac_var=yes"
21040 $as_echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 eval "$as_ac_var=no"
21046 rm -rf conftest.dSYM
21047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048 conftest$ac_exeext conftest.$ac_ext
21050 ac_res=`eval 'as_val=${'$as_ac_var'}
21051 $as_echo "$as_val"'`
21052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21053 $as_echo "$ac_res" >&6; }
21054 as_val=`eval 'as_val=${'$as_ac_var'}
21055 $as_echo "$as_val"'`
21056 if test "x$as_val" = x""yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21062 pgac_need_repl_snprintf=yes
21067 for ac_func in vsnprintf
21069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21071 $as_echo_n "checking for $ac_func... " >&6; }
21072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21073 $as_echo_n "(cached) " >&6
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21083 #define $ac_func innocuous_$ac_func
21085 /* System header to define __stub macros and hopefully few prototypes,
21086 which can conflict with char $ac_func (); below.
21087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21088 <limits.h> exists even on freestanding compilers. */
21091 # include <limits.h>
21093 # include <assert.h>
21098 /* Override any GCC internal prototype to avoid an error.
21099 Use char because int might match the return type of a GCC
21100 builtin and then its argument prototype would still apply. */
21105 /* The GNU C library defines this for functions which it implements
21106 to always fail with ENOSYS. Some functions are actually named
21107 something starting with __ and the normal name is an alias. */
21108 #if defined __stub_$ac_func || defined __stub___$ac_func
21115 return $ac_func ();
21120 rm -f conftest.$ac_objext conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21127 $as_echo "$ac_try_echo") >&5
21128 (eval "$ac_link") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest$ac_exeext && {
21138 test "$cross_compiling" = yes ||
21139 $as_test_x conftest$ac_exeext
21141 eval "$as_ac_var=yes"
21143 $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 eval "$as_ac_var=no"
21149 rm -rf conftest.dSYM
21150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151 conftest$ac_exeext conftest.$ac_ext
21153 ac_res=`eval 'as_val=${'$as_ac_var'}
21154 $as_echo "$as_val"'`
21155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21156 $as_echo "$ac_res" >&6; }
21157 as_val=`eval 'as_val=${'$as_ac_var'}
21158 $as_echo "$as_val"'`
21159 if test "x$as_val" = x""yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21165 pgac_need_repl_snprintf=yes
21172 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
21173 # include/c.h will provide declarations. Note this is a separate test
21174 # from whether the functions exist in the C library --- there are
21175 # systems that have the functions but don't bother to declare them :-(
21177 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21178 $as_echo_n "checking whether snprintf is declared... " >&6; }
21179 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21180 $as_echo_n "(cached) " >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 $ac_includes_default
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208 (eval "$ac_compile") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest.$ac_objext; then
21218 ac_cv_have_decl_snprintf=yes
21220 $as_echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_have_decl_snprintf=no
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21229 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21230 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21232 cat >>confdefs.h <<_ACEOF
21233 #define HAVE_DECL_SNPRINTF 1
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_DECL_SNPRINTF 0
21244 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21245 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21246 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21247 $as_echo_n "(cached) " >&6
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 $ac_includes_default
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21274 $as_echo "$ac_try_echo") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21285 ac_cv_have_decl_vsnprintf=yes
21287 $as_echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_cv_have_decl_vsnprintf=no
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21296 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21297 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21299 cat >>confdefs.h <<_ACEOF
21300 #define HAVE_DECL_VSNPRINTF 1
21305 cat >>confdefs.h <<_ACEOF
21306 #define HAVE_DECL_VSNPRINTF 0
21315 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21316 $as_echo_n "checking for isinf... " >&6; }
21317 if test "${ac_cv_func_isinf+set}" = set; then
21318 $as_echo_n "(cached) " >&6
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21328 double glob_double;
21333 return isinf(glob_double) ? 0 : 1;
21338 rm -f conftest.$ac_objext conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21345 $as_echo "$ac_try_echo") >&5
21346 (eval "$ac_link") 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
21350 cat conftest.err >&5
21351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } && {
21353 test -z "$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21355 } && test -s conftest$ac_exeext && {
21356 test "$cross_compiling" = yes ||
21357 $as_test_x conftest$ac_exeext
21359 ac_cv_func_isinf=yes
21361 $as_echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_cv_func_isinf=no
21367 rm -rf conftest.dSYM
21368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21369 conftest$ac_exeext conftest.$ac_ext
21371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21372 $as_echo "$ac_cv_func_isinf" >&6; }
21374 if test $ac_cv_func_isinf = yes ; then
21376 cat >>confdefs.h <<\_ACEOF
21377 #define HAVE_ISINF 1
21381 case " $LIBOBJS " in
21382 *" isinf.$ac_objext "* ) ;;
21383 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21387 # Look for a way to implement a substitute for isinf()
21392 for ac_func in fpclass fp_class fp_class_d class
21394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21396 $as_echo_n "checking for $ac_func... " >&6; }
21397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21398 $as_echo_n "(cached) " >&6
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21408 #define $ac_func innocuous_$ac_func
21410 /* System header to define __stub macros and hopefully few prototypes,
21411 which can conflict with char $ac_func (); below.
21412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21413 <limits.h> exists even on freestanding compilers. */
21416 # include <limits.h>
21418 # include <assert.h>
21423 /* Override any GCC internal prototype to avoid an error.
21424 Use char because int might match the return type of a GCC
21425 builtin and then its argument prototype would still apply. */
21430 /* The GNU C library defines this for functions which it implements
21431 to always fail with ENOSYS. Some functions are actually named
21432 something starting with __ and the normal name is an alias. */
21433 #if defined __stub_$ac_func || defined __stub___$ac_func
21440 return $ac_func ();
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453 (eval "$ac_link") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest$ac_exeext && {
21463 test "$cross_compiling" = yes ||
21464 $as_test_x conftest$ac_exeext
21466 eval "$as_ac_var=yes"
21468 $as_echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 eval "$as_ac_var=no"
21474 rm -rf conftest.dSYM
21475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476 conftest$ac_exeext conftest.$ac_ext
21478 ac_res=`eval 'as_val=${'$as_ac_var'}
21479 $as_echo "$as_val"'`
21480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21481 $as_echo "$ac_res" >&6; }
21482 as_val=`eval 'as_val=${'$as_ac_var'}
21483 $as_echo "$as_val"'`
21484 if test "x$as_val" = x""yes; then
21485 cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21506 for ac_func in asprintf crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21510 $as_echo_n "checking for $ac_func... " >&6; }
21511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21512 $as_echo_n "(cached) " >&6
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21522 #define $ac_func innocuous_$ac_func
21524 /* System header to define __stub macros and hopefully few prototypes,
21525 which can conflict with char $ac_func (); below.
21526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21527 <limits.h> exists even on freestanding compilers. */
21530 # include <limits.h>
21532 # include <assert.h>
21537 /* Override any GCC internal prototype to avoid an error.
21538 Use char because int might match the return type of a GCC
21539 builtin and then its argument prototype would still apply. */
21544 /* The GNU C library defines this for functions which it implements
21545 to always fail with ENOSYS. Some functions are actually named
21546 something starting with __ and the normal name is an alias. */
21547 #if defined __stub_$ac_func || defined __stub___$ac_func
21554 return $ac_func ();
21559 rm -f conftest.$ac_objext conftest$ac_exeext
21560 if { (ac_try="$ac_link"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21566 $as_echo "$ac_try_echo") >&5
21567 (eval "$ac_link") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest$ac_exeext && {
21577 test "$cross_compiling" = yes ||
21578 $as_test_x conftest$ac_exeext
21580 eval "$as_ac_var=yes"
21582 $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 eval "$as_ac_var=no"
21588 rm -rf conftest.dSYM
21589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21590 conftest$ac_exeext conftest.$ac_ext
21592 ac_res=`eval 'as_val=${'$as_ac_var'}
21593 $as_echo "$as_val"'`
21594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21595 $as_echo "$ac_res" >&6; }
21596 as_val=`eval 'as_val=${'$as_ac_var'}
21597 $as_echo "$as_val"'`
21598 if test "x$as_val" = x""yes; then
21599 cat >>confdefs.h <<_ACEOF
21600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21604 case " $LIBOBJS " in
21605 *" $ac_func.$ac_objext "* ) ;;
21606 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21617 # Windows uses a specialised env handler
21618 # and doesn't need a replacement getpeereid because it doesn't use
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_UNSETENV 1
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_GETPEEREID 1
21631 ac_cv_func_unsetenv=yes
21632 ac_cv_func_getpeereid=yes;;
21636 for ac_func in unsetenv getpeereid
21638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21639 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21640 $as_echo_n "checking for $ac_func... " >&6; }
21641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21642 $as_echo_n "(cached) " >&6
21644 cat >conftest.$ac_ext <<_ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21652 #define $ac_func innocuous_$ac_func
21654 /* System header to define __stub macros and hopefully few prototypes,
21655 which can conflict with char $ac_func (); below.
21656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657 <limits.h> exists even on freestanding compilers. */
21660 # include <limits.h>
21662 # include <assert.h>
21667 /* Override any GCC internal prototype to avoid an error.
21668 Use char because int might match the return type of a GCC
21669 builtin and then its argument prototype would still apply. */
21674 /* The GNU C library defines this for functions which it implements
21675 to always fail with ENOSYS. Some functions are actually named
21676 something starting with __ and the normal name is an alias. */
21677 #if defined __stub_$ac_func || defined __stub___$ac_func
21684 return $ac_func ();
21689 rm -f conftest.$ac_objext conftest$ac_exeext
21690 if { (ac_try="$ac_link"
21691 case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21696 $as_echo "$ac_try_echo") >&5
21697 (eval "$ac_link") 2>conftest.er1
21699 grep -v '^ *+' conftest.er1 >conftest.err
21701 cat conftest.err >&5
21702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest$ac_exeext && {
21707 test "$cross_compiling" = yes ||
21708 $as_test_x conftest$ac_exeext
21710 eval "$as_ac_var=yes"
21712 $as_echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 eval "$as_ac_var=no"
21718 rm -rf conftest.dSYM
21719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720 conftest$ac_exeext conftest.$ac_ext
21722 ac_res=`eval 'as_val=${'$as_ac_var'}
21723 $as_echo "$as_val"'`
21724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21725 $as_echo "$ac_res" >&6; }
21726 as_val=`eval 'as_val=${'$as_ac_var'}
21727 $as_echo "$as_val"'`
21728 if test "x$as_val" = x""yes; then
21729 cat >>confdefs.h <<_ACEOF
21730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21734 case " $LIBOBJS " in
21735 *" $ac_func.$ac_objext "* ) ;;
21736 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21747 # System's version of getaddrinfo(), if any, may be used only if we found
21748 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21749 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21750 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21751 # because we want to use our own getaddrinfo.c on Windows anyway.)
21752 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21754 for ac_func in getaddrinfo
21756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21757 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21758 $as_echo_n "checking for $ac_func... " >&6; }
21759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21760 $as_echo_n "(cached) " >&6
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21770 #define $ac_func innocuous_$ac_func
21772 /* System header to define __stub macros and hopefully few prototypes,
21773 which can conflict with char $ac_func (); below.
21774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775 <limits.h> exists even on freestanding compilers. */
21778 # include <limits.h>
21780 # include <assert.h>
21785 /* Override any GCC internal prototype to avoid an error.
21786 Use char because int might match the return type of a GCC
21787 builtin and then its argument prototype would still apply. */
21792 /* The GNU C library defines this for functions which it implements
21793 to always fail with ENOSYS. Some functions are actually named
21794 something starting with __ and the normal name is an alias. */
21795 #if defined __stub_$ac_func || defined __stub___$ac_func
21802 return $ac_func ();
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21817 grep -v '^ *+' conftest.er1 >conftest.err
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest$ac_exeext
21828 eval "$as_ac_var=yes"
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 eval "$as_ac_var=no"
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838 conftest$ac_exeext conftest.$ac_ext
21840 ac_res=`eval 'as_val=${'$as_ac_var'}
21841 $as_echo "$as_val"'`
21842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21843 $as_echo "$ac_res" >&6; }
21844 as_val=`eval 'as_val=${'$as_ac_var'}
21845 $as_echo "$as_val"'`
21846 if test "x$as_val" = x""yes; then
21847 cat >>confdefs.h <<_ACEOF
21848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21852 case " $LIBOBJS " in
21853 *" $ac_func.$ac_objext "* ) ;;
21854 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21863 case " $LIBOBJS " in
21864 *" getaddrinfo.$ac_objext "* ) ;;
21865 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21871 # Similarly, use system's getopt_long() only if system provides struct option.
21872 if test x"$ac_cv_type_struct_option" = xyes ; then
21874 for ac_func in getopt_long
21876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21878 $as_echo_n "checking for $ac_func... " >&6; }
21879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21880 $as_echo_n "(cached) " >&6
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21890 #define $ac_func innocuous_$ac_func
21892 /* System header to define __stub macros and hopefully few prototypes,
21893 which can conflict with char $ac_func (); below.
21894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21895 <limits.h> exists even on freestanding compilers. */
21898 # include <limits.h>
21900 # include <assert.h>
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21912 /* The GNU C library defines this for functions which it implements
21913 to always fail with ENOSYS. Some functions are actually named
21914 something starting with __ and the normal name is an alias. */
21915 #if defined __stub_$ac_func || defined __stub___$ac_func
21922 return $ac_func ();
21927 rm -f conftest.$ac_objext conftest$ac_exeext
21928 if { (ac_try="$ac_link"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934 $as_echo "$ac_try_echo") >&5
21935 (eval "$ac_link") 2>conftest.er1
21937 grep -v '^ *+' conftest.er1 >conftest.err
21939 cat conftest.err >&5
21940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && {
21942 test -z "$ac_c_werror_flag" ||
21943 test ! -s conftest.err
21944 } && test -s conftest$ac_exeext && {
21945 test "$cross_compiling" = yes ||
21946 $as_test_x conftest$ac_exeext
21948 eval "$as_ac_var=yes"
21950 $as_echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 eval "$as_ac_var=no"
21956 rm -rf conftest.dSYM
21957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958 conftest$ac_exeext conftest.$ac_ext
21960 ac_res=`eval 'as_val=${'$as_ac_var'}
21961 $as_echo "$as_val"'`
21962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21963 $as_echo "$ac_res" >&6; }
21964 as_val=`eval 'as_val=${'$as_ac_var'}
21965 $as_echo "$as_val"'`
21966 if test "x$as_val" = x""yes; then
21967 cat >>confdefs.h <<_ACEOF
21968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21972 case " $LIBOBJS " in
21973 *" $ac_func.$ac_objext "* ) ;;
21974 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21983 case " $LIBOBJS " in
21984 *" getopt_long.$ac_objext "* ) ;;
21985 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21991 # Solaris' getopt() doesn't do what we want for long options, so always use
21992 # our version on that platform.
21993 if test "$PORTNAME" = "solaris"; then
21994 case " $LIBOBJS " in
21995 *" getopt.$ac_objext "* ) ;;
21996 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
22002 # mingw has adopted a GNU-centric interpretation of optind/optreset,
22003 # so always use our version on Windows.
22004 if test "$PORTNAME" = "win32"; then
22005 case " $LIBOBJS " in
22006 *" getopt.$ac_objext "* ) ;;
22007 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
22011 case " $LIBOBJS " in
22012 *" getopt_long.$ac_objext "* ) ;;
22013 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
22020 if test "$PORTNAME" = "win32"; then
22022 for ac_func in gettimeofday
22024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22025 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22026 $as_echo_n "checking for $ac_func... " >&6; }
22027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22028 $as_echo_n "(cached) " >&6
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22038 #define $ac_func innocuous_$ac_func
22040 /* System header to define __stub macros and hopefully few prototypes,
22041 which can conflict with char $ac_func (); below.
22042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22043 <limits.h> exists even on freestanding compilers. */
22046 # include <limits.h>
22048 # include <assert.h>
22053 /* Override any GCC internal prototype to avoid an error.
22054 Use char because int might match the return type of a GCC
22055 builtin and then its argument prototype would still apply. */
22060 /* The GNU C library defines this for functions which it implements
22061 to always fail with ENOSYS. Some functions are actually named
22062 something starting with __ and the normal name is an alias. */
22063 #if defined __stub_$ac_func || defined __stub___$ac_func
22070 return $ac_func ();
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (ac_try="$ac_link"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083 (eval "$ac_link") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1 >conftest.err
22087 cat conftest.err >&5
22088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext && {
22093 test "$cross_compiling" = yes ||
22094 $as_test_x conftest$ac_exeext
22096 eval "$as_ac_var=yes"
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 eval "$as_ac_var=no"
22104 rm -rf conftest.dSYM
22105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22106 conftest$ac_exeext conftest.$ac_ext
22108 ac_res=`eval 'as_val=${'$as_ac_var'}
22109 $as_echo "$as_val"'`
22110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22111 $as_echo "$ac_res" >&6; }
22112 as_val=`eval 'as_val=${'$as_ac_var'}
22113 $as_echo "$as_val"'`
22114 if test "x$as_val" = x""yes; then
22115 cat >>confdefs.h <<_ACEOF
22116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22120 case " $LIBOBJS " in
22121 *" $ac_func.$ac_objext "* ) ;;
22122 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22130 case " $LIBOBJS " in
22131 *" kill.$ac_objext "* ) ;;
22132 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
22136 case " $LIBOBJS " in
22137 *" open.$ac_objext "* ) ;;
22138 *) LIBOBJS="$LIBOBJS open.$ac_objext"
22142 case " $LIBOBJS " in
22143 *" win32env.$ac_objext "* ) ;;
22144 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
22148 case " $LIBOBJS " in
22149 *" win32error.$ac_objext "* ) ;;
22150 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
22154 case " $LIBOBJS " in
22155 *" win32setlocale.$ac_objext "* ) ;;
22156 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_SYMLINK 1
22165 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
22166 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
22167 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
22168 $as_echo_n "(cached) " >&6
22170 ac_cv_type_MINIDUMP_TYPE=no
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22178 #define WIN32_LEAN_AND_MEAN
22179 #include <windows.h>
22180 #include <string.h>
22181 #include <dbghelp.h>
22186 if (sizeof (MINIDUMP_TYPE))
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199 $as_echo "$ac_try_echo") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22217 #define WIN32_LEAN_AND_MEAN
22218 #include <windows.h>
22219 #include <string.h>
22220 #include <dbghelp.h>
22225 if (sizeof ((MINIDUMP_TYPE)))
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22238 $as_echo "$ac_try_echo") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22251 $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_cv_type_MINIDUMP_TYPE=yes
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 $as_echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22268 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22269 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_MINIDUMP_TYPE 1
22275 pgac_minidump_type=yes
22277 pgac_minidump_type=no
22281 if test x"$pgac_minidump_type" = x"yes" ; then
22282 have_win32_dbghelp=yes
22285 have_win32_dbghelp=no
22289 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22290 $as_echo_n "checking for sigsetjmp... " >&6; }
22291 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22292 $as_echo_n "(cached) " >&6
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 #include <setjmp.h>
22304 sigjmp_buf x; sigsetjmp(x, 1);
22309 rm -f conftest.$ac_objext conftest$ac_exeext
22310 if { (ac_try="$ac_link"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22316 $as_echo "$ac_try_echo") >&5
22317 (eval "$ac_link") 2>conftest.er1
22319 grep -v '^ *+' conftest.er1 >conftest.err
22321 cat conftest.err >&5
22322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && {
22324 test -z "$ac_c_werror_flag" ||
22325 test ! -s conftest.err
22326 } && test -s conftest$ac_exeext && {
22327 test "$cross_compiling" = yes ||
22328 $as_test_x conftest$ac_exeext
22330 pgac_cv_func_sigsetjmp=yes
22332 $as_echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 pgac_cv_func_sigsetjmp=no
22338 rm -rf conftest.dSYM
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340 conftest$ac_exeext conftest.$ac_ext
22342 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22343 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22344 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_SIGSETJMP 1
22352 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22353 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22354 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22355 $as_echo_n "(cached) " >&6
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 #include <signal.h>
22364 /* NetBSD declares sys_siglist in unistd.h. */
22365 #ifdef HAVE_UNISTD_H
22366 # include <unistd.h>
22373 #ifndef sys_siglist
22374 (void) sys_siglist;
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22388 $as_echo "$ac_try_echo") >&5
22389 (eval "$ac_compile") 2>conftest.er1
22391 grep -v '^ *+' conftest.er1 >conftest.err
22393 cat conftest.err >&5
22394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } && {
22396 test -z "$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 } && test -s conftest.$ac_objext; then
22399 ac_cv_have_decl_sys_siglist=yes
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_cv_have_decl_sys_siglist=no
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22410 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22411 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL_SYS_SIGLIST 1
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_SYS_SIGLIST 0
22429 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22430 $as_echo_n "checking for syslog... " >&6; }
22431 if test "${ac_cv_func_syslog+set}" = set; then
22432 $as_echo_n "(cached) " >&6
22434 cat >conftest.$ac_ext <<_ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22440 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22442 #define syslog innocuous_syslog
22444 /* System header to define __stub macros and hopefully few prototypes,
22445 which can conflict with char syslog (); below.
22446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447 <limits.h> exists even on freestanding compilers. */
22450 # include <limits.h>
22452 # include <assert.h>
22457 /* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22464 /* The GNU C library defines this for functions which it implements
22465 to always fail with ENOSYS. Some functions are actually named
22466 something starting with __ and the normal name is an alias. */
22467 #if defined __stub_syslog || defined __stub___syslog
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (ac_try="$ac_link"
22481 case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22486 $as_echo "$ac_try_echo") >&5
22487 (eval "$ac_link") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest$ac_exeext && {
22497 test "$cross_compiling" = yes ||
22498 $as_test_x conftest$ac_exeext
22500 ac_cv_func_syslog=yes
22502 $as_echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_cv_func_syslog=no
22508 rm -rf conftest.dSYM
22509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22510 conftest$ac_exeext conftest.$ac_ext
22512 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22513 $as_echo "$ac_cv_func_syslog" >&6; }
22514 if test "x$ac_cv_func_syslog" = x""yes; then
22515 if test "${ac_cv_header_syslog_h+set}" = set; then
22516 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22517 $as_echo_n "checking for syslog.h... " >&6; }
22518 if test "${ac_cv_header_syslog_h+set}" = set; then
22519 $as_echo_n "(cached) " >&6
22521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22522 $as_echo "$ac_cv_header_syslog_h" >&6; }
22524 # Is the header compilable?
22525 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22526 $as_echo_n "checking syslog.h usability... " >&6; }
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22534 #include <syslog.h>
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22543 $as_echo "$ac_try_echo") >&5
22544 (eval "$ac_compile") 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest.$ac_objext; then
22554 ac_header_compiler=yes
22556 $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_header_compiler=no
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22564 $as_echo "$ac_header_compiler" >&6; }
22566 # Is the header present?
22567 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22568 $as_echo_n "checking syslog.h presence... " >&6; }
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 #include <syslog.h>
22577 if { (ac_try="$ac_cpp conftest.$ac_ext"
22578 case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22583 $as_echo "$ac_try_echo") >&5
22584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22586 grep -v '^ *+' conftest.er1 >conftest.err
22588 cat conftest.err >&5
22589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } >/dev/null && {
22591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22594 ac_header_preproc=yes
22596 $as_echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 ac_header_preproc=no
22602 rm -f conftest.err conftest.$ac_ext
22603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22604 $as_echo "$ac_header_preproc" >&6; }
22606 # So? What about this header?
22607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22609 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22610 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22611 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22612 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22613 ac_header_preproc=yes
22616 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22617 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22618 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22619 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22620 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22621 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22623 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22624 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22625 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22626 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22627 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22629 ## ---------------------------------------- ##
22630 ## Report this to pgsql-bugs@postgresql.org ##
22631 ## ---------------------------------------- ##
22633 ) | sed "s/^/$as_me: WARNING: /" >&2
22636 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22637 $as_echo_n "checking for syslog.h... " >&6; }
22638 if test "${ac_cv_header_syslog_h+set}" = set; then
22639 $as_echo_n "(cached) " >&6
22641 ac_cv_header_syslog_h=$ac_header_preproc
22643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22644 $as_echo "$ac_cv_header_syslog_h" >&6; }
22647 if test "x$ac_cv_header_syslog_h" = x""yes; then
22649 cat >>confdefs.h <<\_ACEOF
22650 #define HAVE_SYSLOG 1
22659 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22660 $as_echo_n "checking for opterr... " >&6; }
22661 if test "${pgac_cv_var_int_opterr+set}" = set; then
22662 $as_echo_n "(cached) " >&6
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <unistd.h>
22674 extern int opterr; opterr = 1;
22679 rm -f conftest.$ac_objext conftest$ac_exeext
22680 if { (ac_try="$ac_link"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_link") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest$ac_exeext && {
22697 test "$cross_compiling" = yes ||
22698 $as_test_x conftest$ac_exeext
22700 pgac_cv_var_int_opterr=yes
22702 $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 pgac_cv_var_int_opterr=no
22708 rm -rf conftest.dSYM
22709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22710 conftest$ac_exeext conftest.$ac_ext
22712 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22713 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22714 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_INT_OPTERR 1
22722 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22723 $as_echo_n "checking for optreset... " >&6; }
22724 if test "${pgac_cv_var_int_optreset+set}" = set; then
22725 $as_echo_n "(cached) " >&6
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 #include <unistd.h>
22737 extern int optreset; optreset = 1;
22742 rm -f conftest.$ac_objext conftest$ac_exeext
22743 if { (ac_try="$ac_link"
22744 case "(($ac_try" in
22745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746 *) ac_try_echo=$ac_try;;
22748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22749 $as_echo "$ac_try_echo") >&5
22750 (eval "$ac_link") 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest$ac_exeext && {
22760 test "$cross_compiling" = yes ||
22761 $as_test_x conftest$ac_exeext
22763 pgac_cv_var_int_optreset=yes
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 pgac_cv_var_int_optreset=no
22771 rm -rf conftest.dSYM
22772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22773 conftest$ac_exeext conftest.$ac_ext
22775 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22776 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22777 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_INT_OPTRESET 1
22787 for ac_func in strtoll strtoq
22789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22791 $as_echo_n "checking for $ac_func... " >&6; }
22792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22793 $as_echo_n "(cached) " >&6
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22803 #define $ac_func innocuous_$ac_func
22805 /* System header to define __stub macros and hopefully few prototypes,
22806 which can conflict with char $ac_func (); below.
22807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22808 <limits.h> exists even on freestanding compilers. */
22811 # include <limits.h>
22813 # include <assert.h>
22818 /* Override any GCC internal prototype to avoid an error.
22819 Use char because int might match the return type of a GCC
22820 builtin and then its argument prototype would still apply. */
22825 /* The GNU C library defines this for functions which it implements
22826 to always fail with ENOSYS. Some functions are actually named
22827 something starting with __ and the normal name is an alias. */
22828 #if defined __stub_$ac_func || defined __stub___$ac_func
22835 return $ac_func ();
22840 rm -f conftest.$ac_objext conftest$ac_exeext
22841 if { (ac_try="$ac_link"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848 (eval "$ac_link") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest$ac_exeext && {
22858 test "$cross_compiling" = yes ||
22859 $as_test_x conftest$ac_exeext
22861 eval "$as_ac_var=yes"
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 eval "$as_ac_var=no"
22869 rm -rf conftest.dSYM
22870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22871 conftest$ac_exeext conftest.$ac_ext
22873 ac_res=`eval 'as_val=${'$as_ac_var'}
22874 $as_echo "$as_val"'`
22875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22876 $as_echo "$ac_res" >&6; }
22877 as_val=`eval 'as_val=${'$as_ac_var'}
22878 $as_echo "$as_val"'`
22879 if test "x$as_val" = x""yes; then
22880 cat >>confdefs.h <<_ACEOF
22881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22889 for ac_func in strtoull strtouq
22891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22893 $as_echo_n "checking for $ac_func... " >&6; }
22894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22895 $as_echo_n "(cached) " >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22905 #define $ac_func innocuous_$ac_func
22907 /* System header to define __stub macros and hopefully few prototypes,
22908 which can conflict with char $ac_func (); below.
22909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22910 <limits.h> exists even on freestanding compilers. */
22913 # include <limits.h>
22915 # include <assert.h>
22920 /* Override any GCC internal prototype to avoid an error.
22921 Use char because int might match the return type of a GCC
22922 builtin and then its argument prototype would still apply. */
22927 /* The GNU C library defines this for functions which it implements
22928 to always fail with ENOSYS. Some functions are actually named
22929 something starting with __ and the normal name is an alias. */
22930 #if defined __stub_$ac_func || defined __stub___$ac_func
22937 return $ac_func ();
22942 rm -f conftest.$ac_objext conftest$ac_exeext
22943 if { (ac_try="$ac_link"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22949 $as_echo "$ac_try_echo") >&5
22950 (eval "$ac_link") 2>conftest.er1
22952 grep -v '^ *+' conftest.er1 >conftest.err
22954 cat conftest.err >&5
22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest$ac_exeext && {
22960 test "$cross_compiling" = yes ||
22961 $as_test_x conftest$ac_exeext
22963 eval "$as_ac_var=yes"
22965 $as_echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 eval "$as_ac_var=no"
22971 rm -rf conftest.dSYM
22972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22973 conftest$ac_exeext conftest.$ac_ext
22975 ac_res=`eval 'as_val=${'$as_ac_var'}
22976 $as_echo "$as_val"'`
22977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22978 $as_echo "$ac_res" >&6; }
22979 as_val=`eval 'as_val=${'$as_ac_var'}
22980 $as_echo "$as_val"'`
22981 if test "x$as_val" = x""yes; then
22982 cat >>confdefs.h <<_ACEOF
22983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22990 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22991 $as_echo_n "checking for builtin locking functions... " >&6; }
22992 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22993 $as_echo_n "(cached) " >&6
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23006 __sync_lock_test_and_set(&lock, 1);
23007 __sync_lock_release(&lock);
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (ac_try="$ac_link"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23019 $as_echo "$ac_try_echo") >&5
23020 (eval "$ac_link") 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } && {
23027 test -z "$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 } && test -s conftest$ac_exeext && {
23030 test "$cross_compiling" = yes ||
23031 $as_test_x conftest$ac_exeext
23033 pgac_cv_gcc_int_atomics="yes"
23035 $as_echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 pgac_cv_gcc_int_atomics="no"
23041 rm -rf conftest.dSYM
23042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23043 conftest$ac_exeext conftest.$ac_ext
23045 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
23046 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
23047 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_GCC_INT_ATOMICS 1
23055 # Lastly, restore full LIBS list and check for readline/libedit symbols
23056 LIBS="$LIBS_including_readline"
23058 if test "$with_readline" = yes; then
23059 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
23060 $as_echo_n "checking for rl_completion_append_character... " >&6; }
23061 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
23062 $as_echo_n "(cached) " >&6
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23071 #ifdef HAVE_READLINE_READLINE_H
23072 # include <readline/readline.h>
23073 #elif defined(HAVE_READLINE_H)
23074 # include <readline.h>
23080 rl_completion_append_character = 'x';
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_link") 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } && {
23100 test -z "$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 } && test -s conftest$ac_exeext && {
23103 test "$cross_compiling" = yes ||
23104 $as_test_x conftest$ac_exeext
23106 pgac_cv_var_rl_completion_append_character=yes
23108 $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23111 pgac_cv_var_rl_completion_append_character=no
23114 rm -rf conftest.dSYM
23115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23116 conftest$ac_exeext conftest.$ac_ext
23118 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
23119 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
23120 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23129 for ac_func in rl_completion_matches rl_filename_completion_function
23131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23133 $as_echo_n "checking for $ac_func... " >&6; }
23134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23135 $as_echo_n "(cached) " >&6
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23145 #define $ac_func innocuous_$ac_func
23147 /* System header to define __stub macros and hopefully few prototypes,
23148 which can conflict with char $ac_func (); below.
23149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23150 <limits.h> exists even on freestanding compilers. */
23153 # include <limits.h>
23155 # include <assert.h>
23160 /* Override any GCC internal prototype to avoid an error.
23161 Use char because int might match the return type of a GCC
23162 builtin and then its argument prototype would still apply. */
23167 /* The GNU C library defines this for functions which it implements
23168 to always fail with ENOSYS. Some functions are actually named
23169 something starting with __ and the normal name is an alias. */
23170 #if defined __stub_$ac_func || defined __stub___$ac_func
23177 return $ac_func ();
23182 rm -f conftest.$ac_objext conftest$ac_exeext
23183 if { (ac_try="$ac_link"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23189 $as_echo "$ac_try_echo") >&5
23190 (eval "$ac_link") 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } && {
23197 test -z "$ac_c_werror_flag" ||
23198 test ! -s conftest.err
23199 } && test -s conftest$ac_exeext && {
23200 test "$cross_compiling" = yes ||
23201 $as_test_x conftest$ac_exeext
23203 eval "$as_ac_var=yes"
23205 $as_echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 eval "$as_ac_var=no"
23211 rm -rf conftest.dSYM
23212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23213 conftest$ac_exeext conftest.$ac_ext
23215 ac_res=`eval 'as_val=${'$as_ac_var'}
23216 $as_echo "$as_val"'`
23217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23218 $as_echo "$ac_res" >&6; }
23219 as_val=`eval 'as_val=${'$as_ac_var'}
23220 $as_echo "$as_val"'`
23221 if test "x$as_val" = x""yes; then
23222 cat >>confdefs.h <<_ACEOF
23223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23231 for ac_func in append_history history_truncate_file
23233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23235 $as_echo_n "checking for $ac_func... " >&6; }
23236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23237 $as_echo_n "(cached) " >&6
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23247 #define $ac_func innocuous_$ac_func
23249 /* System header to define __stub macros and hopefully few prototypes,
23250 which can conflict with char $ac_func (); below.
23251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23252 <limits.h> exists even on freestanding compilers. */
23255 # include <limits.h>
23257 # include <assert.h>
23262 /* Override any GCC internal prototype to avoid an error.
23263 Use char because int might match the return type of a GCC
23264 builtin and then its argument prototype would still apply. */
23269 /* The GNU C library defines this for functions which it implements
23270 to always fail with ENOSYS. Some functions are actually named
23271 something starting with __ and the normal name is an alias. */
23272 #if defined __stub_$ac_func || defined __stub___$ac_func
23279 return $ac_func ();
23284 rm -f conftest.$ac_objext conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292 (eval "$ac_link") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest$ac_exeext && {
23302 test "$cross_compiling" = yes ||
23303 $as_test_x conftest$ac_exeext
23305 eval "$as_ac_var=yes"
23307 $as_echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 eval "$as_ac_var=no"
23313 rm -rf conftest.dSYM
23314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23315 conftest$ac_exeext conftest.$ac_ext
23317 ac_res=`eval 'as_val=${'$as_ac_var'}
23318 $as_echo "$as_val"'`
23319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23320 $as_echo "$ac_res" >&6; }
23321 as_val=`eval 'as_val=${'$as_ac_var'}
23322 $as_echo "$as_val"'`
23323 if test "x$as_val" = x""yes; then
23324 cat >>confdefs.h <<_ACEOF
23325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23337 # For each platform, we need to know about any special compile and link
23338 # libraries, and whether the normal C function names are thread-safe.
23339 # See the comment at the top of src/port/thread.c for more information.
23340 # WIN32 doesn't need the pthread tests; it always uses threads
23341 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23346 ac_cpp='$CPP $CPPFLAGS'
23347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23353 # We used to check for pthread.h first, but this fails if pthread.h
23354 # requires special compiler flags (e.g. on True64 or Sequent).
23355 # It gets checked for in the link test anyway.
23357 # First of all, check if the user has set any of the PTHREAD_LIBS,
23358 # etcetera environment variables, and if threads linking works using
23360 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23361 save_CFLAGS="$CFLAGS"
23362 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23364 LIBS="$PTHREAD_LIBS $LIBS"
23365 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23366 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23374 /* Override any GCC internal prototype to avoid an error.
23375 Use char because int might match the return type of a GCC
23376 builtin and then its argument prototype would still apply. */
23380 char pthread_join ();
23384 return pthread_join ();
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397 (eval "$ac_link") 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest$ac_exeext && {
23407 test "$cross_compiling" = yes ||
23408 $as_test_x conftest$ac_exeext
23412 $as_echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23418 rm -rf conftest.dSYM
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420 conftest$ac_exeext conftest.$ac_ext
23421 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23422 $as_echo "$acx_pthread_ok" >&6; }
23423 if test x"$acx_pthread_ok" = xno; then
23428 CFLAGS="$save_CFLAGS"
23431 # We must check for the threads library under a number of different
23432 # names; the ordering is very important because some systems
23433 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23434 # libraries is broken (non-POSIX).
23436 # Create a list of thread flags to try. Items starting with a "-" are
23437 # C compiler flags, and other items are library names, except for "none"
23438 # which indicates that we try without any flags at all, and "pthread-config"
23439 # which is a program returning the flags for the Pth emulation library.
23441 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23443 # The ordering *is* (sometimes) important. Some notes on the
23444 # individual items follow:
23446 # pthreads: AIX (must check this before -lpthread)
23447 # none: in case threads are in libc; should be tried before -Kthread and
23448 # other compiler flags to prevent continual compiler warnings
23449 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23450 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23451 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23452 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23453 # -pthreads: Solaris/gcc
23454 # -mthreads: Mingw32/gcc, Lynx/gcc
23455 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23456 # doesn't hurt to check since this sometimes defines pthreads too;
23457 # also defines -D_REENTRANT)
23458 # pthread: Linux, etcetera
23459 # --thread-safe: KAI C++
23460 # pthread-config: use pthread-config program (for GNU Pth library)
23462 case "${host_cpu}-${host_os}" in
23465 # On Solaris (at least, for some versions), libc contains stubbed
23466 # (non-functional) versions of the pthreads routines, so link-based
23467 # tests will erroneously succeed. (We need to link with -pthread or
23468 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23469 # a function called by this macro, so we could check for that, but
23470 # who knows whether they'll stub that too in a future libc.) So,
23471 # we'll just look for -pthreads and -lpthread first:
23473 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23477 if test x"$acx_pthread_ok" = xno; then
23478 for flag in $acx_pthread_flags; do
23480 tryPTHREAD_CFLAGS=""
23484 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23485 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23489 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23490 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23491 tryPTHREAD_CFLAGS="$flag"
23495 # skip this if we already have flags defined, for PostgreSQL
23496 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23497 # Extract the first word of "pthread-config", so it can be a program name with args.
23498 set dummy pthread-config; ac_word=$2
23499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23500 $as_echo_n "checking for $ac_word... " >&6; }
23501 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23502 $as_echo_n "(cached) " >&6
23504 if test -n "$acx_pthread_config"; then
23505 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23508 for as_dir in $PATH
23511 test -z "$as_dir" && as_dir=.
23512 for ac_exec_ext in '' $ac_executable_extensions; do
23513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23514 ac_cv_prog_acx_pthread_config="yes"
23515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23522 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23525 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23526 if test -n "$acx_pthread_config"; then
23527 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23528 $as_echo "$acx_pthread_config" >&6; }
23530 { $as_echo "$as_me:$LINENO: result: no" >&5
23531 $as_echo "no" >&6; }
23535 if test x"$acx_pthread_config" = xno; then continue; fi
23536 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23537 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23541 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23542 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23543 tryPTHREAD_LIBS="-l$flag"
23548 save_CFLAGS="$CFLAGS"
23549 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23550 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23552 # Check for various functions. We must include pthread.h,
23553 # since some functions may be macros. (On the Sequent, we
23554 # need a special flag -Kthread to make this header compile.)
23555 # We check for pthread_join because it is in -lpthread on IRIX
23556 # while pthread_create is in libc. We check for pthread_attr_init
23557 # due to DEC craziness with -lpthreads. We check for
23558 # pthread_cleanup_push because it is one of the few pthread
23559 # functions on Solaris that doesn't have a non-functional libc stub.
23560 # We try pthread_create on general principles.
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 #include <pthread.h>
23571 pthread_t th; pthread_join(th, 0);
23572 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23573 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23585 $as_echo "$ac_try_echo") >&5
23586 (eval "$ac_link") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1 >conftest.err
23590 cat conftest.err >&5
23591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest$ac_exeext && {
23596 test "$cross_compiling" = yes ||
23597 $as_test_x conftest$ac_exeext
23601 $as_echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23607 rm -rf conftest.dSYM
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609 conftest$ac_exeext conftest.$ac_ext
23611 if test "x$acx_pthread_ok" = xyes; then
23612 # Don't use options that are ignored by the compiler.
23613 # We find them by checking stderror.
23614 cat >conftest.$ac_ext <<_ACEOF
23616 main (int argc, char **argv)
23623 rm -f conftest.$ac_objext conftest$ac_exeext
23624 # Check both linking and compiling, because they might tolerate different options.
23625 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23626 # we continue with more flags because Linux needs -lpthread
23627 # for libpq builds on PostgreSQL. The test above only
23628 # tests for building binaries, not shared libraries.
23629 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23630 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23631 else acx_pthread_ok=no
23636 CFLAGS="$save_CFLAGS"
23638 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23639 $as_echo "$acx_pthread_ok" >&6; }
23643 # Various other checks:
23644 if test "x$acx_pthread_ok" = xyes; then
23646 LIBS="$PTHREAD_LIBS $LIBS"
23647 save_CFLAGS="$CFLAGS"
23648 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23650 # Detect AIX lossage: threads are created detached by default
23651 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23652 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23653 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 #include <pthread.h>
23664 int attr=PTHREAD_CREATE_JOINABLE;
23669 rm -f conftest.$ac_objext conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23676 $as_echo "$ac_try_echo") >&5
23677 (eval "$ac_link") 2>conftest.er1
23679 grep -v '^ *+' conftest.er1 >conftest.err
23681 cat conftest.err >&5
23682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest$ac_exeext && {
23687 test "$cross_compiling" = yes ||
23688 $as_test_x conftest$ac_exeext
23690 ok=PTHREAD_CREATE_JOINABLE
23692 $as_echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23698 rm -rf conftest.dSYM
23699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23700 conftest$ac_exeext conftest.$ac_ext
23701 if test x"$ok" = xunknown; then
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 #include <pthread.h>
23712 int attr=PTHREAD_CREATE_UNDETACHED;
23717 rm -f conftest.$ac_objext conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724 $as_echo "$ac_try_echo") >&5
23725 (eval "$ac_link") 2>conftest.er1
23727 grep -v '^ *+' conftest.er1 >conftest.err
23729 cat conftest.err >&5
23730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } && {
23732 test -z "$ac_c_werror_flag" ||
23733 test ! -s conftest.err
23734 } && test -s conftest$ac_exeext && {
23735 test "$cross_compiling" = yes ||
23736 $as_test_x conftest$ac_exeext
23738 ok=PTHREAD_CREATE_UNDETACHED
23740 $as_echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23746 rm -rf conftest.dSYM
23747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23748 conftest$ac_exeext conftest.$ac_ext
23750 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23752 cat >>confdefs.h <<\_ACEOF
23753 #define PTHREAD_CREATE_JOINABLE $ok
23757 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23758 $as_echo "${ok}" >&6; }
23759 if test x"$ok" = xunknown; then
23760 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23761 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23764 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23765 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23767 # We always add these in PostgreSQL
23768 # case "${host_cpu}-${host_os}" in
23769 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23770 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23772 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23773 $as_echo "${flag}" >&6; }
23774 if test "x$flag" != xno; then
23775 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23779 CFLAGS="$save_CFLAGS"
23781 # Supporting cc_r would require a special CC in all places that
23782 # use libpq, and that is ugly, so we don't do it. Users can still
23783 # define their compiler as cc_r to do thread builds of everything.
23784 # More AIX lossage: must compile with cc_r
23785 # Extract the first word of "cc_r", so it can be a program name with args.
23786 set dummy cc_r; ac_word=$2
23787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23788 $as_echo_n "checking for $ac_word... " >&6; }
23789 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23790 $as_echo_n "(cached) " >&6
23792 if test -n "$PTHREAD_CC"; then
23793 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796 for as_dir in $PATH
23799 test -z "$as_dir" && as_dir=.
23800 for ac_exec_ext in '' $ac_executable_extensions; do
23801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23802 ac_cv_prog_PTHREAD_CC="cc_r"
23803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23810 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23813 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23814 if test -n "$PTHREAD_CC"; then
23815 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23816 $as_echo "$PTHREAD_CC" >&6; }
23818 { $as_echo "$as_me:$LINENO: result: no" >&5
23819 $as_echo "no" >&6; }
23831 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23832 if test x"$acx_pthread_ok" = xyes; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_PTHREAD 1
23844 ac_cpp='$CPP $CPPFLAGS'
23845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23851 # Some platforms use these, so just define them. They can't hurt if they
23852 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23853 # enables 5-arg getpwuid_r, among other things.
23854 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23857 # At this point, we don't want to muck with the compiler name for threading.
23858 # Let's see who fails, perhaps AIX. 2004-04-23
23859 if test "$PTHREAD_CC" != "$CC"; then
23860 { { $as_echo "$as_me:$LINENO: error:
23861 PostgreSQL does not support platforms that require a special compiler
23862 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23863 $as_echo "$as_me: error:
23864 PostgreSQL does not support platforms that require a special compiler
23865 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23866 { (exit 1); exit 1; }; }
23869 # Check for *_r functions
23872 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23873 LIBS="$LIBS $PTHREAD_LIBS"
23875 if test "$PORTNAME" != "win32"; then
23876 if test "${ac_cv_header_pthread_h+set}" = set; then
23877 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23878 $as_echo_n "checking for pthread.h... " >&6; }
23879 if test "${ac_cv_header_pthread_h+set}" = set; then
23880 $as_echo_n "(cached) " >&6
23882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23883 $as_echo "$ac_cv_header_pthread_h" >&6; }
23885 # Is the header compilable?
23886 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23887 $as_echo_n "checking pthread.h usability... " >&6; }
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23895 #include <pthread.h>
23897 rm -f conftest.$ac_objext
23898 if { (ac_try="$ac_compile"
23899 case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904 $as_echo "$ac_try_echo") >&5
23905 (eval "$ac_compile") 2>conftest.er1
23907 grep -v '^ *+' conftest.er1 >conftest.err
23909 cat conftest.err >&5
23910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } && {
23912 test -z "$ac_c_werror_flag" ||
23913 test ! -s conftest.err
23914 } && test -s conftest.$ac_objext; then
23915 ac_header_compiler=yes
23917 $as_echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 ac_header_compiler=no
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23925 $as_echo "$ac_header_compiler" >&6; }
23927 # Is the header present?
23928 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23929 $as_echo_n "checking pthread.h presence... " >&6; }
23930 cat >conftest.$ac_ext <<_ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 #include <pthread.h>
23938 if { (ac_try="$ac_cpp conftest.$ac_ext"
23939 case "(($ac_try" in
23940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941 *) ac_try_echo=$ac_try;;
23943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23944 $as_echo "$ac_try_echo") >&5
23945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } >/dev/null && {
23952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23953 test ! -s conftest.err
23955 ac_header_preproc=yes
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ac_header_preproc=no
23963 rm -f conftest.err conftest.$ac_ext
23964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23965 $as_echo "$ac_header_preproc" >&6; }
23967 # So? What about this header?
23968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23970 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23971 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23972 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23973 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23974 ac_header_preproc=yes
23977 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23978 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23979 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23980 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23981 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23982 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23983 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23984 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23985 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23986 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23987 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23988 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23990 ## ---------------------------------------- ##
23991 ## Report this to pgsql-bugs@postgresql.org ##
23992 ## ---------------------------------------- ##
23994 ) | sed "s/^/$as_me: WARNING: /" >&2
23997 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23998 $as_echo_n "checking for pthread.h... " >&6; }
23999 if test "${ac_cv_header_pthread_h+set}" = set; then
24000 $as_echo_n "(cached) " >&6
24002 ac_cv_header_pthread_h=$ac_header_preproc
24004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
24005 $as_echo "$ac_cv_header_pthread_h" >&6; }
24008 if test "x$ac_cv_header_pthread_h" = x""yes; then
24011 { { $as_echo "$as_me:$LINENO: error:
24012 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
24013 $as_echo "$as_me: error:
24014 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
24015 { (exit 1); exit 1; }; }
24024 for ac_func in strerror_r getpwuid_r gethostbyname_r
24026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24028 $as_echo_n "checking for $ac_func... " >&6; }
24029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24030 $as_echo_n "(cached) " >&6
24032 cat >conftest.$ac_ext <<_ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24040 #define $ac_func innocuous_$ac_func
24042 /* System header to define __stub macros and hopefully few prototypes,
24043 which can conflict with char $ac_func (); below.
24044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24045 <limits.h> exists even on freestanding compilers. */
24048 # include <limits.h>
24050 # include <assert.h>
24055 /* Override any GCC internal prototype to avoid an error.
24056 Use char because int might match the return type of a GCC
24057 builtin and then its argument prototype would still apply. */
24062 /* The GNU C library defines this for functions which it implements
24063 to always fail with ENOSYS. Some functions are actually named
24064 something starting with __ and the normal name is an alias. */
24065 #if defined __stub_$ac_func || defined __stub___$ac_func
24072 return $ac_func ();
24077 rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24084 $as_echo "$ac_try_echo") >&5
24085 (eval "$ac_link") 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } && {
24092 test -z "$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24094 } && test -s conftest$ac_exeext && {
24095 test "$cross_compiling" = yes ||
24096 $as_test_x conftest$ac_exeext
24098 eval "$as_ac_var=yes"
24100 $as_echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 eval "$as_ac_var=no"
24106 rm -rf conftest.dSYM
24107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24108 conftest$ac_exeext conftest.$ac_ext
24110 ac_res=`eval 'as_val=${'$as_ac_var'}
24111 $as_echo "$as_val"'`
24112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24113 $as_echo "$ac_res" >&6; }
24114 as_val=`eval 'as_val=${'$as_ac_var'}
24115 $as_echo "$as_val"'`
24116 if test "x$as_val" = x""yes; then
24117 cat >>confdefs.h <<_ACEOF
24118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24125 # Do test here with the proper thread flags
24126 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
24127 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
24128 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
24129 $as_echo_n "(cached) " >&6
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 #include <sys/types.h>
24143 struct passwd *space;
24146 struct passwd **result;
24147 getpwuid_r(uid, space, buf, bufsize, result);
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24159 $as_echo "$ac_try_echo") >&5
24160 (eval "$ac_compile") 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest.$ac_objext; then
24170 pgac_cv_func_getpwuid_r_5arg=yes
24172 $as_echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 pgac_cv_func_getpwuid_r_5arg=no
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24181 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24182 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24184 cat >>confdefs.h <<\_ACEOF
24185 #define GETPWUID_R_5ARG 1
24190 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24191 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24192 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24193 $as_echo_n "(cached) " >&6
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 #include <string.h>
24206 int strerror_r(int, char *, size_t);
24208 /* Older AIX has 'int' for the third argument so we don't test the args. */
24215 rm -f conftest.$ac_objext
24216 if { (ac_try="$ac_compile"
24217 case "(($ac_try" in
24218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219 *) ac_try_echo=$ac_try;;
24221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24222 $as_echo "$ac_try_echo") >&5
24223 (eval "$ac_compile") 2>conftest.er1
24225 grep -v '^ *+' conftest.er1 >conftest.err
24227 cat conftest.err >&5
24228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } && {
24230 test -z "$ac_c_werror_flag" ||
24231 test ! -s conftest.err
24232 } && test -s conftest.$ac_objext; then
24233 pgac_cv_func_strerror_r_int=yes
24235 $as_echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 pgac_cv_func_strerror_r_int=no
24241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24243 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24244 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24245 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24247 cat >>confdefs.h <<\_ACEOF
24248 #define STRERROR_R_INT 1
24258 # do not use values from template file
24267 # We can test for libldap_r only after we know PTHREAD_LIBS
24268 if test "$with_ldap" = yes ; then
24270 if test "$PORTNAME" != "win32"; then
24272 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24273 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24274 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24275 $as_echo_n "(cached) " >&6
24277 ac_check_lib_save_LIBS=$LIBS
24278 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24279 cat >conftest.$ac_ext <<_ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h. */
24286 /* Override any GCC internal prototype to avoid an error.
24287 Use char because int might match the return type of a GCC
24288 builtin and then its argument prototype would still apply. */
24296 return ldap_bind ();
24301 rm -f conftest.$ac_objext conftest$ac_exeext
24302 if { (ac_try="$ac_link"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_link") 2>conftest.er1
24311 grep -v '^ *+' conftest.er1 >conftest.err
24313 cat conftest.err >&5
24314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } && {
24316 test -z "$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 } && test -s conftest$ac_exeext && {
24319 test "$cross_compiling" = yes ||
24320 $as_test_x conftest$ac_exeext
24322 ac_cv_lib_ldap_ldap_bind=yes
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_cv_lib_ldap_ldap_bind=no
24330 rm -rf conftest.dSYM
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332 conftest$ac_exeext conftest.$ac_ext
24333 LIBS=$ac_check_lib_save_LIBS
24335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24336 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24337 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24338 cat >>confdefs.h <<_ACEOF
24339 #define HAVE_LIBLDAP 1
24342 LIBS="-lldap $LIBS"
24345 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24346 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24347 { (exit 1); exit 1; }; }
24350 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24351 if test "$enable_thread_safety" = yes; then
24352 # on some platforms ldap_r fails to link without PTHREAD_LIBS
24354 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24355 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24356 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24357 $as_echo_n "(cached) " >&6
24359 ac_check_lib_save_LIBS=$LIBS
24360 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24368 /* Override any GCC internal prototype to avoid an error.
24369 Use char because int might match the return type of a GCC
24370 builtin and then its argument prototype would still apply. */
24374 char ldap_simple_bind ();
24378 return ldap_simple_bind ();
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390 $as_echo "$ac_try_echo") >&5
24391 (eval "$ac_link") 2>conftest.er1
24393 grep -v '^ *+' conftest.er1 >conftest.err
24395 cat conftest.err >&5
24396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } && {
24398 test -z "$ac_c_werror_flag" ||
24399 test ! -s conftest.err
24400 } && test -s conftest$ac_exeext && {
24401 test "$cross_compiling" = yes ||
24402 $as_test_x conftest$ac_exeext
24404 ac_cv_lib_ldap_r_ldap_simple_bind=yes
24406 $as_echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24409 ac_cv_lib_ldap_r_ldap_simple_bind=no
24412 rm -rf conftest.dSYM
24413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24414 conftest$ac_exeext conftest.$ac_ext
24415 LIBS=$ac_check_lib_save_LIBS
24417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24418 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24419 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24420 cat >>confdefs.h <<_ACEOF
24421 #define HAVE_LIBLDAP_R 1
24424 LIBS="-lldap_r $LIBS"
24427 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24428 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24429 { (exit 1); exit 1; }; }
24432 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24434 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24438 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24439 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24440 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24441 $as_echo_n "(cached) " >&6
24443 ac_check_lib_save_LIBS=$LIBS
24444 LIBS="-lwldap32 $LIBS"
24445 cat >conftest.$ac_ext <<_ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24452 /* Override any GCC internal prototype to avoid an error.
24453 Use char because int might match the return type of a GCC
24454 builtin and then its argument prototype would still apply. */
24462 return ldap_bind ();
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474 $as_echo "$ac_try_echo") >&5
24475 (eval "$ac_link") 2>conftest.er1
24477 grep -v '^ *+' conftest.er1 >conftest.err
24479 cat conftest.err >&5
24480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } && {
24482 test -z "$ac_c_werror_flag" ||
24483 test ! -s conftest.err
24484 } && test -s conftest$ac_exeext && {
24485 test "$cross_compiling" = yes ||
24486 $as_test_x conftest$ac_exeext
24488 ac_cv_lib_wldap32_ldap_bind=yes
24490 $as_echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_cv_lib_wldap32_ldap_bind=no
24496 rm -rf conftest.dSYM
24497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24498 conftest$ac_exeext conftest.$ac_ext
24499 LIBS=$ac_check_lib_save_LIBS
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24502 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24503 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24504 cat >>confdefs.h <<_ACEOF
24505 #define HAVE_LIBWLDAP32 1
24508 LIBS="-lwldap32 $LIBS"
24511 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24512 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24513 { (exit 1); exit 1; }; }
24516 LDAP_LIBS_FE="-lwldap32"
24517 LDAP_LIBS_BE="-lwldap32"
24525 # This test makes sure that run tests work at all. Sometimes a shared
24526 # library is found by the linker, but the runtime linker can't find it.
24527 # This check should come after all modifications of compiler or linker
24528 # variables, and before any other run tests.
24529 { $as_echo "$as_me:$LINENO: checking test program" >&5
24530 $as_echo_n "checking test program... " >&6; }
24531 if test "$cross_compiling" = yes; then
24532 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24533 $as_echo "cross-compiling" >&6; }
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 int main() { return 0; }
24543 rm -f conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551 (eval "$ac_link") 2>&5
24553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24555 { (case "(($ac_try" in
24556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24560 $as_echo "$ac_try_echo") >&5
24561 (eval "$ac_try") 2>&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; }; then
24565 { $as_echo "$as_me:$LINENO: result: ok" >&5
24566 $as_echo "ok" >&6; }
24568 $as_echo "$as_me: program exited with status $ac_status" >&5
24569 $as_echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 ( exit $ac_status )
24573 { $as_echo "$as_me:$LINENO: result: failed" >&5
24574 $as_echo "failed" >&6; }
24575 { { $as_echo "$as_me:$LINENO: error:
24576 Could not execute a simple test program. This may be a problem
24577 related to locating shared libraries. Check the file 'config.log'
24578 for the exact reason." >&5
24579 $as_echo "$as_me: error:
24580 Could not execute a simple test program. This may be a problem
24581 related to locating shared libraries. Check the file 'config.log'
24582 for the exact reason." >&2;}
24583 { (exit 1); exit 1; }; }
24585 rm -rf conftest.dSYM
24586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24591 # --------------------
24592 # Run tests below here
24593 # --------------------
24595 # Force use of our snprintf if system's doesn't do arg control
24596 # See comment above at snprintf test for details.
24597 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24598 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24599 $as_echo_n "checking whether printf supports argument control... " >&6; }
24600 if test "${pgac_cv_printf_arg_control+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24603 if test "$cross_compiling" = yes; then
24604 pgac_cv_printf_arg_control=cross
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24613 #include <string.h>
24619 /* can it swap arguments? */
24620 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24621 if (strcmp(buf, "4 3") != 0)
24626 rm -f conftest$ac_exeext
24627 if { (ac_try="$ac_link"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24633 $as_echo "$ac_try_echo") >&5
24634 (eval "$ac_link") 2>&5
24636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24638 { (case "(($ac_try" in
24639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640 *) ac_try_echo=$ac_try;;
24642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24643 $as_echo "$ac_try_echo") >&5
24644 (eval "$ac_try") 2>&5
24646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; }; then
24648 pgac_cv_printf_arg_control=yes
24650 $as_echo "$as_me: program exited with status $ac_status" >&5
24651 $as_echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24654 ( exit $ac_status )
24655 pgac_cv_printf_arg_control=no
24657 rm -rf conftest.dSYM
24658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24664 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24665 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24667 if test $pgac_cv_printf_arg_control != yes ; then
24668 pgac_need_repl_snprintf=yes
24675 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24676 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24677 if test "${pgac_cv_type_long_int_64+set}" = set; then
24678 $as_echo_n "(cached) " >&6
24680 if test "$cross_compiling" = yes; then
24681 # If cross-compiling, check the size reported by the compiler and
24682 # trust that the arithmetic works.
24683 cat >conftest.$ac_ext <<_ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h. */
24693 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24700 rm -f conftest.$ac_objext
24701 if { (ac_try="$ac_compile"
24702 case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24707 $as_echo "$ac_try_echo") >&5
24708 (eval "$ac_compile") 2>conftest.er1
24710 grep -v '^ *+' conftest.er1 >conftest.err
24712 cat conftest.err >&5
24713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } && {
24715 test -z "$ac_c_werror_flag" ||
24716 test ! -s conftest.err
24717 } && test -s conftest.$ac_objext; then
24718 pgac_cv_type_long_int_64=yes
24720 $as_echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 pgac_cv_type_long_int_64=no
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 cat >conftest.$ac_ext <<_ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24734 typedef long int ac_int64;
24737 * These are globals to discourage the compiler from folding all the
24738 * arithmetic tests down to compile-time constants.
24740 ac_int64 a = 20000001;
24741 ac_int64 b = 40000005;
24743 int does_int64_work()
24747 if (sizeof(ac_int64) != 8)
24748 return 0; /* definitely not the right size */
24750 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24758 exit(! does_int64_work());
24761 rm -f conftest$ac_exeext
24762 if { (ac_try="$ac_link"
24763 case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24768 $as_echo "$ac_try_echo") >&5
24769 (eval "$ac_link") 2>&5
24771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24773 { (case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24778 $as_echo "$ac_try_echo") >&5
24779 (eval "$ac_try") 2>&5
24781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 pgac_cv_type_long_int_64=yes
24785 $as_echo "$as_me: program exited with status $ac_status" >&5
24786 $as_echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24789 ( exit $ac_status )
24790 pgac_cv_type_long_int_64=no
24792 rm -rf conftest.dSYM
24793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24798 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24799 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24801 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24802 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24804 cat >>confdefs.h <<\_ACEOF
24805 #define HAVE_LONG_INT_64 1
24811 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24812 pg_int64_type="long int"
24814 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24815 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24816 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24817 $as_echo_n "(cached) " >&6
24819 if test "$cross_compiling" = yes; then
24820 # If cross-compiling, check the size reported by the compiler and
24821 # trust that the arithmetic works.
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24832 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24839 rm -f conftest.$ac_objext
24840 if { (ac_try="$ac_compile"
24841 case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847 (eval "$ac_compile") 2>conftest.er1
24849 grep -v '^ *+' conftest.er1 >conftest.err
24851 cat conftest.err >&5
24852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } && {
24854 test -z "$ac_c_werror_flag" ||
24855 test ! -s conftest.err
24856 } && test -s conftest.$ac_objext; then
24857 pgac_cv_type_long_long_int_64=yes
24859 $as_echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24862 pgac_cv_type_long_long_int_64=no
24865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 typedef long long int ac_int64;
24876 * These are globals to discourage the compiler from folding all the
24877 * arithmetic tests down to compile-time constants.
24879 ac_int64 a = 20000001;
24880 ac_int64 b = 40000005;
24882 int does_int64_work()
24886 if (sizeof(ac_int64) != 8)
24887 return 0; /* definitely not the right size */
24889 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24897 exit(! does_int64_work());
24900 rm -f conftest$ac_exeext
24901 if { (ac_try="$ac_link"
24902 case "(($ac_try" in
24903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904 *) ac_try_echo=$ac_try;;
24906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24907 $as_echo "$ac_try_echo") >&5
24908 (eval "$ac_link") 2>&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918 (eval "$ac_try") 2>&5
24920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 pgac_cv_type_long_long_int_64=yes
24924 $as_echo "$as_me: program exited with status $ac_status" >&5
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ( exit $ac_status )
24929 pgac_cv_type_long_long_int_64=no
24931 rm -rf conftest.dSYM
24932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24937 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24938 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24940 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24941 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24943 cat >>confdefs.h <<\_ACEOF
24944 #define HAVE_LONG_LONG_INT_64 1
24949 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24950 pg_int64_type="long long int"
24952 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24953 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24954 { (exit 1); exit 1; }; }
24959 cat >>confdefs.h <<_ACEOF
24960 #define PG_INT64_TYPE $pg_int64_type
24965 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24973 #define INT64CONST(x) x##LL
24974 long long int foo = INT64CONST(0x1234567890123456);
24984 rm -f conftest.$ac_objext
24985 if { (ac_try="$ac_compile"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24991 $as_echo "$ac_try_echo") >&5
24992 (eval "$ac_compile") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && {
24999 test -z "$ac_c_werror_flag" ||
25000 test ! -s conftest.err
25001 } && test -s conftest.$ac_objext; then
25003 cat >>confdefs.h <<\_ACEOF
25004 #define HAVE_LL_CONSTANTS 1
25008 $as_echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 # If we found "long int" is 64 bits, assume snprintf handles it. If
25019 # we found we need to use "long long int", better check. We cope with
25020 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
25021 # work, fall back to our own snprintf emulation (which we know uses %lld).
25023 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
25024 if test $pgac_need_repl_snprintf = no; then
25025 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
25026 $as_echo_n "checking snprintf format for long long int... " >&6; }
25027 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
25028 $as_echo_n "(cached) " >&6
25030 for pgac_format in '%lld' '%qd' '%I64d'; do
25031 if test "$cross_compiling" = yes; then
25032 pgac_cv_snprintf_long_long_int_format=cross; break
25034 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25041 typedef long long int ac_int64;
25042 #define INT64_FORMAT "$pgac_format"
25044 ac_int64 a = 20000001;
25045 ac_int64 b = 40000005;
25047 int does_int64_snprintf_work()
25052 if (sizeof(ac_int64) != 8)
25053 return 0; /* doesn't look like the right size */
25056 snprintf(buf, 100, INT64_FORMAT, c);
25057 if (strcmp(buf, "800000140000005") != 0)
25058 return 0; /* either multiply or snprintf is busted */
25062 exit(! does_int64_snprintf_work());
25065 rm -f conftest$ac_exeext
25066 if { (ac_try="$ac_link"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072 $as_echo "$ac_try_echo") >&5
25073 (eval "$ac_link") 2>&5
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25077 { (case "(($ac_try" in
25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079 *) ac_try_echo=$ac_try;;
25081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25082 $as_echo "$ac_try_echo") >&5
25083 (eval "$ac_try") 2>&5
25085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }; }; then
25087 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
25089 $as_echo "$as_me: program exited with status $ac_status" >&5
25090 $as_echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25094 rm -rf conftest.dSYM
25095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25102 LONG_LONG_INT_FORMAT=''
25104 case $pgac_cv_snprintf_long_long_int_format in
25105 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
25106 $as_echo "cannot test (not on host machine)" >&6; };;
25107 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
25108 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
25109 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
25110 *) { $as_echo "$as_me:$LINENO: result: none" >&5
25111 $as_echo "none" >&6; };;
25113 if test "$LONG_LONG_INT_FORMAT" = ""; then
25114 # Force usage of our own snprintf, since system snprintf is broken
25115 pgac_need_repl_snprintf=yes
25116 LONG_LONG_INT_FORMAT='%lld'
25119 # Here if we previously decided we needed to use our own snprintf
25120 LONG_LONG_INT_FORMAT='%lld'
25122 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
25123 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
25124 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
25126 # Here if we are not using 'long long int' at all
25127 INT64_FORMAT='"%ld"'
25128 UINT64_FORMAT='"%lu"'
25132 cat >>confdefs.h <<_ACEOF
25133 #define INT64_FORMAT $INT64_FORMAT
25138 cat >>confdefs.h <<_ACEOF
25139 #define UINT64_FORMAT $UINT64_FORMAT
25143 # Now we have checked all the reasons to replace snprintf
25144 if test $pgac_need_repl_snprintf = yes; then
25146 cat >>confdefs.h <<\_ACEOF
25147 #define USE_REPL_SNPRINTF 1
25150 case " $LIBOBJS " in
25151 *" snprintf.$ac_objext "* ) ;;
25152 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25158 # Check size of void *, size_t (enables tweaks for > 32bit address space)
25159 # The cast to long int works around a bug in the HP C Compiler
25160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25162 # This bug is HP SR number 8606223364.
25163 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
25164 $as_echo_n "checking size of void *... " >&6; }
25165 if test "${ac_cv_sizeof_void_p+set}" = set; then
25166 $as_echo_n "(cached) " >&6
25168 if test "$cross_compiling" = yes; then
25169 # Depending upon the size, compute the lo and hi bounds.
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25180 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25187 rm -f conftest.$ac_objext
25188 if { (ac_try="$ac_compile"
25189 case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25194 $as_echo "$ac_try_echo") >&5
25195 (eval "$ac_compile") 2>conftest.er1
25197 grep -v '^ *+' conftest.er1 >conftest.err
25199 cat conftest.err >&5
25200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } && {
25202 test -z "$ac_c_werror_flag" ||
25203 test ! -s conftest.err
25204 } && test -s conftest.$ac_objext; then
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 $ac_includes_default
25217 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25224 rm -f conftest.$ac_objext
25225 if { (ac_try="$ac_compile"
25226 case "(($ac_try" in
25227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228 *) ac_try_echo=$ac_try;;
25230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231 $as_echo "$ac_try_echo") >&5
25232 (eval "$ac_compile") 2>conftest.er1
25234 grep -v '^ *+' conftest.er1 >conftest.err
25236 cat conftest.err >&5
25237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } && {
25239 test -z "$ac_c_werror_flag" ||
25240 test ! -s conftest.err
25241 } && test -s conftest.$ac_objext; then
25242 ac_hi=$ac_mid; break
25244 $as_echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25247 ac_lo=`expr $ac_mid + 1`
25248 if test $ac_lo -le $ac_mid; then
25252 ac_mid=`expr 2 '*' $ac_mid + 1`
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 $as_echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 cat >conftest.$ac_ext <<_ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25267 $ac_includes_default
25271 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25278 rm -f conftest.$ac_objext
25279 if { (ac_try="$ac_compile"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286 (eval "$ac_compile") 2>conftest.er1
25288 grep -v '^ *+' conftest.er1 >conftest.err
25290 cat conftest.err >&5
25291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } && {
25293 test -z "$ac_c_werror_flag" ||
25294 test ! -s conftest.err
25295 } && test -s conftest.$ac_objext; then
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25308 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25322 $as_echo "$ac_try_echo") >&5
25323 (eval "$ac_compile") 2>conftest.er1
25325 grep -v '^ *+' conftest.er1 >conftest.err
25327 cat conftest.err >&5
25328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } && {
25330 test -z "$ac_c_werror_flag" ||
25331 test ! -s conftest.err
25332 } && test -s conftest.$ac_objext; then
25333 ac_lo=$ac_mid; break
25335 $as_echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25338 ac_hi=`expr '(' $ac_mid ')' - 1`
25339 if test $ac_mid -le $ac_hi; then
25343 ac_mid=`expr 2 '*' $ac_mid`
25346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 $as_echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25359 # Binary search between lo and hi bounds.
25360 while test "x$ac_lo" != "x$ac_hi"; do
25361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 $ac_includes_default
25372 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386 $as_echo "$ac_try_echo") >&5
25387 (eval "$ac_compile") 2>conftest.er1
25389 grep -v '^ *+' conftest.er1 >conftest.err
25391 cat conftest.err >&5
25392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); } && {
25394 test -z "$ac_c_werror_flag" ||
25395 test ! -s conftest.err
25396 } && test -s conftest.$ac_objext; then
25399 $as_echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ac_lo=`expr '(' $ac_mid ')' + 1`
25405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25409 '') if test "$ac_cv_type_void_p" = yes; then
25410 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25413 See \`config.log' for more details." >&5
25414 $as_echo "$as_me: error: cannot compute sizeof (void *)
25415 See \`config.log' for more details." >&2;}
25416 { (exit 77); exit 77; }; }; }
25418 ac_cv_sizeof_void_p=0
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 $ac_includes_default
25429 static long int longval () { return (long int) (sizeof (void *)); }
25430 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25432 #include <stdlib.h>
25437 FILE *f = fopen ("conftest.val", "w");
25440 if (((long int) (sizeof (void *))) < 0)
25442 long int i = longval ();
25443 if (i != ((long int) (sizeof (void *))))
25445 fprintf (f, "%ld", i);
25449 unsigned long int i = ulongval ();
25450 if (i != ((long int) (sizeof (void *))))
25452 fprintf (f, "%lu", i);
25454 /* Do not output a trailing newline, as this causes \r\n confusion
25455 on some platforms. */
25456 return ferror (f) || fclose (f) != 0;
25462 rm -f conftest$ac_exeext
25463 if { (ac_try="$ac_link"
25464 case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470 (eval "$ac_link") 2>&5
25472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25474 { (case "(($ac_try" in
25475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25476 *) ac_try_echo=$ac_try;;
25478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25479 $as_echo "$ac_try_echo") >&5
25480 (eval "$ac_try") 2>&5
25482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 ac_cv_sizeof_void_p=`cat conftest.val`
25486 $as_echo "$as_me: program exited with status $ac_status" >&5
25487 $as_echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ( exit $ac_status )
25491 if test "$ac_cv_type_void_p" = yes; then
25492 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25494 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25495 See \`config.log' for more details." >&5
25496 $as_echo "$as_me: error: cannot compute sizeof (void *)
25497 See \`config.log' for more details." >&2;}
25498 { (exit 77); exit 77; }; }; }
25500 ac_cv_sizeof_void_p=0
25503 rm -rf conftest.dSYM
25504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25509 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25513 cat >>confdefs.h <<_ACEOF
25514 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25518 # The cast to long int works around a bug in the HP C Compiler
25519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25521 # This bug is HP SR number 8606223364.
25522 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25523 $as_echo_n "checking size of size_t... " >&6; }
25524 if test "${ac_cv_sizeof_size_t+set}" = set; then
25525 $as_echo_n "(cached) " >&6
25527 if test "$cross_compiling" = yes; then
25528 # Depending upon the size, compute the lo and hi bounds.
25529 cat >conftest.$ac_ext <<_ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 $ac_includes_default
25539 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25546 rm -f conftest.$ac_objext
25547 if { (ac_try="$ac_compile"
25548 case "(($ac_try" in
25549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550 *) ac_try_echo=$ac_try;;
25552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553 $as_echo "$ac_try_echo") >&5
25554 (eval "$ac_compile") 2>conftest.er1
25556 grep -v '^ *+' conftest.er1 >conftest.err
25558 cat conftest.err >&5
25559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); } && {
25561 test -z "$ac_c_werror_flag" ||
25562 test ! -s conftest.err
25563 } && test -s conftest.$ac_objext; then
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 $ac_includes_default
25576 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25590 $as_echo "$ac_try_echo") >&5
25591 (eval "$ac_compile") 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && {
25598 test -z "$ac_c_werror_flag" ||
25599 test ! -s conftest.err
25600 } && test -s conftest.$ac_objext; then
25601 ac_hi=$ac_mid; break
25603 $as_echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ac_lo=`expr $ac_mid + 1`
25607 if test $ac_lo -le $ac_mid; then
25611 ac_mid=`expr 2 '*' $ac_mid + 1`
25614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 $as_echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25620 cat >conftest.$ac_ext <<_ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25630 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645 (eval "$ac_compile") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest.$ac_objext; then
25657 cat >conftest.$ac_ext <<_ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>conftest.$ac_ext <<_ACEOF
25662 /* end confdefs.h. */
25663 $ac_includes_default
25667 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25684 grep -v '^ *+' conftest.er1 >conftest.err
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 ac_lo=$ac_mid; break
25694 $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ac_hi=`expr '(' $ac_mid ')' - 1`
25698 if test $ac_mid -le $ac_hi; then
25702 ac_mid=`expr 2 '*' $ac_mid`
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 $as_echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718 # Binary search between lo and hi bounds.
25719 while test "x$ac_lo" != "x$ac_hi"; do
25720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25721 cat >conftest.$ac_ext <<_ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h. */
25727 $ac_includes_default
25731 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25738 rm -f conftest.$ac_objext
25739 if { (ac_try="$ac_compile"
25740 case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25745 $as_echo "$ac_try_echo") >&5
25746 (eval "$ac_compile") 2>conftest.er1
25748 grep -v '^ *+' conftest.er1 >conftest.err
25750 cat conftest.err >&5
25751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } && {
25753 test -z "$ac_c_werror_flag" ||
25754 test ! -s conftest.err
25755 } && test -s conftest.$ac_objext; then
25758 $as_echo "$as_me: failed program was:" >&5
25759 sed 's/^/| /' conftest.$ac_ext >&5
25761 ac_lo=`expr '(' $ac_mid ')' + 1`
25764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25768 '') if test "$ac_cv_type_size_t" = yes; then
25769 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25771 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25772 See \`config.log' for more details." >&5
25773 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25774 See \`config.log' for more details." >&2;}
25775 { (exit 77); exit 77; }; }; }
25777 ac_cv_sizeof_size_t=0
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25787 $ac_includes_default
25788 static long int longval () { return (long int) (sizeof (size_t)); }
25789 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25791 #include <stdlib.h>
25796 FILE *f = fopen ("conftest.val", "w");
25799 if (((long int) (sizeof (size_t))) < 0)
25801 long int i = longval ();
25802 if (i != ((long int) (sizeof (size_t))))
25804 fprintf (f, "%ld", i);
25808 unsigned long int i = ulongval ();
25809 if (i != ((long int) (sizeof (size_t))))
25811 fprintf (f, "%lu", i);
25813 /* Do not output a trailing newline, as this causes \r\n confusion
25814 on some platforms. */
25815 return ferror (f) || fclose (f) != 0;
25821 rm -f conftest$ac_exeext
25822 if { (ac_try="$ac_link"
25823 case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25828 $as_echo "$ac_try_echo") >&5
25829 (eval "$ac_link") 2>&5
25831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25833 { (case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_try") 2>&5
25841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); }; }; then
25843 ac_cv_sizeof_size_t=`cat conftest.val`
25845 $as_echo "$as_me: program exited with status $ac_status" >&5
25846 $as_echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 ( exit $ac_status )
25850 if test "$ac_cv_type_size_t" = yes; then
25851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25853 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25854 See \`config.log' for more details." >&5
25855 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25856 See \`config.log' for more details." >&2;}
25857 { (exit 77); exit 77; }; }; }
25859 ac_cv_sizeof_size_t=0
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25868 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25872 cat >>confdefs.h <<_ACEOF
25873 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25877 # The cast to long int works around a bug in the HP C Compiler
25878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25880 # This bug is HP SR number 8606223364.
25881 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25882 $as_echo_n "checking size of long... " >&6; }
25883 if test "${ac_cv_sizeof_long+set}" = set; then
25884 $as_echo_n "(cached) " >&6
25886 if test "$cross_compiling" = yes; then
25887 # Depending upon the size, compute the lo and hi bounds.
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25898 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25905 rm -f conftest.$ac_objext
25906 if { (ac_try="$ac_compile"
25907 case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25912 $as_echo "$ac_try_echo") >&5
25913 (eval "$ac_compile") 2>conftest.er1
25915 grep -v '^ *+' conftest.er1 >conftest.err
25917 cat conftest.err >&5
25918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } && {
25920 test -z "$ac_c_werror_flag" ||
25921 test ! -s conftest.err
25922 } && test -s conftest.$ac_objext; then
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 $ac_includes_default
25935 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25942 rm -f conftest.$ac_objext
25943 if { (ac_try="$ac_compile"
25944 case "(($ac_try" in
25945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946 *) ac_try_echo=$ac_try;;
25948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949 $as_echo "$ac_try_echo") >&5
25950 (eval "$ac_compile") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } && {
25957 test -z "$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25959 } && test -s conftest.$ac_objext; then
25960 ac_hi=$ac_mid; break
25962 $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ac_lo=`expr $ac_mid + 1`
25966 if test $ac_lo -le $ac_mid; then
25970 ac_mid=`expr 2 '*' $ac_mid + 1`
25973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25976 $as_echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 cat >conftest.$ac_ext <<_ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h. */
25985 $ac_includes_default
25989 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25996 rm -f conftest.$ac_objext
25997 if { (ac_try="$ac_compile"
25998 case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26003 $as_echo "$ac_try_echo") >&5
26004 (eval "$ac_compile") 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } && {
26011 test -z "$ac_c_werror_flag" ||
26012 test ! -s conftest.err
26013 } && test -s conftest.$ac_objext; then
26016 cat >conftest.$ac_ext <<_ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26022 $ac_includes_default
26026 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26033 rm -f conftest.$ac_objext
26034 if { (ac_try="$ac_compile"
26035 case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26040 $as_echo "$ac_try_echo") >&5
26041 (eval "$ac_compile") 2>conftest.er1
26043 grep -v '^ *+' conftest.er1 >conftest.err
26045 cat conftest.err >&5
26046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } && {
26048 test -z "$ac_c_werror_flag" ||
26049 test ! -s conftest.err
26050 } && test -s conftest.$ac_objext; then
26051 ac_lo=$ac_mid; break
26053 $as_echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26056 ac_hi=`expr '(' $ac_mid ')' - 1`
26057 if test $ac_mid -le $ac_hi; then
26061 ac_mid=`expr 2 '*' $ac_mid`
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26067 $as_echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077 # Binary search between lo and hi bounds.
26078 while test "x$ac_lo" != "x$ac_hi"; do
26079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26080 cat >conftest.$ac_ext <<_ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26086 $ac_includes_default
26090 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_compile") 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest.$ac_objext; then
26117 $as_echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ac_lo=`expr '(' $ac_mid ')' + 1`
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126 ?*) ac_cv_sizeof_long=$ac_lo;;
26127 '') if test "$ac_cv_type_long" = yes; then
26128 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26130 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26131 See \`config.log' for more details." >&5
26132 $as_echo "$as_me: error: cannot compute sizeof (long)
26133 See \`config.log' for more details." >&2;}
26134 { (exit 77); exit 77; }; }; }
26136 ac_cv_sizeof_long=0
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 $ac_includes_default
26147 static long int longval () { return (long int) (sizeof (long)); }
26148 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26150 #include <stdlib.h>
26155 FILE *f = fopen ("conftest.val", "w");
26158 if (((long int) (sizeof (long))) < 0)
26160 long int i = longval ();
26161 if (i != ((long int) (sizeof (long))))
26163 fprintf (f, "%ld", i);
26167 unsigned long int i = ulongval ();
26168 if (i != ((long int) (sizeof (long))))
26170 fprintf (f, "%lu", i);
26172 /* Do not output a trailing newline, as this causes \r\n confusion
26173 on some platforms. */
26174 return ferror (f) || fclose (f) != 0;
26180 rm -f conftest$ac_exeext
26181 if { (ac_try="$ac_link"
26182 case "(($ac_try" in
26183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26184 *) ac_try_echo=$ac_try;;
26186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26187 $as_echo "$ac_try_echo") >&5
26188 (eval "$ac_link") 2>&5
26190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26192 { (case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_try") 2>&5
26200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 ac_cv_sizeof_long=`cat conftest.val`
26204 $as_echo "$as_me: program exited with status $ac_status" >&5
26205 $as_echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 ( exit $ac_status )
26209 if test "$ac_cv_type_long" = yes; then
26210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26212 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26213 See \`config.log' for more details." >&5
26214 $as_echo "$as_me: error: cannot compute sizeof (long)
26215 See \`config.log' for more details." >&2;}
26216 { (exit 77); exit 77; }; }; }
26218 ac_cv_sizeof_long=0
26221 rm -rf conftest.dSYM
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26226 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26227 $as_echo "$ac_cv_sizeof_long" >&6; }
26231 cat >>confdefs.h <<_ACEOF
26232 #define SIZEOF_LONG $ac_cv_sizeof_long
26237 # Decide whether float4 is passed by value: user-selectable, enabled by default
26238 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26239 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26242 # Check whether --enable-float4-byval was given.
26243 if test "${enable_float4_byval+set}" = set; then
26244 enableval=$enable_float4_byval;
26248 cat >>confdefs.h <<\_ACEOF
26249 #define USE_FLOAT4_BYVAL 1
26252 float4passbyval=true
26255 float4passbyval=false
26258 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26259 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26260 { (exit 1); exit 1; }; }
26265 enable_float4_byval=yes
26267 cat >>confdefs.h <<\_ACEOF
26268 #define USE_FLOAT4_BYVAL 1
26271 float4passbyval=true
26275 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26276 $as_echo "$enable_float4_byval" >&6; }
26278 cat >>confdefs.h <<_ACEOF
26279 #define FLOAT4PASSBYVAL $float4passbyval
26283 # Decide whether float8 is passed by value.
26284 # Note: this setting also controls int8 and related types such as timestamp.
26285 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26286 # If not, trying to select it is an error.
26287 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26288 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26289 if test $ac_cv_sizeof_void_p -ge 8 ; then
26292 # Check whether --enable-float8-byval was given.
26293 if test "${enable_float8_byval+set}" = set; then
26294 enableval=$enable_float8_byval;
26303 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26304 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26305 { (exit 1); exit 1; }; }
26310 enable_float8_byval=yes
26318 # Check whether --enable-float8-byval was given.
26319 if test "${enable_float8_byval+set}" = set; then
26320 enableval=$enable_float8_byval;
26329 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26330 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26331 { (exit 1); exit 1; }; }
26336 enable_float8_byval=no
26341 if test "$enable_float8_byval" = yes ; then
26342 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26343 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26344 { (exit 1); exit 1; }; }
26347 if test "$enable_float8_byval" = yes ; then
26349 cat >>confdefs.h <<\_ACEOF
26350 #define USE_FLOAT8_BYVAL 1
26353 float8passbyval=true
26355 float8passbyval=false
26357 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26358 $as_echo "$enable_float8_byval" >&6; }
26360 cat >>confdefs.h <<_ACEOF
26361 #define FLOAT8PASSBYVAL $float8passbyval
26365 # Determine memory alignment requirements for the basic C data types.
26367 # The cast to long int works around a bug in the HP C Compiler,
26368 # see AC_CHECK_SIZEOF for more information.
26369 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26370 $as_echo_n "checking alignment of short... " >&6; }
26371 if test "${ac_cv_alignof_short+set}" = set; then
26372 $as_echo_n "(cached) " >&6
26374 if test "$cross_compiling" = yes; then
26375 # Depending upon the size, compute the lo and hi bounds.
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26382 $ac_includes_default
26384 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26386 typedef struct { char x; short y; } ac__type_alignof_;
26390 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26397 rm -f conftest.$ac_objext
26398 if { (ac_try="$ac_compile"
26399 case "(($ac_try" in
26400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401 *) ac_try_echo=$ac_try;;
26403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26404 $as_echo "$ac_try_echo") >&5
26405 (eval "$ac_compile") 2>conftest.er1
26407 grep -v '^ *+' conftest.er1 >conftest.err
26409 cat conftest.err >&5
26410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } && {
26412 test -z "$ac_c_werror_flag" ||
26413 test ! -s conftest.err
26414 } && test -s conftest.$ac_objext; then
26417 cat >conftest.$ac_ext <<_ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 $ac_includes_default
26425 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26427 typedef struct { char x; short y; } ac__type_alignof_;
26431 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26438 rm -f conftest.$ac_objext
26439 if { (ac_try="$ac_compile"
26440 case "(($ac_try" in
26441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442 *) ac_try_echo=$ac_try;;
26444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26445 $as_echo "$ac_try_echo") >&5
26446 (eval "$ac_compile") 2>conftest.er1
26448 grep -v '^ *+' conftest.er1 >conftest.err
26450 cat conftest.err >&5
26451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } && {
26453 test -z "$ac_c_werror_flag" ||
26454 test ! -s conftest.err
26455 } && test -s conftest.$ac_objext; then
26456 ac_hi=$ac_mid; break
26458 $as_echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26461 ac_lo=`expr $ac_mid + 1`
26462 if test $ac_lo -le $ac_mid; then
26466 ac_mid=`expr 2 '*' $ac_mid + 1`
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472 $as_echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26475 cat >conftest.$ac_ext <<_ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26481 $ac_includes_default
26483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26485 typedef struct { char x; short y; } ac__type_alignof_;
26489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500 *) ac_try_echo=$ac_try;;
26502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26503 $as_echo "$ac_try_echo") >&5
26504 (eval "$ac_compile") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1 >conftest.err
26508 cat conftest.err >&5
26509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest.$ac_objext; then
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 $ac_includes_default
26524 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26526 typedef struct { char x; short y; } ac__type_alignof_;
26530 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26537 rm -f conftest.$ac_objext
26538 if { (ac_try="$ac_compile"
26539 case "(($ac_try" in
26540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26541 *) ac_try_echo=$ac_try;;
26543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26544 $as_echo "$ac_try_echo") >&5
26545 (eval "$ac_compile") 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest.$ac_objext; then
26555 ac_lo=$ac_mid; break
26557 $as_echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26560 ac_hi=`expr '(' $ac_mid ')' - 1`
26561 if test $ac_mid -le $ac_hi; then
26565 ac_mid=`expr 2 '*' $ac_mid`
26568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 $as_echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26581 # Binary search between lo and hi bounds.
26582 while test "x$ac_lo" != "x$ac_hi"; do
26583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 $ac_includes_default
26592 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26594 typedef struct { char x; short y; } ac__type_alignof_;
26598 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26605 rm -f conftest.$ac_objext
26606 if { (ac_try="$ac_compile"
26607 case "(($ac_try" in
26608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609 *) ac_try_echo=$ac_try;;
26611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26612 $as_echo "$ac_try_echo") >&5
26613 (eval "$ac_compile") 2>conftest.er1
26615 grep -v '^ *+' conftest.er1 >conftest.err
26617 cat conftest.err >&5
26618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } && {
26620 test -z "$ac_c_werror_flag" ||
26621 test ! -s conftest.err
26622 } && test -s conftest.$ac_objext; then
26625 $as_echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26628 ac_lo=`expr '(' $ac_mid ')' + 1`
26631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26634 ?*) ac_cv_alignof_short=$ac_lo;;
26635 '') if test "$ac_cv_type_short" = yes; then
26636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26638 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26639 See \`config.log' for more details." >&5
26640 $as_echo "$as_me: error: cannot compute alignment of short
26641 See \`config.log' for more details." >&2;}
26642 { (exit 77); exit 77; }; }; }
26644 ac_cv_alignof_short=0
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 $ac_includes_default
26656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26658 typedef struct { char x; short y; } ac__type_alignof_;
26659 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26660 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26662 #include <stdlib.h>
26667 FILE *f = fopen ("conftest.val", "w");
26670 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26672 long int i = longval ();
26673 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26675 fprintf (f, "%ld", i);
26679 unsigned long int i = ulongval ();
26680 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26682 fprintf (f, "%lu", i);
26684 /* Do not output a trailing newline, as this causes \r\n confusion
26685 on some platforms. */
26686 return ferror (f) || fclose (f) != 0;
26692 rm -f conftest$ac_exeext
26693 if { (ac_try="$ac_link"
26694 case "(($ac_try" in
26695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26696 *) ac_try_echo=$ac_try;;
26698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26699 $as_echo "$ac_try_echo") >&5
26700 (eval "$ac_link") 2>&5
26702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26704 { (case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26709 $as_echo "$ac_try_echo") >&5
26710 (eval "$ac_try") 2>&5
26712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26714 ac_cv_alignof_short=`cat conftest.val`
26716 $as_echo "$as_me: program exited with status $ac_status" >&5
26717 $as_echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26720 ( exit $ac_status )
26721 if test "$ac_cv_type_short" = yes; then
26722 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26724 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26725 See \`config.log' for more details." >&5
26726 $as_echo "$as_me: error: cannot compute alignment of short
26727 See \`config.log' for more details." >&2;}
26728 { (exit 77); exit 77; }; }; }
26730 ac_cv_alignof_short=0
26733 rm -rf conftest.dSYM
26734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26738 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26739 $as_echo "$ac_cv_alignof_short" >&6; }
26743 cat >>confdefs.h <<_ACEOF
26744 #define ALIGNOF_SHORT $ac_cv_alignof_short
26748 # The cast to long int works around a bug in the HP C Compiler,
26749 # see AC_CHECK_SIZEOF for more information.
26750 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26751 $as_echo_n "checking alignment of int... " >&6; }
26752 if test "${ac_cv_alignof_int+set}" = set; then
26753 $as_echo_n "(cached) " >&6
26755 if test "$cross_compiling" = yes; then
26756 # Depending upon the size, compute the lo and hi bounds.
26757 cat >conftest.$ac_ext <<_ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h. */
26763 $ac_includes_default
26765 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26767 typedef struct { char x; int y; } ac__type_alignof_;
26771 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26778 rm -f conftest.$ac_objext
26779 if { (ac_try="$ac_compile"
26780 case "(($ac_try" in
26781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782 *) ac_try_echo=$ac_try;;
26784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26785 $as_echo "$ac_try_echo") >&5
26786 (eval "$ac_compile") 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } && {
26793 test -z "$ac_c_werror_flag" ||
26794 test ! -s conftest.err
26795 } && test -s conftest.$ac_objext; then
26798 cat >conftest.$ac_ext <<_ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h. */
26804 $ac_includes_default
26806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26808 typedef struct { char x; int y; } ac__type_alignof_;
26812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26826 $as_echo "$ac_try_echo") >&5
26827 (eval "$ac_compile") 2>conftest.er1
26829 grep -v '^ *+' conftest.er1 >conftest.err
26831 cat conftest.err >&5
26832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } && {
26834 test -z "$ac_c_werror_flag" ||
26835 test ! -s conftest.err
26836 } && test -s conftest.$ac_objext; then
26837 ac_hi=$ac_mid; break
26839 $as_echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26842 ac_lo=`expr $ac_mid + 1`
26843 if test $ac_lo -le $ac_mid; then
26847 ac_mid=`expr 2 '*' $ac_mid + 1`
26850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26853 $as_echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 cat >conftest.$ac_ext <<_ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26862 $ac_includes_default
26864 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26866 typedef struct { char x; int y; } ac__type_alignof_;
26870 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26884 $as_echo "$ac_try_echo") >&5
26885 (eval "$ac_compile") 2>conftest.er1
26887 grep -v '^ *+' conftest.er1 >conftest.err
26889 cat conftest.err >&5
26890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); } && {
26892 test -z "$ac_c_werror_flag" ||
26893 test ! -s conftest.err
26894 } && test -s conftest.$ac_objext; then
26897 cat >conftest.$ac_ext <<_ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 $ac_includes_default
26905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26907 typedef struct { char x; int y; } ac__type_alignof_;
26911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26918 rm -f conftest.$ac_objext
26919 if { (ac_try="$ac_compile"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26925 $as_echo "$ac_try_echo") >&5
26926 (eval "$ac_compile") 2>conftest.er1
26928 grep -v '^ *+' conftest.er1 >conftest.err
26930 cat conftest.err >&5
26931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && {
26933 test -z "$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26935 } && test -s conftest.$ac_objext; then
26936 ac_lo=$ac_mid; break
26938 $as_echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_hi=`expr '(' $ac_mid ')' - 1`
26942 if test $ac_mid -le $ac_hi; then
26946 ac_mid=`expr 2 '*' $ac_mid`
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 # Binary search between lo and hi bounds.
26963 while test "x$ac_lo" != "x$ac_hi"; do
26964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26971 $ac_includes_default
26973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26975 typedef struct { char x; int y; } ac__type_alignof_;
26979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990 *) ac_try_echo=$ac_try;;
26992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26993 $as_echo "$ac_try_echo") >&5
26994 (eval "$ac_compile") 2>conftest.er1
26996 grep -v '^ *+' conftest.er1 >conftest.err
26998 cat conftest.err >&5
26999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } && {
27001 test -z "$ac_c_werror_flag" ||
27002 test ! -s conftest.err
27003 } && test -s conftest.$ac_objext; then
27006 $as_echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27009 ac_lo=`expr '(' $ac_mid ')' + 1`
27012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015 ?*) ac_cv_alignof_int=$ac_lo;;
27016 '') if test "$ac_cv_type_int" = yes; then
27017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27019 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27020 See \`config.log' for more details." >&5
27021 $as_echo "$as_me: error: cannot compute alignment of int
27022 See \`config.log' for more details." >&2;}
27023 { (exit 77); exit 77; }; }; }
27025 ac_cv_alignof_int=0
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 $ac_includes_default
27037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27039 typedef struct { char x; int y; } ac__type_alignof_;
27040 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27041 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27043 #include <stdlib.h>
27048 FILE *f = fopen ("conftest.val", "w");
27051 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27053 long int i = longval ();
27054 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27056 fprintf (f, "%ld", i);
27060 unsigned long int i = ulongval ();
27061 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27063 fprintf (f, "%lu", i);
27065 /* Do not output a trailing newline, as this causes \r\n confusion
27066 on some platforms. */
27067 return ferror (f) || fclose (f) != 0;
27073 rm -f conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081 (eval "$ac_link") 2>&5
27083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27085 { (case "(($ac_try" in
27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087 *) ac_try_echo=$ac_try;;
27089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27090 $as_echo "$ac_try_echo") >&5
27091 (eval "$ac_try") 2>&5
27093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 ac_cv_alignof_int=`cat conftest.val`
27097 $as_echo "$as_me: program exited with status $ac_status" >&5
27098 $as_echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ( exit $ac_status )
27102 if test "$ac_cv_type_int" = yes; then
27103 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27106 See \`config.log' for more details." >&5
27107 $as_echo "$as_me: error: cannot compute alignment of int
27108 See \`config.log' for more details." >&2;}
27109 { (exit 77); exit 77; }; }; }
27111 ac_cv_alignof_int=0
27114 rm -rf conftest.dSYM
27115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27119 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
27120 $as_echo "$ac_cv_alignof_int" >&6; }
27124 cat >>confdefs.h <<_ACEOF
27125 #define ALIGNOF_INT $ac_cv_alignof_int
27129 # The cast to long int works around a bug in the HP C Compiler,
27130 # see AC_CHECK_SIZEOF for more information.
27131 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
27132 $as_echo_n "checking alignment of long... " >&6; }
27133 if test "${ac_cv_alignof_long+set}" = set; then
27134 $as_echo_n "(cached) " >&6
27136 if test "$cross_compiling" = yes; then
27137 # Depending upon the size, compute the lo and hi bounds.
27138 cat >conftest.$ac_ext <<_ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h. */
27144 $ac_includes_default
27146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27148 typedef struct { char x; long y; } ac__type_alignof_;
27152 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27159 rm -f conftest.$ac_objext
27160 if { (ac_try="$ac_compile"
27161 case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27166 $as_echo "$ac_try_echo") >&5
27167 (eval "$ac_compile") 2>conftest.er1
27169 grep -v '^ *+' conftest.er1 >conftest.err
27171 cat conftest.err >&5
27172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest.$ac_objext; then
27179 cat >conftest.$ac_ext <<_ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27185 $ac_includes_default
27187 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27189 typedef struct { char x; long y; } ac__type_alignof_;
27193 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27200 rm -f conftest.$ac_objext
27201 if { (ac_try="$ac_compile"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27207 $as_echo "$ac_try_echo") >&5
27208 (eval "$ac_compile") 2>conftest.er1
27210 grep -v '^ *+' conftest.er1 >conftest.err
27212 cat conftest.err >&5
27213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } && {
27215 test -z "$ac_c_werror_flag" ||
27216 test ! -s conftest.err
27217 } && test -s conftest.$ac_objext; then
27218 ac_hi=$ac_mid; break
27220 $as_echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 ac_lo=`expr $ac_mid + 1`
27224 if test $ac_lo -le $ac_mid; then
27228 ac_mid=`expr 2 '*' $ac_mid + 1`
27231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 $as_echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27243 $ac_includes_default
27245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27247 typedef struct { char x; long y; } ac__type_alignof_;
27251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27265 $as_echo "$ac_try_echo") >&5
27266 (eval "$ac_compile") 2>conftest.er1
27268 grep -v '^ *+' conftest.er1 >conftest.err
27270 cat conftest.err >&5
27271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } && {
27273 test -z "$ac_c_werror_flag" ||
27274 test ! -s conftest.err
27275 } && test -s conftest.$ac_objext; then
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284 $ac_includes_default
27286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27288 typedef struct { char x; long y; } ac__type_alignof_;
27292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27306 $as_echo "$ac_try_echo") >&5
27307 (eval "$ac_compile") 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } && {
27314 test -z "$ac_c_werror_flag" ||
27315 test ! -s conftest.err
27316 } && test -s conftest.$ac_objext; then
27317 ac_lo=$ac_mid; break
27319 $as_echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ac_hi=`expr '(' $ac_mid ')' - 1`
27323 if test $ac_mid -le $ac_hi; then
27327 ac_mid=`expr 2 '*' $ac_mid`
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27333 $as_echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343 # Binary search between lo and hi bounds.
27344 while test "x$ac_lo" != "x$ac_hi"; do
27345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27346 cat >conftest.$ac_ext <<_ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h. */
27352 $ac_includes_default
27354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27356 typedef struct { char x; long y; } ac__type_alignof_;
27360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27367 rm -f conftest.$ac_objext
27368 if { (ac_try="$ac_compile"
27369 case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27374 $as_echo "$ac_try_echo") >&5
27375 (eval "$ac_compile") 2>conftest.er1
27377 grep -v '^ *+' conftest.er1 >conftest.err
27379 cat conftest.err >&5
27380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } && {
27382 test -z "$ac_c_werror_flag" ||
27383 test ! -s conftest.err
27384 } && test -s conftest.$ac_objext; then
27387 $as_echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ac_lo=`expr '(' $ac_mid ')' + 1`
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396 ?*) ac_cv_alignof_long=$ac_lo;;
27397 '') if test "$ac_cv_type_long" = yes; then
27398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27400 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27401 See \`config.log' for more details." >&5
27402 $as_echo "$as_me: error: cannot compute alignment of long
27403 See \`config.log' for more details." >&2;}
27404 { (exit 77); exit 77; }; }; }
27406 ac_cv_alignof_long=0
27410 cat >conftest.$ac_ext <<_ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27416 $ac_includes_default
27418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27420 typedef struct { char x; long y; } ac__type_alignof_;
27421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27424 #include <stdlib.h>
27429 FILE *f = fopen ("conftest.val", "w");
27432 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27434 long int i = longval ();
27435 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27437 fprintf (f, "%ld", i);
27441 unsigned long int i = ulongval ();
27442 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27444 fprintf (f, "%lu", i);
27446 /* Do not output a trailing newline, as this causes \r\n confusion
27447 on some platforms. */
27448 return ferror (f) || fclose (f) != 0;
27454 rm -f conftest$ac_exeext
27455 if { (ac_try="$ac_link"
27456 case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27461 $as_echo "$ac_try_echo") >&5
27462 (eval "$ac_link") 2>&5
27464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27471 $as_echo "$ac_try_echo") >&5
27472 (eval "$ac_try") 2>&5
27474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_cv_alignof_long=`cat conftest.val`
27478 $as_echo "$as_me: program exited with status $ac_status" >&5
27479 $as_echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ( exit $ac_status )
27483 if test "$ac_cv_type_long" = yes; then
27484 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27486 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27487 See \`config.log' for more details." >&5
27488 $as_echo "$as_me: error: cannot compute alignment of long
27489 See \`config.log' for more details." >&2;}
27490 { (exit 77); exit 77; }; }; }
27492 ac_cv_alignof_long=0
27495 rm -rf conftest.dSYM
27496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27500 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27501 $as_echo "$ac_cv_alignof_long" >&6; }
27505 cat >>confdefs.h <<_ACEOF
27506 #define ALIGNOF_LONG $ac_cv_alignof_long
27510 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27511 # The cast to long int works around a bug in the HP C Compiler,
27512 # see AC_CHECK_SIZEOF for more information.
27513 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27514 $as_echo_n "checking alignment of long long int... " >&6; }
27515 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27516 $as_echo_n "(cached) " >&6
27518 if test "$cross_compiling" = yes; then
27519 # Depending upon the size, compute the lo and hi bounds.
27520 cat >conftest.$ac_ext <<_ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27526 $ac_includes_default
27528 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27530 typedef struct { char x; long long int y; } ac__type_alignof_;
27534 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27541 rm -f conftest.$ac_objext
27542 if { (ac_try="$ac_compile"
27543 case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27548 $as_echo "$ac_try_echo") >&5
27549 (eval "$ac_compile") 2>conftest.er1
27551 grep -v '^ *+' conftest.er1 >conftest.err
27553 cat conftest.err >&5
27554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); } && {
27556 test -z "$ac_c_werror_flag" ||
27557 test ! -s conftest.err
27558 } && test -s conftest.$ac_objext; then
27561 cat >conftest.$ac_ext <<_ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h. */
27567 $ac_includes_default
27569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27571 typedef struct { char x; long long int y; } ac__type_alignof_;
27575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27589 $as_echo "$ac_try_echo") >&5
27590 (eval "$ac_compile") 2>conftest.er1
27592 grep -v '^ *+' conftest.er1 >conftest.err
27594 cat conftest.err >&5
27595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } && {
27597 test -z "$ac_c_werror_flag" ||
27598 test ! -s conftest.err
27599 } && test -s conftest.$ac_objext; then
27600 ac_hi=$ac_mid; break
27602 $as_echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 ac_lo=`expr $ac_mid + 1`
27606 if test $ac_lo -le $ac_mid; then
27610 ac_mid=`expr 2 '*' $ac_mid + 1`
27613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27616 $as_echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 cat >conftest.$ac_ext <<_ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h. */
27625 $ac_includes_default
27627 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27629 typedef struct { char x; long long int y; } ac__type_alignof_;
27633 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27647 $as_echo "$ac_try_echo") >&5
27648 (eval "$ac_compile") 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } && {
27655 test -z "$ac_c_werror_flag" ||
27656 test ! -s conftest.err
27657 } && test -s conftest.$ac_objext; then
27660 cat >conftest.$ac_ext <<_ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h. */
27666 $ac_includes_default
27668 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27670 typedef struct { char x; long long int y; } ac__type_alignof_;
27674 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27681 rm -f conftest.$ac_objext
27682 if { (ac_try="$ac_compile"
27683 case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27688 $as_echo "$ac_try_echo") >&5
27689 (eval "$ac_compile") 2>conftest.er1
27691 grep -v '^ *+' conftest.er1 >conftest.err
27693 cat conftest.err >&5
27694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } && {
27696 test -z "$ac_c_werror_flag" ||
27697 test ! -s conftest.err
27698 } && test -s conftest.$ac_objext; then
27699 ac_lo=$ac_mid; break
27701 $as_echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27704 ac_hi=`expr '(' $ac_mid ')' - 1`
27705 if test $ac_mid -le $ac_hi; then
27709 ac_mid=`expr 2 '*' $ac_mid`
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 $as_echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 # Binary search between lo and hi bounds.
27726 while test "x$ac_lo" != "x$ac_hi"; do
27727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27728 cat >conftest.$ac_ext <<_ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27736 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27738 typedef struct { char x; long long int y; } ac__type_alignof_;
27742 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757 (eval "$ac_compile") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1 >conftest.err
27761 cat conftest.err >&5
27762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } && {
27764 test -z "$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 } && test -s conftest.$ac_objext; then
27769 $as_echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27772 ac_lo=`expr '(' $ac_mid ')' + 1`
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27778 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27779 '') if test "$ac_cv_type_long_long_int" = yes; then
27780 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27782 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27783 See \`config.log' for more details." >&5
27784 $as_echo "$as_me: error: cannot compute alignment of long long int
27785 See \`config.log' for more details." >&2;}
27786 { (exit 77); exit 77; }; }; }
27788 ac_cv_alignof_long_long_int=0
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 $ac_includes_default
27800 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27802 typedef struct { char x; long long int y; } ac__type_alignof_;
27803 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27804 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27806 #include <stdlib.h>
27811 FILE *f = fopen ("conftest.val", "w");
27814 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27816 long int i = longval ();
27817 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27819 fprintf (f, "%ld", i);
27823 unsigned long int i = ulongval ();
27824 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27826 fprintf (f, "%lu", i);
27828 /* Do not output a trailing newline, as this causes \r\n confusion
27829 on some platforms. */
27830 return ferror (f) || fclose (f) != 0;
27836 rm -f conftest$ac_exeext
27837 if { (ac_try="$ac_link"
27838 case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27843 $as_echo "$ac_try_echo") >&5
27844 (eval "$ac_link") 2>&5
27846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27848 { (case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27853 $as_echo "$ac_try_echo") >&5
27854 (eval "$ac_try") 2>&5
27856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; }; then
27858 ac_cv_alignof_long_long_int=`cat conftest.val`
27860 $as_echo "$as_me: program exited with status $ac_status" >&5
27861 $as_echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27864 ( exit $ac_status )
27865 if test "$ac_cv_type_long_long_int" = yes; then
27866 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27868 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27869 See \`config.log' for more details." >&5
27870 $as_echo "$as_me: error: cannot compute alignment of long long int
27871 See \`config.log' for more details." >&2;}
27872 { (exit 77); exit 77; }; }; }
27874 ac_cv_alignof_long_long_int=0
27877 rm -rf conftest.dSYM
27878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27882 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27883 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27887 cat >>confdefs.h <<_ACEOF
27888 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27893 # The cast to long int works around a bug in the HP C Compiler,
27894 # see AC_CHECK_SIZEOF for more information.
27895 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27896 $as_echo_n "checking alignment of double... " >&6; }
27897 if test "${ac_cv_alignof_double+set}" = set; then
27898 $as_echo_n "(cached) " >&6
27900 if test "$cross_compiling" = yes; then
27901 # Depending upon the size, compute the lo and hi bounds.
27902 cat >conftest.$ac_ext <<_ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27908 $ac_includes_default
27910 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27912 typedef struct { char x; double y; } ac__type_alignof_;
27916 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27923 rm -f conftest.$ac_objext
27924 if { (ac_try="$ac_compile"
27925 case "(($ac_try" in
27926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927 *) ac_try_echo=$ac_try;;
27929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27930 $as_echo "$ac_try_echo") >&5
27931 (eval "$ac_compile") 2>conftest.er1
27933 grep -v '^ *+' conftest.er1 >conftest.err
27935 cat conftest.err >&5
27936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && {
27938 test -z "$ac_c_werror_flag" ||
27939 test ! -s conftest.err
27940 } && test -s conftest.$ac_objext; then
27943 cat >conftest.$ac_ext <<_ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27949 $ac_includes_default
27951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27953 typedef struct { char x; double y; } ac__type_alignof_;
27957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27964 rm -f conftest.$ac_objext
27965 if { (ac_try="$ac_compile"
27966 case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971 $as_echo "$ac_try_echo") >&5
27972 (eval "$ac_compile") 2>conftest.er1
27974 grep -v '^ *+' conftest.er1 >conftest.err
27976 cat conftest.err >&5
27977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } && {
27979 test -z "$ac_c_werror_flag" ||
27980 test ! -s conftest.err
27981 } && test -s conftest.$ac_objext; then
27982 ac_hi=$ac_mid; break
27984 $as_echo "$as_me: failed program was:" >&5
27985 sed 's/^/| /' conftest.$ac_ext >&5
27987 ac_lo=`expr $ac_mid + 1`
27988 if test $ac_lo -le $ac_mid; then
27992 ac_mid=`expr 2 '*' $ac_mid + 1`
27995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 $as_echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 cat >conftest.$ac_ext <<_ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h. */
28007 $ac_includes_default
28009 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28011 typedef struct { char x; double y; } ac__type_alignof_;
28015 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
28022 rm -f conftest.$ac_objext
28023 if { (ac_try="$ac_compile"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030 (eval "$ac_compile") 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } && {
28037 test -z "$ac_c_werror_flag" ||
28038 test ! -s conftest.err
28039 } && test -s conftest.$ac_objext; then
28042 cat >conftest.$ac_ext <<_ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h. */
28048 $ac_includes_default
28050 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28052 typedef struct { char x; double y; } ac__type_alignof_;
28056 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070 $as_echo "$ac_try_echo") >&5
28071 (eval "$ac_compile") 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } && {
28078 test -z "$ac_c_werror_flag" ||
28079 test ! -s conftest.err
28080 } && test -s conftest.$ac_objext; then
28081 ac_lo=$ac_mid; break
28083 $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 ac_hi=`expr '(' $ac_mid ')' - 1`
28087 if test $ac_mid -le $ac_hi; then
28091 ac_mid=`expr 2 '*' $ac_mid`
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28097 $as_echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107 # Binary search between lo and hi bounds.
28108 while test "x$ac_lo" != "x$ac_hi"; do
28109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28116 $ac_includes_default
28118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28120 typedef struct { char x; double y; } ac__type_alignof_;
28124 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
28131 rm -f conftest.$ac_objext
28132 if { (ac_try="$ac_compile"
28133 case "(($ac_try" in
28134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135 *) ac_try_echo=$ac_try;;
28137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28138 $as_echo "$ac_try_echo") >&5
28139 (eval "$ac_compile") 2>conftest.er1
28141 grep -v '^ *+' conftest.er1 >conftest.err
28143 cat conftest.err >&5
28144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && {
28146 test -z "$ac_c_werror_flag" ||
28147 test ! -s conftest.err
28148 } && test -s conftest.$ac_objext; then
28151 $as_echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 ac_lo=`expr '(' $ac_mid ')' + 1`
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160 ?*) ac_cv_alignof_double=$ac_lo;;
28161 '') if test "$ac_cv_type_double" = yes; then
28162 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28164 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28165 See \`config.log' for more details." >&5
28166 $as_echo "$as_me: error: cannot compute alignment of double
28167 See \`config.log' for more details." >&2;}
28168 { (exit 77); exit 77; }; }; }
28170 ac_cv_alignof_double=0
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 $ac_includes_default
28182 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28184 typedef struct { char x; double y; } ac__type_alignof_;
28185 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28186 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28188 #include <stdlib.h>
28193 FILE *f = fopen ("conftest.val", "w");
28196 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28198 long int i = longval ();
28199 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28201 fprintf (f, "%ld", i);
28205 unsigned long int i = ulongval ();
28206 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28208 fprintf (f, "%lu", i);
28210 /* Do not output a trailing newline, as this causes \r\n confusion
28211 on some platforms. */
28212 return ferror (f) || fclose (f) != 0;
28218 rm -f conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226 (eval "$ac_link") 2>&5
28228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28230 { (case "(($ac_try" in
28231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232 *) ac_try_echo=$ac_try;;
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236 (eval "$ac_try") 2>&5
28238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
28240 ac_cv_alignof_double=`cat conftest.val`
28242 $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28246 ( exit $ac_status )
28247 if test "$ac_cv_type_double" = yes; then
28248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28250 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28251 See \`config.log' for more details." >&5
28252 $as_echo "$as_me: error: cannot compute alignment of double
28253 See \`config.log' for more details." >&2;}
28254 { (exit 77); exit 77; }; }; }
28256 ac_cv_alignof_double=0
28259 rm -rf conftest.dSYM
28260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28264 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28265 $as_echo "$ac_cv_alignof_double" >&6; }
28269 cat >>confdefs.h <<_ACEOF
28270 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28275 # Compute maximum alignment of any basic type.
28276 # We assume long's alignment is at least as strong as char, short, or int;
28277 # but we must check long long (if it exists) and double.
28279 MAX_ALIGNOF=$ac_cv_alignof_long
28280 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28281 MAX_ALIGNOF=$ac_cv_alignof_double
28283 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28284 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28287 cat >>confdefs.h <<_ACEOF
28288 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28293 # Some platforms predefine the types int8, int16, etc. Only check
28294 # a (hopefully) representative subset.
28295 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28296 $as_echo_n "checking for int8... " >&6; }
28297 if test "${ac_cv_type_int8+set}" = set; then
28298 $as_echo_n "(cached) " >&6
28301 cat >conftest.$ac_ext <<_ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h. */
28318 rm -f conftest.$ac_objext
28319 if { (ac_try="$ac_compile"
28320 case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28325 $as_echo "$ac_try_echo") >&5
28326 (eval "$ac_compile") 2>conftest.er1
28328 grep -v '^ *+' conftest.er1 >conftest.err
28330 cat conftest.err >&5
28331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } && {
28333 test -z "$ac_c_werror_flag" ||
28334 test ! -s conftest.err
28335 } && test -s conftest.$ac_objext; then
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28347 if (sizeof ((int8)))
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28360 $as_echo "$ac_try_echo") >&5
28361 (eval "$ac_compile") 2>conftest.er1
28363 grep -v '^ *+' conftest.er1 >conftest.err
28365 cat conftest.err >&5
28366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } && {
28368 test -z "$ac_c_werror_flag" ||
28369 test ! -s conftest.err
28370 } && test -s conftest.$ac_objext; then
28373 $as_echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28376 ac_cv_type_int8=yes
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28381 $as_echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28390 $as_echo "$ac_cv_type_int8" >&6; }
28391 if test "x$ac_cv_type_int8" = x""yes; then
28393 cat >>confdefs.h <<_ACEOF
28394 #define HAVE_INT8 1
28399 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28400 $as_echo_n "checking for uint8... " >&6; }
28401 if test "${ac_cv_type_uint8+set}" = set; then
28402 $as_echo_n "(cached) " >&6
28404 ac_cv_type_uint8=no
28405 cat >conftest.$ac_ext <<_ACEOF
28408 cat confdefs.h >>conftest.$ac_ext
28409 cat >>conftest.$ac_ext <<_ACEOF
28410 /* end confdefs.h. */
28416 if (sizeof (uint8))
28422 rm -f conftest.$ac_objext
28423 if { (ac_try="$ac_compile"
28424 case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28429 $as_echo "$ac_try_echo") >&5
28430 (eval "$ac_compile") 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } && {
28437 test -z "$ac_c_werror_flag" ||
28438 test ! -s conftest.err
28439 } && test -s conftest.$ac_objext; then
28440 cat >conftest.$ac_ext <<_ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28451 if (sizeof ((uint8)))
28457 rm -f conftest.$ac_objext
28458 if { (ac_try="$ac_compile"
28459 case "(($ac_try" in
28460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461 *) ac_try_echo=$ac_try;;
28463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28464 $as_echo "$ac_try_echo") >&5
28465 (eval "$ac_compile") 2>conftest.er1
28467 grep -v '^ *+' conftest.er1 >conftest.err
28469 cat conftest.err >&5
28470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } && {
28472 test -z "$ac_c_werror_flag" ||
28473 test ! -s conftest.err
28474 } && test -s conftest.$ac_objext; then
28477 $as_echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28480 ac_cv_type_uint8=yes
28483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28485 $as_echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28493 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28494 $as_echo "$ac_cv_type_uint8" >&6; }
28495 if test "x$ac_cv_type_uint8" = x""yes; then
28497 cat >>confdefs.h <<_ACEOF
28498 #define HAVE_UINT8 1
28503 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28504 $as_echo_n "checking for int64... " >&6; }
28505 if test "${ac_cv_type_int64+set}" = set; then
28506 $as_echo_n "(cached) " >&6
28508 ac_cv_type_int64=no
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28520 if (sizeof (int64))
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28533 $as_echo "$ac_try_echo") >&5
28534 (eval "$ac_compile") 2>conftest.er1
28536 grep -v '^ *+' conftest.er1 >conftest.err
28538 cat conftest.err >&5
28539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } && {
28541 test -z "$ac_c_werror_flag" ||
28542 test ! -s conftest.err
28543 } && test -s conftest.$ac_objext; then
28544 cat >conftest.$ac_ext <<_ACEOF
28547 cat confdefs.h >>conftest.$ac_ext
28548 cat >>conftest.$ac_ext <<_ACEOF
28549 /* end confdefs.h. */
28555 if (sizeof ((int64)))
28561 rm -f conftest.$ac_objext
28562 if { (ac_try="$ac_compile"
28563 case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28568 $as_echo "$ac_try_echo") >&5
28569 (eval "$ac_compile") 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } && {
28576 test -z "$ac_c_werror_flag" ||
28577 test ! -s conftest.err
28578 } && test -s conftest.$ac_objext; then
28581 $as_echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28584 ac_cv_type_int64=yes
28587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28589 $as_echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28598 $as_echo "$ac_cv_type_int64" >&6; }
28599 if test "x$ac_cv_type_int64" = x""yes; then
28601 cat >>confdefs.h <<_ACEOF
28602 #define HAVE_INT64 1
28607 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28608 $as_echo_n "checking for uint64... " >&6; }
28609 if test "${ac_cv_type_uint64+set}" = set; then
28610 $as_echo_n "(cached) " >&6
28612 ac_cv_type_uint64=no
28613 cat >conftest.$ac_ext <<_ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h. */
28624 if (sizeof (uint64))
28630 rm -f conftest.$ac_objext
28631 if { (ac_try="$ac_compile"
28632 case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28637 $as_echo "$ac_try_echo") >&5
28638 (eval "$ac_compile") 2>conftest.er1
28640 grep -v '^ *+' conftest.er1 >conftest.err
28642 cat conftest.err >&5
28643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); } && {
28645 test -z "$ac_c_werror_flag" ||
28646 test ! -s conftest.err
28647 } && test -s conftest.$ac_objext; then
28648 cat >conftest.$ac_ext <<_ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28659 if (sizeof ((uint64)))
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
28667 case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28672 $as_echo "$ac_try_echo") >&5
28673 (eval "$ac_compile") 2>conftest.er1
28675 grep -v '^ *+' conftest.er1 >conftest.err
28677 cat conftest.err >&5
28678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } && {
28680 test -z "$ac_c_werror_flag" ||
28681 test ! -s conftest.err
28682 } && test -s conftest.$ac_objext; then
28685 $as_echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 ac_cv_type_uint64=yes
28691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28693 $as_echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28702 $as_echo "$ac_cv_type_uint64" >&6; }
28703 if test "x$ac_cv_type_uint64" = x""yes; then
28705 cat >>confdefs.h <<_ACEOF
28706 #define HAVE_UINT64 1
28713 # We also check for sig_atomic_t, which *should* be defined per ANSI
28714 # C, but is missing on some old platforms.
28715 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28716 $as_echo_n "checking for sig_atomic_t... " >&6; }
28717 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28718 $as_echo_n "(cached) " >&6
28720 ac_cv_type_sig_atomic_t=no
28721 cat >conftest.$ac_ext <<_ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h. */
28727 #include <signal.h>
28732 if (sizeof (sig_atomic_t))
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28745 $as_echo "$ac_try_echo") >&5
28746 (eval "$ac_compile") 2>conftest.er1
28748 grep -v '^ *+' conftest.er1 >conftest.err
28750 cat conftest.err >&5
28751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } && {
28753 test -z "$ac_c_werror_flag" ||
28754 test ! -s conftest.err
28755 } && test -s conftest.$ac_objext; then
28756 cat >conftest.$ac_ext <<_ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 #include <signal.h>
28767 if (sizeof ((sig_atomic_t)))
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28780 $as_echo "$ac_try_echo") >&5
28781 (eval "$ac_compile") 2>conftest.er1
28783 grep -v '^ *+' conftest.er1 >conftest.err
28785 cat conftest.err >&5
28786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } && {
28788 test -z "$ac_c_werror_flag" ||
28789 test ! -s conftest.err
28790 } && test -s conftest.$ac_objext; then
28793 $as_echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28796 ac_cv_type_sig_atomic_t=yes
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28801 $as_echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28810 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28811 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28813 cat >>confdefs.h <<_ACEOF
28814 #define HAVE_SIG_ATOMIC_T 1
28822 if test "$PORTNAME" != "win32"
28824 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28825 $as_echo_n "checking for POSIX signal interface... " >&6; }
28826 if test "${pgac_cv_func_posix_signals+set}" = set; then
28827 $as_echo_n "(cached) " >&6
28829 cat >conftest.$ac_ext <<_ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h. */
28835 #include <signal.h>
28840 struct sigaction act, oact;
28841 sigemptyset(&act.sa_mask);
28842 act.sa_flags = SA_RESTART;
28843 sigaction(0, &act, &oact);
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (ac_try="$ac_link"
28850 case "(($ac_try" in
28851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852 *) ac_try_echo=$ac_try;;
28854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28855 $as_echo "$ac_try_echo") >&5
28856 (eval "$ac_link") 2>conftest.er1
28858 grep -v '^ *+' conftest.er1 >conftest.err
28860 cat conftest.err >&5
28861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } && {
28863 test -z "$ac_c_werror_flag" ||
28864 test ! -s conftest.err
28865 } && test -s conftest$ac_exeext && {
28866 test "$cross_compiling" = yes ||
28867 $as_test_x conftest$ac_exeext
28869 pgac_cv_func_posix_signals=yes
28871 $as_echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28874 pgac_cv_func_posix_signals=no
28877 rm -rf conftest.dSYM
28878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28879 conftest$ac_exeext conftest.$ac_ext
28881 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28882 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28883 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28885 cat >>confdefs.h <<\_ACEOF
28886 #define HAVE_POSIX_SIGNALS 1
28890 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28892 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28893 { { $as_echo "$as_me:$LINENO: error:
28894 Thread-safety requires POSIX signals, which are not supported by this
28895 operating system; use --disable-thread-safety to disable thread safety." >&5
28896 $as_echo "$as_me: error:
28897 Thread-safety requires POSIX signals, which are not supported by this
28898 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28899 { (exit 1); exit 1; }; }
28903 # SunOS doesn't handle negative byte comparisons properly with +/- return
28904 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28905 $as_echo_n "checking for working memcmp... " >&6; }
28906 if test "${ac_cv_func_memcmp_working+set}" = set; then
28907 $as_echo_n "(cached) " >&6
28909 if test "$cross_compiling" = yes; then
28910 ac_cv_func_memcmp_working=no
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 $ac_includes_default
28923 /* Some versions of memcmp are not 8-bit clean. */
28924 char c0 = '\100', c1 = '\200', c2 = '\201';
28925 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28928 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28929 or more and with at least one buffer not starting on a 4-byte boundary.
28930 William Lewis provided this test program. */
28935 for (i = 0; i < 4; i++)
28939 strcpy (a, "--------01111111");
28940 strcpy (b, "--------10000000");
28941 if (memcmp (a, b, 16) >= 0)
28951 rm -f conftest$ac_exeext
28952 if { (ac_try="$ac_link"
28953 case "(($ac_try" in
28954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955 *) ac_try_echo=$ac_try;;
28957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28958 $as_echo "$ac_try_echo") >&5
28959 (eval "$ac_link") 2>&5
28961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28963 { (case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28968 $as_echo "$ac_try_echo") >&5
28969 (eval "$ac_try") 2>&5
28971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; }; then
28973 ac_cv_func_memcmp_working=yes
28975 $as_echo "$as_me: program exited with status $ac_status" >&5
28976 $as_echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ( exit $ac_status )
28980 ac_cv_func_memcmp_working=no
28982 rm -rf conftest.dSYM
28983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28988 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28989 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28990 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28991 *" memcmp.$ac_objext "* ) ;;
28992 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28999 # Select semaphore implementation type.
29000 if test "$PORTNAME" != "win32"; then
29001 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
29003 cat >>confdefs.h <<\_ACEOF
29004 #define USE_NAMED_POSIX_SEMAPHORES 1
29007 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29009 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
29011 cat >>confdefs.h <<\_ACEOF
29012 #define USE_UNNAMED_POSIX_SEMAPHORES 1
29015 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29018 cat >>confdefs.h <<\_ACEOF
29019 #define USE_SYSV_SEMAPHORES 1
29022 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
29027 cat >>confdefs.h <<\_ACEOF
29028 #define USE_WIN32_SEMAPHORES 1
29031 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
29035 # Select shared-memory implementation type.
29036 if test "$PORTNAME" != "win32"; then
29038 cat >>confdefs.h <<\_ACEOF
29039 #define USE_SYSV_SHARED_MEMORY 1
29042 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
29045 cat >>confdefs.h <<\_ACEOF
29046 #define USE_WIN32_SHARED_MEMORY 1
29049 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
29052 # Select latch implementation type.
29053 if test "$PORTNAME" != "win32"; then
29054 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
29056 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
29059 # If not set in template file, set bytes to use libc memset()
29060 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
29061 MEMSET_LOOP_LIMIT=1024
29064 cat >>confdefs.h <<_ACEOF
29065 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
29070 if test "$enable_nls" = yes ; then
29072 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
29073 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
29074 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29075 $as_echo_n "(cached) " >&6
29077 ac_func_search_save_LIBS=$LIBS
29078 cat >conftest.$ac_ext <<_ACEOF
29081 cat confdefs.h >>conftest.$ac_ext
29082 cat >>conftest.$ac_ext <<_ACEOF
29083 /* end confdefs.h. */
29085 /* Override any GCC internal prototype to avoid an error.
29086 Use char because int might match the return type of a GCC
29087 builtin and then its argument prototype would still apply. */
29091 char bind_textdomain_codeset ();
29095 return bind_textdomain_codeset ();
29100 for ac_lib in '' intl; do
29101 if test -z "$ac_lib"; then
29102 ac_res="none required"
29105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (ac_try="$ac_link"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29114 $as_echo "$ac_try_echo") >&5
29115 (eval "$ac_link") 2>conftest.er1
29117 grep -v '^ *+' conftest.er1 >conftest.err
29119 cat conftest.err >&5
29120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } && {
29122 test -z "$ac_c_werror_flag" ||
29123 test ! -s conftest.err
29124 } && test -s conftest$ac_exeext && {
29125 test "$cross_compiling" = yes ||
29126 $as_test_x conftest$ac_exeext
29128 ac_cv_search_bind_textdomain_codeset=$ac_res
29130 $as_echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29136 rm -rf conftest.dSYM
29137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29139 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29143 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29146 ac_cv_search_bind_textdomain_codeset=no
29148 rm conftest.$ac_ext
29149 LIBS=$ac_func_search_save_LIBS
29151 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
29152 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
29153 ac_res=$ac_cv_search_bind_textdomain_codeset
29154 if test "$ac_res" != no; then
29155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29158 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
29159 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
29160 { (exit 1); exit 1; }; }
29163 if test "${ac_cv_header_libintl_h+set}" = set; then
29164 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29165 $as_echo_n "checking for libintl.h... " >&6; }
29166 if test "${ac_cv_header_libintl_h+set}" = set; then
29167 $as_echo_n "(cached) " >&6
29169 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29170 $as_echo "$ac_cv_header_libintl_h" >&6; }
29172 # Is the header compilable?
29173 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
29174 $as_echo_n "checking libintl.h usability... " >&6; }
29175 cat >conftest.$ac_ext <<_ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29181 $ac_includes_default
29182 #include <libintl.h>
29184 rm -f conftest.$ac_objext
29185 if { (ac_try="$ac_compile"
29186 case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29191 $as_echo "$ac_try_echo") >&5
29192 (eval "$ac_compile") 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } && {
29199 test -z "$ac_c_werror_flag" ||
29200 test ! -s conftest.err
29201 } && test -s conftest.$ac_objext; then
29202 ac_header_compiler=yes
29204 $as_echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29207 ac_header_compiler=no
29210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29211 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29212 $as_echo "$ac_header_compiler" >&6; }
29214 # Is the header present?
29215 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29216 $as_echo_n "checking libintl.h presence... " >&6; }
29217 cat >conftest.$ac_ext <<_ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h. */
29223 #include <libintl.h>
29225 if { (ac_try="$ac_cpp conftest.$ac_ext"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29231 $as_echo "$ac_try_echo") >&5
29232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29234 grep -v '^ *+' conftest.er1 >conftest.err
29236 cat conftest.err >&5
29237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } >/dev/null && {
29239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29240 test ! -s conftest.err
29242 ac_header_preproc=yes
29244 $as_echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_header_preproc=no
29250 rm -f conftest.err conftest.$ac_ext
29251 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29252 $as_echo "$ac_header_preproc" >&6; }
29254 # So? What about this header?
29255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29257 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29258 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29259 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29260 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29261 ac_header_preproc=yes
29264 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29265 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29266 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
29267 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
29268 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29269 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29270 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
29271 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29272 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29273 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29274 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29275 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29277 ## ---------------------------------------- ##
29278 ## Report this to pgsql-bugs@postgresql.org ##
29279 ## ---------------------------------------- ##
29281 ) | sed "s/^/$as_me: WARNING: /" >&2
29284 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29285 $as_echo_n "checking for libintl.h... " >&6; }
29286 if test "${ac_cv_header_libintl_h+set}" = set; then
29287 $as_echo_n "(cached) " >&6
29289 ac_cv_header_libintl_h=$ac_header_preproc
29291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29292 $as_echo "$ac_cv_header_libintl_h" >&6; }
29295 if test "x$ac_cv_header_libintl_h" = x""yes; then
29298 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29299 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29300 { (exit 1); exit 1; }; }
29304 for ac_prog in msgfmt
29306 # Extract the first word of "$ac_prog", so it can be a program name with args.
29307 set dummy $ac_prog; ac_word=$2
29308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29309 $as_echo_n "checking for $ac_word... " >&6; }
29310 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29311 $as_echo_n "(cached) " >&6
29313 if test -n "$MSGFMT"; then
29314 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29317 for as_dir in $PATH
29320 test -z "$as_dir" && as_dir=.
29321 for ac_exec_ext in '' $ac_executable_extensions; do
29322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29323 ac_cv_prog_MSGFMT="$ac_prog"
29324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29333 MSGFMT=$ac_cv_prog_MSGFMT
29334 if test -n "$MSGFMT"; then
29335 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29336 $as_echo "$MSGFMT" >&6; }
29338 { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29343 test -n "$MSGFMT" && break
29346 if test -z "$MSGFMT"; then
29347 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29348 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29349 { (exit 1); exit 1; }; }
29351 { $as_echo "$as_me:$LINENO: checking for msgfmt flags" >&5
29352 $as_echo_n "checking for msgfmt flags... " >&6; }
29353 if test "${pgac_cv_msgfmt_flags+set}" = set; then
29354 $as_echo_n "(cached) " >&6
29356 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
29357 pgac_cv_msgfmt_flags=-c
29360 { $as_echo "$as_me:$LINENO: result: $pgac_cv_msgfmt_flags" >&5
29361 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
29362 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
29364 for ac_prog in msgmerge
29366 # Extract the first word of "$ac_prog", so it can be a program name with args.
29367 set dummy $ac_prog; ac_word=$2
29368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29369 $as_echo_n "checking for $ac_word... " >&6; }
29370 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29371 $as_echo_n "(cached) " >&6
29373 if test -n "$MSGMERGE"; then
29374 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29377 for as_dir in $PATH
29380 test -z "$as_dir" && as_dir=.
29381 for ac_exec_ext in '' $ac_executable_extensions; do
29382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29383 ac_cv_prog_MSGMERGE="$ac_prog"
29384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29393 MSGMERGE=$ac_cv_prog_MSGMERGE
29394 if test -n "$MSGMERGE"; then
29395 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29396 $as_echo "$MSGMERGE" >&6; }
29398 { $as_echo "$as_me:$LINENO: result: no" >&5
29399 $as_echo "no" >&6; }
29403 test -n "$MSGMERGE" && break
29406 for ac_prog in xgettext
29408 # Extract the first word of "$ac_prog", so it can be a program name with args.
29409 set dummy $ac_prog; ac_word=$2
29410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29411 $as_echo_n "checking for $ac_word... " >&6; }
29412 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29413 $as_echo_n "(cached) " >&6
29415 if test -n "$XGETTEXT"; then
29416 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29419 for as_dir in $PATH
29422 test -z "$as_dir" && as_dir=.
29423 for ac_exec_ext in '' $ac_executable_extensions; do
29424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29425 ac_cv_prog_XGETTEXT="$ac_prog"
29426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29435 XGETTEXT=$ac_cv_prog_XGETTEXT
29436 if test -n "$XGETTEXT"; then
29437 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29438 $as_echo "$XGETTEXT" >&6; }
29440 { $as_echo "$as_me:$LINENO: result: no" >&5
29441 $as_echo "no" >&6; }
29445 test -n "$XGETTEXT" && break
29451 # Check for Tcl configuration script tclConfig.sh
29452 if test "$with_tcl" = yes; then
29453 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29455 # Extract the first word of "$ac_prog", so it can be a program name with args.
29456 set dummy $ac_prog; ac_word=$2
29457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29458 $as_echo_n "checking for $ac_word... " >&6; }
29459 if test "${ac_cv_path_TCLSH+set}" = set; then
29460 $as_echo_n "(cached) " >&6
29464 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29468 for as_dir in $PATH
29471 test -z "$as_dir" && as_dir=.
29472 for ac_exec_ext in '' $ac_executable_extensions; do
29473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29474 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29485 TCLSH=$ac_cv_path_TCLSH
29486 if test -n "$TCLSH"; then
29487 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29488 $as_echo "$TCLSH" >&6; }
29490 { $as_echo "$as_me:$LINENO: result: no" >&5
29491 $as_echo "no" >&6; }
29495 test -n "$TCLSH" && break
29498 if test x"$TCLSH" = x""; then
29499 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29500 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29501 { (exit 1); exit 1; }; }
29504 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29505 $as_echo_n "checking for tclConfig.sh... " >&6; }
29506 # Let user override test
29507 if test -z "$TCL_CONFIG_SH"; then
29508 pgac_test_dirs="$with_tclconfig"
29510 set X $pgac_test_dirs; shift
29511 if test $# -eq 0; then
29512 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29513 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29514 { (exit 1); exit 1; }; }
29515 set X `echo 'puts $auto_path' | $TCLSH`; shift
29519 if test -r "$pgac_dir/tclConfig.sh"; then
29520 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29526 if test -z "$TCL_CONFIG_SH"; then
29527 { $as_echo "$as_me:$LINENO: result: no" >&5
29528 $as_echo "no" >&6; }
29529 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29530 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29531 { (exit 1); exit 1; }; }
29533 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29534 $as_echo "$TCL_CONFIG_SH" >&6; }
29540 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29541 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29542 eval TCL_LIBS=\"$TCL_LIBS\"
29543 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29544 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29546 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29547 ac_save_CPPFLAGS=$CPPFLAGS
29548 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29549 if test "${ac_cv_header_tcl_h+set}" = set; then
29550 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29551 $as_echo_n "checking for tcl.h... " >&6; }
29552 if test "${ac_cv_header_tcl_h+set}" = set; then
29553 $as_echo_n "(cached) " >&6
29555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29556 $as_echo "$ac_cv_header_tcl_h" >&6; }
29558 # Is the header compilable?
29559 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29560 $as_echo_n "checking tcl.h usability... " >&6; }
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 $ac_includes_default
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29577 $as_echo "$ac_try_echo") >&5
29578 (eval "$ac_compile") 2>conftest.er1
29580 grep -v '^ *+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } && {
29585 test -z "$ac_c_werror_flag" ||
29586 test ! -s conftest.err
29587 } && test -s conftest.$ac_objext; then
29588 ac_header_compiler=yes
29590 $as_echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ac_header_compiler=no
29596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29598 $as_echo "$ac_header_compiler" >&6; }
29600 # Is the header present?
29601 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29602 $as_echo_n "checking tcl.h presence... " >&6; }
29603 cat >conftest.$ac_ext <<_ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29611 if { (ac_try="$ac_cpp conftest.$ac_ext"
29612 case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29617 $as_echo "$ac_try_echo") >&5
29618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29620 grep -v '^ *+' conftest.er1 >conftest.err
29622 cat conftest.err >&5
29623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } >/dev/null && {
29625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29626 test ! -s conftest.err
29628 ac_header_preproc=yes
29630 $as_echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_header_preproc=no
29636 rm -f conftest.err conftest.$ac_ext
29637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29638 $as_echo "$ac_header_preproc" >&6; }
29640 # So? What about this header?
29641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29643 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29644 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29645 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29646 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29647 ac_header_preproc=yes
29650 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29651 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29652 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29653 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29654 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29655 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29656 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29657 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29658 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29659 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29660 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29661 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29663 ## ---------------------------------------- ##
29664 ## Report this to pgsql-bugs@postgresql.org ##
29665 ## ---------------------------------------- ##
29667 ) | sed "s/^/$as_me: WARNING: /" >&2
29670 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29671 $as_echo_n "checking for tcl.h... " >&6; }
29672 if test "${ac_cv_header_tcl_h+set}" = set; then
29673 $as_echo_n "(cached) " >&6
29675 ac_cv_header_tcl_h=$ac_header_preproc
29677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29678 $as_echo "$ac_cv_header_tcl_h" >&6; }
29681 if test "x$ac_cv_header_tcl_h" = x""yes; then
29684 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29685 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29686 { (exit 1); exit 1; }; }
29690 CPPFLAGS=$ac_save_CPPFLAGS
29693 # check for <perl.h>
29694 if test "$with_perl" = yes; then
29695 ac_save_CPPFLAGS=$CPPFLAGS
29696 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29697 { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29698 $as_echo_n "checking for perl.h... " >&6; }
29699 if test "${ac_cv_header_perl_h+set}" = set; then
29700 $as_echo_n "(cached) " >&6
29702 cat >conftest.$ac_ext <<_ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h. */
29708 #include <EXTERN.h>
29712 rm -f conftest.$ac_objext
29713 if { (ac_try="$ac_compile"
29714 case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720 (eval "$ac_compile") 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } && {
29727 test -z "$ac_c_werror_flag" ||
29728 test ! -s conftest.err
29729 } && test -s conftest.$ac_objext; then
29730 ac_cv_header_perl_h=yes
29732 $as_echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29735 ac_cv_header_perl_h=no
29738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29741 $as_echo "$ac_cv_header_perl_h" >&6; }
29742 if test "x$ac_cv_header_perl_h" = x""yes; then
29745 { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29746 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29747 { (exit 1); exit 1; }; }
29751 # While we're at it, check that we can link to libperl.
29752 # On most platforms, if perl.h is there then libperl.so will be too, but at
29753 # this writing Debian packages them separately. There is no known reason to
29754 # waste cycles on separate probes for the Tcl or Python libraries, though.
29755 pgac_save_LIBS=$LIBS
29756 LIBS="$perl_embed_ldflags"
29757 { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29758 $as_echo_n "checking for libperl... " >&6; }
29759 cat >conftest.$ac_ext <<_ACEOF
29762 cat confdefs.h >>conftest.$ac_ext
29763 cat >>conftest.$ac_ext <<_ACEOF
29764 /* end confdefs.h. */
29766 #include <EXTERN.h>
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (ac_try="$ac_link"
29779 case "(($ac_try" in
29780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781 *) ac_try_echo=$ac_try;;
29783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29784 $as_echo "$ac_try_echo") >&5
29785 (eval "$ac_link") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } && {
29792 test -z "$ac_c_werror_flag" ||
29793 test ! -s conftest.err
29794 } && test -s conftest$ac_exeext && {
29795 test "$cross_compiling" = yes ||
29796 $as_test_x conftest$ac_exeext
29798 { $as_echo "$as_me:$LINENO: result: yes" >&5
29799 $as_echo "yes" >&6; }
29801 $as_echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29804 { $as_echo "$as_me:$LINENO: result: no" >&5
29805 $as_echo "no" >&6; }
29806 { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29807 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29808 { (exit 1); exit 1; }; }
29811 rm -rf conftest.dSYM
29812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29813 conftest$ac_exeext conftest.$ac_ext
29814 LIBS=$pgac_save_LIBS
29815 CPPFLAGS=$ac_save_CPPFLAGS
29818 # check for <Python.h>
29819 if test "$with_python" = yes; then
29820 ac_save_CPPFLAGS=$CPPFLAGS
29821 CPPFLAGS="$python_includespec $CPPFLAGS"
29822 if test "${ac_cv_header_Python_h+set}" = set; then
29823 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29824 $as_echo_n "checking for Python.h... " >&6; }
29825 if test "${ac_cv_header_Python_h+set}" = set; then
29826 $as_echo_n "(cached) " >&6
29828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29829 $as_echo "$ac_cv_header_Python_h" >&6; }
29831 # Is the header compilable?
29832 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29833 $as_echo_n "checking Python.h usability... " >&6; }
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 $ac_includes_default
29841 #include <Python.h>
29843 rm -f conftest.$ac_objext
29844 if { (ac_try="$ac_compile"
29845 case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29850 $as_echo "$ac_try_echo") >&5
29851 (eval "$ac_compile") 2>conftest.er1
29853 grep -v '^ *+' conftest.er1 >conftest.err
29855 cat conftest.err >&5
29856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); } && {
29858 test -z "$ac_c_werror_flag" ||
29859 test ! -s conftest.err
29860 } && test -s conftest.$ac_objext; then
29861 ac_header_compiler=yes
29863 $as_echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866 ac_header_compiler=no
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29871 $as_echo "$ac_header_compiler" >&6; }
29873 # Is the header present?
29874 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29875 $as_echo_n "checking Python.h presence... " >&6; }
29876 cat >conftest.$ac_ext <<_ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h. */
29882 #include <Python.h>
29884 if { (ac_try="$ac_cpp conftest.$ac_ext"
29885 case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29890 $as_echo "$ac_try_echo") >&5
29891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29893 grep -v '^ *+' conftest.er1 >conftest.err
29895 cat conftest.err >&5
29896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } >/dev/null && {
29898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29899 test ! -s conftest.err
29901 ac_header_preproc=yes
29903 $as_echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29906 ac_header_preproc=no
29909 rm -f conftest.err conftest.$ac_ext
29910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29911 $as_echo "$ac_header_preproc" >&6; }
29913 # So? What about this header?
29914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29917 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29918 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29919 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29920 ac_header_preproc=yes
29923 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29924 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29925 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29926 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29927 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29928 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29929 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29930 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29931 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29932 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29933 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29934 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29936 ## ---------------------------------------- ##
29937 ## Report this to pgsql-bugs@postgresql.org ##
29938 ## ---------------------------------------- ##
29940 ) | sed "s/^/$as_me: WARNING: /" >&2
29943 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29944 $as_echo_n "checking for Python.h... " >&6; }
29945 if test "${ac_cv_header_Python_h+set}" = set; then
29946 $as_echo_n "(cached) " >&6
29948 ac_cv_header_Python_h=$ac_header_preproc
29950 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29951 $as_echo "$ac_cv_header_Python_h" >&6; }
29954 if test "x$ac_cv_header_Python_h" = x""yes; then
29957 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29958 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29959 { (exit 1); exit 1; }; }
29963 CPPFLAGS=$ac_save_CPPFLAGS
29967 # Check for DocBook and tools
29969 for ac_prog in onsgmls nsgmls
29971 # Extract the first word of "$ac_prog", so it can be a program name with args.
29972 set dummy $ac_prog; ac_word=$2
29973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29974 $as_echo_n "checking for $ac_word... " >&6; }
29975 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29976 $as_echo_n "(cached) " >&6
29978 if test -n "$NSGMLS"; then
29979 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29982 for as_dir in $PATH
29985 test -z "$as_dir" && as_dir=.
29986 for ac_exec_ext in '' $ac_executable_extensions; do
29987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29988 ac_cv_prog_NSGMLS="$ac_prog"
29989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29998 NSGMLS=$ac_cv_prog_NSGMLS
29999 if test -n "$NSGMLS"; then
30000 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
30001 $as_echo "$NSGMLS" >&6; }
30003 { $as_echo "$as_me:$LINENO: result: no" >&5
30004 $as_echo "no" >&6; }
30008 test -n "$NSGMLS" && break
30011 for ac_prog in openjade jade
30013 # Extract the first word of "$ac_prog", so it can be a program name with args.
30014 set dummy $ac_prog; ac_word=$2
30015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30016 $as_echo_n "checking for $ac_word... " >&6; }
30017 if test "${ac_cv_prog_JADE+set}" = set; then
30018 $as_echo_n "(cached) " >&6
30020 if test -n "$JADE"; then
30021 ac_cv_prog_JADE="$JADE" # Let the user override the test.
30023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30024 for as_dir in $PATH
30027 test -z "$as_dir" && as_dir=.
30028 for ac_exec_ext in '' $ac_executable_extensions; do
30029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30030 ac_cv_prog_JADE="$ac_prog"
30031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30040 JADE=$ac_cv_prog_JADE
30041 if test -n "$JADE"; then
30042 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
30043 $as_echo "$JADE" >&6; }
30045 { $as_echo "$as_me:$LINENO: result: no" >&5
30046 $as_echo "no" >&6; }
30050 test -n "$JADE" && break
30054 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
30055 $as_echo_n "checking for DocBook V4.2... " >&6; }
30056 if test "${pgac_cv_check_docbook+set}" = set; then
30057 $as_echo_n "(cached) " >&6
30059 cat >conftest.sgml <<EOF
30060 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
30062 <title>test</title>
30064 <title>random</title>
30066 <title>testsect</title>
30073 pgac_cv_check_docbook=no
30075 if test -n "$NSGMLS"; then
30076 $NSGMLS -s conftest.sgml 1>&5 2>&1
30077 if test $? -eq 0; then
30078 pgac_cv_check_docbook=yes
30081 rm -f conftest.sgml
30083 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
30084 $as_echo "$pgac_cv_check_docbook" >&6; }
30086 have_docbook=$pgac_cv_check_docbook
30089 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
30090 $as_echo_n "checking for DocBook stylesheets... " >&6; }
30091 if test "${pgac_cv_path_stylesheets+set}" = set; then
30092 $as_echo_n "(cached) " >&6
30094 if test -n "$DOCBOOKSTYLE"; then
30095 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
30097 for pgac_prefix in /usr /usr/local /opt /sw; do
30098 for pgac_infix in share lib; do
30099 for pgac_postfix in \
30100 sgml/stylesheets/nwalsh-modular \
30101 sgml/stylesheets/docbook \
30102 sgml/stylesheets/dsssl/docbook \
30103 sgml/docbook-dsssl \
30104 sgml/docbook/dsssl/modular \
30105 sgml/docbook/stylesheet/dsssl/modular \
30106 sgml/docbook/dsssl-stylesheets \
30107 sgml/dsssl/docbook-dsssl-nwalsh
30109 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
30110 if test -r "$pgac_candidate/html/docbook.dsl" \
30111 && test -r "$pgac_candidate/print/docbook.dsl"
30113 pgac_cv_path_stylesheets=$pgac_candidate
30122 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
30124 if test -n "$DOCBOOKSTYLE"; then
30125 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
30126 $as_echo "$DOCBOOKSTYLE" >&6; }
30128 { $as_echo "$as_me:$LINENO: result: no" >&5
30129 $as_echo "no" >&6; }
30131 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
30132 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
30135 # Extract the first word of "collateindex.pl", so it can be a program name with args.
30136 set dummy collateindex.pl; ac_word=$2
30137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30138 $as_echo_n "checking for $ac_word... " >&6; }
30139 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
30140 $as_echo_n "(cached) " >&6
30142 case $COLLATEINDEX in
30144 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
30147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30148 for as_dir in $PATH
30151 test -z "$as_dir" && as_dir=.
30152 for ac_exec_ext in '' $ac_executable_extensions; do
30153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30154 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
30155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30165 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
30166 if test -n "$COLLATEINDEX"; then
30167 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
30168 $as_echo "$COLLATEINDEX" >&6; }
30170 { $as_echo "$as_me:$LINENO: result: no" >&5
30171 $as_echo "no" >&6; }
30176 for ac_prog in xsltproc
30178 # Extract the first word of "$ac_prog", so it can be a program name with args.
30179 set dummy $ac_prog; ac_word=$2
30180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30181 $as_echo_n "checking for $ac_word... " >&6; }
30182 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
30183 $as_echo_n "(cached) " >&6
30185 if test -n "$XSLTPROC"; then
30186 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
30188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30189 for as_dir in $PATH
30192 test -z "$as_dir" && as_dir=.
30193 for ac_exec_ext in '' $ac_executable_extensions; do
30194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30195 ac_cv_prog_XSLTPROC="$ac_prog"
30196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30205 XSLTPROC=$ac_cv_prog_XSLTPROC
30206 if test -n "$XSLTPROC"; then
30207 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30208 $as_echo "$XSLTPROC" >&6; }
30210 { $as_echo "$as_me:$LINENO: result: no" >&5
30211 $as_echo "no" >&6; }
30215 test -n "$XSLTPROC" && break
30218 for ac_prog in osx sgml2xml sx
30220 # Extract the first word of "$ac_prog", so it can be a program name with args.
30221 set dummy $ac_prog; ac_word=$2
30222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30223 $as_echo_n "checking for $ac_word... " >&6; }
30224 if test "${ac_cv_prog_OSX+set}" = set; then
30225 $as_echo_n "(cached) " >&6
30227 if test -n "$OSX"; then
30228 ac_cv_prog_OSX="$OSX" # Let the user override the test.
30230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30231 for as_dir in $PATH
30234 test -z "$as_dir" && as_dir=.
30235 for ac_exec_ext in '' $ac_executable_extensions; do
30236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30237 ac_cv_prog_OSX="$ac_prog"
30238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30247 OSX=$ac_cv_prog_OSX
30248 if test -n "$OSX"; then
30249 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30250 $as_echo "$OSX" >&6; }
30252 { $as_echo "$as_me:$LINENO: result: no" >&5
30253 $as_echo "no" >&6; }
30257 test -n "$OSX" && break
30263 # We have to run the thread test near the end so we have all our symbols
30264 # defined. Cross compiling throws a warning.
30266 if test "$enable_thread_safety" = yes; then
30267 if test "$PORTNAME" != "win32"
30269 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30270 $as_echo_n "checking thread safety of required library functions... " >&6; }
30274 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30275 LIBS="$LIBS $PTHREAD_LIBS"
30276 if test "$cross_compiling" = yes; then
30277 { $as_echo "$as_me:$LINENO: result: maybe" >&5
30278 $as_echo "maybe" >&6; }
30279 { $as_echo "$as_me:$LINENO: WARNING:
30280 *** Skipping thread test program because of cross-compile build.
30281 *** Run the program in src/test/thread on the target machine.
30283 $as_echo "$as_me: WARNING:
30284 *** Skipping thread test program because of cross-compile build.
30285 *** Run the program in src/test/thread on the target machine.
30288 cat >conftest.$ac_ext <<_ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h. */
30294 #include "$srcdir/src/test/thread/thread_test.c"
30296 rm -f conftest$ac_exeext
30297 if { (ac_try="$ac_link"
30298 case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30303 $as_echo "$ac_try_echo") >&5
30304 (eval "$ac_link") 2>&5
30306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30308 { (case "(($ac_try" in
30309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310 *) ac_try_echo=$ac_try;;
30312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30313 $as_echo "$ac_try_echo") >&5
30314 (eval "$ac_try") 2>&5
30316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
30318 { $as_echo "$as_me:$LINENO: result: yes" >&5
30319 $as_echo "yes" >&6; }
30321 $as_echo "$as_me: program exited with status $ac_status" >&5
30322 $as_echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30325 ( exit $ac_status )
30326 { $as_echo "$as_me:$LINENO: result: no" >&5
30327 $as_echo "no" >&6; }
30328 { { $as_echo "$as_me:$LINENO: error: thread test program failed
30329 This platform is not thread-safe. Check the file 'config.log' or compile
30330 and run src/test/thread/thread_test for the exact reason.
30331 Use --disable-thread-safety to disable thread safety." >&5
30332 $as_echo "$as_me: error: thread test program failed
30333 This platform is not thread-safe. Check the file 'config.log' or compile
30334 and run src/test/thread/thread_test for the exact reason.
30335 Use --disable-thread-safety to disable thread safety." >&2;}
30336 { (exit 1); exit 1; }; }
30338 rm -rf conftest.dSYM
30339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30346 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30347 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30351 # If compiler will take -Wl,--as-needed (or various platform-specific
30352 # spellings thereof) then add that to LDFLAGS. This is much easier than
30353 # trying to filter LIBS to the minimum for each executable.
30354 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30355 # libreadline; therefore we postpone testing it until we know what library
30356 # dependencies readline has. The test code will try to link with $LIBS.
30357 if test "$with_readline" = yes; then
30358 link_test_func=readline
30360 link_test_func=exit
30363 if test "$PORTNAME" = "darwin"; then
30364 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30365 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30366 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30367 $as_echo_n "(cached) " >&6
30369 pgac_save_LDFLAGS=$LDFLAGS
30370 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30371 if test "$cross_compiling" = yes; then
30372 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30374 cat >conftest.$ac_ext <<_ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30389 rm -f conftest$ac_exeext
30390 if { (ac_try="$ac_link"
30391 case "(($ac_try" in
30392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393 *) ac_try_echo=$ac_try;;
30395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30396 $as_echo "$ac_try_echo") >&5
30397 (eval "$ac_link") 2>&5
30399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30401 { (case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30406 $as_echo "$ac_try_echo") >&5
30407 (eval "$ac_try") 2>&5
30409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; }; then
30411 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30413 $as_echo "$as_me: program exited with status $ac_status" >&5
30414 $as_echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30417 ( exit $ac_status )
30418 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30420 rm -rf conftest.dSYM
30421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30425 LDFLAGS="$pgac_save_LDFLAGS"
30427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30428 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30429 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30430 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30433 elif test "$PORTNAME" = "openbsd"; then
30434 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30435 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30436 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30437 $as_echo_n "(cached) " >&6
30439 pgac_save_LDFLAGS=$LDFLAGS
30440 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30441 if test "$cross_compiling" = yes; then
30442 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30444 cat >conftest.$ac_ext <<_ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h. */
30450 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30459 rm -f conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30466 $as_echo "$ac_try_echo") >&5
30467 (eval "$ac_link") 2>&5
30469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30476 $as_echo "$ac_try_echo") >&5
30477 (eval "$ac_try") 2>&5
30479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30483 $as_echo "$as_me: program exited with status $ac_status" >&5
30484 $as_echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30487 ( exit $ac_status )
30488 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30490 rm -rf conftest.dSYM
30491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30495 LDFLAGS="$pgac_save_LDFLAGS"
30497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30498 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30499 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30500 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30504 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30505 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30506 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30507 $as_echo_n "(cached) " >&6
30509 pgac_save_LDFLAGS=$LDFLAGS
30510 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30511 if test "$cross_compiling" = yes; then
30512 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30514 cat >conftest.$ac_ext <<_ACEOF
30517 cat confdefs.h >>conftest.$ac_ext
30518 cat >>conftest.$ac_ext <<_ACEOF
30519 /* end confdefs.h. */
30520 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30529 rm -f conftest$ac_exeext
30530 if { (ac_try="$ac_link"
30531 case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30536 $as_echo "$ac_try_echo") >&5
30537 (eval "$ac_link") 2>&5
30539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30541 { (case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30546 $as_echo "$ac_try_echo") >&5
30547 (eval "$ac_try") 2>&5
30549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); }; }; then
30551 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30553 $as_echo "$as_me: program exited with status $ac_status" >&5
30554 $as_echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30557 ( exit $ac_status )
30558 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30560 rm -rf conftest.dSYM
30561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30565 LDFLAGS="$pgac_save_LDFLAGS"
30567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30568 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30569 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30570 LDFLAGS="$LDFLAGS -Wl,--as-needed"
30575 # Create compiler version string
30576 if test x"$GCC" = x"yes" ; then
30577 cc_string=`${CC} --version | sed q`
30578 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30579 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30580 cc_string=`${CC} -V 2>&1 | sed q`
30586 cat >>confdefs.h <<_ACEOF
30587 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30591 # Supply a numeric version string for use by 3rd party add-ons
30592 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30593 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30595 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30597 cat >>confdefs.h <<_ACEOF
30598 #define PG_VERSION_NUM $PG_VERSION_NUM
30603 # Begin output steps
30605 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30606 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30607 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30608 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30609 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30610 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30611 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30612 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30614 # prepare build tree if outside source tree
30615 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30616 # Note 2: /bin/pwd might be better than shell's built-in at getting
30617 # a symlink-free name.
30618 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30622 if test "$no_create" != yes; then
30623 $as_echo_n "preparing build tree... " >&6
30624 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30625 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30626 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30627 $as_echo "$as_me: error: failed" >&2;}
30628 { (exit 1); exit 1; }; }
30629 { $as_echo "$as_me:$LINENO: result: done" >&5
30630 $as_echo "done" >&6; }
30636 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30639 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}"
30642 if test "$PORTNAME" = "win32"; then
30643 ac_config_commands="$ac_config_commands check_win32_symlinks"
30647 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30650 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30653 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30656 cat >confcache <<\_ACEOF
30657 # This file is a shell script that caches the results of configure
30658 # tests run on this system so they can be shared between configure
30659 # scripts and configure runs, see configure's option --config-cache.
30660 # It is not useful on other systems. If it contains results you don't
30661 # want to keep, you may remove or edit it.
30663 # config.status only pays attention to the cache file if you give it
30664 # the --recheck option to rerun configure.
30666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30668 # following values.
30672 # The following way of writing the cache mishandles newlines in values,
30673 # but we know of no workaround that is simple, portable, and efficient.
30674 # So, we kill variables containing newlines.
30675 # Ultrix sh set writes to stderr and can't be redirected directly,
30676 # and sets the high bit in the cache file unless we assign to the vars.
30678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30679 eval ac_val=\$$ac_var
30683 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30687 _ | IFS | as_nl) ;; #(
30688 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30689 *) $as_unset $ac_var ;;
30695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30696 *${as_nl}ac_space=\ *)
30697 # `set' does not quote correctly, so add quotes (double-quote
30698 # substitution turns \\\\ into \\, and sed turns \\ into \).
30701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30704 # `set' quotes correctly as required by POSIX, so do not add quotes.
30705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30719 if test -w "$cache_file"; then
30720 test "x$cache_file" != "x/dev/null" &&
30721 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30722 $as_echo "$as_me: updating cache $cache_file" >&6;}
30723 cat confcache >$cache_file
30725 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30732 # Let make expand exec_prefix.
30733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30735 DEFS=-DHAVE_CONFIG_H
30739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30740 # 1. Remove the extension, and $U if already installed.
30741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30742 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30744 # will be set to the directory where LIBOBJS objects are built.
30745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30748 LIBOBJS=$ac_libobjs
30750 LTLIBOBJS=$ac_ltlibobjs
30755 : ${CONFIG_STATUS=./config.status}
30757 ac_clean_files_save=$ac_clean_files
30758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30759 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30760 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30761 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30763 # Generated by $as_me.
30764 # Run this file to recreate the current configuration.
30765 # Compiler output produced by configure, useful for debugging
30766 # configure, is in config.log if it exists.
30769 ac_cs_recheck=false
30771 SHELL=\${CONFIG_SHELL-$SHELL}
30774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30775 ## --------------------- ##
30776 ## M4sh Initialization. ##
30777 ## --------------------- ##
30779 # Be more Bourne compatible
30780 DUALCASE=1; export DUALCASE # for MKS sh
30781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30785 # is contrary to our usage. Disable this feature.
30786 alias -g '${1+"$@"}'='"$@"'
30787 setopt NO_GLOB_SUBST
30789 case `(set -o) 2>/dev/null` in
30790 *posix*) set -o posix ;;
30799 # Avoid depending upon Character Ranges.
30800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30803 as_cr_digits='0123456789'
30804 as_cr_alnum=$as_cr_Letters$as_cr_digits
30809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30813 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30814 as_echo='printf %s\n'
30815 as_echo_n='printf %s'
30817 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30818 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30819 as_echo_n='/usr/ucb/echo -n'
30821 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30822 as_echo_n_body='eval
30826 expr "X$arg" : "X\\(.*\\)$as_nl";
30827 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30829 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30831 export as_echo_n_body
30832 as_echo_n='sh -c $as_echo_n_body as_echo'
30834 export as_echo_body
30835 as_echo='sh -c $as_echo_body as_echo'
30838 # The user is always right.
30839 if test "${PATH_SEPARATOR+set}" != set; then
30841 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30842 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30847 # Support unset when possible.
30848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30856 # We need space, tab and new line, in precisely that order. Quoting is
30857 # there to prevent editors from complaining about space-tab.
30858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30859 # splitting by setting IFS to empty value.)
30862 # Find who we are. Look in the path if we contain no directory separator.
30864 *[\\/]* ) as_myself=$0 ;;
30865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30866 for as_dir in $PATH
30869 test -z "$as_dir" && as_dir=.
30870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30876 # We did not find ourselves, most probably we were run as `sh COMMAND'
30877 # in which case we are not to be found in the path.
30878 if test "x$as_myself" = x; then
30881 if test ! -f "$as_myself"; then
30882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30883 { (exit 1); exit 1; }
30886 # Work around bugs in pre-3.0 UWIN ksh.
30887 for as_var in ENV MAIL MAILPATH
30888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30900 # Required to use basename.
30901 if expr a : '\(a\)' >/dev/null 2>&1 &&
30902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30909 as_basename=basename
30915 # Name of the executable.
30916 as_me=`$as_basename -- "$0" ||
30917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30918 X"$0" : 'X\(//\)$' \| \
30919 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30921 sed '/^.*\/\([^/][^/]*\)\/*$/{
30940 as_lineno_1=$LINENO
30941 as_lineno_2=$LINENO
30942 test "x$as_lineno_1" != "x$as_lineno_2" &&
30943 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30946 # uniformly replaced by the line number. The first 'sed' inserts a
30947 # line-number line after each line using $LINENO; the second 'sed'
30948 # does the real work. The second script uses 'N' to pair each
30949 # line-number line with the line containing $LINENO, and appends
30950 # trailing '-' during substitution so that $LINENO is not a special
30951 # case at line end.
30952 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30953 # scripts with optimization help from Paolo Bonzini. Blame Lee
30954 # E. McMahon (1931-1989) for sed's syntax. :-)
30966 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30969 ' >$as_me.lineno &&
30970 chmod +x "$as_me.lineno" ||
30971 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30972 { (exit 1); exit 1; }; }
30974 # Don't try to exec as it changes $[0], causing all sort of problems
30975 # (the dirname of $[0] is not the place where we might find the
30976 # original and so on. Autoconf is especially sensitive to this).
30977 . "./$as_me.lineno"
30978 # Exit status is that of the last command.
30983 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30989 ECHO_C= ECHO_N= ECHO_T=
30990 case `echo -n x` in
30992 case `echo 'x\c'` in
30993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30999 if expr a : '\(a\)' >/dev/null 2>&1 &&
31000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31006 rm -f conf$$ conf$$.exe conf$$.file
31007 if test -d conf$$.dir; then
31008 rm -f conf$$.dir/conf$$.file
31011 mkdir conf$$.dir 2>/dev/null
31013 if (echo >conf$$.file) 2>/dev/null; then
31014 if ln -s conf$$.file conf$$ 2>/dev/null; then
31016 # ... but there are two gotchas:
31017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31019 # In both cases, we have to default to `cp -p'.
31020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31022 elif ln conf$$.file conf$$ 2>/dev/null; then
31030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31031 rmdir conf$$.dir 2>/dev/null
31033 if mkdir -p . 2>/dev/null; then
31036 test -d ./-p && rmdir ./-p
31040 if test -x / >/dev/null 2>&1; then
31041 as_test_x='test -x'
31043 if ls -dL / >/dev/null 2>&1; then
31050 if test -d "$1"; then
31056 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31057 ???[sx]*):;;*)false;;esac;fi
31061 as_executable_p=$as_test_x
31063 # Sed expression to map a string onto a valid CPP name.
31064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31066 # Sed expression to map a string onto a valid variable name.
31067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31072 # Save the log message, to keep $[0] and so on meaningful, and to
31073 # report actual input values of CONFIG_FILES etc. instead of their
31074 # values after options handling.
31076 This file was extended by PostgreSQL $as_me 9.4devel, which was
31077 generated by GNU Autoconf 2.63. Invocation command line was
31079 CONFIG_FILES = $CONFIG_FILES
31080 CONFIG_HEADERS = $CONFIG_HEADERS
31081 CONFIG_LINKS = $CONFIG_LINKS
31082 CONFIG_COMMANDS = $CONFIG_COMMANDS
31085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31090 case $ac_config_files in *"
31091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31094 case $ac_config_headers in *"
31095 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31100 # Files that config.status was made for.
31101 config_files="$ac_config_files"
31102 config_headers="$ac_config_headers"
31103 config_links="$ac_config_links"
31104 config_commands="$ac_config_commands"
31108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31110 \`$as_me' instantiates files from templates according to the
31111 current configuration.
31113 Usage: $0 [OPTION]... [FILE]...
31115 -h, --help print this help, then exit
31116 -V, --version print version number and configuration settings, then exit
31117 -q, --quiet, --silent
31118 do not print progress messages
31119 -d, --debug don't remove temporary files
31120 --recheck update $as_me by reconfiguring in the same conditions
31121 --file=FILE[:TEMPLATE]
31122 instantiate the configuration file FILE
31123 --header=FILE[:TEMPLATE]
31124 instantiate the configuration header FILE
31126 Configuration files:
31129 Configuration headers:
31132 Configuration links:
31135 Configuration commands:
31138 Report bugs to <bug-autoconf@gnu.org>."
31141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31143 PostgreSQL config.status 9.4devel
31144 configured by $0, generated by GNU Autoconf 2.63,
31145 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31147 Copyright (C) 2008 Free Software Foundation, Inc.
31148 This config.status script is free software; the Free Software Foundation
31149 gives unlimited permission to copy, distribute and modify it."
31156 test -n "\$AWK" || AWK=awk
31159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31160 # The default lists apply if the user does not specify any file.
31166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31178 # Handling of the options.
31179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31182 $as_echo "$ac_cs_version"; exit ;;
31183 --debug | --debu | --deb | --de | --d | -d )
31185 --file | --fil | --fi | --f )
31188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31190 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31191 ac_need_defaults=false;;
31192 --header | --heade | --head | --hea )
31195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31197 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31198 ac_need_defaults=false;;
31200 # Conflict between --help and --header
31201 { $as_echo "$as_me: error: ambiguous option: $1
31202 Try \`$0 --help' for more information." >&2
31203 { (exit 1); exit 1; }; };;
31204 --help | --hel | -h )
31205 $as_echo "$ac_cs_usage"; exit ;;
31206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31210 # This is an error.
31211 -*) { $as_echo "$as_me: error: unrecognized option: $1
31212 Try \`$0 --help' for more information." >&2
31213 { (exit 1); exit 1; }; } ;;
31215 *) ac_config_targets="$ac_config_targets $1"
31216 ac_need_defaults=false ;;
31222 ac_configure_extra_args=
31224 if $ac_cs_silent; then
31226 ac_configure_extra_args="$ac_configure_extra_args --silent"
31230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31231 if \$ac_cs_recheck; then
31232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31235 CONFIG_SHELL='$SHELL'
31236 export CONFIG_SHELL
31241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31246 ## Running $as_me. ##
31252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31257 # Handling of arguments.
31258 for ac_config_target in $ac_config_targets
31260 case $ac_config_target in
31261 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31262 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31263 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31264 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31265 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31266 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31267 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31268 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31269 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31270 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31271 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31272 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31273 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31274 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31276 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31277 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31278 { (exit 1); exit 1; }; };;
31283 # If the user did not use the arguments to specify the items to instantiate,
31284 # then the envvar interface is used. Set only those that are not.
31285 # We use the long form for the default assignment because of an extremely
31286 # bizarre bug on SunOS 4.1.3.
31287 if $ac_need_defaults; then
31288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31290 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31294 # Have a temporary directory for convenience. Make it in the build tree
31295 # simply because there is no reason against having it here, and in addition,
31296 # creating and moving files from /tmp can sometimes cause problems.
31297 # Hook for its removal unless debugging.
31298 # Note that there is a small window in which the directory will not be cleaned:
31299 # after its creation but before its name has been assigned to `$tmp'.
31303 trap 'exit_status=$?
31304 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31306 trap '{ (exit 1); exit 1; }' 1 2 13 15
31308 # Create a (secure) tmp directory for tmp files.
31311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31312 test -n "$tmp" && test -d "$tmp"
31315 tmp=./conf$$-$RANDOM
31316 (umask 077 && mkdir "$tmp")
31319 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31320 { (exit 1); exit 1; }
31323 # Set up the scripts for CONFIG_FILES section.
31324 # No need to generate them if there are no CONFIG_FILES.
31325 # This happens for instance with `./config.status config.h'.
31326 if test -n "$CONFIG_FILES"; then
31330 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31334 ac_cs_awk_cr=$ac_cr
31337 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31342 echo "cat >conf$$subs.awk <<_ACEOF" &&
31343 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31345 } >conf$$subs.sh ||
31346 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31347 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31348 { (exit 1); exit 1; }; }
31349 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31351 for ac_last_try in false false false false false :; do
31352 . ./conf$$subs.sh ||
31353 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31354 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31355 { (exit 1); exit 1; }; }
31357 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31358 if test $ac_delim_n = $ac_delim_num; then
31360 elif $ac_last_try; then
31361 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31363 { (exit 1); exit 1; }; }
31365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31368 rm -f conf$$subs.sh
31370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31371 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31375 s/^/S["/; s/!.*/"]=/
31385 s/\(.\{148\}\).*/\1/
31387 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31399 s/\(.\{148\}\).*/\1/
31401 s/["\\]/\\&/g; s/^/"/; s/$/"/
31405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31410 ' <conf$$subs.awk | sed '
31415 ' >>$CONFIG_STATUS || ac_write_fail=1
31416 rm -f conf$$subs.awk
31417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31419 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31420 for (key in S) S_is_set[key] = 1
31426 nfields = split(line, field, "@")
31428 len = length(field[1])
31429 for (i = 2; i < nfields; i++) {
31431 keylen = length(key)
31432 if (S_is_set[key]) {
31434 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31435 len += length(value) + length(field[++i])
31446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31447 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31448 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31451 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31452 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31453 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31454 { (exit 1); exit 1; }; }
31457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31459 # trailing colons and then remove the whole line if VPATH becomes empty
31460 # (actually we leave an empty line to preserve line numbers).
31461 if test "x$srcdir" = x.; then
31462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31463 s/:*\$(srcdir):*/:/
31464 s/:*\${srcdir}:*/:/
31466 s/^\([^=]*=[ ]*\):*/\1/
31472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31473 fi # test -n "$CONFIG_FILES"
31475 # Set up the scripts for CONFIG_HEADERS section.
31476 # No need to generate them if there are no CONFIG_HEADERS.
31477 # This happens for instance with `./config.status Makefile'.
31478 if test -n "$CONFIG_HEADERS"; then
31479 cat >"$tmp/defines.awk" <<\_ACAWK ||
31483 # Transform confdefs.h into an awk script `defines.awk', embedded as
31484 # here-document in config.status, that substitutes the proper values into
31485 # config.h.in to produce config.h.
31487 # Create a delimiter string that does not exist in confdefs.h, to ease
31488 # handling of long lines.
31490 for ac_last_try in false false :; do
31491 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31492 if test -z "$ac_t"; then
31494 elif $ac_last_try; then
31495 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31496 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31497 { (exit 1); exit 1; }; }
31499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31503 # For the awk script, D is an array of macro values keyed by name,
31504 # likewise P contains macro parameters if any. Preserve backslash
31505 # newline sequences.
31507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31509 s/.\{148\}/&'"$ac_delim"'/g
31512 s/^[ ]*#[ ]*define[ ][ ]*/ /
31519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31526 D["\1"]=" \3\\\\\\n"\\/p
31528 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31533 s/.\{148\}/&'"$ac_delim"'/g
31538 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31541 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31543 ' <confdefs.h | sed '
31544 s/'"$ac_delim"'/"\\\
31545 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31548 for (key in D) D_is_set[key] = 1
31551 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31553 split(line, arg, " ")
31554 if (arg[1] == "#") {
31558 defundef = substr(arg[1], 2)
31561 split(mac1, mac2, "(") #)
31563 prefix = substr(line, 1, index(line, defundef) - 1)
31564 if (D_is_set[macro]) {
31565 # Preserve the white space surrounding the "#".
31566 print prefix "define", macro P[macro] D[macro]
31569 # Replace #undef with comments. This is necessary, for example,
31570 # in the case of _POSIX_SOURCE, which is predefined and required
31571 # on some systems where configure will not decide to define it.
31572 if (defundef == "undef") {
31573 print "/*", prefix defundef, macro, "*/"
31581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31582 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31583 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31584 { (exit 1); exit 1; }; }
31585 fi # test -n "$CONFIG_HEADERS"
31588 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31593 :[FHLC]) ac_mode=$ac_tag; continue;;
31595 case $ac_mode$ac_tag in
31597 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31598 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31599 { (exit 1); exit 1; }; };;
31600 :[FH]-) ac_tag=-:-;;
31601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31618 -) ac_f="$tmp/stdin";;
31619 *) # Look for the file first in the build tree, then in the source tree
31620 # (if the path is not absolute). The absolute path cannot be DOS-style,
31621 # because $ac_f cannot contain `:'.
31625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31627 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31628 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31629 { (exit 1); exit 1; }; };;
31631 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31632 ac_file_inputs="$ac_file_inputs '$ac_f'"
31635 # Let's still pretend it is `configure' which instantiates (i.e., don't
31636 # use $as_me), people would be surprised to read:
31637 # /* config.h. Generated by config.status. */
31638 configure_input='Generated from '`
31639 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31641 if test x"$ac_file" != x-; then
31642 configure_input="$ac_file. $configure_input"
31643 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31644 $as_echo "$as_me: creating $ac_file" >&6;}
31646 # Neutralize special characters interpreted by sed in replacement strings.
31647 case $configure_input in #(
31648 *\&* | *\|* | *\\* )
31649 ac_sed_conf_input=`$as_echo "$configure_input" |
31650 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31651 *) ac_sed_conf_input=$configure_input;;
31655 *:-:* | *:-) cat >"$tmp/stdin" \
31656 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31657 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31658 { (exit 1); exit 1; }; } ;;
31663 ac_dir=`$as_dirname -- "$ac_file" ||
31664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31665 X"$ac_file" : 'X\(//\)[^/]' \| \
31666 X"$ac_file" : 'X\(//\)$' \| \
31667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31668 $as_echo X"$ac_file" |
31669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31673 /^X\(\/\/\)[^/].*/{
31688 -*) as_dir=./$as_dir;;
31690 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31695 *) as_qdir=$as_dir;;
31697 as_dirs="'$as_qdir' $as_dirs"
31698 as_dir=`$as_dirname -- "$as_dir" ||
31699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31700 X"$as_dir" : 'X\(//\)[^/]' \| \
31701 X"$as_dir" : 'X\(//\)$' \| \
31702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31703 $as_echo X"$as_dir" |
31704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31708 /^X\(\/\/\)[^/].*/{
31721 test -d "$as_dir" && break
31723 test -z "$as_dirs" || eval "mkdir $as_dirs"
31724 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31725 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31726 { (exit 1); exit 1; }; }; }
31730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31733 # A ".." for each directory in $ac_dir_suffix.
31734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31735 case $ac_top_builddir_sub in
31736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31740 ac_abs_top_builddir=$ac_pwd
31741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31742 # for backward compatibility:
31743 ac_top_builddir=$ac_top_build_prefix
31746 .) # We are building in place.
31748 ac_top_srcdir=$ac_top_builddir_sub
31749 ac_abs_top_srcdir=$ac_pwd ;;
31750 [\\/]* | ?:[\\/]* ) # Absolute name.
31751 ac_srcdir=$srcdir$ac_dir_suffix;
31752 ac_top_srcdir=$srcdir
31753 ac_abs_top_srcdir=$srcdir ;;
31754 *) # Relative name.
31755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31756 ac_top_srcdir=$ac_top_build_prefix$srcdir
31757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31770 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31772 ac_MKDIR_P=$MKDIR_P
31774 [\\/$]* | ?:[\\/]* ) ;;
31775 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31780 # If the template does not know about datarootdir, expand it.
31781 # FIXME: This hack should be removed a few years after 2.60.
31782 ac_datarootdir_hack=; ac_datarootdir_seen=
31795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31796 *datarootdir*) ac_datarootdir_seen=yes;;
31797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31798 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31799 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31802 ac_datarootdir_hack='
31803 s&@datadir@&$datadir&g
31804 s&@docdir@&$docdir&g
31805 s&@infodir@&$infodir&g
31806 s&@localedir@&$localedir&g
31807 s&@mandir@&$mandir&g
31808 s&\\\${datarootdir}&$datarootdir&g' ;;
31812 # Neutralize VPATH when `$srcdir' = `.'.
31813 # Shell code in configure.ac might set extrasub.
31814 # FIXME: do we really want to maintain this feature?
31815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31816 ac_sed_extra="$ac_vpsub
31819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31822 s|@configure_input@|$ac_sed_conf_input|;t t
31823 s&@top_builddir@&$ac_top_builddir_sub&;t t
31824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31825 s&@srcdir@&$ac_srcdir&;t t
31826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31827 s&@top_srcdir@&$ac_top_srcdir&;t t
31828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31829 s&@builddir@&$ac_builddir&;t t
31830 s&@abs_builddir@&$ac_abs_builddir&;t t
31831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31832 s&@INSTALL@&$ac_INSTALL&;t t
31833 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31834 $ac_datarootdir_hack
31836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31837 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31838 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31839 { (exit 1); exit 1; }; }
31841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31844 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31845 which seems to be undefined. Please make sure it is defined." >&5
31846 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31847 which seems to be undefined. Please make sure it is defined." >&2;}
31851 -) cat "$tmp/out" && rm -f "$tmp/out";;
31852 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31854 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31855 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31856 { (exit 1); exit 1; }; }
31862 if test x"$ac_file" != x-; then
31864 $as_echo "/* $configure_input */" \
31865 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31866 } >"$tmp/config.h" \
31867 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31868 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31869 { (exit 1); exit 1; }; }
31870 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31871 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31872 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31875 mv "$tmp/config.h" "$ac_file" \
31876 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31877 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31878 { (exit 1); exit 1; }; }
31881 $as_echo "/* $configure_input */" \
31882 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31883 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31884 $as_echo "$as_me: error: could not create -" >&2;}
31885 { (exit 1); exit 1; }; }
31893 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31896 # Prefer the file from the source tree if names are identical.
31897 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31898 ac_source=$srcdir/$ac_source
31901 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31902 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31904 if test ! -r "$ac_source"; then
31905 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31906 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31907 { (exit 1); exit 1; }; }
31911 # Try a relative symlink, then a hard link, then a copy.
31913 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31914 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31916 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31917 ln "$ac_source" "$ac_file" 2>/dev/null ||
31918 cp -p "$ac_source" "$ac_file" ||
31919 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31920 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31921 { (exit 1); exit 1; }; }
31924 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31925 $as_echo "$as_me: executing $ac_file commands" >&6;}
31930 case $ac_file$ac_mode in
31931 "check_win32_symlinks":C)
31932 # Links sometimes fail undetected on Mingw -
31933 # so here we detect it and warn the user
31934 for FILE in $CONFIG_LINKS
31936 # test -e works for symlinks in the MinGW console
31937 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31938 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31941 "src/include/pg_config.h":H)
31942 # Update timestamp for pg_config.h (see Makefile.global)
31943 echo >src/include/stamp-h
31945 "src/include/pg_config_ext.h":H)
31946 # Update timestamp for pg_config_ext.h (see Makefile.global)
31947 echo >src/include/stamp-ext-h
31949 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31955 { (exit 0); exit 0; }
31957 chmod +x $CONFIG_STATUS
31958 ac_clean_files=$ac_clean_files_save
31960 test $ac_write_fail = 0 ||
31961 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31962 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31963 { (exit 1); exit 1; }; }
31966 # configure is writing to config.log, and then calls config.status.
31967 # config.status does its own redirection, appending to config.log.
31968 # Unfortunately, on DOS this fails, as config.log is still kept open
31969 # by configure, so config.status won't be able to write to it; its
31970 # output is simply discarded. So we exec the FD to /dev/null,
31971 # effectively closing config.log, so it can be properly (re)opened and
31972 # appended to by config.status. When coming back to configure, we
31973 # need to make the FD available again.
31974 if test "$no_create" != yes; then
31976 ac_config_status_args=
31977 test "$silent" = yes &&
31978 ac_config_status_args="$ac_config_status_args --quiet"
31980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31983 # would make configure fail if this is the last instruction.
31984 $ac_cs_success || { (exit 1); exit 1; }
31986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31987 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}